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
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
agent["Agent"] -- "uses" --> tool["Tool: ToolPluginProtocol"]
tool -- "returns" --> result["Result"]
style tool fill:#189AB4,color:#fff
style agent fill:#8B0000,color:#fff
style result fill:#8B0000,color:#fffMethods
get_tools
fn get_tools(&self) -> Vec<ToolDefinition>Get tool definitions provided by this plugin
execute_tool
fn execute_tool(&self, name: &str, args: serde_json::Value) -> Result<serde_json::Value, String>Execute a tool by name
Parameters:
| Name | Type |
|---|---|
name | &str |
args | serde_json::Value |
Source
View on GitHubpraisonai/src/parity/plugins.rs at line 0