Skip to main content

Tool

Defined in the tools module.
Rust AI Agent SDK Trait for tools that can be used by agents This trait defines the interface for tools. Tools can be created using the #[tool] macro or by implementing this trait directly.

Methods

name

Get the tool name

description

Get the tool description

parameters_schema

Get the parameter schema as JSON Schema

execute

Execute the tool with the given arguments Parameters:

definition

Get the tool definition for LLM function calling

Source

View on GitHub

praisonai/src/tools/mod.rs at line 0

Rust Tools

Rust Code Execution

Rust Web Search