How the reply is shown
A fuller trace
PraisonAI lets you control how agent output appears: verbose output displays a rich trace box showing reasoning and steps, while streaming prints tokens live as they arrive. Pick verbose traces while debugging and clean streaming for end-user apps.
The box is the trace of the run. The last line is the answer.
Example
from praisonai import Agent
agent = Agent(instructions="Answer in one sentence.", output="verbose")
print(agent.start("What is a flow?"))Example explained
- output — verbose prints the trace as well as the answer.
A stream
A stream prints the answer in pieces as they arrive. end="" keeps the pieces on one line.
Expected output: the first run prints a formatted trace box with the final answer at the bottom, and the second prints the reply incrementally on one line.
Example
from praisonai import Agent
agent = Agent(instructions="You are a helpful assistant")
for chunk in agent.start("Explain streaming in one sentence", stream=True):
print(chunk, end="", flush=True)
print()Example explained
- stream — True yields pieces. False returns the whole answer.
Reference: documentation