@usecrow/ui 0.1.23 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -275,6 +275,15 @@ function useChat({
|
|
|
275
275
|
)
|
|
276
276
|
);
|
|
277
277
|
break;
|
|
278
|
+
case "tool_result_links":
|
|
279
|
+
if (parsed.links && Array.isArray(parsed.links)) {
|
|
280
|
+
setMessages(
|
|
281
|
+
(prev) => prev.map(
|
|
282
|
+
(msg) => msg.id === botMsgId ? { ...msg, links: [...msg.links || [], ...parsed.links] } : msg
|
|
283
|
+
)
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
break;
|
|
278
287
|
case "client_tool_call":
|
|
279
288
|
pendingClientTools.push({
|
|
280
289
|
toolName: parsed.tool_name,
|