@ai-sdk/otel 1.0.127 → 1.0.129

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.
@@ -11,7 +11,7 @@ type SupplementalAttributeOption =
11
11
  | 'providerMetadata'
12
12
  | 'embedding'
13
13
  | 'reranking'
14
- | 'experimental_evaluation'
14
+ | 'experimental_decision'
15
15
  | 'runtimeContext'
16
16
  | 'headers'
17
17
  | 'toolChoice'
@@ -29,7 +29,7 @@ export type OpenTelemetrySpanType =
29
29
  | 'tool'
30
30
  | 'embedding'
31
31
  | 'reranking'
32
- | 'experimental_evaluation';
32
+ | 'experimental_decision';
33
33
 
34
34
  export type EnrichSpan = (options: {
35
35
  spanType: OpenTelemetrySpanType;
@@ -71,8 +71,11 @@ export type OpenTelemetryOptions = {
71
71
  reranking?: boolean;
72
72
 
73
73
  /**
74
- * Emit evaluation state, questions, and answers.
74
+ * Emit decision state, questions, and answers.
75
75
  */
76
+ experimental_decision?: boolean;
77
+
78
+ /** @deprecated Use `experimental_decision` instead. */
76
79
  experimental_evaluation?: boolean;
77
80
 
78
81
  /**
@@ -101,7 +104,7 @@ const disabledSupplementalAttributes: SupplementalAttributeOptions = {
101
104
  providerMetadata: false,
102
105
  embedding: false,
103
106
  reranking: false,
104
- experimental_evaluation: false,
107
+ experimental_decision: false,
105
108
  runtimeContext: false,
106
109
  headers: false,
107
110
  toolChoice: false,
@@ -117,7 +120,8 @@ export function normalizeSupplementalAttributes(
117
120
  providerMetadata: options.providerMetadata ?? false,
118
121
  embedding: options.embedding ?? false,
119
122
  reranking: options.reranking ?? false,
120
- experimental_evaluation: options.experimental_evaluation ?? false,
123
+ experimental_decision:
124
+ options.experimental_decision ?? options.experimental_evaluation ?? false,
121
125
  runtimeContext: options.runtimeContext ?? false,
122
126
  headers: options.headers ?? false,
123
127
  toolChoice: options.toolChoice ?? false,