llm-connector 0.4.2

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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Core traits and abstractions for llm-connector
//!
//! This module provides the fundamental abstractions for the architecture:
//! - Provider: Service implementation interface
//! - Protocol: Protocol specification interface
//! - HttpTransport: HTTP communication layer
//! - ErrorMapper: Error mapping utilities

pub mod provider;
pub mod protocol;
pub mod http;
pub mod error;

// Re-export core traits
pub use provider::Provider;
pub use protocol::Protocol;
pub use http::HttpTransport;
pub use error::ErrorMapper;