Type Alias: TurnPipelineMiddlewareFn
ts
type TurnPipelineMiddlewareFn = (
ctx: TurnContext,
next: NextFn,
) => void | Promise<void>;Middleware function signature for the input and output pipelines in a @nhtio/adk!TurnRunner.
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | TurnContext | The mutable @nhtio/adk!TurnContext for the current turn. |
next | NextFn | Callback to advance to the next middleware in the chain. |
Returns
void | Promise<void>