LLM::OllamaAdapter
Inherits LLM::Adapter < Reference < Object
Adapter for Ollama (LLM::Ollama).
Constructors
new(client : LLM::Ollama)
SourceClass methods
/api/generate takes one prompt, so a conversation is flattened:
system messages are joined into the system slot (nil when absent);
user and assistant turns stay in order, assistant ones labelled so
the agent loop still sees the actions it already took. Other roles
are dropped.
Instance methods
client
SourceSend a single prompt and get a response as a String.
Send chat-style messages (system/user) and get a response as a String.