@assistant-ui/react 0.5.78 → 0.5.80
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{chunk-KVXP3Q6K.js → chunk-BDPD5HCK.js} +26 -24
- package/dist/chunk-BDPD5HCK.js.map +1 -0
- package/dist/{chunk-SNNYBBO6.mjs → chunk-RRW3NW2F.mjs} +18 -16
- package/dist/chunk-RRW3NW2F.mjs.map +1 -0
- package/dist/edge.js +17 -15
- package/dist/edge.js.map +1 -1
- package/dist/edge.mjs +17 -15
- package/dist/edge.mjs.map +1 -1
- package/dist/index.js +17 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-KVXP3Q6K.js.map +0 -1
- package/dist/chunk-SNNYBBO6.mjs.map +0 -1
package/dist/index.mjs
CHANGED
@@ -10,7 +10,7 @@ import {
|
|
10
10
|
toLanguageModelMessages,
|
11
11
|
toLanguageModelTools,
|
12
12
|
toolResultStream
|
13
|
-
} from "./chunk-
|
13
|
+
} from "./chunk-RRW3NW2F.mjs";
|
14
14
|
import {
|
15
15
|
__export
|
16
16
|
} from "./chunk-BJPOCE4O.mjs";
|
@@ -3927,17 +3927,15 @@ function assistantDecoderStream() {
|
|
3927
3927
|
}
|
3928
3928
|
case "c" /* ToolCallDelta */: {
|
3929
3929
|
const { toolCallId, argsTextDelta } = value;
|
3930
|
-
|
3931
|
-
|
3932
|
-
|
3933
|
-
);
|
3930
|
+
const toolName = toolCallNames.get(toolCallId);
|
3931
|
+
if (currentToolCall?.id === toolCallId) {
|
3932
|
+
currentToolCall.argsText += argsTextDelta;
|
3934
3933
|
}
|
3935
|
-
currentToolCall.argsText += argsTextDelta;
|
3936
3934
|
controller.enqueue({
|
3937
3935
|
type: "tool-call-delta",
|
3938
3936
|
toolCallType: "function",
|
3939
|
-
toolCallId
|
3940
|
-
toolName
|
3937
|
+
toolCallId,
|
3938
|
+
toolName,
|
3941
3939
|
argsTextDelta
|
3942
3940
|
});
|
3943
3941
|
break;
|