Skip to main content

llmg_core/
lib.rs

1//! # LLMG Core
2//!
3//! Core types, traits, and error handling for the LLMG (LLM Gateway) ecosystem.
4//!
5//! This crate provides the [`Provider`](provider::Provider) trait that all LLM provider
6//! implementations must satisfy, along with OpenAI-compatible request/response types.
7//!
8//! ## Crate Structure
9//!
10//! - [`types`] — OpenAI-compatible request and response types
11//! - [`provider`] — The `Provider` trait, `ProviderRegistry`, and authentication
12//! - [`client`] — HTTP client wrapper and builder
13//! - [`error`] — Error response types
14//! - [`rig`] — Integration with the Rig agent framework
15//! - [`streaming`] — SSE streaming chunk types
16
17pub mod client;
18pub mod error;
19pub mod provider;
20#[cfg(feature = "rig")]
21pub mod rig;
22pub mod streaming;
23pub mod types;
24
25pub use client::*;
26pub use error::*;
27pub use provider::*;
28#[cfg(feature = "rig")]
29pub use rig::*;
30pub use streaming::*;
31pub use types::*;