Documentation
¶
Overview ¶
Package llm defines the provider seam for AI-Assisted onboarding. Provider is the plugin interface; Anthropic (Claude) is the default implementation and other providers can be registered behind the same interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
// Name identifies the provider, e.g. "anthropic".
Name() string
// Complete sends a system prompt plus a conversation and returns the
// assistant's reply text.
Complete(ctx context.Context, req Request) (string, error)
}
Provider is a minimal text-completion interface. It is intentionally small so new providers (OpenAI, local models) are cheap to add.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package anthropic provides an llm.Provider backed by Anthropic's Claude Messages API.
|
Package anthropic provides an llm.Provider backed by Anthropic's Claude Messages API. |
|
Package ollama provides an llm.Provider backed by a local Ollama server's chat API.
|
Package ollama provides an llm.Provider backed by a local Ollama server's chat API. |
|
Package openai provides an llm.Provider backed by OpenAI's Chat Completions API.
|
Package openai provides an llm.Provider backed by OpenAI's Chat Completions API. |
Click to show internal directories.
Click to hide internal directories.