Skip to main content

zeph_llm/
lib.rs

1// SPDX-FileCopyrightText: 2026 Andrei G <bug-ops>
2// SPDX-License-Identifier: MIT OR Apache-2.0
3
4//! LLM provider abstraction and backend implementations.
5
6pub mod any;
7#[cfg(feature = "candle")]
8pub mod candle_provider;
9#[cfg(feature = "candle")]
10pub mod candle_whisper;
11pub mod classifier;
12pub mod claude;
13pub mod compatible;
14#[cfg(feature = "candle")]
15pub(crate) mod device;
16pub mod ema;
17pub(crate) mod embed;
18pub mod error;
19pub mod extractor;
20pub mod gemini;
21pub mod http;
22pub mod mock;
23pub mod model_cache;
24pub mod ollama;
25pub mod openai;
26pub mod provider;
27pub(crate) mod retry;
28pub mod router;
29pub(crate) mod schema;
30pub(crate) mod sse;
31pub mod stt;
32#[cfg(test)]
33pub mod testing;
34pub(crate) mod usage;
35pub mod whisper;
36
37pub use classifier::metrics::{ClassifierMetrics, ClassifierMetricsSnapshot, TaskMetricsSnapshot};
38pub use claude::{ThinkingConfig, ThinkingEffort};
39pub use error::LlmError;
40pub use extractor::Extractor;
41pub use gemini::ThinkingLevel as GeminiThinkingLevel;
42pub use provider::{ChatStream, LlmProvider, StreamChunk, ThinkingBlock};
43pub use stt::{SpeechToText, Transcription};