Tool Protocol • Rust AI Agent SDK

ToolProtocol: Protocol for tool implementations.

ToolProtocol

Defined in the protocols module.

Rust AI Agent SDK

Protocol for tool implementations.

Diagram

uses

returns

Agent

Tool: ToolProtocol

Result

Methods

name

rust
fn name(&self) -> &str

Get the tool’s name

description

rust
fn description(&self) -> &str

Get the tool’s description

parameters_schema

rust
fn parameters_schema(&self) -> serde_json::Value

Get the tool’s parameter schema

execute

rust
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


Related Documentation