pub trait AgentSessionStore {
// Required methods
fn save(&self, session: &AgentSession) -> Result<(), AppError>;
fn load(&self, id: &str) -> Result<AgentSession, AppError>;
fn delete(&self, id: &str) -> Result<bool, AppError>;
fn list(&self, filter: SessionFilter) -> Result<Vec<SessionInfo>, AppError>;
fn load_last(&self) -> Result<Option<AgentSession>, AppError>;
fn find_by_prefix(&self, prefix: &str) -> Result<Option<String>, AppError>;
}Expand description
A storage abstraction for agent sessions.
Required Methods§
Sourcefn list(&self, filter: SessionFilter) -> Result<Vec<SessionInfo>, AppError>
fn list(&self, filter: SessionFilter) -> Result<Vec<SessionInfo>, AppError>
List sessions matching a filter.