@assistant-ui/react 0.5.78 → 0.5.79
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.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;
|