Skip to main content

display_tool_call

Function
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) -> Any

Parameters

message
str
required
The tool call message (legacy format)
console
Any
Rich console for output
tool_name
str
Name of the tool being called
tool_input
dict
Input arguments to the tool
tool_output
str
Output from the tool (if available)
elapsed_time
float
Time taken for tool execution in seconds
success
bool
default:"True"
Whether the tool call succeeded

Returns

Returns
Any
The result of the operation.