Tool Call Function • Rust AI Agent SDK
ToolCallFunction: Function details within a tool call
ToolCallFunction
Defined in the LLM module.
Rust AI Agent SDK
Function details within a tool call
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
agent["Agent"] -- "uses" --> tool["Tool: ToolCallFunction"]
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 |
|---|---|---|
name | String | The tool/function name |
arguments | String | The arguments as JSON string |
Source
View on GitHubpraisonai/src/llm/mod.rs at line 96