Skip to main content

Crate llmg_core

Crate llmg_core 

Source
Expand description

§LLMG Core

Core types, traits, and error handling for the LLMG (LLM Gateway) ecosystem.

This crate provides the Provider trait that all LLM provider implementations must satisfy, along with OpenAI-compatible request/response types.

§Crate Structure

  • types — OpenAI-compatible request and response types
  • provider — The Provider trait, ProviderRegistry, and authentication
  • client — HTTP client wrapper and builder
  • error — Error response types
  • [rig] — Integration with the Rig agent framework
  • streaming — SSE streaming chunk types

Re-exports§

pub use client::*;
pub use error::*;
pub use provider::*;
pub use streaming::*;
pub use types::*;

Modules§

client
error
Error types for LLMG
provider
streaming
Streaming types for chat completions
types
Core types for LLMG - LLM Gateway