@ai-sdk/provider-utils 4.0.0-beta.44 → 4.0.0-beta.46

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,18 @@
1
1
  # @ai-sdk/provider-utils
2
2
 
3
+ ## 4.0.0-beta.46
4
+
5
+ ### Patch Changes
6
+
7
+ - 81e29ab: chore: update docs
8
+
9
+ ## 4.0.0-beta.45
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [3bd2689]
14
+ - @ai-sdk/provider@3.0.0-beta.26
15
+
3
16
  ## 4.0.0-beta.44
4
17
 
5
18
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -878,7 +878,14 @@ interface ToolExecutionOptions {
878
878
  */
879
879
  abortSignal?: AbortSignal;
880
880
  /**
881
- * Additional context.
881
+ * User-defined context.
882
+ *
883
+ * Treat the context object as immutable inside tools.
884
+ * Mutating the context object can lead to race conditions and unexpected results
885
+ * when tools are called in parallel.
886
+ *
887
+ * If you need to mutate the context, analyze the tool calls and results
888
+ * in `prepareStep` and update it there.
882
889
  *
883
890
  * Experimental (can break in patch releases).
884
891
  */
package/dist/index.d.ts CHANGED
@@ -878,7 +878,14 @@ interface ToolExecutionOptions {
878
878
  */
879
879
  abortSignal?: AbortSignal;
880
880
  /**
881
- * Additional context.
881
+ * User-defined context.
882
+ *
883
+ * Treat the context object as immutable inside tools.
884
+ * Mutating the context object can lead to race conditions and unexpected results
885
+ * when tools are called in parallel.
886
+ *
887
+ * If you need to mutate the context, analyze the tool calls and results
888
+ * in `prepareStep` and update it there.
882
889
  *
883
890
  * Experimental (can break in patch releases).
884
891
  */
package/dist/index.js CHANGED
@@ -378,7 +378,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
378
378
  }
379
379
 
380
380
  // src/version.ts
381
- var VERSION = true ? "4.0.0-beta.44" : "0.0.0-test";
381
+ var VERSION = true ? "4.0.0-beta.46" : "0.0.0-test";
382
382
 
383
383
  // src/get-from-api.ts
384
384
  var getOriginalFetch = () => globalThis.fetch;