Skip to content
1 min read · 104 words

Type Alias: DispatchRunnerFunctionalHooks

ts
type DispatchRunnerFunctionalHooks = {
  message: [[TurnStreamableContent], []];
  thought: [[TurnStreamableContent], []];
  toolCall: [[TurnToolCallContent], []];
};

Functional hook events on @nhtio/adk!DispatchRunner.

Remarks

Pipeline-affecting events forwarded from the @nhtio/adk!DispatchContext. Register handlers via the hooks field of the dispatch input.

Properties

PropertyTypeDescription
message[[TurnStreamableContent], []]Fired for every streaming message chunk. Forwarded from the context.
thought[[TurnStreamableContent], []]Fired for every reasoning trace chunk. Forwarded from the context.
toolCall[[TurnToolCallContent], []]Fired for every tool call (on request and on settlement). Forwarded from the context.