* fix typo and set max iterations to 50

This commit is contained in:
lxowalle 2026-02-27 15:30:02 +08:00
parent 8e4a5213be
commit e94faa0ad8
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ type processOptions struct {
NoHistory bool // If true, don't load session history (for heartbeat) NoHistory bool // If true, don't load session history (for heartbeat)
} }
const defaultResponse = "I've completed processing but have no response to give. Increase `max_tool_iterations` in configs.json." const defaultResponse = "I've completed processing but have no response to give. Increase `max_tool_iterations` in config.json."
func NewAgentLoop(cfg *config.Config, msgBus *bus.MessageBus, provider providers.LLMProvider) *AgentLoop { func NewAgentLoop(cfg *config.Config, msgBus *bus.MessageBus, provider providers.LLMProvider) *AgentLoop {
registry := NewAgentRegistry(cfg, provider) registry := NewAgentRegistry(cfg, provider)

View file

@ -16,7 +16,7 @@ func DefaultConfig() *Config {
Model: "glm-4.7", Model: "glm-4.7",
MaxTokens: 8192, MaxTokens: 8192,
Temperature: nil, // nil means use provider default Temperature: nil, // nil means use provider default
MaxToolIterations: 20, MaxToolIterations: 50,
}, },
}, },
Bindings: []AgentBinding{}, Bindings: []AgentBinding{},