Documentation
¶
Overview ¶
Package gollm implements llm.Runner on top of github.com/teilomillet/gollm, providing a unified adapter for Anthropic API, OpenAI, Ollama, and other providers supported by gollm. This is the opt-in alternative to the claude-cli bridge; selected via .sdd/config.local.yaml llm.provider.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner wraps a gollm client and adapts it to llm.Runner. When the provider is Anthropic, the SystemPrompt is passed with ephemeral cache control so the stable prefix is server-cached across calls in the same 5-minute window — a significant speedup for batch operations like sdd summarize --all.
func NewRunner ¶
NewRunner constructs a gollm-backed Runner from an LLMConfig. Provider must be one of the gollm-supported providers (e.g. "anthropic", "openai", "ollama"). Returns a typed error when required config is missing (API key for remote providers).