We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d531ce commit 37b71ebCopy full SHA for 37b71eb
src/agent.ts
@@ -823,6 +823,9 @@ But then you realized you have asked them before. You decided to to think out of
823
isAggregated: true
824
} as AnswerAction;
825
candidateAnswers = subproblemResponses.map(r => (r.result as AnswerAction).mdAnswer).filter(a => a) as string[];
826
+ // dedup references by their urls
827
+ const uniqueURLs = new Set(thisStep.references.map(r => r.url));
828
+ thisStep.references = Array.from(uniqueURLs).map(url => (thisStep as AnswerAction).references.find(r => r?.url === url)) as Reference[];
829
830
// aggregate urls
831
visitedURLs.push(...subproblemResponses.map(r => r.readURLs).flat());
0 commit comments