#![deny(missing_docs)]
#![deny(rust_2018_idioms)]

//! Qdrant-backed implementation of `klieo_core::memory::LongTermMemory`.
//!
//! `MemoryQdrant::new` connects to a Qdrant endpoint, ensures the
//! per-scope collection exists with the embedder's vector dimension,
//! and returns an `Arc<dyn LongTermMemory>` ready to drop into
//! `klieo_core::AgentContext`.
//!
//! # Example
//!
//! ```no_run
//! use klieo_memory_qdrant::{MemoryQdrant, QdrantConfig, DummyEmbedder};
//! use std::sync::Arc;
//!
//! async fn example() {
//!     let cfg = QdrantConfig::new("http://127.0.0.1:6334");
//!     let mem = MemoryQdrant::new(cfg, Arc::new(DummyEmbedder)).await.unwrap();
//!     let _ = mem.long_term;
//! }
//! ```
//!
//! # What's implemented
//!
//! Only `LongTermMemory`. `ShortTermMemory` and `EpisodicMemory` are
//! not Qdrant-shaped — see `klieo-memory-sqlite` and
//! `klieo-memory-neo4j` for those.

pub mod embedder;
pub use embedder::{DummyEmbedder, Embedder};

#[cfg(any(test, feature = "test-utils"))]
pub use embedder::FakeEmbedder;

pub mod client;
pub use client::QdrantConfig;

pub mod error;

pub mod long_term;
pub use long_term::QdrantLongTerm;

pub mod factory;
pub use factory::MemoryQdrant;
