Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAPIKey ¶
func WithAPIKey(apiKey string) opt
func WithBaseURL ¶
func WithBaseURL(baseURL string) opt
func WithProvider ¶
func WithProvider(provider string) opt
Types ¶
type ChatRequest ¶
ChatRequest captures a normalized chat request for LLM providers.
type LLM ¶
type LLM interface {
Complete(ctx context.Context, req ChatRequest) (Message, error)
}
LLM defines the interface for language model providers. It abstracts away provider-specific details and allows for interchangeable implementations.
Click to show internal directories.
Click to hide internal directories.