Help us shape the future of Go! Take the 2026 Go Developer Survey

llm

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: AGPL-3.0, AGPL-3.0-only Imports: 7 Imported by: 0

Documentation

Overview

Package llm dispatches composed stencil bodies to model backends (the llms: library). It is IMPURE BY CONSTRUCTION — temperature/seed narrow but never guarantee byte-stability across a model bump — which is why its output is dispatch-only in the stencil language: stdout cards and notifications, never the committed record. One provider per function; new providers are engine additions behind the same config shape.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(cfg config.LLMConfig, prompt string) (string, error)

Generate sends the composed prompt to the configured backend and returns its text. Provider dispatch lives here; callers treat the result as markdown.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL