use thiserror::Error;
#[derive(Debug, Error)]
pub enum SessionStoreError {
#[error("session record not found: {0}")]
NotFound(String),
#[error("session record already exists: {0}")]
AlreadyExists(String),
#[error("session store failed: {0}")]
Failed(String),
}
pub type SessionStoreResult<T> = Result<T, SessionStoreError>;
impl From<SessionStoreError> for starweaver_runtime::AgentExecutorError {
fn from(error: SessionStoreError) -> Self {
Self::Failed(error.to_string())
}
}