Versions in this module Expand all Collapse all v1 v1.29.0 Mar 3, 2026 v1.28.1 Mar 3, 2026 v1.28.0 Mar 3, 2026 v1.27.1 Feb 26, 2026 v1.27.0 Feb 25, 2026 v1.26.0 Feb 24, 2026 v1.25.0 Feb 24, 2026 Changes in this version type Toolset + FileTypes []string v1.24.0 Feb 24, 2026 Changes in this version + func Register(parsers map[string]func([]byte) (any, error), ...) v1.23.6 Feb 23, 2026 v1.23.5 Feb 20, 2026 v1.23.4 Feb 19, 2026 Changes in this version type PermissionsConfig + Ask []string v1.23.3 Feb 16, 2026 v1.23.2 Feb 16, 2026 v1.23.1 Feb 13, 2026 Changes in this version type Toolset + Headers map[string]string v1.23.0 Feb 12, 2026 v1.22.0 Feb 9, 2026 v1.21.0 Feb 9, 2026 Changes in this version + const Version + func UpgradeIfNeeded(c any, raw []byte) (any, error) + type APIToolConfig struct + Args map[string]any + Endpoint string + Headers map[string]string + Instruction string + Method string + Name string + OutputSchema map[string]any + Required []string + type AgentConfig struct + AddDate bool + AddDescriptionParameter bool + AddEnvironmentInfo bool + AddPromptFiles []string + CodeModeTools bool + Commands types.Commands + Description string + Fallback *FallbackConfig + Handoffs []string + Hooks *HooksConfig + Instruction string + MaxIterations int + Model string + Name string + NumHistoryItems int + RAG []string + Skills *bool + StructuredOutput *StructuredOutput + SubAgents []string + Toolsets []Toolset + WelcomeMessage string + func (a *AgentConfig) GetFallbackCooldown() time.Duration + func (a *AgentConfig) GetFallbackModels() []string + func (a *AgentConfig) GetFallbackRetries() int + type Agents []AgentConfig + func (c *Agents) First() AgentConfig + func (c *Agents) Lookup(name string) (AgentConfig, bool) + func (c *Agents) UnmarshalYAML(unmarshal func(any) error) error + func (c *Agents) Update(name string, update func(a *AgentConfig)) bool + func (c Agents) MarshalYAML() ([]byte, error) + type Config struct + Agents Agents + Metadata Metadata + Models map[string]ModelConfig + Permissions *PermissionsConfig + Providers map[string]ProviderConfig + RAG map[string]RAGConfig + Version string + func Parse(data []byte) (Config, error) + func (t *Config) UnmarshalYAML(unmarshal func(any) error) error + type DeferConfig struct + DeferAll bool + Tools []string + func (d *DeferConfig) UnmarshalYAML(unmarshal func(any) error) error + func (d DeferConfig) IsEmpty() bool + func (d DeferConfig) MarshalYAML() ([]byte, error) + type Duration struct + func (d *Duration) UnmarshalJSON(data []byte) error + func (d *Duration) UnmarshalYAML(unmarshal func(any) error) error + func (d Duration) MarshalJSON() ([]byte, error) + func (d Duration) MarshalYAML() ([]byte, error) + type FallbackConfig struct + Cooldown Duration + Models []string + Retries int + type FlexibleModelConfig struct + func (f *FlexibleModelConfig) UnmarshalYAML(unmarshal func(any) error) error + func (f FlexibleModelConfig) MarshalYAML() ([]byte, error) + type HookDefinition struct + Command string + Timeout int + Type string + type HookMatcherConfig struct + Hooks []HookDefinition + Matcher string + type HooksConfig struct + PostToolUse []HookMatcherConfig + PreToolUse []HookMatcherConfig + SessionEnd []HookDefinition + SessionStart []HookDefinition + func (h *HooksConfig) IsEmpty() bool + type Metadata struct + Author string + Description string + License string + Readme string + Version string + type ModelConfig struct + BaseURL string + FrequencyPenalty *float64 + MaxTokens *int64 + Model string + ParallelToolCalls *bool + PresencePenalty *float64 + Provider string + ProviderOpts map[string]any + Routing []RoutingRule + Temperature *float64 + ThinkingBudget *ThinkingBudget + TokenKey string + TopP *float64 + TrackUsage *bool + type PermissionsConfig struct + Allow []string + Deny []string + type PostEditConfig struct + Cmd string + Path string + type ProviderConfig struct + APIType string + BaseURL string + TokenKey string + type RAGChunkingConfig struct + CodeAware bool + Overlap int + RespectWordBoundaries bool + Size int + func (c *RAGChunkingConfig) UnmarshalYAML(unmarshal func(any) error) error + type RAGConfig struct + Docs []string + RespectVCS *bool + Results RAGResultsConfig + Strategies []RAGStrategyConfig + Tool RAGToolConfig + func (c *RAGConfig) GetRespectVCS() bool + func (c *RAGConfig) UnmarshalYAML(unmarshal func(any) error) error + type RAGDatabaseConfig struct + func (d *RAGDatabaseConfig) AsString() (string, error) + func (d *RAGDatabaseConfig) IsEmpty() bool + func (d *RAGDatabaseConfig) UnmarshalYAML(unmarshal func(any) error) error + type RAGFusionConfig struct + K int + Strategy string + Weights map[string]float64 + type RAGRerankingConfig struct + Criteria string + Model string + Threshold float64 + TopK int + func (r *RAGRerankingConfig) UnmarshalYAML(unmarshal func(any) error) error + type RAGResultsConfig struct + Deduplicate bool + Fusion *RAGFusionConfig + IncludeScore bool + Limit int + Reranking *RAGRerankingConfig + ReturnFullContent bool + func (r *RAGResultsConfig) UnmarshalYAML(unmarshal func(any) error) error + type RAGStrategyConfig struct + Chunking RAGChunkingConfig + Database RAGDatabaseConfig + Docs []string + Limit int + Params map[string]any + Type string + func (s *RAGStrategyConfig) UnmarshalJSON(data []byte) error + func (s *RAGStrategyConfig) UnmarshalYAML(unmarshal func(any) error) error + func (s RAGStrategyConfig) MarshalJSON() ([]byte, error) + func (s RAGStrategyConfig) MarshalYAML() ([]byte, error) + type RAGToolConfig struct + Description string + Instruction string + Name string + type Remote struct + Headers map[string]string + TransportType string + URL string + type RoutingRule struct + Examples []string + Model string + type SandboxConfig struct + Image string + Paths []string + type ScriptShellToolConfig struct + Args map[string]any + Cmd string + Description string + Env map[string]string + Required []string + WorkingDir string + type StructuredOutput struct + Description string + Name string + Schema map[string]any + Strict bool + type ThinkingBudget struct + Effort string + Tokens int + func (t *ThinkingBudget) UnmarshalJSON(data []byte) error + func (t *ThinkingBudget) UnmarshalYAML(unmarshal func(any) error) error + func (t ThinkingBudget) MarshalJSON() ([]byte, error) + func (t ThinkingBudget) MarshalYAML() ([]byte, error) + type Toolset struct + APIConfig APIToolConfig + Args []string + Command string + Config any + Defer DeferConfig + Env map[string]string + IgnoreVCS *bool + Instruction string + Name string + Path string + PostEdit []PostEditConfig + Ref string + Remote Remote + Sandbox *SandboxConfig + Shared bool + Shell map[string]ScriptShellToolConfig + Timeout int + Tools []string + Toon string + Type string + URL string + func (t *Toolset) UnmarshalYAML(unmarshal func(any) error) error