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
//! # agentic-llm
//!
//! LLM adapters for the Agentic Framework.
//!
//! Supports multiple providers:
//! - `OpenAI` (GPT-4, GPT-4o, o1)
//! - Ollama (local models)
//! - Anthropic (Claude Sonnet, Haiku, Opus)
//! - Google Gemini (Gemini 2.0 Flash, 1.5 Pro)
//!
//! ## Example
//!
//! ```rust,no_run
//! use agentic_llm::{LLMAdapter, OpenAIAdapter, LLMMessage};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let adapter = OpenAIAdapter::new("sk-...", "gpt-4o");
//!
//! let messages = vec![
//! LLMMessage::system("You are a helpful assistant."),
//! LLMMessage::user("Hello!"),
//! ];
//!
//! let response = adapter.generate(&messages).await?;
//! println!("{}", response.content);
//!
//! Ok(())
//! }
//! ```
pub use LLMError;
pub use ;
pub use OpenAIAdapter;
pub use OllamaAdapter;
pub use AnthropicAdapter;
pub use GeminiAdapter;