ai 7.0.0-beta.93 → 7.0.0-beta.94

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.d.ts +4 -42
  3. package/dist/index.js +22 -53
  4. package/dist/index.js.map +1 -1
  5. package/dist/internal/index.d.ts +5 -39
  6. package/dist/internal/index.js +1 -1
  7. package/docs/03-agents/02-building-agents.mdx +2 -2
  8. package/docs/03-ai-sdk-core/05-generating-text.mdx +2 -2
  9. package/docs/03-ai-sdk-core/60-telemetry.mdx +7 -7
  10. package/docs/03-ai-sdk-core/65-event-listeners.mdx +0 -50
  11. package/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +0 -42
  12. package/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +0 -27
  13. package/docs/07-reference/01-ai-sdk-core/05-embed.mdx +0 -17
  14. package/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +0 -17
  15. package/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +0 -7
  16. package/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +1 -21
  17. package/package.json +1 -1
  18. package/src/embed/embed-events.ts +0 -10
  19. package/src/embed/embed-many.ts +0 -5
  20. package/src/embed/embed.ts +0 -3
  21. package/src/generate-object/generate-object.ts +0 -4
  22. package/src/generate-object/stream-object.ts +0 -8
  23. package/src/generate-object/structured-output-events.ts +1 -13
  24. package/src/generate-text/core-events.ts +4 -20
  25. package/src/generate-text/execute-tool-call.ts +0 -1
  26. package/src/generate-text/generate-text.ts +0 -6
  27. package/src/generate-text/step-result.ts +0 -9
  28. package/src/generate-text/stream-text.ts +0 -3
  29. package/src/rerank/rerank-events.ts +1 -10
  30. package/src/rerank/rerank.ts +0 -5
  31. package/src/telemetry/telemetry-settings.ts +0 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ai
2
2
 
3
+ ## 7.0.0-beta.94
4
+
5
+ ### Patch Changes
6
+
7
+ - 1582efa: chore(ai): remove the metadata field from the telemetry settings
8
+
3
9
  ## 7.0.0-beta.93
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -840,8 +840,6 @@ interface EmbedOnStartEvent {
840
840
  readonly recordOutputs: boolean | undefined;
841
841
  /** Identifier from telemetry settings for grouping related operations. */
842
842
  readonly functionId: string | undefined;
843
- /** Additional metadata from telemetry settings. */
844
- readonly metadata: Record<string, JSONValue$1> | undefined;
845
843
  }
846
844
  /**
847
845
  * Event passed to the `onFinish` callback for embed and embedMany operations.
@@ -883,8 +881,6 @@ interface EmbedOnFinishEvent {
883
881
  readonly recordOutputs: boolean | undefined;
884
882
  /** Identifier from telemetry settings for grouping related operations. */
885
883
  readonly functionId: string | undefined;
886
- /** Additional metadata from telemetry settings. */
887
- readonly metadata: Record<string, JSONValue$1> | undefined;
888
884
  }
889
885
  /**
890
886
  * Event fired when an individual embedding model call (inner operation doEmbed) begins.
@@ -913,8 +909,6 @@ interface EmbedStartEvent {
913
909
  readonly recordOutputs: boolean | undefined;
914
910
  /** Identifier from telemetry settings for grouping related operations. */
915
911
  readonly functionId: string | undefined;
916
- /** Additional metadata from telemetry settings. */
917
- readonly metadata: Record<string, JSONValue$1> | undefined;
918
912
  }
919
913
  /**
920
914
  * Event fired when an individual embedding model call (doEmbed) completes.
@@ -999,8 +993,6 @@ interface ObjectOnStartEvent {
999
993
  readonly recordOutputs: boolean | undefined;
1000
994
  /** Identifier from telemetry settings for grouping related operations. */
1001
995
  readonly functionId: string | undefined;
1002
- /** Additional metadata from telemetry settings. */
1003
- readonly metadata: Record<string, JSONValue$1> | undefined;
1004
996
  }
