Tool Call • Rust AI Agent SDK
ToolCall: A tool call from the LLM.
ToolCall
Defined in the protocols module.
Rust AI Agent SDK
A tool call from the LLM.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
agent["Agent"] -- "uses" --> tool["Tool: ToolCall"]
tool -- "returns" --> result["Result"]
style tool fill:#189AB4,color:#fff
style agent fill:#8B0000,color:#fff
style result fill:#8B0000,color:#fffFields
| Name | Type | Description |
|---|---|---|
id | String | Tool call ID |
name | String | Tool name |
arguments | serde_json::Value | Tool arguments |
Source
View on GitHubpraisonai/src/protocols/mod.rs at line 210