feat: Add agent configuration and cleanup scripts for database migrations

This commit is contained in:
wizardchen
2025-11-05 23:18:44 +08:00
parent ae9d0778e9
commit 4fa3adbf3b
126 changed files with 22506 additions and 629 deletions
+10
View File
@@ -23,6 +23,7 @@ type Config struct {
DocReader *DocReaderConfig `yaml:"docreader" json:"docreader"`
StreamManager *StreamManagerConfig `yaml:"stream_manager" json:"stream_manager"`
ExtractManager *ExtractManagerConfig `yaml:"extract" json:"extract"`
Agent *AgentGlobalConfig `yaml:"agent" json:"agent"`
}
type DocReaderConfig struct {
@@ -188,3 +189,12 @@ func LoadConfig() (*Config, error) {
fmt.Printf("Using configuration file: %s\n", viper.ConfigFileUsed())
return &cfg, nil
}
// AgentGlobalConfig represents the global agent configuration
type AgentGlobalConfig struct {
Enabled bool `yaml:"enabled" json:"enabled"`
DefaultMaxIterations int `yaml:"default_max_iterations" json:"default_max_iterations"`
DefaultTemperature float64 `yaml:"default_temperature" json:"default_temperature"`
ReflectionEnabled bool `yaml:"reflection_enabled" json:"reflection_enabled"`
DefaultTools []string `yaml:"default_tools" json:"default_tools"`
}