Skip to main content

agentrs_llm/
lib.rs

1#![forbid(unsafe_code)]
2
3//! LLM providers and provider registry for `agentrs`.
4
5mod registry;
6
7/// Anthropic provider implementations.
8#[cfg(feature = "anthropic")]
9pub mod anthropic;
10/// Azure OpenAI provider implementations.
11#[cfg(feature = "azureopenai")]
12pub mod azureopenai;
13/// Gemini provider implementations.
14#[cfg(feature = "gemini")]
15pub mod gemini;
16/// Ollama provider implementations.
17#[cfg(feature = "ollama")]
18pub mod ollama;
19/// OpenAI-compatible provider implementations.
20#[cfg(feature = "openai")]
21pub mod openai;
22
23pub use registry::ProviderRegistry;
24
25#[cfg(feature = "anthropic")]
26pub use anthropic::{AnthropicBuilder, AnthropicProvider};
27#[cfg(feature = "azureopenai")]
28pub use azureopenai::{AzureOpenAiBuilder, AzureOpenAiProvider};
29#[cfg(feature = "gemini")]
30pub use gemini::{GeminiBuilder, GeminiProvider};
31#[cfg(feature = "ollama")]
32pub use ollama::{OllamaBuilder, OllamaProvider};
33#[cfg(feature = "openai")]
34pub use openai::{OpenAiBuilder, OpenAiProvider};