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
//! LLM Provider implementations
//!
//! This module contains implementations for different LLM providers:
//!
//! - **anthropic**: Anthropic Claude provider with native API format
//! - **openai**: OpenAI provider using OpenAI-compatible API
//! - **lmstudio**: LM Studio provider using OpenAI-compatible API
//! - **openai_shared**: Shared structures and utilities for OpenAI-compatible providers
//!
//! ## Architecture
//!
//! The providers are organized to highlight code reuse:
//!
//! ```text
//! openai_shared.rs <- Shared OpenAI-compatible structures and utilities
//! | | |
//! | | |
//! openai.rs lmstudio.rs ollama.rs <- All use OpenAI-compatible API
//!
//! anthropic.rs <- Uses Anthropic's native API format
//! ```
// Tests will be rewritten following the research checklist and unit test template
// to test the current LlmProvider trait API (execute_llm, not execute_chat_with_model)
// Re-export the provider structs
pub use AnthropicProvider;
pub use LMStudioProvider;
pub use OllamaProvider;
pub use OpenAIProvider;