Display Tool Call • AI Agent SDK
display_tool_call: Display tool call information in PraisonAI's unique timeline format.
display_tool_call
Function
</div>
This function is defined in the main module.
Display tool call information in PraisonAI’s unique timeline format.
Uses ▸ prefix, inline timing [X.Xs], and status icons ✓/✗ for a clean, scannable tool activity display.
%%{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(message: str, console: Any, tool_name: str, tool_input: dict, tool_output: str, elapsed_time: float, success: bool) -> AnyParameters
ParamField
strThe tool call message (legacy format)
ParamField
AnyRich console for output
ParamField
strName of the tool being called
ParamField
dictInput arguments to the tool
ParamField
strOutput from the tool (if available)
ParamField
floatTime taken for tool execution in seconds
ParamField
boolWhether the tool call succeeded
Returns
ResponseField
AnyThe result of the operation.
Uses
logging.debugexecute_sync_callback
Source
View on GitHubpraisonaiagents/main.py at line 417