How It Works
Quick Start
1
Simple Usage
Pass
output as a string preset:2
With Configuration
Use
OutputConfig for fine-grained control:Which Style Should I Use?
Pick a preset based on where the output is consumed.How It Works
Configuration Options
OutputConfig SDK Reference
Full parameter reference for OutputConfig
String Preset Aliases
Common Patterns
Silent (SDK Default)
Status (CLI / Interactive)
Save Response to File
Best Practices
Use silent mode for production APIs
Use silent mode for production APIs
Silent mode (the default) has zero output overhead. Use it when the agent’s return value is consumed by code rather than displayed to users.
Use editor mode for beginner-facing CLIs
Use editor mode for beginner-facing CLIs
output="editor" shows human-friendly numbered steps with emoji icons. It is the default when running praisonai "prompt" from the command line.Use stream mode for chat interfaces
Use stream mode for chat interfaces
Set
output="stream" when building conversational UIs — tokens appear in real time for a responsive feel.Use output_file to persist long-form responses
Use output_file to persist long-form responses
Set
output=OutputConfig(output_file="result.md") to automatically save the agent’s response. Useful for reports, summaries, and generated documents.Related
Async Agents
Run agents asynchronously for better performance
Callbacks
Hook into agent lifecycle events

