Display Tool Call • Rust AI Agent SDK
display_tool_call: Display a tool call
display_tool_call
Function
</div>
This function is defined in the display module.
Display 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: display_tool_call"]
tool -- "returns" --> result["Result"]
style tool fill:#189AB4,color:#fff
style agent fill:#8B0000,color:#fff
style result fill:#8B0000,color:#fffSignature
def display_tool_call(
agent_name: &str,
tool_name: &str,
arguments: &serde_json::Value,
result: Option<&str>,
) -> ()Parameters
ParamField
&strNo description available.
ParamField
&strNo description available.
ParamField
&serde_json::ValueNo description available.
ParamField
Option<&str>No description available.
Returns
ResponseField
()The result of the operation.
Uses
agenttoolargsresultexecute_sync_callbacksreadgetis_none
Source
View on GitHubpraisonai/src/display.rs at line 444