ollama-kit 0.2.1

Runtime control (lifecycle + execution guards) for ollama-rs without wrapping its API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Helpers around [`ollama_rs::Ollama`]: configured client, guarded `call`, [`OllamaRuntime::ensure`].

#![deny(unsafe_code)]

pub mod config;
pub mod error;
pub mod guard;
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::runtime::OllamaRuntime;

pub use ollama_rs;