@nhtio/adk/turn_runner
The turn runner orchestration surface and its configuration, event, and middleware types.
Classes
| Class | Description |
|---|---|
| TurnRunner | Executes a single agent turn through paired input and output middleware pipelines. |
Interfaces
| Interface | Description |
|---|---|
| ToolExecutionEndEvent | Payload emitted on the observability bus when a tool's executor finishes (successfully or not). |
| ToolExecutionStartEvent | Payload emitted on the observability bus when a tool's executor begins executing the handler. |
| TurnEndEvent | Payload emitted when a turn ends. |
| TurnGateClosedEvent | Payload emitted when a @nhtio/adk!TurnGate settles (resolved, rejected, aborted, or timed out). |
| TurnRunnerConfig | Configuration supplied to @nhtio/adk!TurnRunner at construction time. |
| TurnStartEvent | Payload emitted when a turn begins. |
| TurnStreamableContent | A unit of streamable content emitted during a turn. |
| TurnToolCallContent | A tool call invocation emitted during a turn, including its result once available. |
Type Aliases
| Type Alias | Description |
|---|---|
| EmitMessageFn | A function that emits a message event on the @nhtio/adk!TurnRunner. |
| EmitThoughtFn | A function that emits a thought event on the @nhtio/adk!TurnRunner. |
| EmitToolCallFn | A function that emits a toolCall event on the @nhtio/adk!TurnRunner. |
| EmitToolExecutionEndFn | A function that emits a toolExecutionEnd event on the @nhtio/adk!TurnRunner observability bus. |
| EmitToolExecutionStartFn | A function that emits a toolExecutionStart event on the @nhtio/adk!TurnRunner observability bus. |
| OpenGateFn | A function that opens a @nhtio/adk!TurnGate for the current turn. |
| ResolvedTurnRunnerConfig | Fully-resolved TurnRunnerConfig after schema validation. |
| TurnEvent | Valid event name keys for the @nhtio/adk!TurnRunner functional bus. |
| TurnEventListener | Listener signature for a given @nhtio/adk!TurnRunner functional event. |
| TurnEvents | Functional events emitted by @nhtio/adk!TurnRunner during a turn. |
| TurnObservabilityEvent | Valid event name keys for the @nhtio/adk!TurnRunner observability bus. |
| TurnObservabilityEventListener | Listener signature for a given @nhtio/adk!TurnRunner observability event. |
| TurnObservabilityEvents | Observability events emitted by @nhtio/adk!TurnRunner for instrumentation. |
| TurnPipelineMiddlewareFn | Middleware function signature for the input and output pipelines in a @nhtio/adk!TurnRunner. |
References
DispatchExecutorFn
Re-exports DispatchExecutorFn
DispatchExecutorHelpers
Re-exports DispatchExecutorHelpers
DispatchExecutorLogChannel
Re-exports DispatchExecutorLogChannel
DispatchExecutorLogEntry
Re-exports DispatchExecutorLogEntry
DispatchExecutorLogLevel
Re-exports DispatchExecutorLogLevel
LogEvent
Re-exports LogEvent