ai 6.0.0-beta.41 → 6.0.0-beta.43

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/dist/index.mjs CHANGED
@@ -720,7 +720,7 @@ import {
720
720
  } from "@ai-sdk/provider-utils";
721
721
 
722
722
  // src/version.ts
723
- var VERSION = true ? "6.0.0-beta.41" : "0.0.0-test";
723
+ var VERSION = true ? "6.0.0-beta.43" : "0.0.0-test";
724
724
 
725
725
  // src/util/download/download.ts
726
726
  var download = async ({ url }) => {
@@ -3142,8 +3142,8 @@ import {
3142
3142
 
3143
3143
  // src/ui-message-stream/ui-message-chunks.ts
3144
3144
  import { z as z7 } from "zod/v4";
3145
- import { lazyValidator, zodSchema } from "@ai-sdk/provider-utils";
3146
- var uiMessageChunkSchema = lazyValidator(
3145
+ import { lazySchema, zodSchema } from "@ai-sdk/provider-utils";
3146
+ var uiMessageChunkSchema = lazySchema(
3147
3147
  () => zodSchema(
3148
3148
  z7.union([
3149
3149
  z7.strictObject({
@@ -6307,16 +6307,16 @@ function convertToModelMessages(messages, options) {
6307
6307
  }
6308
6308
  var convertToCoreMessages = convertToModelMessages;
6309
6309
 
6310
- // src/agent/agent.ts
6311
- var Agent = class {
6310
+ // src/agent/basic-agent.ts
6311
+ var BasicAgent = class {
6312
6312
  constructor(settings) {
6313
6313
  this.settings = settings;
6314
6314
  }
6315
6315
  /**
6316
- * The name of the agent.
6316
+ * The id of the agent.
6317
6317
  */
6318
- get name() {
6319
- return this.settings.name;
6318
+ get id() {
6319
+ return this.settings.id;
6320
6320
  }
6321
6321
  /**
6322
6322
  * The tools that the agent can use.
@@ -10431,12 +10431,12 @@ var TextStreamChatTransport = class extends HttpChatTransport {
10431
10431
  // src/ui/validate-ui-messages.ts
10432
10432
  import { TypeValidationError as TypeValidationError4 } from "@ai-sdk/provider";
10433
10433
  import {
10434
- lazyValidator as lazyValidator2,
10434
+ lazySchema as lazySchema2,
10435
10435
  validateTypes as validateTypes2,
10436
10436
  zodSchema as zodSchema2
10437
10437
  } from "@ai-sdk/provider-utils";
10438
10438
  import { z as z10 } from "zod/v4";
10439
- var uiMessagesSchema = lazyValidator2(
10439
+ var uiMessagesSchema = lazySchema2(
10440
10440
  () => zodSchema2(
10441
10441
  z10.array(
10442
10442
  z10.object({
@@ -10884,11 +10884,11 @@ export {
10884
10884
  AISDKError18 as AISDKError,
10885
10885
  APICallError,
10886
10886
  AbstractChat,
10887
- Agent,
10887
+ BasicAgent,
10888
10888
  DefaultChatTransport,
10889
10889
  DownloadError,
10890
10890
  EmptyResponseBodyError,
10891
- Agent as Experimental_Agent,
10891
+ BasicAgent as Experimental_Agent,
10892
10892
  HttpChatTransport,
10893
10893
  InvalidArgumentError,
10894
10894
  InvalidDataContentError,