Skip to main content

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

ToolDefinition

Tool definition for LLM function calling

ToolRegistry

Registry for managing tools

Tool

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…

Rust Tools

Rust Code Execution

Rust Web Search