Skip to main content

Module middleware

Module middleware 

Source
Expand description

ChatMiddleware extension point and its decision enums (HookAction, ToolDecision).

Enums§

HookAction
Decision returned from ChatMiddleware::on_run_started to optionally short-circuit a run before any provider call.
ToolDecision
Decision returned from ChatMiddleware::on_before_tool_call to optionally bypass or abort a tool invocation.

Traits§

ChatMiddleware
Extension point invoked by the engine at every lifecycle event of a run.