Documentation
¶
Overview ¶
Package config handles loading and merging configuration from YAML files and environment variables. Configuration lives at ~/.autopilot/config.yaml by default and can be overridden per-field with environment variables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDir ¶
DefaultDir returns the default autopilot config directory (~/.autopilot).
func DefaultPath ¶
DefaultPath returns the default config file path.
Types ¶
type Config ¶
type Config struct {
AnthropicKey string `yaml:"anthropic_key"`
Model string `yaml:"model"`
DataDir string `yaml:"data_dir"`
Discord DiscordConfig `yaml:"discord"`
Telegram TelegramConfig `yaml:"telegram"`
Modules map[string]any `yaml:"modules"`
Schedule ScheduleConfig `yaml:"schedule"`
}
Config is the top-level configuration for the autopilot agent.
type DiscordConfig ¶
DiscordConfig holds settings for outbound Discord webhook notifications.
type ScheduleConfig ¶
type ScheduleConfig struct {
MorningBriefing string `yaml:"morning_briefing"`
EveningDigest string `yaml:"evening_digest"`
}
ScheduleConfig defines cron expressions for recurring agent tasks.
type TelegramConfig ¶
type TelegramConfig struct {
BotToken string `yaml:"bot_token"`
ChatID string `yaml:"chat_id"`
Enabled bool `yaml:"enabled"`
}
TelegramConfig holds settings for the Telegram bot integration.
Click to show internal directories.
Click to hide internal directories.