mirror of
https://github.com/RightNow-AI/openfang.git
synced 2026-07-30 23:05:08 +00:00
Route SemanticStore remember/recall operations to the memory-api gateway (PostgreSQL + pgvector + Jina AI embeddings) when backend=http is configured. - Add backend, http_url, http_token_env fields to MemoryConfig - Create http_client module with MemoryApiClient (reqwest::blocking) - Add HTTP dispatch to SemanticStore with graceful SQLite fallback - Wire MemoryConfig through MemorySubstrate::open() and kernel boot - Add reqwest as optional dependency behind http-memory feature flag Sessions, KV store, and knowledge graph remain local SQLite. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
686 B
Rust
22 lines
686 B
Rust
//! Memory substrate for the OpenFang Agent Operating System.
|
|
//!
|
|
//! Provides a unified memory API over three storage backends:
|
|
//! - **Structured store** (SQLite): Key-value pairs, sessions, agent state
|
|
//! - **Semantic store**: Text-based search (Phase 1: LIKE matching, Phase 2: Qdrant vectors)
|
|
//! - **Knowledge graph** (SQLite): Entities and relations
|
|
//!
|
|
//! Agents interact with a single `Memory` trait that abstracts over all three stores.
|
|
|
|
pub mod consolidation;
|
|
#[cfg(feature = "http-memory")]
|
|
pub mod http_client;
|
|
pub mod knowledge;
|
|
pub mod migration;
|
|
pub mod semantic;
|
|
pub mod session;
|
|
pub mod structured;
|
|
pub mod usage;
|
|
|
|
mod substrate;
|
|
pub use substrate::MemorySubstrate;
|