Skip to content
2 min read · 398 words

@nhtio/adk/turn_runner

The turn runner orchestration surface and its configuration, event, and middleware types.

Classes

ClassDescription
TurnRunnerExecutes a single agent turn through paired input and output middleware pipelines.

Interfaces

InterfaceDescription
ToolExecutionEndEventPayload emitted on the observability bus when a tool's executor finishes (successfully or not).
ToolExecutionStartEventPayload emitted on the observability bus when a tool's executor begins executing the handler.
TurnEndEventPayload emitted when a turn ends.
TurnGateClosedEventPayload emitted when a @nhtio/adk!TurnGate settles (resolved, rejected, aborted, or timed out).
TurnRunnerConfigConfiguration supplied to @nhtio/adk!TurnRunner at construction time.
TurnStartEventPayload emitted when a turn begins.
TurnStreamableContentA unit of streamable content emitted during a turn.
TurnToolCallContentA tool call invocation emitted during a turn, including its result once available.

Type Aliases

Type AliasDescription
EmitMessageFnA function that emits a message event on the @nhtio/adk!TurnRunner.
EmitThoughtFnA function that emits a thought event on the @nhtio/adk!TurnRunner.
EmitToolCallFnA function that emits a toolCall event on the @nhtio/adk!TurnRunner.
EmitToolExecutionEndFnA function that emits a toolExecutionEnd event on the @nhtio/adk!TurnRunner observability bus.
EmitToolExecutionStartFnA function that emits a toolExecutionStart event on the @nhtio/adk!TurnRunner observability bus.
OpenGateFnA function that opens a @nhtio/adk!TurnGate for the current turn.
ResolvedTurnRunnerConfigFully-resolved TurnRunnerConfig after schema validation.
TurnEventValid event name keys for the @nhtio/adk!TurnRunner functional bus.
TurnEventListenerListener signature for a given @nhtio/adk!TurnRunner functional event.
TurnEventsFunctional events emitted by @nhtio/adk!TurnRunner during a turn.
TurnObservabilityEventValid event name keys for the @nhtio/adk!TurnRunner observability bus.
TurnObservabilityEventListenerListener signature for a given @nhtio/adk!TurnRunner observability event.
TurnObservabilityEventsObservability events emitted by @nhtio/adk!TurnRunner for instrumentation.
TurnPipelineMiddlewareFnMiddleware 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