Skip to content
1 min read · 77 words

Type Alias: EmitToolExecutionStartFn

ts
type EmitToolExecutionStartFn = (event: ToolExecutionStartEvent) => void;

A function that emits a toolExecutionStart event on the @nhtio/adk!TurnRunner observability bus.

Parameters

ParameterType
eventToolExecutionStartEvent

Returns

void

Remarks

Injected into both @nhtio/adk!TurnContext and DispatchContext so Tool.executor() can emit lifecycle events without holding a reference to the runner or its emitter. Tool execution happens inside an LLM dispatch loop; DispatchContext is the canonical context the tool handler receives.