llm-connector 0.4.18

Next-generation Rust library for LLM protocol abstraction. V2 architecture with 7000x+ performance boost. Supports 5 protocols (OpenAI, Anthropic, Aliyun, Zhipu, Ollama) with clean Protocol/Provider separation, type-safe interface, and universal streaming.
Documentation
//! Protocol Implementations and Core Architecture
//!
//! This module contains the current architecture implementation:
//!
//! ## Core Architecture (protocols/core.rs)
//! - `GenericProvider<A>`: Universal provider implementation
//! - `ProviderAdapter`: Protocol adaptation interface
//! - `HttpTransport`: HTTP communication layer
//! - `ErrorMapper`: Error handling utilities
//!
//! ## Pure Protocol Adapters
//! - `OpenAIProtocol`: OpenAI API specification adapter
//! - `AnthropicProtocol`: Anthropic API specification adapter
//!
//! Note: This module contains both the core architecture implementation
//! and pure protocol adapters. The core architecture is used by most
//! providers in the `providers/` directory.

pub mod anthropic;
pub mod core;
pub mod openai;

// Re-export core components (current architecture implementation)
pub use core::{ErrorMapper, GenericProvider, HttpTransport, Provider, ProviderAdapter};

// Re-export pure protocols
pub use anthropic::AnthropicProtocol;
pub use openai::OpenAIProtocol;

// Re-export configuration
pub use crate::config::ProviderConfig;