Skip to main contentpraisonaiagents.output
Core SDK
Output Styles Module for PraisonAI Agents.
Provides configurable output formatting:
- Predefined styles (concise, detailed, technical, etc.)
- Custom formatting rules
- Markdown/plain text/JSON output
- Response length control
Zero Performance Impact:
- All imports are lazy loaded via getattr
- Styles only applied when configured
- No overhead when not in use
Usage:
from praisonaiagents.output import OutputStyle, OutputFormatter
Use predefined style
style = OutputStyle.concise()
Apply to agent
agent = Agent(
instructions=”…”,
output_style=style
)
Or format manually
formatter = OutputFormatter(style)
formatted = formatter.format(response)
Overview
This module provides components for output.