@ai-sdk/provider-utils 3.0.0-alpha.13 → 3.0.0-alpha.14

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/provider-utils
2
2
 
3
+ ## 3.0.0-alpha.14
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [b5da06a]
8
+ - Updated dependencies [63f9e9b]
9
+ - Updated dependencies [2e13791]
10
+ - @ai-sdk/provider@2.0.0-alpha.14
11
+
3
12
  ## 3.0.0-alpha.13
4
13
 
5
14
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -359,7 +359,7 @@ declare function resolve<T>(value: Resolvable<T>): Promise<T>;
359
359
  Typed tool call that is returned by generateText and streamText.
360
360
  It contains the tool call ID, the tool name, and the tool arguments.
361
361
  */
362
- interface ToolCall<NAME extends string, ARGS> {
362
+ interface ToolCall<NAME extends string, INPUT> {
363
363
  /**
364
364
  ID of the tool call. This ID is used to match the tool call with the tool result.
365
365
  */
@@ -371,14 +371,14 @@ interface ToolCall<NAME extends string, ARGS> {
371
371
  /**
372
372
  Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
373
373
  */
374
- args: ARGS;
374
+ input: INPUT;
375
375
  }
376
376
 
377
377
  /**
378
378
  Typed tool result that is returned by `generateText` and `streamText`.
379
379
  It contains the tool call ID, the tool name, the tool arguments, and the tool result.
380
380
  */
381
- interface ToolResult<NAME extends string, ARGS, RESULT> {
381
+ interface ToolResult<NAME extends string, INPUT, OUTPUT> {
382
382
  /**
383
383
  ID of the tool call. This ID is used to match the tool call with the tool result.
384
384
  */
@@ -390,11 +390,11 @@ interface ToolResult<NAME extends string, ARGS, RESULT> {
390
390
  /**
391
391
  Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
392
392
  */
393
- args: ARGS;
393
+ input: INPUT;
394
394
  /**
395
395
  Result of the tool call. This is the result of the tool's execution.
396
396
  */
397
- result: RESULT;
397
+ output: OUTPUT;
398
398
  }
399
399
  type ToolResultContent = Array<{
400
400
  type: 'text';
package/dist/index.d.ts CHANGED
@@ -359,7 +359,7 @@ declare function resolve<T>(value: Resolvable<T>): Promise<T>;
359
359
  Typed tool call that is returned by generateText and streamText.
360
360
  It contains the tool call ID, the tool name, and the tool arguments.
361
361
  */
362
- interface ToolCall<NAME extends string, ARGS> {
362
+ interface ToolCall<NAME extends string, INPUT> {
363
363
  /**
364
364
  ID of the tool call. This ID is used to match the tool call with the tool result.
365
365
  */
@@ -371,14 +371,14 @@ interface ToolCall<NAME extends string, ARGS> {
371
371
  /**
372
372
  Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
373
373
  */
374
- args: ARGS;
374
+ input: INPUT;
375
375
  }
376
376
 
377
377
  /**
378
378
  Typed tool result that is returned by `generateText` and `streamText`.
379
379
  It contains the tool call ID, the tool name, the tool arguments, and the tool result.
380
380
  */
381
- interface ToolResult<NAME extends string, ARGS, RESULT> {
381
+ interface ToolResult<NAME extends string, INPUT, OUTPUT> {
382
382
  /**
383
383
  ID of the tool call. This ID is used to match the tool call with the tool result.
384
384
  */
@@ -390,11 +390,11 @@ interface ToolResult<NAME extends string, ARGS, RESULT> {
390
390
  /**
391
391
  Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
392
392
  */
393
- args: ARGS;
393
+ input: INPUT;
394
394
  /**
395
395
  Result of the tool call. This is the result of the tool's execution.
396
396
  */
397
- result: RESULT;
397
+ output: OUTPUT;
398
398
  }
399
399
  type ToolResultContent = Array<{
400
400
  type: 'text';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider-utils",
3
- "version": "3.0.0-alpha.13",
3
+ "version": "3.0.0-alpha.14",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@standard-schema/spec": "^1.0.0",
30
30
  "zod-to-json-schema": "^3.24.1",
31
- "@ai-sdk/provider": "2.0.0-alpha.13"
31
+ "@ai-sdk/provider": "2.0.0-alpha.14"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "20.17.24",