config

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version      string              `yaml:"version"`
	Agents       []agent.AgentConfig `yaml:"agents"`
	Orchestrator OrchestratorConfig  `yaml:"orchestrator"`
	Logging      LoggingConfig       `yaml:"logging"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

func NewDefaultConfig

func NewDefaultConfig() *Config

func (*Config) SaveConfig

func (c *Config) SaveConfig(path string) error

func (*Config) Validate

func (c *Config) Validate() error

type LoggingConfig

type LoggingConfig struct {
	Enabled     bool   `yaml:"enabled"`
	ChatLogDir  string `yaml:"chat_log_dir"`
	LogFormat   string `yaml:"log_format"` // "text" or "json"
	ShowMetrics bool   `yaml:"show_metrics"`
}

type OrchestratorConfig

type OrchestratorConfig struct {
	Mode          string        `yaml:"mode"`
	MaxTurns      int           `yaml:"max_turns"`
	TurnTimeout   time.Duration `yaml:"turn_timeout"`
	ResponseDelay time.Duration `yaml:"response_delay"`
	InitialPrompt string        `yaml:"initial_prompt"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL