Overview
The middleware system provides before/after hooks and wrap decorators for intercepting model and tool calls.Quick Start
Available Decorators
| Decorator | Purpose |
|---|---|
@before_model | Run before LLM call |
@after_model | Run after LLM call |
@wrap_model_call | Wrap entire LLM call |
@before_tool | Run before tool execution |
@after_tool | Run after tool execution |
@wrap_tool_call | Wrap entire tool execution |

