Skip to content

Commit

Permalink
fix: add all urls as the last event
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Feb 22, 2025
1 parent cbefcb7 commit 5c91d5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,11 @@ But unfortunately, you failed to solve the issue. You need to think out of the b
console.log(thisStep)

await storeContext(system, schema, [allContext, allKeywords, allQuestions, allKnowledge], totalStep);
return {result: thisStep, context, visitedURLs: [...visitedURLs, ...Object.keys(allURLs)]};
return {
result: thisStep,
context,
visitedURLs: [...new Set([...visitedURLs, ...Object.keys(allURLs)])]
};

}

Expand Down

0 comments on commit 5c91d5b

Please sign in to comment.