Quick Start
1
Persist Agent Sessions
2
Custom Session Directory
User Interaction Flow
FileSessionStore
Persists session data to JSON files on disk.Configuration Options
Methods
Example
FileSearchCall
Search across file stores (used with Gemini deep research).Configuration Options
Example
Best Practices
Use default paths for simplicity
Use default paths for simplicity
FileSessionStore::new() uses ~/.praisonai/sessions/ which works across platforms.Set message limits for long-running agents
Set message limits for long-running agents
Use
.max_messages(n) to prevent unbounded memory growth in persistent agents.Handle file I/O errors gracefully
Handle file I/O errors gracefully
Session store operations return
Result types - always handle potential errors.Related
Sessions
Session management API
Memory
In-memory storage options

