vex-persist

Crates.iovex-persist
lib.rsvex-persist
version0.1.2
created_at2025-12-14 22:23:49.715022+00
updated_at2025-12-18 01:42:46.946535+00
descriptionPersistence layer for VEX Protocol
homepage
repositoryhttps://github.com/provnai/vex
max_upload_size
id1985199
size119,488
0xQ (bulltickr)

documentation

README

vex-persist

Persistence layer for the VEX Protocol.

Features

  • SQLite Backend - Local development and edge deployment
  • PostgreSQL Backend - Production-ready scaling
  • Agent Store - Persist agent state and history
  • Context Store - Store and retrieve context packets
  • Audit Trail - Full audit logging

Installation

[dependencies]
# SQLite (default)
vex-persist = "0.1"

# PostgreSQL
vex-persist = { version = "0.1", features = ["postgres"] }

Quick Start

use vex_persist::{SqliteBackend, AgentStore};
use vex_core::Agent;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let backend = SqliteBackend::new("vex.db").await?;
    let store = AgentStore::new(backend);
    
    let agent = Agent::new("my-agent");
    store.save(&agent).await?;
    
    Ok(())
}

License

MIT License - see LICENSE for details.

Commit count: 0

cargo fmt