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.
Signature
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