config

package
v1.9.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyModelOverrides added in v1.7.0

func ApplyModelOverrides(cfg *v2.Config, overrides []string) error

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 GatherEnvVarsForModels(cfg *latest.Config) []string

func GatherEnvVarsForTools added in v1.8.0

func GatherEnvVarsForTools(ctx context.Context, cfg *latest.Config) ([]string, error)

func LoadConfig added in v1.6.4

func LoadConfig(path string, fs filesystem.FS) (*latest.Config, error)

func LoadConfigSecureDeprecated added in v1.6.4

func LoadConfigSecureDeprecated(path, allowedDir string) (*latest.Config, error)

Types

type RuntimeConfig added in v1.0.5

type RuntimeConfig struct {
	DefaultEnvProvider environment.Provider
	EnvFiles           []string
	ModelsGateway      string
	RedirectURI        string
	GlobalCodeMode     bool
	WorkingDir         string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL