mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-16 18:25:17 +02:00
make default max calls per parent to 1
This commit is contained in:
parent
d8c00b33de
commit
25b355edf2
1 changed files with 3 additions and 3 deletions
|
|
@ -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 };
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue