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.
SessionStore
Defined in the session module.
Rust AI Agent SDK
Session store trait for different storage backends
Methods
load
fn load(&self, session_id: &str) -> Result<SessionData>
Load session data
Parameters:
save
fn save(&self, session: &SessionData) -> Result<()>
Save session data
Parameters:
| Name | Type |
|---|
session | &SessionData |
exists
fn exists(&self, session_id: &str) -> bool
Check if session exists
Parameters:
delete
fn delete(&self, session_id: &str) -> Result<()>
Delete a session
Parameters:
list
fn list(&self, limit: usize) -> Result<Vec<SessionInfo>>
List all sessions
Parameters:
Source
View on GitHub
praisonai/src/session/mod.rs at line 0