Skip to content

Documentation / @agentick/shared / forwardToDevTools

Function: forwardToDevTools() ​

forwardToDevTools(event, context): void

Defined in: devtools.ts:1158

Forward an app stream event to DevTools.

Maps from app-level events (execution_start, tick_start, content_delta, etc.) to DevTools event format. Only forwards if DevTools is enabled and has subscribers.

This function is platform-agnostic - no Node.js dependencies.

Parameters ​

event ​

The app stream event to forward

type ​

string

context ​

ForwardContext

Forwarding context with session info and devTools flag

Returns ​

void

Example ​

typescript
forwardToDevTools(
  { type: 'tick_start', tick: 1, executionId: 'abc' },
  { sessionId: 'xyz', rootComponent: 'MyAgent', devToolsEnabled: true }
);

Released under the ISC License.