Skip to main content

FileSessionStore

Defined in the session module.
Rust AI Agent SDK File-based session store (default)

Fields

NameTypeDescription
session_dirPathBuf-
max_messagesusize-
cacheArc<RwLock<HashMap<String-

Methods

new

fn new() -> Self
Create a new file session store

with_dir

fn with_dir(dir: impl Into<PathBuf>) -> Self
Create with custom directory Parameters:
NameType
dirimpl Into&lt;PathBuf&gt;

max_messages

fn max_messages(mut self, max: usize) -> Self
Set max messages Parameters:
NameType
maxusize

Source

View on GitHub

praisonai/src/session/mod.rs at line 206