1005
997
  /**
1006
998
  * Event passed to the `experimental_onStepStart` callback of
@@ -1026,8 +1018,6 @@ interface ObjectOnStepStartEvent {
1026
1018
  readonly headers: Record<string, string | undefined> | undefined;
1027
1019
  /** Identifier from telemetry settings for grouping related operations. */
1028
1020
  readonly functionId: string | undefined;
1029
- /** Additional metadata from telemetry settings. */
1030
- readonly metadata: Record<string, unknown> | undefined;
1031
1021
  /** The prompt messages in provider format (for telemetry). */
1032
1022
  readonly promptMessages?: LanguageModelV4Prompt;
1033
1023
  }
@@ -1069,8 +1059,6 @@ interface ObjectOnStepFinishEvent {
1069
1059
  readonly providerMetadata: ProviderMetadata | undefined;
1070
1060
  /** Identifier from telemetry settings for grouping related operations. */
1071
1061
  readonly functionId: string | undefined;
1072
- /** Additional metadata from telemetry settings. */
1073
- readonly metadata: Record<string, unknown> | undefined;
1074
1062
  /** Milliseconds from the start of the stream to the first chunk (streaming only). */
1075
1063
  readonly msToFirstChunk: number | undefined;
1076
1064
  }
@@ -1116,8 +1104,6 @@ interface ObjectOnFinishEvent<RESULT> {
1116
1104
  readonly providerMetadata: ProviderMetadata | undefined;
1117
1105
  /** Identifier from telemetry settings for grouping related operations. */
1118
1106
  readonly functionId: string | undefined;
1119
- /** Additional metadata from telemetry settings. */
1120
- readonly metadata: Record<string, unknown> | undefined;
1121
1107
  }
1122
1108
 
1123
1109
  /**
@@ -1151,10 +1137,6 @@ type StepResult<TOOLS extends ToolSet, USER_CONTEXT extends Context = Context> =
1151
1137
  * Identifier from telemetry settings for grouping related operations.
1152
1138
  */
1153
1139
  readonly functionId: string | undefined;
1154
- /**
1155
- * Additional metadata from telemetry settings.
1156
- */
1157
- readonly metadata: Record<string, unknown> | undefined;
1158
1140
  /**
1159
1141
  * User-defined context object flowing through the generation.
1160
1142
  *
@@ -2540,13 +2522,11 @@ interface OnStartEvent<TOOLS extends ToolSet = ToolSet, USER_CONTEXT extends Con
2540
2522
  readonly recordOutputs: boolean | undefined;
2541
2523
  /** Identifier from telemetry settings for grouping related operations. */
2542
2524
  readonly functionId: string | undefined;
2543
- /** Additional metadata from telemetry settings. */
2544
- readonly metadata: Record<string, JSONValue$1> | undefined;
2545
2525
  /**
2546
2526
  * User-defined context object that flows through the entire generation lifecycle.
2547
2527
  * Can be accessed and modified in `prepareStep` and tool `execute` functions.
2548
2528
  */
2549
- readonly context: unknown;
2529
+ readonly context: InferToolSetContext<TOOLS> & USER_CONTEXT;
2550
2530
  }
2551
2531
  /**
2552
2532
  * Event passed to the `onStepStart` callback.
@@ -2599,12 +2579,10 @@ interface OnStepStartEvent<TOOLS extends ToolSet = ToolSet, USER_CONTEXT extends
2599
2579
  readonly output: OUTPUT | undefined;
2600
2580
  /** Identifier from telemetry settings for grouping related operations. */
2601
2581
  readonly functionId: string | undefined;
2602
- /** Additional metadata from telemetry settings. */
2603
- readonly metadata: Record<string, unknown> | undefined;
2604
2582
  /**
2605
2583
  * User-defined context object. May be updated from `prepareStep` between steps.
2606
2584
  */
