Quick Start
Configuration Interfaces
Memory Configuration
| Option | Type | Default | Description |
|---|---|---|---|
backend | MemoryBackend | 'file' | Storage backend (file, sqlite, redis, postgres) |
userId | string | undefined | User identifier for memory isolation |
sessionId | string | undefined | Session identifier |
autoMemory | boolean | false | Enable automatic memory management |
history | boolean | true | Store conversation history |
historyLimit | number | 100 | Maximum history entries |
storePath | string | './memory' | File storage path |
Output Configuration
| Option | Type | Default | Description |
|---|---|---|---|
verbose | boolean | false | Enable verbose logging |
markdown | boolean | true | Format output as markdown |
stream | boolean | false | Enable streaming responses |
metrics | boolean | false | Show performance metrics |
reasoningSteps | boolean | false | Display reasoning steps |
Execution Configuration
| Option | Type | Default | Description |
|---|---|---|---|
maxIter | number | 10 | Maximum iterations |
maxRetryLimit | number | 3 | Maximum retries on failure |
maxRpm | number | 60 | Rate limit (requests per minute) |
maxExecutionTime | number | 300 | Timeout in seconds |
Enums
Memory Backend
Output Preset
Execution Preset
Common Patterns
- Full Config
- Multi-Agent Config
API Reference
MemoryConfig
Memory configuration options
ExecutionConfig
Execution configuration options
OutputConfig
Output configuration options
PraisonConfig
Full configuration interface
Best Practices
Use presets for common scenarios
Use presets for common scenarios
Start with presets like
ExecutionPreset.FAST for quick tasks or ExecutionPreset.THOROUGH for complex research.Configure memory for persistence
Configure memory for persistence
Enable
autoMemory: true to automatically persist important context across sessions.Set appropriate rate limits
Set appropriate rate limits
Use
maxRpm to prevent API rate limiting, especially in production environments.
