feat(core): add ai web-search and web-crawl tools ui components (#12854)

This commit is contained in:
Wu Yue authored and GitHub committed 2025-06-19 19:15:46 +08:00
1 parent 2edc8e43e2
commit 3886babcf4
20 files changed
+747 -54

No files matched your search

@@ -539,6 +539,20 @@ export class StreamObjectParser {
}
break;
}
case 'tool-result': {
const index = acc.findIndex(
item =>
item.type === 'tool-call' &&
item.toolCallId === curr.toolCallId &&
item.toolName === curr.toolName
);
if (index !== -1) {
acc[index] = curr;
} else {
acc.push(curr);
}
break;
}
default: {
acc.push(curr);
break;