1pub mod agent;
2pub mod chat;
3pub mod chunking;
4pub mod cleaner;
5pub mod concatenator;
6pub mod embeddings;
7pub mod executor;
8pub mod extractor;
9pub mod flow;
10pub mod json;
11pub mod knowledge;
12pub mod llm;
13pub mod mcp;
14pub mod memory;
15pub mod parser;
16pub mod splitting;
17pub mod store;
18pub mod task;
19pub mod tool;
20
21pub use alith_client as client;
22pub use alith_interface as interface;
23pub use alith_models as models;
24
25use std::sync::Arc;
26use tokio::sync::RwLock;
27
28pub type Ref<T> = Arc<RwLock<T>>;
29
30#[inline]
31pub fn make_ref<T>(t: T) -> Ref<T> {
32 Arc::new(RwLock::new(t))
33}