@assistant-ui/react 0.5.79 → 0.5.80

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.mjs CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  toLanguageModelMessages,
11
11
  toLanguageModelTools,
12
12
  toolResultStream
13
- } from "./chunk-SNNYBBO6.mjs";
13
+ } from "./chunk-RRW3NW2F.mjs";
14
14
  import {
15
15
  __export
16
16
  } from "./chunk-BJPOCE4O.mjs";
@@ -3928,7 +3928,9 @@ function assistantDecoderStream() {
3928
3928
  case "c" /* ToolCallDelta */: {
3929
3929
  const { toolCallId, argsTextDelta } = value;
3930
3930
  const toolName = toolCallNames.get(toolCallId);
3931
- currentToolCall.argsText += argsTextDelta;
3931
+ if (currentToolCall?.id === toolCallId) {
3932
+ currentToolCall.argsText += argsTextDelta;
3933
+ }
3932
3934
  controller.enqueue({
3933
3935
  type: "tool-call-delta",
3934
3936
  toolCallType: "function",