fix: add all urls as the last event

This commit is contained in:
Han Xiao 2025-02-22 16:45:55 +08:00
parent 7ec22a23d1
commit cbefcb7e20

View File

@ -799,7 +799,7 @@ 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};
return {result: thisStep, context, visitedURLs: [...visitedURLs, ...Object.keys(allURLs)]};
}