ai 6.0.35 → 6.0.36

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
2
2
 
3
+ ## 6.0.36
4
+
5
+ ### Patch Changes
6
+
7
+ - 46f46e4: fix(provider-utils): improve tool type inference when using `inputExamples` with Zod schemas that use `.optional().default()` or `.refine()`.
8
+ - Updated dependencies [46f46e4]
9
+ - @ai-sdk/provider-utils@4.0.7
10
+ - @ai-sdk/gateway@3.0.15
11
+
3
12
  ## 6.0.35
4
13
 
5
14
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1049,7 +1049,7 @@ var import_provider_utils3 = require("@ai-sdk/provider-utils");
1049
1049
  var import_provider_utils4 = require("@ai-sdk/provider-utils");
1050
1050
 
1051
1051
  // src/version.ts
1052
- var VERSION = true ? "6.0.35" : "0.0.0-test";
1052
+ var VERSION = true ? "6.0.36" : "0.0.0-test";
1053
1053
 
1054
1054
  // src/util/download/download.ts
1055
1055
  var download = async ({ url }) => {
package/dist/index.mjs CHANGED
@@ -944,7 +944,7 @@ import {
944
944
  } from "@ai-sdk/provider-utils";
945
945
 
946
946
  // src/version.ts
947
- var VERSION = true ? "6.0.35" : "0.0.0-test";
947
+ var VERSION = true ? "6.0.36" : "0.0.0-test";
948
948
 
949
949
  // src/util/download/download.ts
950
950
  var download = async ({ url }) => {
@@ -153,7 +153,7 @@ var import_provider_utils2 = require("@ai-sdk/provider-utils");
153
153
  var import_provider_utils3 = require("@ai-sdk/provider-utils");
154
154
 
155
155
  // src/version.ts
156
- var VERSION = true ? "6.0.35" : "0.0.0-test";
156
+ var VERSION = true ? "6.0.36" : "0.0.0-test";
157
157
 
158
158
  // src/util/download/download.ts
159
159
  var download = async ({ url }) => {
@@ -128,7 +128,7 @@ import {
128
128
  } from "@ai-sdk/provider-utils";
129
129
 
130
130
  // src/version.ts
131
- var VERSION = true ? "6.0.35" : "0.0.0-test";
131
+ var VERSION = true ? "6.0.36" : "0.0.0-test";
132
132
 
133
133
  // src/util/download/download.ts
134
134
  var download = async ({ url }) => {
@@ -24,7 +24,7 @@ and [`streamText`](/docs/reference/ai-sdk-core/stream-text) by passing one or mo
24
24
  A tool consists of three properties:
25
25
 
26
26
  - **`description`**: An optional description of the tool that can influence when the tool is picked.
27
- - **`inputSchema`**: A [Zod schema](/docs/foundations/tools#schema-specification-and-validation-with-zod) or a [JSON schema](/docs/reference/ai-sdk-core/json-schema) that defines the input required for the tool to run. The schema is consumed by the LLM, and also used to validate the LLM tool calls.
27
+ - **`inputSchema`**: A [Zod schema](/docs/reference/ai-sdk-core/zod-schema) or a [JSON schema](/docs/reference/ai-sdk-core/json-schema) that defines the input required for the tool to run. The schema is consumed by the LLM, and also used to validate the LLM tool calls.
28
28
  - **`execute`**: An optional async function that is called with the arguments from the tool call.
29
29
 
30
30
  <Note>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "6.0.35",
3
+ "version": "6.0.36",
4
4
  "description": "AI SDK by Vercel - The AI Toolkit for TypeScript and JavaScript",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -42,9 +42,9 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@opentelemetry/api": "1.9.0",
45
- "@ai-sdk/gateway": "3.0.14",
45
+ "@ai-sdk/gateway": "3.0.15",
46
46
  "@ai-sdk/provider": "3.0.3",
47
- "@ai-sdk/provider-utils": "4.0.6"
47
+ "@ai-sdk/provider-utils": "4.0.7"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@edge-runtime/vm": "^5.0.0",