Prompt to modify the max_tool_iterations parameter.

This commit is contained in:
lxowalle 2026-02-27 15:20:38 +08:00
parent 2c8416e658
commit 15df05c037

View file

@ -260,7 +260,7 @@ func (al *AgentLoop) ProcessHeartbeat(ctx context.Context, content, channel, cha
Channel: channel, Channel: channel,
ChatID: chatID, ChatID: chatID,
UserMessage: content, UserMessage: content,
DefaultResponse: "I've completed processing but have no response to give.", DefaultResponse: "I've completed processing but have no response to give. Increase `max_tool_iterations` in configs.json.",
EnableSummary: false, EnableSummary: false,
SendResponse: false, SendResponse: false,
NoHistory: true, // Don't load session history for heartbeat NoHistory: true, // Don't load session history for heartbeat
@ -326,7 +326,7 @@ func (al *AgentLoop) processMessage(ctx context.Context, msg bus.InboundMessage)
Channel: msg.Channel, Channel: msg.Channel,
ChatID: msg.ChatID, ChatID: msg.ChatID,
UserMessage: msg.Content, UserMessage: msg.Content,
DefaultResponse: "I've completed processing but have no response to give.", DefaultResponse: "I've completed processing but have no response to give. Increase `max_tool_iterations` in configs.json.",
EnableSummary: true, EnableSummary: true,
SendResponse: false, SendResponse: false,
}) })