Documentation
¶
Index ¶
- Variables
- func ApplyModelOverrides(cfg *latest.Config, overrides []string) error
- func AutoEmbeddingModelConfigs() []latest.ModelConfig
- func AutoModelConfig(ctx context.Context, modelsGateway string, env environment.Provider) latest.ModelConfig
- func AvailableProviders(ctx context.Context, modelsGateway string, env environment.Provider) []string
- func CheckRequiredEnvVars(ctx context.Context, cfg *latest.Config, modelsGateway string, ...) error
- func GatherEnvVarsForModels(cfg *latest.Config) []string
- func GatherEnvVarsForTools(ctx context.Context, cfg *latest.Config) ([]string, error)
- func IsOCIReference(input string) bool
- func Load(ctx context.Context, source Reader) (*latest.Config, error)
- func Parsers() map[string]func([]byte) (any, error)
- func PreferredMaxTokens(provider string) int
- func Upgrades() []func(any) (any, error)
- type Config
- type Reader
- type RuntimeConfig
- type Source
- type Sources
Constants ¶
This section is empty.
Variables ¶
var DefaultModels = map[string]string{
"openai": "gpt-5-mini",
"anthropic": "claude-sonnet-4-0",
"google": "gemini-2.5-flash",
"dmr": "ai/qwen3:latest",
"mistral": "mistral-small-latest",
}
Functions ¶
func ApplyModelOverrides ¶ added in v1.7.0
ApplyModelOverrides applies CLI model overrides to the configuration
func AutoEmbeddingModelConfigs ¶ added in v1.9.16
func AutoEmbeddingModelConfigs() []latest.ModelConfig
AutoEmbeddingModelConfigs returns the ordered list of embedding-capable models to try when a RAG strategy uses `model: auto` for embeddings.
The priority is:
- OpenAI -> text-embedding-3-small model
- DMR -> Google's embeddinggemma model (via Docker Model Runner)
func AutoModelConfig ¶ added in v1.9.14
func AutoModelConfig(ctx context.Context, modelsGateway string, env environment.Provider) latest.ModelConfig
func AvailableProviders ¶ added in v1.9.14
func CheckRequiredEnvVars ¶ added in v1.8.0
func CheckRequiredEnvVars(ctx context.Context, cfg *latest.Config, modelsGateway string, env environment.Provider) error
CheckRequiredEnvVars checks which environment variables are required by the models and tools.
This allows exiting early with a proper error message instead of failing later when trying to use a model or tool.
func GatherEnvVarsForModels ¶ added in v1.8.0
func GatherEnvVarsForTools ¶ added in v1.8.0
func IsOCIReference ¶ added in v1.9.27
IsOCIReference checks if the input is a valid OCI reference
func PreferredMaxTokens ¶ added in v1.9.14
Types ¶
type RuntimeConfig ¶ added in v1.0.5
type RuntimeConfig struct {
Config
EnvProviderForTests environment.Provider
// contains filtered or unexported fields
}
func (*RuntimeConfig) Clone ¶ added in v1.9.22
func (runConfig *RuntimeConfig) Clone() *RuntimeConfig
func (*RuntimeConfig) EnvProvider ¶ added in v1.9.14
func (runConfig *RuntimeConfig) EnvProvider() environment.Provider
type Source ¶ added in v1.9.27
type Source interface {
Name() string
ParentDir() string
Read(ctx context.Context) ([]byte, error)
}
func NewBytesSource ¶ added in v1.9.27
func NewFileSource ¶ added in v1.9.27
func NewOCISource ¶ added in v1.9.27
type Sources ¶ added in v1.9.27
func ResolveSources ¶ added in v1.9.27
ResolveSources resolves an agent file reference (local file or OCI image) to a local file path For OCI references, always checks remote for updates but falls back to local cache if offline