Documentation
¶
Index ¶
- func ApplyModelOverrides(cfg *v2.Config, overrides []string) error
- func CheckRequiredEnvVars(ctx context.Context, cfg *latest.Config, env environment.Provider, ...) error
- func GatherEnvVarsForModels(cfg *latest.Config) []string
- func GatherEnvVarsForTools(ctx context.Context, cfg *latest.Config) ([]string, error)
- func LoadConfig(path string, fs filesystem.FS) (*latest.Config, error)
- func LoadConfigSecureDeprecated(path, allowedDir string) (*latest.Config, error)
- type RuntimeConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyModelOverrides ¶ added in v1.7.0
ApplyModelOverrides applies CLI model overrides to the configuration
func CheckRequiredEnvVars ¶ added in v1.8.0
func CheckRequiredEnvVars(ctx context.Context, cfg *latest.Config, env environment.Provider, runtimeConfig RuntimeConfig) 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 LoadConfig ¶ added in v1.6.4
Types ¶
type RuntimeConfig ¶ added in v1.0.5
Click to show internal directories.
Click to hide internal directories.