ollama_kit/lib.rs
1//! Runtime helpers for [`ollama_rs::Ollama`]: model lifecycle checks and guarded execution (timeouts,
2//! retries, concurrency). The `Ollama` client is exposed directly via [`crate::runtime::OllamaRuntime`].
3//!
4//! For simpler call sites, [`OllamaRuntime::ensure_model`] and [`OllamaRuntime::run`] forward to
5//! [`ModelManager`] and [`ExecutionGuard`] without chaining `.models()` / `.guard()` each time.
6//! Sub-hand accessors remain when you want a reused reference or clearer types in APIs.
7
8#![deny(unsafe_code)]
9
10pub mod config;
11pub mod error;
12pub mod guard;
13pub mod model;
14pub mod runtime;
15
16pub use crate::config::{AuthConfig, RuntimeConfig, RuntimeMode};
17pub use crate::error::{Result, RuntimeError};
18pub use crate::guard::ExecutionGuard;
19#[cfg(feature = "stream")]
20pub use crate::guard::GuardedStream;
21pub use crate::model::ModelManager;
22pub use crate::runtime::OllamaRuntime;
23
24pub use ollama_rs;