2607
- readonly context: unknown;
2585
+ readonly context: InferToolSetContext<TOOLS> & USER_CONTEXT;
2608
2586
  }
2609
2587
  /**
2610
2588
  * Event passed to the `onToolCallStart` callback.
@@ -2626,10 +2604,8 @@ interface OnToolCallStartEvent<TOOLS extends ToolSet = ToolSet> {
2626
2604
  readonly messages: Array<ModelMessage>;
2627
2605
  /** Identifier from telemetry settings for grouping related operations. */
2628
2606
  readonly functionId: string | undefined;
2629
- /** Additional metadata from telemetry settings. */
2630
- readonly metadata: Record<string, unknown> | undefined;
2631
2607
  /** User-defined context object flowing through the generation. */
2632
- readonly context: unknown;
2608
+ readonly context: InferToolSetContext<TOOLS>;
2633
2609
  }
2634
2610
  /**
2635
2611
  * Event passed to the `onToolCallFinish` callback.
@@ -2654,10 +2630,8 @@ type OnToolCallFinishEvent<TOOLS extends ToolSet = ToolSet> = {
2654
2630
  readonly durationMs: number;
2655
2631
  /** Identifier from telemetry settings for grouping related operations. */
2656
2632
  readonly functionId: string | undefined;
2657
- /** Additional metadata from telemetry settings. */
2658
- readonly metadata: Record<string, unknown> | undefined;
2659
2633
  /** User-defined context object flowing through the generation. */
2660
- readonly context: unknown;
2634
+ readonly context: InferToolSetContext<TOOLS>;
2661
2635
  } & ({
2662
2636
  /** Indicates the tool call succeeded. */
2663
2637
  readonly success: true;
@@ -2714,8 +2688,6 @@ type OnFinishEvent<TOOLS extends ToolSet = ToolSet, USER_CONTEXT extends Context
2714
2688
  context: InferToolSetContext<TOOLS> & USER_CONTEXT;
2715
2689
  /** Identifier from telemetry settings for grouping related operations. */
2716
2690
  readonly functionId: string | undefined;
2717
- /** Additional metadata from telemetry settings. */
2718
- readonly metadata: Record<string, unknown> | undefined;
2719
2691
  };
2720
2692
 
2721
2693
  /**
@@ -2751,8 +2723,6 @@ interface RerankOnStartEvent {
2751
2723
  readonly recordOutputs: boolean | undefined;
2752
2724
  /** Identifier from telemetry settings for grouping related operations. */
2753
2725
  readonly functionId: string | undefined;
2754
- /** Additional metadata from telemetry settings. */
2755
- readonly metadata: Record<string, JSONValue$1> | undefined;
2756
2726
  }
2757
2727
  /**
2758
2728
  * Event passed to the `onFinish` callback for rerank operations.
@@ -2797,8 +2767,6 @@ interface RerankOnFinishEvent {
2797
2767
  readonly recordOutputs: boolean | undefined;
2798
2768
  /** Identifier from telemetry settings for grouping related operations. */
2799
2769
  readonly functionId: string | undefined;
2800
- /** Additional metadata from telemetry settings. */
2801
- readonly metadata: Record<string, JSONValue$1> | undefined;
2802
2770
  }
2803
2771
  /**
2804
2772
  * Event fired when an individual reranking model call (inner doRerank) begins.
@@ -2828,8 +2796,6 @@ interface RerankStartEvent {
2828
2796
  readonly recordOutputs: boolean | undefined;
2829
2797
  /** Identifier from telemetry settings for grouping related operations. */
2830
2798
  readonly functionId: string | undefined;
2831
- /** Additional metadata from telemetry settings. */
2832
- readonly metadata: Record<string, JSONValue$1> | undefined;
2833
2799
  }
2834
2800
  /**
2835
2801
  * Event fired when an individual reranking model call (doRerank) completes.
@@ -3000,10 +2966,6 @@ type TelemetrySettings = {
3000
2966
  * Identifier for this function. Used to group telemetry data by function.
3001
2967
  */
