fix bug that was causing circular handoffs between conv and task agents and a minor copilot change

This commit is contained in:
arkml 2025-08-14 20:29:35 +05:30
parent d159430262
commit a0bb7e6404
2 changed files with 2 additions and 2 deletions

View file

@ -1100,7 +1100,7 @@ async function* handleMessageOutput(
nextAgentName = workflow.startAgent; nextAgentName = workflow.startAgent;
loopLogger.log(`-- using start agent: ${nextAgentName} || reason: ${current} is a pipeline, no parent agent`); loopLogger.log(`-- using start agent: ${nextAgentName} || reason: ${current} is a pipeline, no parent agent`);
} }
} else if (currentAgentConfig?.controlType === 'relinquish_to_parent' || currentAgentConfig?.controlType === 'retain') { } else if (currentAgentConfig?.controlType === 'relinquish_to_parent') {
if (stack.length > 0) { if (stack.length > 0) {
nextAgentName = stack.pop()!; nextAgentName = stack.pop()!;
loopLogger.log(`-- popped agent from stack: ${nextAgentName} || reason: ${current} is an internal agent, it put out a message and it has a control type of ${currentAgentConfig?.controlType}, hence the flow of control needs to return to the previous agent`); loopLogger.log(`-- popped agent from stack: ${nextAgentName} || reason: ${current} is an internal agent, it put out a message and it has a control type of ${currentAgentConfig?.controlType}, hence the flow of control needs to return to the previous agent`);

View file

@ -301,7 +301,7 @@ export async function* streamMultiAgentResponse(
// call model // call model
console.log("🤖 AI MODEL CALL STARTED", { console.log("🤖 AI MODEL CALL STARTED", {
model: COPILOT_MODEL, model: COPILOT_MODEL,
maxSteps: 5, maxSteps: 20,
availableTools: ["search_relevant_tools"] availableTools: ["search_relevant_tools"]
}); });