Skip to main content
Control what your agent prints during a run — silent for APIs, status for CLI, stream for chat UIs.
The user runs the agent; output presets control whether responses stay silent, stream, or show status lines.

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
Precedence ladder — choose the level you need:

String Preset Aliases


Common Patterns

Silent (SDK Default)

Status (CLI / Interactive)

Save Response to File


Best Practices

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.
output="editor" shows human-friendly numbered steps with emoji icons. It is the default when running praisonai "prompt" from the command line.
Set output="stream" when building conversational UIs — tokens appear in real time for a responsive feel.
Set output=OutputConfig(output_file="result.md") to automatically save the agent’s response. Useful for reports, summaries, and generated documents.

Async Agents

Run agents asynchronously for better performance

Callbacks

Hook into agent lifecycle events