Skip to main content

laminar_ai/backends/
mod.rs

1//! Concrete inference backends.
2//!
3//! Each backend is feature-gated so the default build carries zero HTTP or ML
4//! weight. Backends are transport only: they turn an [`InferenceRequest`] into
5//! provider calls and the responses back into [`InferenceOutputs`]. Task
6//! framing (the chat prompt) and any numeric post-processing live in the shared
7//! helpers and the adapter, not in the wire layer.
8//!
9//! [`InferenceRequest`]: crate::provider::InferenceRequest
10//! [`InferenceOutputs`]: crate::provider::InferenceOutputs
11
12#[cfg(feature = "remote")]
13pub mod anthropic;
14#[cfg(feature = "local")]
15pub mod local;
16#[cfg(feature = "remote")]
17pub mod openai;
18#[cfg(feature = "remote")]
19pub mod rate_limited;
20#[cfg(feature = "remote")]
21mod remote;
22
23#[cfg(feature = "remote")]
24pub use anthropic::AnthropicProvider;
25#[cfg(feature = "local")]
26pub use local::LocalProvider;
27#[cfg(feature = "remote")]
28pub use openai::OpenAiProvider;
29#[cfg(feature = "remote")]
30pub use rate_limited::RateLimitedProvider;