Expand description
Tool builder utilities for creating tools from functions
This module provides ergonomic helpers for converting regular Rust functions into Tool implementations that can be registered with agents.
Structs§
- Function
Tool - A tool implementation backed by a function/closure
- Tool
Builder - Builder for creating tools from async functions
Functions§
- create_
tool - Simple helper to create a tool from an async closure (backwards compatibility) This is a simpler API for basic tools that don’t need explicit parameter schemas. The schema will be inferred as accepting any JSON object.
- tool
- Quick helper to create a simple async tool
- tool_
sync - Quick helper to create a simple sync tool
Type Aliases§
- Async
Tool Fn - Type alias for async tool handler functions
- Sync
Tool Fn - Type alias for sync tool handler functions