Skip to main content
Tool examples cover the surfaces a developer reaches for when giving an agent things to do. Sources under examples/tools/.

How to run

Pick a starting point

  • Building your first typed tool? tools_schemaSchemaBasedTool with a typed Params struct.
  • Calling external services? tools_stateful_http shows the shared-client pattern.
  • No agent loop, just a DAG of calls? tools_orchestrator.

See also

Tools guide

Tool, SchemaBasedTool, validators, ToolOrchestrator.

Production → Security

Deny-lists, SSRF protection, sandboxing.

Patterns → HITL approval

Approval-gated tool calls.