Tool Plugin Protocol • Rust AI Agent SDK

ToolPluginProtocol: Tool-providing plugin protocol

ToolPluginProtocol

Defined in the plugins module.

Rust AI Agent SDK

Tool-providing plugin protocol

Diagram

uses

returns

Agent

Tool: ToolPluginProtocol

Result

Methods

get_tools

rust
fn get_tools(&self) -> Vec<ToolDefinition>

Get tool definitions provided by this plugin

execute_tool

rust
fn execute_tool(&self, name: &str, args: serde_json::Value) -> Result<serde_json::Value, String>

Execute a tool by name

Parameters:

NameType
name&str
argsserde_json::Value

Source

View on GitHub

praisonai/src/parity/plugins.rs at line 0


Related Documentation