Skip to main content

ToolProtocol

Defined in the protocols module.
Rust AI Agent SDK Protocol for tool implementations.

Methods

name

fn name(&self) -> &str
Get the tool’s name

description

fn description(&self) -> &str
Get the tool’s description

parameters_schema

fn parameters_schema(&self) -> serde_json::Value
Get the tool’s parameter schema

execute

async fn execute(&self, args: serde_json::Value) -> Result<serde_json::Value>
Execute the tool with arguments Parameters:
NameType
argsserde_json::Value

Source

View on GitHub

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