@ai-sdk/xai 3.0.102 → 3.0.103

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 3.0.103
4
+
5
+ ### Patch Changes
6
+
7
+ - cb4e5e1: Emit provider-executed tool results for completed xAI Responses API streaming tool calls.
8
+ - Updated dependencies [0952964]
9
+ - @ai-sdk/provider-utils@4.0.36
10
+ - @ai-sdk/openai-compatible@2.0.57
11
+
3
12
  ## 3.0.102
4
13
 
5
14
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2696,6 +2696,14 @@ var XaiResponsesLanguageModel = class {
2696
2696
  providerExecuted: true
2697
2697
  });
2698
2698
  }
2699
+ if (event.type === "response.output_item.done") {
2700
+ controller.enqueue({
2701
+ type: "tool-result",
2702
+ toolCallId: part.id,
2703
+ toolName,
2704
+ result: {}
2705
+ });
2706
+ }
2699
2707
  return;
2700
2708
  }
2701
2709
  if (part.type === "message") {
@@ -2843,7 +2851,7 @@ var xaiTools = {
2843
2851
  };
2844
2852
 
2845
2853
  // src/version.ts
2846
- var VERSION = true ? "3.0.102" : "0.0.0-test";
2854
+ var VERSION = true ? "3.0.103" : "0.0.0-test";
2847
2855
 
2848
2856
  // src/xai-video-model.ts
2849
2857
  var import_provider6 = require("@ai-sdk/provider");