LLM::Ollama
Ollama LLM client with context-aware request support
Constants
format: "json" — Ollama's plain JSON mode.
Endpoint extraction wants the model to read code, not to write prose about it, so both request paths pin a low temperature.
Constructors
Class methods
Ollama's format field takes either the literal string "json" or a
raw JSON Schema, and uses a schema to constrain decoding. The formats
in LLM::* are OpenAI-shaped envelopes
({"type":"json_schema","json_schema":{"schema":{...}}}); handing
that envelope straight to Ollama constrained generation to the
envelope rather than to the endpoint object we asked for, so the
response never matched what the analyzer parses — every endpoint in
the request was lost. Unwrap to the inner schema, and fall back to
plain JSON mode for anything we don't recognise.
Instance methods
Make a simple request without context management