MiddlewareLike interface
Middleware interface compatible with agents-hosting adapters.
Methods
| on |
Processes a turn and invokes the next middleware. |
Method Details
onTurn(TurnContextLike, () => Promise<void>)
Processes a turn and invokes the next middleware.
function onTurn(context: TurnContextLike, next: () => Promise<void>): Promise<void>
Parameters
- context
- TurnContextLike
The current turn context.
- next
-
() => Promise<void>
Invokes the next middleware in the pipeline.
Returns
Promise<void>