//! Memory system for OpenHuman.
//!
//! This module provides the core abstractions and implementations for the memory system,
//! including semantic search, ingestion pipelines, document management, and knowledge graph
//! operations. It integrates vector search, keyword search, and relational data to provide
//! a unified memory interface for AI agents.

pub mod chunker;
pub mod conversations;
pub mod global;
pub mod ingestion;
pub mod ops;
pub mod rpc_models;
pub mod safety;
pub mod schemas;
pub mod store;
pub mod sync_status;
pub mod tool_memory;
pub mod traits;
pub mod tree;

pub use ingestion::{
    ExtractedEntity, ExtractedRelation, ExtractionMode, IngestionJob, IngestionQueue,
    IngestionState, IngestionStatusSnapshot, MemoryIngestionConfig, MemoryIngestionRequest,
    MemoryIngestionResult, DEFAULT_MEMORY_EXTRACTION_MODEL,
};
pub use ops as rpc;
pub use ops::*;
pub use rpc_models::*;
pub use schemas::{
    all_controller_schemas as all_memory_controller_schemas,
    all_registered_controllers as all_memory_registered_controllers,
};
pub use store::{
    create_memory, create_memory_for_migration, create_memory_with_local_ai,
    create_memory_with_storage, create_memory_with_storage_and_routes,
    effective_embedding_settings, effective_memory_backend_name, MemoryClient, MemoryClientRef,
    MemoryItemKind, MemoryState, NamespaceDocumentInput, NamespaceMemoryHit, NamespaceQueryResult,
    NamespaceRetrievalContext, RetrievalScoreBreakdown, UnifiedMemory,
};
pub use sync_status::{
    all_memory_sync_status_controller_schemas, all_memory_sync_status_registered_controllers,
    FreshnessLabel, MemorySyncStatus,
};
pub use tool_memory::{
    render_tool_memory_rules, tool_memory_namespace, ToolMemoryCaptureHook, ToolMemoryPriority,
    ToolMemoryRule, ToolMemoryRulesSection, ToolMemorySource, ToolMemoryStore, TOOL_MEMORY_HEADING,
    TOOL_MEMORY_PROMPT_CAP,
};
pub use traits::{Memory, MemoryCategory, MemoryEntry, NamespaceSummary, RecallOpts};
pub use tree::{
    all_memory_tree_controller_schemas, all_memory_tree_registered_controllers,
    all_retrieval_controller_schemas, all_retrieval_registered_controllers,
};
