Skip to main content

display_interaction

Function
This function is defined in the main module.
Synchronous version of display_interaction. Displays the task/message and response in clean panels with semantic colors and optional metrics footer. Uses PraisonAI’s unique color palette.

Signature

def display_interaction(message: Any, response: Any, markdown: Any, generation_time: Any, console: Any, agent_name: Any, agent_role: Any, agent_tools: Any, task_name: Any, task_description: Any, task_id: Any, metrics: Any) -> Any

Parameters

message
Any
required
No description available.
response
Any
required
No description available.
markdown
Any
default:"True"
No description available.
generation_time
Any
No description available.
console
Any
No description available.
agent_name
Any
No description available.
agent_role
Any
No description available.
agent_tools
Any
No description available.
task_name
Any
No description available.
task_description
Any
No description available.
task_id
Any
No description available.
metrics
Any
Optional dict with token_in, token_out, cost, model for footer display

Returns

Returns
Any
The result of the operation.