brainwires-stores 0.11.0

Opinionated minimum data-store set for the Brainwires Agent Framework — sessions, conversations, tasks, plans, locks, images, and tiered hot/warm/cold memory. All built on the brainwires-storage StorageBackend trait.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Typed errors surfaced by session stores.

use thiserror::Error;

/// Errors surfaced by session-store implementations.
#[derive(Debug, Error)]
pub enum SessionError {
    /// Serialising or deserialising messages failed.
    #[error("session serialization: {0}")]
    Serialization(#[from] serde_json::Error),

    /// Underlying storage layer (sqlite, filesystem) failed.
    #[error("session storage: {0}")]
    Storage(String),
}