Documentation
¶
Overview ¶
Package config handles the loading and management of the application's configuration. It parses command-line arguments and defines the runtime settings for the godoctor server, including server address, model selection, and tool enablement/disablement policies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ListenAddr string
Version bool
Agents bool
ListTools bool // List available tools for the selected profile and exit
DefaultModel string
AllowedTools map[string]bool // If non-empty, ONLY these tools are allowed
DisabledTools map[string]bool // These tools are explicitly disabled
}
Config holds the application configuration.
func (*Config) DisableTool ¶
DisableTool explicitly disables a tool at runtime.
func (*Config) IsToolEnabled ¶
IsToolEnabled checks if a tool should be enabled.
Click to show internal directories.
Click to hide internal directories.