@ai-sdk/provider-utils 5.0.10 → 5.0.11

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,11 @@
1
1
  # @ai-sdk/provider-utils
2
2
 
3
+ ## 5.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - cd06458: fix(ai): call `onInputStart` before `onInputAvailable` during non-streaming tool calls
8
+
3
9
  ## 5.0.10
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1828,8 +1828,8 @@ type BaseTool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JS
1828
1828
  INPUT
1829
1829
  ] extends [never] ? unknown : INPUT, NoInfer<CONTEXT>>;
1830
1830
  /**
1831
- * Optional function that is called when the argument streaming starts.
1832
- * Only called when the tool is used in a streaming context.
1831
+ * Optional function that is called when the model starts generating the tool input.
1832
+ * In non-streaming contexts, it is called immediately before `onInputAvailable`.
1833
1833
  */
1834
1834
  onInputStart?: (options: ToolExecutionOptions<NoInfer<CONTEXT>>) => void | PromiseLike<void>;
1835
1835
  /**
package/dist/index.js CHANGED
@@ -1153,7 +1153,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
1153
1153
  }
1154
1154
 
1155
1155
  // src/version.ts
1156
- var VERSION = true ? "5.0.10" : "0.0.0-test";
1156
+ var VERSION = true ? "5.0.11" : "0.0.0-test";
1157
1157
 
1158
1158
  // src/get-from-api.ts
1159
1159
  var getOriginalFetch = () => globalThis.fetch;