From e94faa0ad8040f813cdd32755e7bab7ea5d0016f Mon Sep 17 00:00:00 2001 From: lxowalle Date: Fri, 27 Feb 2026 15:30:02 +0800 Subject: [PATCH] * fix typo and set max iterations to 50 --- pkg/agent/loop.go | 2 +- pkg/config/defaults.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/agent/loop.go b/pkg/agent/loop.go index 930546fe1..7c774ff17 100644 --- a/pkg/agent/loop.go +++ b/pkg/agent/loop.go @@ -52,7 +52,7 @@ type processOptions struct { 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 { registry := NewAgentRegistry(cfg, provider) diff --git a/pkg/config/defaults.go b/pkg/config/defaults.go index cf799140d..6805a8bc4 100644 --- a/pkg/config/defaults.go +++ b/pkg/config/defaults.go @@ -16,7 +16,7 @@ func DefaultConfig() *Config { Model: "glm-4.7", MaxTokens: 8192, Temperature: nil, // nil means use provider default - MaxToolIterations: 20, + MaxToolIterations: 50, }, }, Bindings: []AgentBinding{},