second-brain-core 0.5.1

Core library for second-brain: KuzuDB graph storage, BGE embeddings, and weighted query engine
Documentation
use second_brain_core::schema::{Memory, MemoryType};

#[test]
fn memory_new_has_empty_machine_id() {
    let m = Memory::new(
        "test".to_string(),
        MemoryType::Semantic,
        "test".to_string(),
        String::new(),
    );
    assert_eq!(m.machine_id, "");
}

#[test]
fn with_machine_id_sets_field() {
    let m = Memory::new(
        "test".to_string(),
        MemoryType::Semantic,
        "test".to_string(),
        String::new(),
    )
    .with_machine_id("abc-123".to_string());
    assert_eq!(m.machine_id, "abc-123");
}