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.

Diagram

uses

returns

Agent

Tool: display_tool_call

Result

Signature

python
def display_tool_call(message: str, console: Any, tool_name: str, tool_input: dict, tool_output: str, elapsed_time: float, success: bool) -> Any

Parameters

ParamField str

The tool call message (legacy format)

ParamField Any

Rich console for output

ParamField str

Name of the tool being called

ParamField dict

Input arguments to the tool

ParamField str

Output from the tool (if available)

ParamField float

Time taken for tool execution in seconds

ParamField bool

Whether the tool call succeeded

Returns

ResponseField Any

The result of the operation.

Uses

  • logging.debug
  • execute_sync_callback

Source

View on GitHub

praisonaiagents/main.py at line 417


Related Documentation