Skip to main content

Crate turul_llm_ollama

Crate turul_llm_ollama 

Source
Expand description

Ollama adapter for turul_llm_core::LlmClient.

Wraps Ollama’s /api/chat endpoint. The caller supplies a rendered prompt + optional JSON Schema; this crate forwards the schema as Ollama’s format field (structured output) and parses the message.content string as JSON before returning.

Live integration is opt-in via env vars (see examples/greet-ollama); the crate’s own tests use wiremock so they remain hermetic.

Structs§

OllamaClient
Client targeting an Ollama /api/chat endpoint.