Skip to main content

cognitum_one/
lib.rs

1//! # cognitum-rs
2//!
3//! Official Cognitum SDK for Rust.
4//!
5//! Provides async access to the Cognitum API including the product catalog,
6//! order management, lead capture, contact forms, OTA device management,
7//! MCP tool invocation, and the brain knowledge base.
8//!
9//! ## Quick start
10//!
11//! ```rust,no_run
12//! use cognitum_rs::{Client, Error};
13//!
14//! #[tokio::main]
15//! async fn main() -> Result<(), Error> {
16//!     let client = Client::new("my-api-key");
17//!
18//!     let catalog = client.catalog().browse().await?;
19//!     println!("Products: {}", catalog.products.len());
20//!
21//!     Ok(())
22//! }
23//! ```
24
25pub mod brain;
26pub mod catalog;
27pub mod client;
28pub mod contact;
29pub mod devices;
30pub mod error;
31pub mod leads;
32pub mod mcp;
33pub mod orders;
34pub(crate) mod retry_hint;
35pub mod types;
36
37pub use client::{Client, ClientConfig};
38pub use error::Error;
39
40#[cfg(feature = "seed")]
41pub mod seed;