chore: add chatbox demo

This commit is contained in:
Han Xiao
2025-02-09 17:58:02 +08:00
parent 19ee1f782c
commit bed06b4100
3 changed files with 4 additions and 1 deletions

View File

@@ -288,7 +288,6 @@ export async function getResponse(question: string, tokenBudget: number = 1_000_
tokenTracker: existingContext?.tokenTracker || new TokenTracker(tokenBudget),
actionTracker: existingContext?.actionTracker || new ActionTracker()
};
context.actionTracker.trackAction({gaps: [question], totalStep: 0, badAttempts: 0});
let step = 0;
let totalStep = 0;
let badAttempts = 0;