Documentation
¶
Overview ¶
Package settings describes persistent user settings and resolves their inherited defaults.
Index ¶
Constants ¶
const ContextWindowTokens = "inference.context.window_tokens"
ContextWindowTokens is the session history window setting, measured in tokens.
const DefaultOutputTokens = "8284"
DefaultOutputTokens is the inherited generation cap.
const FallbackContextTokens = 131072
FallbackContextTokens bounds history when the backend reports no model context limit.
const MaxOutputTokens = "inference.generation.max_output_tokens"
MaxOutputTokens is the per-request generation limit, measured in tokens.
const Model = "inference.model"
Model is the selected inference model.
const PermissionPolicy = "execution.permissions.policy"
PermissionPolicy is the tool approval policy selection.
const ReasoningEffort = "inference.reasoning.effort"
ReasoningEffort is the requested reasoning effort.
Variables ¶
This section is empty.
Functions ¶
func ContextBudget ¶
ContextBudget bounds a requested window by positive chain and model limits.
func Environment ¶
Environment returns a supported environment override and its variable name.
func StorageKey ¶
StorageKey maps aliases to one existing database row.
Types ¶
type Spec ¶
type Spec struct {
Key string `json:"key"`
Label string `json:"label"`
Meaning string `json:"meaning"`
Changes string `json:"effect"`
ReadBy string `json:"read_by"`
Env string `json:"environment_variable"`
Unset string `json:"unset_behavior"`
}
Spec describes a setting independently of its storage and presentation.