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

Parameters

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

Returns

Any
The result of the operation.

Uses

  • logging.debug
  • execute_sync_callback

Source

View on GitHub

praisonaiagents/main.py at line 432

Tools Concept

Create Custom Tools

Tool Development

Display System

Display Callbacks