agent_with_tools family demonstrates WithTools, WithToolRegistry, WithApprovalHandler, ToolAuthorizer, and the dynamic registry API. Each sub-example isolates one aspect of tool configuration so you can see exactly what each API controls.
Source: examples/agent_with_tools/
Examples in this group
| Directory | Demonstrates |
|---|---|
basic | Built-in tools — echo, calculator, weather, wikipedia, search with auto-approval |
approval | WithApprovalHandler — approve or reject each tool (Run) |
authorizer | ToolAuthorizer — programmatic deny before execution |
custom | Custom tool via WithTools |
dynamic_registry | ToolRegistry().Register between runs |
Run
Fromexamples/:
Expected output
Learn more
Tools
Registration and execution modes
Approvals
Approval policies and handlers
Dynamic Capabilities
Runtime tool registry