From a032a7170193bb6e7bfdff5b591c5e3ba0fe980c Mon Sep 17 00:00:00 2001 From: Han Xiao Date: Tue, 4 Feb 2025 22:23:08 +0800 Subject: [PATCH] chore: first commit --- src/agent.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/agent.ts b/src/agent.ts index 82cadee..86b03f6 100644 --- a/src/agent.ts +++ b/src/agent.ts @@ -466,17 +466,13 @@ Although you solved a sub-question, you still need to find the answer to the ori // Log the budget allocation for monitoring console.log(`Allocating ${subQuestionBudget} tokens for sub-question: "${gapQuestion}"`) - const subContext = { - tokenTracker: context.tokenTracker, // Share token tracker - actionTracker: context.actionTracker // Share action tracker - }; // Recursively resolve gap question const {result: gapResult} = await getResponse( gapQuestion, subQuestionBudget, maxBadAttempts, - subContext, + undefined, allKnowledge, // Pass current knowledge to sub-question budgetSplitRatio, recursionLevel + 1