@assistant-ui/react 0.5.78 → 0.5.79
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +42 -46
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -3927,17 +3927,13 @@ function assistantDecoderStream() {
|
|
3927
3927
|
}
|
3928
3928
|
case "c" /* ToolCallDelta */: {
|
3929
3929
|
const { toolCallId, argsTextDelta } = value;
|
3930
|
-
|
3931
|
-
throw new Error(
|
3932
|
-
`Received tool call delta for unknown tool call "${toolCallId}".`
|
3933
|
-
);
|
3934
|
-
}
|
3930
|
+
const toolName = toolCallNames.get(toolCallId);
|
3935
3931
|
currentToolCall.argsText += argsTextDelta;
|
3936
3932
|
controller.enqueue({
|
3937
3933
|
type: "tool-call-delta",
|
3938
3934
|
toolCallType: "function",
|
3939
|
-
toolCallId
|
3940
|
-
toolName
|
3935
|
+
toolCallId,
|
3936
|
+
toolName,
|
3941
3937
|
argsTextDelta
|
3942
3938
|
});
|
3943
3939
|
break;
|