| Example | Description |
|---|---|
| Pre and Post Hooks | Intercept and manage tool execution for better agent control. |
| Tool Hooks | Define custom logic to intercept and log tool executions. |
| Tool Hooks in Toolkit | Apply custom validation logic to tools within a toolkit. |
| Tool Hooks in Toolkit with State | Manage tool arguments dynamically using shared agent session state. |
| Nested Tool Hooks in Toolkit with State | Manage nested tool execution logic using agent session state. |
| Nested Tool Hooks in Toolkit | Use of multiple hooks for sync and async execution. |