Documentation
¶
Overview ¶
Package config loads and version-routes .agentsmithy.yaml configs.
Each config schema version lives in its own sub-package (v1/, v2/, …) and satisfies the VersionSchema interface. The loader reads raw YAML, detects the "version" field, and delegates to the correct version.
Adding a new version:
- Create the vN/ sub-package satisfying VersionSchema
- Register it in the versions map in this file
Type aliases below re-export the latest version's types so that consumers can keep importing "internal/config" without change.
Index ¶
Constants ¶
const ( // Provider keys mirroring v1.Provider*. Keeps callers off v1. ProviderOpenAI = v1.ProviderOpenAI ProviderAnthropic = v1.ProviderAnthropic ProviderGoogle = v1.ProviderGoogle ProviderBedrock = v1.ProviderBedrock ProviderVertex = v1.ProviderVertex ProviderBorrowed = v1.ProviderBorrowed )
Constant aliases; re-export values so consumers never import v1 directly.
Variables ¶
var TypesSources = v1.TypesSources
TypesSources returns the raw Go source files for the latest version's types. Callers that only need the latest version can use this directly.
var Versions = map[string]VersionSchema{ v1.Version: v1.Schema{}, }
Versions is the single source of truth for which schema versions are accepted. Each entry satisfies VersionSchema.
Functions ¶
This section is empty.
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package schema provides tag-driven defaults and validation for config structs.
|
Package schema provides tag-driven defaults and validation for config structs. |
|
Package v1 defines the v1 config schema types for .agentsmithy.yaml.
|
Package v1 defines the v1 config schema types for .agentsmithy.yaml. |