1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//! # aither
//!
//! High level façade crate that re-exports everything from [`aither_core`] plus the `#[tool]`
//! derive. Pull this crate into your binary to build portable AI applications that can talk to
//! `OpenAI`, Gemini, local models, or any future provider that implements the core traits.
//!
//! ## What's inside?
//!
//! - [`LanguageModel`] for streaming chat, emitting [`llm::Event`]s that carry
//! visible text, reasoning summaries, and tool calls.
//! - Audio, image, embeddings, and moderation traits that follow the same ergonomics.
//! - `#[tool]` macros for function-calling schemas, so you can share tool definitions across providers.
//!
//! ## Example
//!
//! ```rust,no_run
//! use aither::{LanguageModel, llm::{LLMRequest, Message, collect_text, model::Parameters}};
//! use aither_openai::OpenAI;
//!
//! async fn demo(api_key: &str) -> aither::Result<String> {
//! let model = OpenAI::new(api_key);
//! let request = LLMRequest::new([
//! Message::system("You are a creative assistant."),
//! Message::user("Plan a day of food in Osaka."),
//! ])
//! .with_parameters(Parameters::default().include_reasoning(true));
//!
//! let response = model.respond(request);
//! let answer = collect_text(response).await?;
//! Ok(answer)
//! }
//! ```
//!
//! ## Modules
//!
//! - [`aither_core::llm`] — language model requests, responses, tool registries, and reasoning streams.
//! - [`aither_core::embedding`] — convert text to vectors.
//! - [`aither_core::image`] — progressive image generation + editing.
//! - [`aither_core::audio`] — speech synthesis and transcription.
//! - [`aither_core::moderation`] — provider-neutral moderation scoring.
extern crate alloc;
pub use *;
pub use tool;
// Provider integrations
pub use aither_openai as openai;
pub use aither_claude as claude;
pub use aither_gemini as gemini;
pub use aither_llama as llama;
pub use aither_ort as ort;
/// Apple Intelligence on-device model provider.
///
/// Only exists on macOS/iOS — the `apple` feature is a no-op elsewhere.
pub use aither_apple as apple;
// High-level features
pub use aither_agent as agent;
pub use aither_rag as rag;
pub use aither_mem0 as mem0;
pub use aither_skills as skills;
// Tools
pub use aither_browser as browser;
pub use aither_websearch as websearch;
pub use aither_search as search;
pub use aither_webfetch as webfetch;
pub use aither_fs as fs;
pub use aither_command as command;
// Model Context Protocol
pub use aither_mcp as mcp;
/// For internal use only.