Documentation
¶
Overview ¶
Package llm defines the provider-neutral types exchanged with LLM backends.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Jurisdiction ¶
type Jurisdiction string
Jurisdiction is the legal zone in which a provider processes data.
const ( EU Jurisdiction = "eu" NonEU Jurisdiction = "non-eu" Local Jurisdiction = "local" )
type Message ¶
type Message struct {
Role Role `json:"role"`
Content string `json:"content,omitempty"`
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
ToolCallID string `json:"tool_call_id,omitempty"`
}
Message is one entry of a conversation.
type ProviderInfo ¶
type ProviderInfo struct {
ID string `json:"id"`
Name string `json:"name"`
BaseURL string `json:"base_url"`
Model string `json:"model"`
Country string `json:"country"`
Jurisdiction Jurisdiction `json:"jurisdiction"`
}
ProviderInfo describes a configured LLM provider.
Click to show internal directories.
Click to hide internal directories.