3002
2968
  functionId?: string;
3003
- /**
3004
- * Additional information to include in the telemetry data.
3005
- */
3006
- metadata?: Record<string, JSONValue$1>;
3007
2969
  /**
3008
2970
  * Per-call telemetry integrations that receive lifecycle events during generation.
3009
2971
  *
package/dist/index.js CHANGED
@@ -1380,7 +1380,7 @@ import {
1380
1380
  } from "@ai-sdk/provider-utils";
1381
1381
 
1382
1382
  // src/version.ts
1383
- var VERSION = true ? "7.0.0-beta.93" : "0.0.0-test";
1383
+ var VERSION = true ? "7.0.0-beta.94" : "0.0.0-test";
1384
1384
 
1385
1385
  // src/util/download/download.ts
1386
1386
  var download = async ({
@@ -2922,7 +2922,6 @@ async function executeToolCall({
2922
2922
  toolCall,
2923
2923
  messages,
2924
2924
  functionId: telemetry == null ? void 0 : telemetry.functionId,
2925
- metadata: telemetry == null ? void 0 : telemetry.metadata,
2926
2925
  context
2927
2926
  };
2928
2927
  let output;
@@ -3927,7 +3926,6 @@ var DefaultStepResult = class {
3927
3926
  provider,
3928
3927
  modelId,
3929
3928
  functionId,
3930
- metadata,
3931
3929
  context,
3932
3930
  content,
3933
3931
  finishReason,
@@ -3942,7 +3940,6 @@ var DefaultStepResult = class {
3942
3940
  this.stepNumber = stepNumber;
3943
3941
  this.model = { provider, modelId };
3944
3942
  this.functionId = functionId;
3945
- this.metadata = metadata;
3946
3943
  this.context = context;
3947
3944
  this.content = content;
3948
3945
  this.finishReason = finishReason;
@@ -4271,7 +4268,6 @@ async function generateText({
4271
4268
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
4272
4269
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
4273
4270
  functionId: telemetry == null ? void 0 : telemetry.functionId,
4274
- metadata: telemetry == null ? void 0 : telemetry.metadata,
4275
4271
  context
4276
4272
  },
4277
4273
  callbacks: [
@@ -4420,7 +4416,6 @@ async function generateText({
4420
4416
  stopWhen,
4421
4417
  output,
4422
4418
  functionId: telemetry == null ? void 0 : telemetry.functionId,
4423
- metadata: telemetry == null ? void 0 : telemetry.metadata,
4424
4419
  context,
4425
4420
  promptMessages,
4426
4421
  stepTools,
@@ -4597,7 +4592,6 @@ async function generateText({
4597
4592
  provider: stepModel.provider,
4598
4593
  modelId: stepModel.modelId,
4599
4594
  functionId: telemetry == null ? void 0 : telemetry.functionId,
4600
- metadata: telemetry == null ? void 0 : telemetry.metadata,
4601
4595
  context,
4602
4596
  content: stepContent,
4603
4597
  finishReason: currentModelResponse.finishReason.unified,
@@ -4651,7 +4645,6 @@ async function generateText({
4651
4645
  stepNumber: lastStep.stepNumber,
4652
4646
  model: lastStep.model,
4653
4647
  functionId: lastStep.functionId,
4654
- metadata: lastStep.metadata,
4655
4648
  context: lastStep.context,
4656
4649
  finishReason: lastStep.finishReason,
4657
4650
  rawFinishReason: lastStep.rawFinishReason,
@@ -6970,7 +6963,6 @@ var DefaultStreamTextResult = class {
6970
6963
  stepNumber: finalStep.stepNumber,
6971
6964
  model: finalStep.model,
6972
6965
  functionId: finalStep.functionId,
6973
- metadata: finalStep.metadata,
6974
6966
  context: finalStep.context,
6975
6967
  finishReason: finalStep.finishReason,
6976
6968
  rawFinishReason: finalStep.rawFinishReason,
@@ -7077,15 +7069,13 @@ var DefaultStreamTextResult = class {
7077
7069
  const self = this;
7078
7070
  const callId = generateCallId();
7079
7071
  const callbackTelemetryProps = {
7080
- functionId: telemetry == null ? void 0 : telemetry.functionId,
7081
- metadata: telemetry == null ? void 0 : telemetry.metadata
7072
+ functionId: telemetry == null ? void 0 : telemetry.functionId
7082
7073
  };
7083
7074
  const onStartTelemetryProps = {
7084
7075
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
7085
7076
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
7086
7077
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
7087
- functionId: telemetry == null ? void 0 : telemetry.functionId,
7088
- metadata: telemetry == null ? void 0 : telemetry.metadata
7078
+ functionId: telemetry == null ? void 0 : telemetry.functionId
7089
7079
  };
7090
7080
  (async () => {
7091
7081
  const initialPrompt = await standardizePrompt({
@@ -9221,8 +9211,7 @@ async function embed({
9221
9211
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
9222
9212
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
9223
9213
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
9224
- functionId: telemetry == null ? void 0 : telemetry.functionId,
9225
- metadata: telemetry == null ? void 0 : telemetry.metadata
9214
+ functionId: telemetry == null ? void 0 : telemetry.functionId
9226
9215
  },
9227
9216
  callbacks: [onStart, unifiedTelemetry.onStart]
9228
9217
  });
@@ -9241,8 +9230,7 @@ async function embed({
9241
9230
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
9242
9231
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
9243
9232
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
9244
- functionId: telemetry == null ? void 0 : telemetry.functionId,
9245
- metadata: telemetry == null ? void 0 : telemetry.metadata
9233
+ functionId: telemetry == null ? void 0 : telemetry.functionId
9246
9234
  },
9247
9235
  callbacks: [unifiedTelemetry.onEmbedStart]
9248
9236
  });
@@ -9291,8 +9279,7 @@ async function embed({
9291
9279
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
9292
9280
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
9293
9281
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
9294
- functionId: telemetry == null ? void 0 : telemetry.functionId,
9295
- metadata: telemetry == null ? void 0 : telemetry.metadata
9282
+ functionId: telemetry == null ? void 0 : telemetry.functionId
9296
9283
  },
9297
9284
  callbacks: [onFinish, unifiedTelemetry.onFinish]
9298
9285
  });
@@ -9383,8 +9370,7 @@ async function embedMany({
9383
9370
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
9384
9371
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
9385
9372
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
9386
- functionId: telemetry == null ? void 0 : telemetry.functionId,
9387
- metadata: telemetry == null ? void 0 : telemetry.metadata
9373
+ functionId: telemetry == null ? void 0 : telemetry.functionId
9388
9374
  },
9389
9375
  callbacks: [onStart, unifiedTelemetry.onStart]
9390
9376
  });
@@ -9408,8 +9394,7 @@ async function embedMany({
9408
9394
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
9409
9395
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
9410
9396
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
9411
- functionId: telemetry == null ? void 0 : telemetry.functionId,
9412
- metadata: telemetry == null ? void 0 : telemetry.metadata
9397
+ functionId: telemetry == null ? void 0 : telemetry.functionId
9413
9398
  },
9414
9399
  callbacks: [unifiedTelemetry.onEmbedStart]
9415
9400
  });
@@ -9462,8 +9447,7 @@ async function embedMany({
9462
9447
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
9463
9448
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
9464
9449
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
9465
- functionId: telemetry == null ? void 0 : telemetry.functionId,
9466
- metadata: telemetry == null ? void 0 : telemetry.metadata
9450
+ functionId: telemetry == null ? void 0 : telemetry.functionId
9467
9451
  },
9468
9452
  callbacks: [onFinish, unifiedTelemetry.onFinish]
9469
9453
  });
@@ -9503,8 +9487,7 @@ async function embedMany({
9503
9487
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
9504
9488
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
9505
9489
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
9506
- functionId: telemetry == null ? void 0 : telemetry.functionId,
9507
- metadata: telemetry == null ? void 0 : telemetry.metadata
9490
+ functionId: telemetry == null ? void 0 : telemetry.functionId
9508
9491
  },
9509
9492
  callbacks: [unifiedTelemetry.onEmbedStart]
9510
9493
  });
@@ -9580,8 +9563,7 @@ async function embedMany({
9580
9563
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
9581
9564
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
9582
9565
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
9583
- functionId: telemetry == null ? void 0 : telemetry.functionId,
9584
- metadata: telemetry == null ? void 0 : telemetry.metadata
9566
+ functionId: telemetry == null ? void 0 : telemetry.functionId
9585
9567
  },
9586
9568
  callbacks: [onFinish, unifiedTelemetry.onFinish]
9587
9569
  });
@@ -10351,8 +10333,7 @@ async function generateObject(options) {
10351
10333
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
10352
10334
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
10353
10335
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
10354
- functionId: telemetry == null ? void 0 : telemetry.functionId,
10355
- metadata: telemetry == null ? void 0 : telemetry.metadata
10336
+ functionId: telemetry == null ? void 0 : telemetry.functionId
10356
10337
  },
10357
10338
  callbacks: [onStart, unifiedTelemetry.onStart]
10358
10339
  });
@@ -10377,7 +10358,6 @@ async function generateObject(options) {
10377
10358
  providerOptions,
10378
10359
  headers: headersWithUserAgent,
10379
10360
  functionId: telemetry == null ? void 0 : telemetry.functionId,
10380
- metadata: telemetry == null ? void 0 : telemetry.metadata,
10381
10361
  promptMessages
10382
10362
  },
10383
10363
  callbacks: [onStepStart, unifiedTelemetry.onObjectStepStart]
@@ -10439,8 +10419,7 @@ async function generateObject(options) {
10439
10419
  request,
10440
10420
  response,
10441
10421
  providerMetadata: resultProviderMetadata,
10442
- functionId: telemetry == null ? void 0 : telemetry.functionId,
10443
- metadata: telemetry == null ? void 0 : telemetry.metadata
10422
+ functionId: telemetry == null ? void 0 : telemetry.functionId
10444
10423
  };
10445
10424
  await notify({
10446
10425
  event: stepFinishEvent,
@@ -10468,8 +10447,7 @@ async function generateObject(options) {
10468
10447
  request,
10469
10448
  response,
10470
10449
  providerMetadata: resultProviderMetadata,
10471
- functionId: telemetry == null ? void 0 : telemetry.functionId,
10472
- metadata: telemetry == null ? void 0 : telemetry.metadata
10450
+ functionId: telemetry == null ? void 0 : telemetry.functionId
10473
10451
  },
10474
10452
  callbacks: [onFinish, unifiedTelemetry.onFinish]
10475
10453
  });
@@ -10807,8 +10785,7 @@ var DefaultStreamObjectResult = class {
10807
10785
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
10808
10786
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
10809
10787
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
10810
- functionId: telemetry == null ? void 0 : telemetry.functionId,
10811
- metadata: telemetry == null ? void 0 : telemetry.metadata
10788
+ functionId: telemetry == null ? void 0 : telemetry.functionId
10812
10789
  },
10813
10790
  callbacks: [onStart, unifiedTelemetry.onStart]
10814
10791
  });
@@ -10845,7 +10822,6 @@ var DefaultStreamObjectResult = class {
10845
10822
  providerOptions,
10846
10823
  headers,
10847
10824
  functionId: telemetry == null ? void 0 : telemetry.functionId,
10848
- metadata: telemetry == null ? void 0 : telemetry.metadata,
10849
10825
  promptMessages: callOptions.prompt
10850
10826
  },
10851
10827
  callbacks: [onStepStart, unifiedTelemetry.onObjectStepStart]
@@ -11016,8 +10992,7 @@ var DefaultStreamObjectResult = class {
11016
10992
  headers: response == null ? void 0 : response.headers
11017
10993
  },
11018
10994
  providerMetadata,
11019
- functionId: telemetry == null ? void 0 : telemetry.functionId,
11020
- metadata: telemetry == null ? void 0 : telemetry.metadata
10995
+ functionId: telemetry == null ? void 0 : telemetry.functionId
11021
10996
  },
11022
10997
  callbacks: [
11023
10998
  onStepFinish,
@@ -11039,8 +11014,7 @@ var DefaultStreamObjectResult = class {
11039
11014
  headers: response == null ? void 0 : response.headers
11040
11015
  },
11041
11016
  providerMetadata,
11042
- functionId: telemetry == null ? void 0 : telemetry.functionId,
11043
- metadata: telemetry == null ? void 0 : telemetry.metadata
11017
+ functionId: telemetry == null ? void 0 : telemetry.functionId
11044
11018
  },
11045
11019
  callbacks: [onFinish, unifiedTelemetry.onFinish]
11046
11020
  });
@@ -12607,8 +12581,7 @@ async function rerank({
12607
12581
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
12608
12582
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
12609
12583
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
12610
- functionId: telemetry == null ? void 0 : telemetry.functionId,
12611
- metadata: telemetry == null ? void 0 : telemetry.metadata
12584
+ functionId: telemetry == null ? void 0 : telemetry.functionId
12612
12585
  },
12613
12586
  callbacks: [onStart, unifiedTelemetry.onStart]
12614
12587
  });
@@ -12630,8 +12603,7 @@ async function rerank({
12630
12603
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
12631
12604
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
12632
12605
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
12633
- functionId: telemetry == null ? void 0 : telemetry.functionId,
12634
- metadata: telemetry == null ? void 0 : telemetry.metadata
12606
+ functionId: telemetry == null ? void 0 : telemetry.functionId
12635
12607
  },
12636
12608
  callbacks: [onFinish, unifiedTelemetry.onFinish]
12637
12609
  });
@@ -12665,8 +12637,7 @@ async function rerank({
12665
12637
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
12666
12638
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
12667
12639
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
12668
- functionId: telemetry == null ? void 0 : telemetry.functionId,
12669
- metadata: telemetry == null ? void 0 : telemetry.metadata
12640
+ functionId: telemetry == null ? void 0 : telemetry.functionId
12670
12641
  },
12671
12642
  callbacks: [onStart, unifiedTelemetry.onStart]
12672
12643
  });
@@ -12686,8 +12657,7 @@ async function rerank({
12686
12657
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
12687
12658
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
12688
12659
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
12689
- functionId: telemetry == null ? void 0 : telemetry.functionId,
12690
- metadata: telemetry == null ? void 0 : telemetry.metadata
12660
+ functionId: telemetry == null ? void 0 : telemetry.functionId
12691
12661
  },
12692
12662
  callbacks: [unifiedTelemetry.onRerankStart]
12693
12663
  });
@@ -12749,8 +12719,7 @@ async function rerank({
12749
12719
  isEnabled: telemetry == null ? void 0 : telemetry.isEnabled,
12750
12720
  recordInputs: telemetry == null ? void 0 : telemetry.recordInputs,
12751
12721
  recordOutputs: telemetry == null ? void 0 : telemetry.recordOutputs,
12752
- functionId: telemetry == null ? void 0 : telemetry.functionId,
12753
- metadata: telemetry == null ? void 0 : telemetry.metadata
12722
+ functionId: telemetry == null ? void 0 : telemetry.functionId
12754
12723
  },
12755
12724
  callbacks: [onFinish, unifiedTelemetry.onFinish]
12756
12725
  });