ai 6.0.0-beta.107 → 6.0.0-beta.109

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
2
2
 
3
+ ## 6.0.0-beta.109
4
+
5
+ ### Patch Changes
6
+
7
+ - 79ba99f: feat(agent): add message metadata support when inferring UI messages
8
+
9
+ ## 6.0.0-beta.108
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [5dd4c6a]
14
+ - @ai-sdk/gateway@2.0.0-beta.59
15
+
3
16
  ## 6.0.0-beta.107
4
17
 
5
18
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -2787,7 +2787,7 @@ type InferAgentTools<AGENT> = AGENT extends Agent<any, infer TOOLS, any> ? TOOLS
2787
2787
  /**
2788
2788
  * Infer the UI message type of an agent.
2789
2789
  */
2790
- type InferAgentUIMessage<AGENT> = UIMessage<never, never, InferUITools<InferAgentTools<AGENT>>>;
2790
+ type InferAgentUIMessage<AGENT, MESSAGE_METADATA = unknown> = UIMessage<MESSAGE_METADATA, never, InferUITools<InferAgentTools<AGENT>>>;
2791
2791
 
2792
2792
  /**
2793
2793
  * Runs the agent and returns a response object with a UI message stream.
package/dist/index.d.ts CHANGED
@@ -2787,7 +2787,7 @@ type InferAgentTools<AGENT> = AGENT extends Agent<any, infer TOOLS, any> ? TOOLS
2787
2787
  /**
2788
2788
  * Infer the UI message type of an agent.
2789
2789
  */
2790
- type InferAgentUIMessage<AGENT> = UIMessage<never, never, InferUITools<InferAgentTools<AGENT>>>;
2790
+ type InferAgentUIMessage<AGENT, MESSAGE_METADATA = unknown> = UIMessage<MESSAGE_METADATA, never, InferUITools<InferAgentTools<AGENT>>>;
2791
2791
 
2792
2792
  /**
2793
2793
  * Runs the agent and returns a response object with a UI message stream.
package/dist/index.js CHANGED
@@ -886,7 +886,7 @@ function detectMediaType({
886
886
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
887
887
 
888
888
  // src/version.ts
889
- var VERSION = true ? "6.0.0-beta.107" : "0.0.0-test";
889
+ var VERSION = true ? "6.0.0-beta.109" : "0.0.0-test";
890
890
 
891
891
  // src/util/download/download.ts
892
892
  var download = async ({ url }) => {
package/dist/index.mjs CHANGED
@@ -785,7 +785,7 @@ import {
785
785
  } from "@ai-sdk/provider-utils";
786
786
 
787
787
  // src/version.ts
788
- var VERSION = true ? "6.0.0-beta.107" : "0.0.0-test";
788
+ var VERSION = true ? "6.0.0-beta.109" : "0.0.0-test";
789
789
 
790
790
  // src/util/download/download.ts
791
791
  var download = async ({ url }) => {
@@ -177,7 +177,7 @@ _a = symbol;
177
177
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
178
178
 
179
179
  // src/version.ts
180
- var VERSION = true ? "6.0.0-beta.107" : "0.0.0-test";
180
+ var VERSION = true ? "6.0.0-beta.109" : "0.0.0-test";
181
181
 
182
182
  // src/util/download/download.ts
183
183
  var download = async ({ url }) => {
@@ -153,7 +153,7 @@ import {
153
153
  } from "@ai-sdk/provider-utils";
154
154
 
155
155
  // src/version.ts
156
- var VERSION = true ? "6.0.0-beta.107" : "0.0.0-test";
156
+ var VERSION = true ? "6.0.0-beta.109" : "0.0.0-test";
157
157
 
158
158
  // src/util/download/download.ts
159
159
  var download = async ({ url }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "6.0.0-beta.107",
3
+ "version": "6.0.0-beta.109",
4
4
  "description": "AI SDK by Vercel - The AI Toolkit for TypeScript and JavaScript",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@opentelemetry/api": "1.9.0",
39
- "@ai-sdk/gateway": "2.0.0-beta.58",
39
+ "@ai-sdk/gateway": "2.0.0-beta.59",
40
40
  "@ai-sdk/provider": "3.0.0-beta.16",
41
41
  "@ai-sdk/provider-utils": "4.0.0-beta.33"
42
42
  },