Skip to main content

cognee_lib/api/
mod.rs

1//! High-level API functions for Cognee-Rust.
2//!
3//! These are the top-level convenience functions that compose the lower-level
4//! pipeline primitives (add, cognify, search, delete, memify) into
5//! user-friendly operations matching the Python SDK.
6//!
7//! - [`forget`] -- Unified deletion API
8//! - [`update`] -- Data replacement (delete + re-add + re-cognify)
9//! - [`prune`] -- Selective backend cleanup
10//! - [`recall`] -- Smart search with session routing
11//! - [`remember`] -- One-call add + cognify + optional improve
12//! - [`improve`] -- Bidirectional session-graph bridge
13
14pub mod datasets;
15pub mod error;
16pub mod forget;
17pub mod improve;
18pub mod notebooks;
19pub mod pipeline_runs;
20pub mod prune;
21pub mod recall;
22pub mod remember;
23pub mod update;
24pub mod user;
25
26pub use datasets::{DatasetDb, DatasetManager};
27pub use error::{ApiError, DatasetError};
28pub use forget::{DatasetRef, ForgetResult, ForgetTarget, forget};
29pub use improve::{ImproveParams, ImproveResult, improve};
30pub use pipeline_runs::{reset_dataset_pipeline_run_status, reset_pipeline_run_status};
31pub use prune::{PruneResult, PruneTarget, prune_data, prune_system};
32pub use recall::{
33    RecallItem, RecallOptions, RecallResult, RecallScope, RecallSource, ScopeInput,
34    normalize_scope, recall,
35};
36pub use remember::{RememberItemInfo, RememberResult, RememberStatus, remember, remember_entry};
37pub use update::{UpdateResult, update};
38pub use user::get_or_create_default_user;