chore: first commit

This commit is contained in:
Han Xiao
2025-02-04 22:23:08 +08:00
parent 89732fcb57
commit a032a71701

View File

@@ -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