Skip to content
1 min read · 77 words

Type Alias: EmitToolExecutionEndFn

ts
type EmitToolExecutionEndFn = (event: ToolExecutionEndEvent) => void;

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

Parameters

ParameterType
eventToolExecutionEndEvent

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.