useAgentDevtools
Unpublished development API. This package is under development and is not available as a published release.
Reports a session's snapshot changes to the Threadplane DevTools extension
in development, as the Angular adapters do: each change dispatches a
threadplane:devtools CustomEvent on window whose detail is
{ v, agent, adapter, seq, eventType, wrote, tMs }, naming which of
status, messages, toolCalls and error changed, never their values.
eventType is run:start, run:end or snapshot.
Production builds (process.env.NODE_ENV === 'production') replace it with
a no-op. Setting window.__THREADPLANE_DEVTOOLS_DISABLED__ = true turns
reporting off in development.
import { useAgentDevtools } from '@threadplane/react/debug';Declaration · overload 1
useAgentDevtools: (session: AgentDevtoolsSource | null | undefined, options: AgentDevtoolsOptions) => voidParameters
session· requiredAgentDevtoolsSource | null | undefinedoptions· requiredAgentDevtoolsOptions
Returns
void