ollama-kit 0.1.0

Runtime control (lifecycle + execution guards) for ollama-rs without wrapping its API.
Documentation
//! Runtime helpers for [`ollama_rs::Ollama`]: model lifecycle checks and guarded execution (timeouts,
//! retries, concurrency). The `Ollama` client is exposed directly via [`crate::runtime::OllamaRuntime`].
//!
//! For simpler call sites, [`OllamaRuntime::ensure_model`] and [`OllamaRuntime::run`] forward to
//! [`ModelManager`] and [`ExecutionGuard`] without chaining `.models()` / `.guard()` each time.
//! Sub-hand accessors remain when you want a reused reference or clearer types in APIs.

#![deny(unsafe_code)]

pub mod config;
pub mod error;
pub mod guard;
pub mod model;
pub mod runtime;

pub use crate::config::{AuthConfig, RuntimeConfig, RuntimeMode};
pub use crate::error::{Result, RuntimeError};
pub use crate::guard::ExecutionGuard;
#[cfg(feature = "stream")]
pub use crate::guard::GuardedStream;
pub use crate::model::ModelManager;
pub use crate::runtime::OllamaRuntime;

pub use ollama_rs;