Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
FileSessionStore
Defined in the session module.
Rust AI Agent SDK
File-based session store (default)
Fields
| Name | Type | Description |
|---|
session_dir | PathBuf | - |
max_messages | usize | - |
cache | Arc<RwLock<HashMap<String | - |
Methods
new
Create a new file session store
with_dir
fn with_dir(dir: impl Into<PathBuf>) -> Self
Create with custom directory
Parameters:
| Name | Type |
|---|
dir | impl Into<PathBuf> |
max_messages
fn max_messages(mut self, max: usize) -> Self
Set max messages
Parameters:
Source
View on GitHub
praisonai/src/session/mod.rs at line 206