From 25b355edf28de50175f7adb906c385875226637c Mon Sep 17 00:00:00 2001 From: arkml Date: Mon, 8 Sep 2025 16:03:35 +0530 Subject: [PATCH] make default max calls per parent to 1 --- apps/rowboat/src/application/lib/agents-runtime/agents.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/rowboat/src/application/lib/agents-runtime/agents.ts b/apps/rowboat/src/application/lib/agents-runtime/agents.ts index 4d2a7e84..a974dc4f 100644 --- a/apps/rowboat/src/application/lib/agents-runtime/agents.ts +++ b/apps/rowboat/src/application/lib/agents-runtime/agents.ts @@ -903,7 +903,7 @@ async function* handleNativeHandoffEvent( } // Regular handoff handling (non-pipeline) - const maxCalls = targetAgentConfig?.maxCallsPerParentAgent || 3; + const maxCalls = targetAgentConfig?.maxCallsPerParentAgent || 1; const currentCalls = transferCounter.get(agentName, targetAgentName); if (targetAgentConfig?.outputVisibility === 'internal' && currentCalls >= maxCalls) { @@ -955,7 +955,7 @@ async function* handleHandoffEvent( // Only apply max calls limit to internal agents (task agents) const targetAgentConfig = agentConfig[event.item.targetAgent.name]; if (targetAgentConfig?.outputVisibility === 'internal') { - const maxCalls = targetAgentConfig?.maxCallsPerParentAgent || 3; + const maxCalls = targetAgentConfig?.maxCallsPerParentAgent || 1; const currentCalls = transferCounter.get(agentName, event.item.targetAgent.name); if (currentCalls >= maxCalls) { eventLogger.log(`⚠️ SKIPPING: handoff to ${event.item.targetAgent.name} - max calls ${maxCalls} exceeded from ${agentName}`); @@ -1566,4 +1566,4 @@ export async function getResponse( } return { messages: out, usage }; */ -} \ No newline at end of file +}