Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatConfig ¶ added in v0.8.0
type ChatConfig struct {
DefaultModel string `yaml:"default_model"`
}
ChatConfig contains chat-related settings
type CompactConfig ¶ added in v0.2.0
type CompactConfig struct {
OutputDir string `yaml:"output_dir"`
}
CompactConfig contains settings for compact command
type Config ¶
type Config struct {
Gateway GatewayConfig `yaml:"gateway"`
Output OutputConfig `yaml:"output"`
Tools ToolsConfig `yaml:"tools"`
Compact CompactConfig `yaml:"compact"`
Chat ChatConfig `yaml:"chat"`
}
Config represents the CLI configuration
func LoadConfig ¶
LoadConfig loads configuration from file
func (*Config) SaveConfig ¶
SaveConfig saves configuration to file
type GatewayConfig ¶
type GatewayConfig struct {
URL string `yaml:"url"`
APIKey string `yaml:"api_key"`
Timeout int `yaml:"timeout"`
}
GatewayConfig contains gateway connection settings
type OutputConfig ¶
OutputConfig contains output formatting settings
type SafetyConfig ¶ added in v0.3.0
type SafetyConfig struct {
RequireApproval bool `yaml:"require_approval"`
}
SafetyConfig contains safety approval settings
type ToolWhitelistConfig ¶
type ToolWhitelistConfig struct {
Commands []string `yaml:"commands"`
Patterns []string `yaml:"patterns"`
}
ToolWhitelistConfig contains whitelisted commands and patterns
type ToolsConfig ¶
type ToolsConfig struct {
Enabled bool `yaml:"enabled"`
Whitelist ToolWhitelistConfig `yaml:"whitelist"`
Safety SafetyConfig `yaml:"safety"`
}
ToolsConfig contains tool execution settings
Click to show internal directories.
Click to hide internal directories.