tools • Rust AI Agent SDK
Tool system for PraisonAI
tools
Rust AI Agent SDK
Tool system for PraisonAI
This module provides the tool abstraction for agents. Tools are functions that agents can call to perform actions.
Example
use praisonai_core::{tool, Tool};
#[tool(description = "Search the web")]
async fn search(query: String) -> String {
format!("Results for: {}", query)
}Import
use praisonai::tools::*;Classes
ToolResult
Result of a tool execution
ToolDefinitionTool definition for LLM function calling
ToolRegistryRegistry for managing tools
ToolTrait 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…