Versions in this module Expand all Collapse all v0 v0.1.0 Jul 18, 2026 Changes in this version + func BuildPrompt(c types.Chunk) string + type Cached struct + func NewCached(gen Generator, cacheDir string) (*Cached, error) + func (p *Cached) Prefix(ctx context.Context, c types.Chunk) string + type Generator interface + Generate func(ctx context.Context, prompt string) (string, error) + type OllamaGenerator struct + func NewOllamaGenerator(model string) *OllamaGenerator + func (g *OllamaGenerator) Generate(ctx context.Context, prompt string) (string, error) + type Prefixer interface + Prefix func(ctx context.Context, c types.Chunk) string