a3s-memory 0.1.4

A3S Memory - Pluggable memory storage for AI agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![cfg(feature = "sqlite-vec")]

use a3s_memory::SqliteMemoryStore;

#[tokio::test]
async fn concurrent_first_opens_register_vec_before_creating_connections() {
    let left = tempfile::tempdir().unwrap();
    let right = tempfile::tempdir().unwrap();

    let (left_store, right_store) = tokio::join!(
        SqliteMemoryStore::new(left.path()),
        SqliteMemoryStore::new(right.path()),
    );

    left_store.expect("first SQLite connection must load vec0");
    right_store.expect("concurrent SQLite connection must load vec0");
}