feat: Update tool call round limit to six in BaseAgent for enhanced flexibility

This commit is contained in:
extio-de
2026-04-20 20:36:22 +02:00
parent 93351e8be9
commit df5a5ba940

View File

@@ -210,7 +210,7 @@ public interface BaseAgent {
split.context().setLastCompletion(completion); split.context().setLastCompletion(completion);
split.context().getRequestStatistic().add(completion); split.context().getRequestStatistic().add(completion);
if (!completion.toolCalls().isEmpty() && responseHandler instanceof final ToolCallingAgentResponseHandler toolCallingAgentResponseHandler) { if (!completion.toolCalls().isEmpty() && responseHandler instanceof final ToolCallingAgentResponseHandler toolCallingAgentResponseHandler) {
if (toolCallRounds >= 4) { if (toolCallRounds >= 6) {
parseException = new IllegalStateException("Too many tool call rounds"); parseException = new IllegalStateException("Too many tool call rounds");
break; break;
} }