ferrous_llm_core/lib.rs
1//! Core traits and types for the LLM library ecosystem.
2//!
3//! This crate provides the foundational abstractions that all LLM providers
4//! implement, including traits for chat, completion, streaming, and tool calling,
5//! as well as standardized request/response types and error handling.
6
7pub mod config;
8pub mod error;
9pub mod traits;
10pub mod types;
11
12// Re-export core types for convenience
13pub use config::*;
14pub use error::*;
15pub use traits::*;
16pub use types::*;
17
18// External dependencies
19pub use async_trait::async_trait;
20pub use chrono::{DateTime, Utc};
21pub use futures::Stream;
22pub use serde::{Deserialize, Serialize};
23pub use serde_json::Value;
24pub use std::collections::HashMap;
25pub use std::error::Error;
26pub use std::time::Duration;