evalution 1.0.7 → 2.0.0

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 (26) hide show
  1. package/LICENSING.md +26 -44
  2. package/dist/{check-BTg6THHB.d.ts → check-ci7RhMcB.d.ts} +21 -848
  3. package/dist/checks/index.d.ts +2 -1
  4. package/dist/cli/index.js +257 -77
  5. package/dist/client/assets/DatasetView-BqSWI_pm.js +15 -0
  6. package/dist/client/assets/EvalRunView-CR6ZksSu.js +2 -0
  7. package/dist/client/assets/EvalView-JPEM5IY8.js +1 -0
  8. package/dist/client/assets/{data-grid-overlay-editor-CBVV2omk.js → data-grid-overlay-editor-B_nPhXKR.js} +1 -1
  9. package/dist/client/assets/{highlighted-body-KPVGNVTW-BqsjUFPI.js → highlighted-body-KPVGNVTW-dPpneB8R.js} +1 -1
  10. package/dist/client/assets/{index-B7OFMd2c.css → index-BGcZZetP.css} +1 -1
  11. package/dist/client/assets/{index-DOmAST6D.js → index-CwjMcK6S.js} +137 -137
  12. package/dist/client/assets/{number-overlay-editor-DhCVhD05.js → number-overlay-editor-CRWFlaQs.js} +1 -1
  13. package/dist/client/index.html +2 -2
  14. package/dist/{dataset-types-CSjbM_Vz.d.ts → dataset-types-8cDpOFYi.d.ts} +6 -236
  15. package/dist/index.d.ts +302 -1279
  16. package/dist/index.js +148 -485
  17. package/dist/{trace-Dn6Pfcc5.d.ts → trace-BlnjMp7o.d.ts} +2 -1
  18. package/dist/{trace-event-ingestor-DI-HkA4Q.js → trace-event-ingestor-DwI1hxGX.js} +2471 -8458
  19. package/dist/views/datasets/index.d.ts +1 -1
  20. package/dist/views/index.d.ts +3 -2
  21. package/dist/views/index.js +0 -4
  22. package/dist/views/react/index.d.ts +1 -1
  23. package/package.json +19 -16
  24. package/dist/client/assets/DatasetView-CWw3B_XI.js +0 -15
  25. package/dist/client/assets/EvalRunView-DJNSAydj.js +0 -2
  26. package/dist/client/assets/EvalView-R0Nkikzs.js +0 -1
@@ -1,381 +1,8 @@
1
- import { CalleeBinding, ExtractedProps, PropDefinition as PropDefinition$1, PropType, PropValue as PropValue$1, SourceSpan, ValueCatalog, ValueCatalogGroup, ValueCatalogPreset, ValueFactory as ValueFactory$1 } from "ts-proppy";
1
+ import { CalleeBinding, ExtractedProps, PropDefinition as PropDefinition$1, PropType, PropValue as PropValue$1, SourceSpan, ValueCatalog, ValueCatalogGroup, ValueCatalogPreset, ValueFactory } from "ts-proppy";
2
+ import { Annotation as Annotation$1, AnnotationChanges as AnnotationChanges$1, AnnotationEvent as AnnotationEvent$1, AnnotationEventOp as AnnotationEventOp$1, AnnotationKind, AnnotationSource, EvalCounts, LLMSpanDetails, PromptID, PromptID as PromptID$1, Span as Span$1, SpanContentPart, SpanImagePart, SpanKind, SpanMessage, SpanMessageRole, SpanReasoningPart, SpanTextPart, SpanToolCallPart, SpanToolResultPart, ToolSpanDetails, Trace as Trace$1, TraceChangeEvent, TraceChangeEvent as TraceChangeEvent$1, TraceChangeType, TraceEvalRun, TraceEvalRun as TraceEvalRun$1, TraceLiveEvent, TraceProviderInfo, TraceStreamEvent as TraceStreamEvent$1, TraceSummary as TraceSummary$1, TraceWithSpans, TraceWithSpans as TraceWithSpans$1 } from "@evalution/sdk";
3
+ import { ChatPromptUpdates, FieldValues, InputLayout, NormalizedChatPrompt, NormalizedMessage, NormalizedParameter, NormalizedPrompt, NormalizedPrompt as NormalizedPrompt$1, NormalizedPromptBase, NormalizedPromptUpdates, NormalizedQuestionsPrompt, NormalizedToolCall, ParsedPrompt, PendingConflicts, PromptInputSources, PromptRef, PromptRef as PromptRef$1, PromptStyle, QuestionsPromptUpdates, ResourceInfo, ResourceScope, VariationConflict, VariationConflict as VariationConflict$1, VariationId, VariationId as VariationId$1, VariationInfo, VariationInfo as VariationInfo$1, VersionId, VersionId as VersionId$1, VersionInfo } from "@evalution/sdk/adapter";
2
4
  import { StandardSchemaV1 } from "@standard-schema/spec";
3
5
 
4
- //#region src/trace/trace-types.d.ts
5
- /**
6
- * A reference to a prompt.
7
- *
8
- * `id` is interpreted as a globally-unique prompt ID unless `providerId` is
9
- * present, in which case `id` is scoped to that specific prompt provider. This
10
- * mirrors the OpenTelemetry attributes `evalution.prompt.id` (always present)
11
- * and `evalution.prompt.provider.id` (optional, scoping).
12
- */
13
- interface PromptID {
14
- /** The prompt ID — global unless {@link providerId} scopes it. */
15
- id: string;
16
- /** When set, {@link id} is scoped to this prompt provider. */
17
- providerId?: string;
18
- /** Positional arguments the prompt function was called with. */
19
- functionParameters?: unknown[];
20
- /**
21
- * The unresolved inputs the run was launched with — the recipe, not the
22
- * resolution.
23
- *
24
- * Replaying them is only exactly faithful for the `value` kind. A `resource`
25
- * re-runs its `create()`, producing an *equivalent* value rather than the
26
- * same one — a fresh handle, a newly seeded row — so a UI must present it as
27
- * something that will be re-created, never as a restored value.
28
- */
29
- functionInputs?: unknown[];
30
- /** The unresolved execute-parameter inputs, keyed by parameter name. */
31
- executeInputs?: Record<string, unknown>;
32
- /**
33
- * The run's named resource instances, by name, with the receipt each
34
- * `create()` produced. See `specs/resource-instances.md` §F.
35
- */
36
- resources?: Record<string, unknown>;
37
- /**
38
- * The prompt's parameter definitions as they stood when the run was
39
- * launched, so a replay can diff them against today's signature rather than
40
- * guess whether the recorded inputs still fit.
41
- */
42
- parameterDefinitions?: unknown[];
43
- /**
44
- * The prompt's execute-parameter definitions as they stood when the run was
45
- * launched — the types of {@link executeInputs}, as
46
- * {@link parameterDefinitions} is for {@link functionInputs}.
47
- */
48
- executeParameterDefinitions?: unknown[];
49
- /** The version the run executed against. */
50
- version?: string;
51
- /** The variation applied on top of {@link version}, if any. */
52
- variation?: string;
53
- }
54
- /**
55
- * Classification of a {@link Span}. See also:
56
- * - `lmnr.span.type` from https://laminar.sh/docs/tracing/otel
57
- * - `mlflow.spanType` from https://mlflow.org/docs/latest/genai/tracing/opentelemetry/attribute-mapping/#translated-span-attributes
58
- *
59
- * Mapped from `gen_ai.operation.name`. `CHECK` is evalution's own: an eval
60
- * check that traced something while judging the run — see
61
- * {@link CHECK_ATTRIBUTE}.
62
- */
63
- type SpanKind = "LLM" | "TOOL" | "AGENT" | "EMBEDDING" | "CHECK" | "DEFAULT";
64
- /**
65
- * Span attribute naming the eval check (by its id within the eval) that
66
- * recorded the span while judging the trace — set on the check's `CHECK` span
67
- * and on everything under it. Those spans aren't part of the run being
68
- * judged, so the trace's rollups and chat view leave them out.
69
- */
70
- declare const CHECK_ATTRIBUTE = "evalution.check";
71
- /** Whether `span` was recorded by a check judging its trace, not by the run. */
72
- declare function isCheckSpan(span: Pick<Span, "attributes">): boolean;
73
- /** A text segment within a multi-part {@link SpanMessage} content. */
74
- interface SpanTextPart {
75
- type: "text";
76
- text: string;
77
- }
78
- /** An image segment within a multi-part {@link SpanMessage} content. */
79
- interface SpanImagePart {
80
- type: "image";
81
- /** A URL, or base64/data-URI image data. */
82
- image: string;
83
- /** MIME type (e.g. `image/png`), when known. */
84
- mediaType?: string;
85
- }
86
- /**
87
- * A tool call the assistant made, within a multi-part {@link SpanMessage}
88
- * content. Matched to its {@link SpanToolResultPart} by `toolCallId`.
89
- */
90
- interface SpanToolCallPart {
91
- type: "tool-call";
92
- toolCallId: string;
93
- toolName: string;
94
- /** The arguments the model passed, as JSON. */
95
- input: unknown;
96
- }
97
- /**
98
- * A tool's result fed back to the model, within a multi-part
99
- * {@link SpanMessage} content (usually a `tool` message).
100
- */
101
- interface SpanToolResultPart {
102
- type: "tool-result";
103
- toolCallId: string;
104
- toolName: string;
105
- /** What the tool returned, unwrapped from the SDK's output envelope. */
106
- output: unknown;
107
- /** Whether the result reports a failure (an error, or a denied call). */
108
- isError?: boolean;
109
- }
110
- type SpanMessageRole = "user" | "assistant" | "system" | "tool" | (string & {});
111
- /** One segment of a multi-part {@link SpanMessage} content. */
112
- type SpanContentPart = SpanTextPart | SpanImagePart | SpanToolCallPart | SpanToolResultPart;
113
- /**
114
- * A single message within an LLM span's input/output.
115
- *
116
- * `content` is a plain string for the common text-only case. It is an array
117
- * of {@link SpanContentPart} when the message carries non-text content (e.g.
118
- * an image, or a tool call or result) — the `string` form stays in the union so existing consumers and
119
- * already-stored rows keep working unchanged.
120
- */
121
- interface SpanMessage {
122
- role: SpanMessageRole;
123
- content: string | SpanContentPart[];
124
- }
125
- /** LLM-specific attributes attached to `LLM` spans. */
126
- interface LLMSpanDetails {
127
- provider?: string;
128
- model?: string;
129
- /** Model parameters (temperature, max_tokens, …). */
130
- modelParameters?: Record<string, unknown>;
131
- /**
132
- * Why the model stopped generating, as the provider or SDK reports it
133
- * (`stop`, `length`, `tool-calls`, …). Not normalized across providers.
134
- */
135
- finishReason?: string;
136
- /**
137
- * What the model was given: a message list for a chat model, or any JSON
138
- * for a model that takes something else (a System One call records
139
- * `{ state, questions }`). Array-ness is the discriminant — see
140
- * {@link spanMessages}.
141
- */
142
- input?: SpanMessage[] | {
143
- [key: string]: unknown;
144
- };
145
- /**
146
- * What it returned: text for a chat model, the assistant message of a turn
147
- * that called tools (see `toolCallingOutput`), or JSON for structured
148
- * output and for any model whose answer is data rather than prose.
149
- */
150
- output?: unknown;
151
- /** Input tokens, counting any read from or written to a prompt cache. */
152
- promptTokens?: number;
153
- completionTokens?: number;
154
- totalTokens?: number;
155
- /** How many of {@link promptTokens} were read from a prompt cache. */
156
- cacheReadTokens?: number;
157
- /** How many of {@link promptTokens} were written to a prompt cache. */
158
- cacheWriteTokens?: number;
159
- /**
160
- * Dollar cost of the call, broken down by token type, if known. The total
161
- * cost is `cost.prompt + cost.completion`; `cost.prompt` includes cache
162
- * reads and writes, each at its own price.
163
- */
164
- cost?: {
165
- prompt: number;
166
- completion: number; /** The part of `prompt` spent on {@link cacheReadTokens}. */
167
- cacheRead?: number; /** The part of `prompt` spent on {@link cacheWriteTokens}. */
168
- cacheWrite?: number;
169
- };
170
- }
171
- /**
172
- * The message list of a chat call, or `undefined` for any other input.
173
- *
174
- * A chat call's {@link LLMSpanDetails.input} is always a message list, and
175
- * anything else is wrapped in an object, so being an array is what makes it
176
- * one.
177
- */
178
- declare function spanMessages(llm: LLMSpanDetails | undefined): SpanMessage[] | undefined;
179
- interface ToolSpanDetails {
180
- toolName: string;
181
- /**
182
- * The id the model gave this call, when the integration reports it — the
183
- * same id as the {@link SpanToolCallPart} that requested it.
184
- */
185
- toolCallId?: string;
186
- input: unknown;
187
- output?: unknown;
188
- }
189
- /**
190
- * A span in a {@link Trace}. Spans form a tree via {@link parentId}.
191
- * Durations are derived from `startTime` and `endTime`; an in-progress span has
192
- * no `endTime` yet.
193
- */
194
- interface Span {
195
- id: string;
196
- traceId: string;
197
- /** `undefined` for the root span of the trace. */
198
- parentId?: string;
199
- name: string;
200
- kind: SpanKind;
201
- /** Start timestamp in milliseconds since epoch. */
202
- startTime: number;
203
- /** End timestamp in milliseconds since epoch, or `undefined` while running. */
204
- endTime?: number;
205
- status?: "ok" | "error";
206
- /** Error message if `status` is `'error'`. */
207
- errorMessage?: string;
208
- /** Free-form attributes to show in the span's details pane. */
209
- attributes?: Record<string, unknown>;
210
- /**
211
- * The OpenTelemetry resource that produced the span: attributes describing
212
- * the process or service it ran in rather than the span itself
213
- * (`service.name`, `deployment.environment.name`, …).
214
- */
215
- resource?: Record<string, unknown>;
216
- /** LLM-specific details (present for `chat`/`completion`/`embedding` spans). */
217
- llm?: LLMSpanDetails;
218
- /**
219
- * The prompt this span is attributed to, if any.
220
- *
221
- * Stored as emitted (`evalution.prompt.id` plus optional
222
- * `evalution.prompt.provider.id`): a {@link PromptID} whose `id` is global
223
- * unless `providerId` is set. The server resolves it against the prompt
224
- * registry to a provider-scoped reference when a trace is served.
225
- */
226
- prompt?: PromptID;
227
- tool?: ToolSpanDetails;
228
- }
229
- interface TraceBase {
230
- id: string;
231
- providerId?: string;
232
- name: string;
233
- /** Start timestamp (ms). */
234
- startTime: number;
235
- /** End timestamp (ms), or `undefined` while the trace is still running. */
236
- endTime?: number;
237
- status: "running" | "ok" | "error";
238
- }
239
- /**
240
- * Top-level trace for a single invocation (e.g. one prompt execution).
241
- */
242
- interface Trace extends TraceBase {
243
- /** Free-form attributes (e.g. prompt ID, function params). */
244
- attributes?: Record<string, unknown>;
245
- }
246
- /** Compact trace entry for listings (sidebar / `GET /api/traces`). */
247
- interface TraceSummary extends TraceBase {
248
- providerId: string;
249
- /** Number of spans currently associated with the trace. */
250
- spanCount: number;
251
- /**
252
- * Sum of every LLM span's token usage (`llm.totalTokens`, falling back to
253
- * `promptTokens + completionTokens` per span the way `SpanDetails` does).
254
- * `undefined` if no span in the trace reports any token usage.
255
- */
256
- totalTokens?: number;
257
- /** Sum of every LLM span's `llm.cost` (prompt + completion). `undefined` if no span reports a cost. */
258
- cost?: number;
259
- /** The model name, if every LLM span that reports one reports the same one. */
260
- model?: string;
261
- /** The prompt version the run executed against (`PromptID.version`). */
262
- promptVersion?: string;
263
- /** The prompt variation the run applied (`PromptID.variation`). */
264
- promptVariation?: string;
265
- /**
266
- * The deployment environment the run happened in: its root span's
267
- * resource's `deployment.environment.name` — `"playground"` for a run
268
- * evalution itself made.
269
- */
270
- environment?: string;
271
- /** How many annotations of each kind are attached to the trace (trace-level or on any of its spans). */
272
- annotationCounts: Record<AnnotationKind, number>;
273
- /**
274
- * The eval run that produced the trace, if any. Trace providers never set
275
- * it — the server fills it in when listing, from the eval providers' results
276
- * and the runs in flight.
277
- */
278
- evalRun?: TraceEvalRun;
279
- }
280
- /** The eval run a trace came from — what the trace list groups by. */
281
- interface TraceEvalRun {
282
- /** The eval provider the run is recorded on. */
283
- providerId: string;
284
- evalId: string;
285
- /** The eval's name. */
286
- evalName: string;
287
- runId: string;
288
- /** When the run started (ms). */
289
- startedAt: number;
290
- }
291
- /**
292
- * The OpenTelemetry semantic-convention resource attribute naming the
293
- * service that produced a span.
294
- */
295
- declare const SERVICE_NAME_ATTRIBUTE = "service.name";
296
- /**
297
- * The OpenTelemetry semantic-convention resource attribute naming the
298
- * deployment environment a span was produced in.
299
- */
300
- declare const DEPLOYMENT_ENVIRONMENT_ATTRIBUTE = "deployment.environment.name";
301
- /** {@link DEPLOYMENT_ENVIRONMENT_ATTRIBUTE}'s value on a run evalution itself made. */
302
- declare const PLAYGROUND_ENVIRONMENT = "playground";
303
- /** A trace together with all of its spans. */
304
- interface TraceWithSpans {
305
- trace: Trace;
306
- spans: Span[];
307
- }
308
- /**
309
- * Where an {@link Annotation} came from: the user, a coding agent we know by
310
- * name, or any other agent (an MCP client that isn't Claude Code or Codex).
311
- */
312
- type AnnotationSource = "user" | "claude-code" | "codex" | "agent";
313
- /** What kind of note an {@link Annotation} records. */
314
- type AnnotationKind = "issue" | "good" | "note";
315
- /**
316
- * A note attached to a trace, or to one specific span within it — e.g. a
317
- * reviewer flagging a bad tool call, or an agent leaving a note about a run
318
- * it just replayed.
319
- */
320
- interface Annotation {
321
- id: string;
322
- traceId: string;
323
- /** The span this annotation is attached to, or `undefined` for a trace-level annotation. */
324
- spanId?: string;
325
- kind: AnnotationKind;
326
- note: string;
327
- source: AnnotationSource;
328
- /** Creation timestamp (ms). */
329
- createdAt: number;
330
- }
331
- /** The fields of an {@link Annotation} that can be changed after it's made. */
332
- type AnnotationChanges = Partial<Pick<Annotation, "kind" | "note">>;
333
- /** The kind of change that occurred to a trace. */
334
- type TraceChangeType = "add" | "update" | "remove";
335
- /** Describes a single change emitted by `TraceProvider.watch`. */
336
- interface TraceChangeEvent {
337
- type: TraceChangeType;
338
- traceId: string;
339
- }
340
- /** Real-time event pushed over the per-trace SSE subscription. */
341
- type TraceStreamEvent = {
342
- type: "span-start";
343
- span: Span;
344
- } | {
345
- type: "span-end";
346
- span: Span;
347
- } | {
348
- type: "span-update";
349
- span: Span;
350
- } | {
351
- type: "trace-update";
352
- trace: Trace;
353
- } | {
354
- type: "trace-end";
355
- trace: Trace;
356
- };
357
- /** The change an annotation event describes. */
358
- type AnnotationEventOp = "insert" | "update" | "delete";
359
- /** The event a per-trace annotation subscription delivers. */
360
- interface AnnotationEvent {
361
- type: "annotation";
362
- op: AnnotationEventOp;
363
- annotation: Annotation;
364
- }
365
- /**
366
- * Real-time event pushed over the per-trace SSE subscription, broadened
367
- * beyond span/trace lifecycle to also carry annotation changes — so a client
368
- * holding one `EventSource` open on a trace sees both without a second
369
- * connection. See `specs/trace-workshopping.md` §C.2.
370
- */
371
- type TraceLiveEvent = TraceStreamEvent | AnnotationEvent;
372
- /** Information about a registered trace provider, returned by `GET /api/trace-providers`. */
373
- interface TraceProviderInfo {
374
- id: string;
375
- displayName?: string;
376
- description?: string;
377
- }
378
- //#endregion
379
6
  //#region src/eval/eval-types.d.ts
380
7
  /** One check, as an eval uses it. See `specs/evals.md` §A. */
381
8
  interface EvalCheck {
@@ -445,10 +72,10 @@ type EvalArmSpec = {
445
72
  kind: "head";
446
73
  } | {
447
74
  kind: "wip";
448
- variation: VariationId;
75
+ variation: VariationId$1;
449
76
  } | {
450
77
  kind: "variation";
451
- variation: VariationId;
78
+ variation: VariationId$1;
452
79
  label?: string;
453
80
  };
454
81
  /** One arm of a run, as it was set up when the run started. */
@@ -460,32 +87,23 @@ interface EvalArm {
460
87
  /** What was asked for. */
461
88
  spec: EvalArmSpec;
462
89
  /** What every row of this arm runs. Absent when {@link error} is set. */
463
- ref?: PromptRef;
90
+ ref?: PromptRef$1;
464
91
  /** The frozen, rebased variation the arm's rows run, when it runs one. */
465
- rebasedTo?: VariationId;
92
+ rebasedTo?: VariationId$1;
466
93
  /** Why the arm didn't run — a rebase conflict, say. */
467
94
  error?: string;
468
95
  /** The conflicts, when {@link error} is a rebase conflict. */
469
- conflicts?: VariationConflict[];
96
+ conflicts?: VariationConflict$1[];
470
97
  }
471
98
  /** A run's lifecycle. */
472
99
  type EvalRunStatus = "running" | "done" | "cancelled" | "error";
473
- /** How a run's check results break down. */
474
- interface EvalCounts {
475
- pass: number;
476
- fail: number;
477
- error: number;
478
- skipped: number;
479
- /** Scores reported without a threshold, so neither pass nor fail. */
480
- scored: number;
481
- }
482
100
  /** What `EvalProvider.createRun` takes. */
483
101
  interface NewEvalRun {
484
102
  /** The eval as it was when the run started — runs keep meaning what they measured. */
485
103
  definition: EvalDefinition;
486
104
  arms: EvalArm[];
487
105
  /** The commit checked out at start, on a clean tree. */
488
- startVersion?: VersionId;
106
+ startVersion?: VersionId$1;
489
107
  /** Whether the working tree had uncommitted changes at start. */
490
108
  dirty: boolean;
491
109
  /** How many (arm, row) runs may be in flight at once. */
@@ -514,7 +132,7 @@ interface EvalRunSummary {
514
132
  evalId: string;
515
133
  status: EvalRunStatus;
516
134
  arms: Pick<EvalArm, "id" | "label" | "error">[];
517
- startVersion?: VersionId;
135
+ startVersion?: VersionId$1;
518
136
  dirty: boolean;
519
137
  drifted: boolean;
520
138
  startedAt: number;
@@ -561,9 +179,9 @@ interface EvalRowResult {
561
179
  traceProviderId?: string;
562
180
  traceId?: string;
563
181
  /** The version the row ran against, on a clean tree. */
564
- version?: VersionId;
182
+ version?: VersionId$1;
565
183
  /** The variation the row applied. */
566
- variation?: VariationId;
184
+ variation?: VariationId$1;
567
185
  status: EvalRowStatus;
568
186
  /** Why the row errored or was skipped. */
569
187
  error?: string;
@@ -600,11 +218,15 @@ interface TraceCheckResult extends EvalCheckResult {
600
218
  /** The check's label as the run's definition had it. */
601
219
  checkLabel: string;
602
220
  armLabel: string;
221
+ /** When the run started (ms). */
222
+ startedAt: number;
603
223
  }
604
224
  /** A trace an eval run produced, with the run — see `EvalProvider.listTraceRuns`. */
605
225
  interface EvalTraceRun extends Omit<TraceEvalRun, "providerId"> {
606
226
  traceProviderId: string;
607
227
  traceId: string;
228
+ /** How the trace's check results break down, once it has any. */
229
+ checkCounts?: EvalCounts;
608
230
  }
609
231
  /** The kind of change an {@link EvalChangeEvent} describes. */
610
232
  type EvalChangeType = "add" | "update" | "remove";
@@ -632,273 +254,6 @@ interface EvalProviderInfo {
632
254
  }
633
255
  //#endregion
634
256
  //#region src/shared/types.d.ts
635
- /**
636
- * Low-level prompt representation produced by a
637
- * {@link PromptFileType}. It exposes the raw `extractedProps` from the parser
638
- * and uses SDK-specific property names (e.g. `model`, `system`, `messages`).
639
- *
640
- * Not intended for public consumption — {@link PromptProvider} implementations
641
- * convert this into a {@link NormalizedPrompt} via an {@link SDKAdapter} before
642
- * returning it to callers.
643
- */
644
- interface ParsedPrompt {
645
- id: string;
646
- providerId?: string;
647
- /**
648
- * Author-supplied stable alias for this prompt, globally unique across
649
- * providers. Survives file moves/renames and is registered in the prompt
650
- * registry so runtime traces can resolve back to this prompt.
651
- */
652
- globalId?: string;
653
- name: string;
654
- functionParameters: PropDefinition$1[];
655
- extractedProps: ExtractedProps;
656
- metadata?: unknown;
657
- treePath?: string[];
658
- }
659
- /**
660
- * A single message in a conversation, in a form that is independent of any
661
- * particular SDK's message shape.
662
- */
663
- interface NormalizedMessage {
664
- /** Role identifier (`'system'`, `'user'`, `'assistant'`, `'tool'`, …). */
665
- role: string;
666
- /** Message content. Typically a primitive or template string, but any
667
- * {@link PropValue} is allowed so non-string content (e.g. structured
668
- * content arrays) can round-trip through the editor. */
669
- content: PropValue$1;
670
- /** Optional tool calls attached to an assistant message. */
671
- toolCalls?: NormalizedToolCall[];
672
- }
673
- /** A tool invocation emitted by an assistant message. */
674
- interface NormalizedToolCall {
675
- /** The name of the tool / function to invoke. */
676
- toolName: string;
677
- /** Arguments to the tool, as a JSON string. */
678
- args: string;
679
- }
680
- /**
681
- * A model parameter (`temperature`, `maxTokens`, …) attached to a prompt.
682
- * Mirrors the `PropDefinition` + current value pair that the playground UI
683
- * needs for rendering a parameter editor.
684
- */
685
- interface NormalizedParameter {
686
- /** Describes the parameter's name, type, and documentation. */
687
- def: PropDefinition$1;
688
- /** The parameter's current value, or `undefined` if not set on the prompt. */
689
- value?: PropValue$1;
690
- }
691
- /**
692
- * What every {@link NormalizedPrompt} has, whatever its {@link PromptStyle}.
693
- */
694
- interface NormalizedPromptBase {
695
- id: string;
696
- providerId?: string;
697
- /**
698
- * Author-supplied stable alias for this prompt, globally unique across
699
- * providers. Survives file moves/renames and is registered in the prompt
700
- * registry so runtime traces can resolve back to this prompt.
701
- */
702
- globalId?: string;
703
- name: string;
704
- functionParameters: PropDefinition$1[];
705
- metadata?: unknown;
706
- /**
707
- * Controls where this prompt appears in the sidebar tree.
708
- *
709
- * Each element is a path segment. The last segment is treated as the leaf
710
- * group label (analogous to a file name) and all preceding segments are
711
- * rendered as collapsible directory nodes.
712
- *
713
- * Prompts that share the same `treePath` are grouped under the same leaf
714
- * node. When omitted, the prompt is placed at the root level.
715
- *
716
- * @example ['src', 'prompts', 'greeting.prompt.ts']
717
- */
718
- treePath?: string[];
719
- /** The model reference (e.g. a provider call or gateway string). */
720
- model?: PropValue$1;
721
- /**
722
- * Whether this SDK lets the model be chosen from the playground.
723
- *
724
- * A capability of the SDK, not a verdict on the current value: an editor
725
- * also checks that the value itself has an editable shape (see
726
- * `isEditable`), and renders read-only when either answer is no.
727
- */
728
- modelEditable: boolean;
729
- /**
730
- * Model parameters currently set on the prompt (everything that isn't
731
- * part of the style's own authored content).
732
- */
733
- modelParameters: NormalizedParameter[];
734
- /**
735
- * False when the model parameters can't be changed here — a saved
736
- * variation shown read-only, say. Absent means they can.
737
- */
738
- modelParametersEditable?: boolean;
739
- /**
740
- * Named values the SDK needs to **execute** the config this prompt renders,
741
- * supplied at run time rather than authored in the file.
742
- *
743
- * Distinct from {@link functionParameters}, which answers *what does this
744
- * prompt take?* — this answers *what does running it require?*, which the
745
- * function signature cannot express. The Vercel AI SDK's `toolsContext` is
746
- * the motivating case: tools that declare a `contextSchema` need a context
747
- * object the prompt function never sees.
748
- *
749
- * Absent when the prompt needs nothing beyond its arguments. Present with an
750
- * unresolved type when the requirement is known but its shape is not — a
751
- * usable state, and better than the silent failure at the first tool call
752
- * that omitting it would produce.
753
- */
754
- executeParameters?: PropDefinition$1[];
755
- /**
756
- * Non-authored sources that can fill this prompt's input slots — currently
757
- * code-defined resources. Absent when the provider offers none.
758
- */
759
- inputSources?: PromptInputSources;
760
- /**
761
- * Slot path → how to lay out a fan-out slot's fields in the execute panel.
762
- * Any path not named here uses `"expanded"`.
763
- *
764
- * Set by an {@link SDKAdapter} whose own API shape is the reason a slot
765
- * fans out — e.g. the Vercel AI SDK's `toolsContext`, which is keyed per
766
- * tool because tools are resolved individually, not because prompt authors
767
- * think in terms of separate contexts. Mirrors the `functionSlots` /
768
- * `executeSlots` split on {@link PromptInputSources}, which exists for the
769
- * same reason: a function parameter and an execute parameter may share a
770
- * name.
771
- */
772
- inputLayout?: {
773
- functionSlots?: Record<string, InputLayout>;
774
- executeSlots?: Record<string, InputLayout>;
775
- };
776
- /**
777
- * Where this prompt was read from. Absent when the provider has no notion
778
- * of versions, in which case the prompt is always head.
779
- */
780
- ref?: PromptRef;
781
- /** The base version, when {@link ref} is a version or a variation. */
782
- version?: VersionInfo;
783
- /** The variation, when {@link ref} names one. */
784
- variation?: VariationInfo;
785
- /**
786
- * True when a WIP variation exists for this prompt at head — the dirty
787
- * indicator. Reported on the head prompt, whatever ref is open.
788
- */
789
- dirty?: boolean;
790
- /** The id of the head WIP variation, when {@link dirty}. */
791
- wipId?: VariationId;
792
- /**
793
- * True when this prompt's base is the working tree, so it can run. False
794
- * for an old version, or a variation made against one.
795
- */
796
- atHead?: boolean;
797
- }
798
- /**
799
- * An opaque, immutable name for a state of the world — for a git project, a
800
- * commit.
801
- */
802
- type VersionId = string;
803
- /** An opaque id for a {@link VariationInfo | variation}. */
804
- type VariationId = string;
805
- /**
806
- * Which prompt, in which state.
807
- *
808
- * A variation already knows its base, so `{ variation }` is complete. There is
809
- * deliberately no `{ version, variation }` pair: that is a rebase, which
810
- * produces a new variation with its own id.
811
- */
812
- type PromptRef = /** Head: the prompt as it is on disk now. */{
813
- promptId: string;
814
- version?: undefined;
815
- variation?: undefined;
816
- } /** The prompt as it was at a saved version. */ | {
817
- promptId: string;
818
- version: VersionId;
819
- variation?: undefined;
820
- } /** A variation, applied to its base commit (or the working tree, without one). */ | {
821
- promptId: string;
822
- variation: VariationId;
823
- version?: undefined;
824
- };
825
- /** A saved state of the world: a commit. See {@link VersionId}. */
826
- interface VersionInfo {
827
- id: VersionId;
828
- /** Commit subject. */
829
- message?: string;
830
- author?: string;
831
- /** When the version was made (ms). */
832
- time: number;
833
- }
834
- /**
835
- * A prompt's field values, keyed like a variation's fields (`system`,
836
- * `modelParameters.temperature`, …) — `null` for a field the prompt doesn't
837
- * have.
838
- */
839
- type FieldValues = Record<string, unknown>;
840
- /**
841
- * One field that could not be merged: both sides changed it, differently.
842
- * `field` is `"system"`, `"modelParameters.temperature"`, or the pseudo-field
843
- * `"prompt"` when the prompt itself no longer exists at the target.
844
- */
845
- interface VariationConflict {
846
- field: string;
847
- /** The value both sides started from. */
848
- base: unknown;
849
- /** The value on the side being merged into (head, or the unsaved edits). */
850
- target: unknown;
851
- /** The value the variation wants. */
852
- variation: unknown;
853
- }
854
- /**
855
- * Conflicts a WIP variation is waiting on the user to resolve. While present,
856
- * the WIP can neither run nor be saved.
857
- */
858
- interface PendingConflicts {
859
- /**
860
- * The working tree's values for every field involved, as they were when
861
- * the conflict arose: what the resolved WIP is based on.
862
- */
863
- targetValues: FieldValues;
864
- /** Every field that did merge, already applied. */
865
- updates: NormalizedPromptUpdates;
866
- conflicts: VariationConflict[];
867
- /** How to label each side in the UI. */
868
- labels: {
869
- target: string;
870
- variation: string;
871
- };
872
- }
873
- /**
874
- * An immutable set of {@link NormalizedPromptUpdates} for one prompt — or,
875
- * when {@link wip}, the one mutable set of unsaved edits per (prompt, base).
876
- * It applies to the working tree; its {@link base} commit, when it has one,
877
- * is where it can also be shown (and one day run) as it was made.
878
- */
879
- interface VariationInfo {
880
- id: VariationId;
881
- promptId: string;
882
- /**
883
- * The commit whose copy of the prompt's file the variation was made
884
- * against. Absent when that file had uncommitted changes (or there's no
885
- * git), and for a WIP of unsaved edits to the working tree.
886
- */
887
- base?: VersionId;
888
- updates: NormalizedPromptUpdates;
889
- /** Whether this is a work-in-progress (unsaved, mutable) variation. */
890
- wip: boolean;
891
- /** For a WIP: whether it holds the unsaved edits to head. */
892
- onHead?: boolean;
893
- /** Names pointing at this variation. */
894
- names: string[];
895
- /** For a WIP opened from a named variation: that name. */
896
- originName?: string;
897
- /** For a WIP: conflicts awaiting resolution. */
898
- pending?: PendingConflicts;
899
- createdAt: number;
900
- updatedAt: number;
901
- }
902
257
  /** What rebasing or merging a variation produced. */
903
258
  type RebaseResult = {
904
259
  ok: true;
@@ -916,163 +271,6 @@ type RebaseResult = {
916
271
  * keep the target's value, or the variation's.
917
272
  */
918
273
  type ConflictChoices = Record<string, "target" | "variation">;
919
- /**
920
- * Which kind of editor a prompt is authored in. Chosen by the
921
- * {@link SDKAdapter}, since it is the SDK's request shape that decides it.
922
- *
923
- * A closed set: the client is a prebuilt bundle, so an adapter picks among
924
- * the editors it has rather than shipping its own.
925
- */
926
- type PromptStyle = NormalizedPrompt["style"];
927
- /** A model driven by a system message and a conversation. */
928
- interface NormalizedChatPrompt extends NormalizedPromptBase {
929
- style: "chat";
930
- /** Top-level system prompt, if the SDK supports one. */
931
- system?: PropValue$1;
932
- /** Whether this SDK supports an arbitrary system message. */
933
- systemEditable: boolean;
934
- /** Conversation messages. */
935
- messages: NormalizedMessage[];
936
- /** Whether this SDK supports an arbitrary message list. */
937
- messagesEditable: boolean;
938
- }
939
- /** A model that answers a set of named questions about a state. */
940
- interface NormalizedQuestionsPrompt extends NormalizedPromptBase {
941
- style: "questions";
942
- /** What the questions are asked about. `def` is the SDK's state type. */
943
- state: NormalizedParameter;
944
- /** Whether this SDK supports an arbitrary state. */
945
- stateEditable: boolean;
946
- /**
947
- * The questions, as one value: an object whose property names are question
948
- * ids. `def` is the SDK's type for the whole collection — a `record` whose
949
- * value definition carries a catalog of question factories.
950
- */
951
- questions: NormalizedParameter;
952
- /** Whether this SDK supports adding, removing and editing questions. */
953
- questionsEditable: boolean;
954
- }
955
- /**
956
- * Prompt representation used by {@link PromptProvider} public methods and by
957
- * the playground UI. It hides SDK-specific property names behind a stable
958
- * shape, discriminated by {@link PromptStyle}.
959
- *
960
- * {@link SDKAdapter.normalizePrompt} converts a {@link ParsedPrompt} produced
961
- * by a {@link PromptFileType} into this form.
962
- */
963
- type NormalizedPrompt = NormalizedChatPrompt | NormalizedQuestionsPrompt;
964
- /** How a fan-out slot's fields are laid out in the execute panel. */
965
- type InputLayout = "combined" | "expanded";
966
- /** How long a resource's value lives, and how often `create()` runs. */
967
- type ResourceScope = "run" | "server";
968
- /**
969
- * A code-defined resource offered as an input source, as the UI sees it.
970
- *
971
- * The resource's *value* never crosses the wire — the whole point is that only
972
- * running code can produce it — so this is just enough to render a chip and
973
- * send the choice back as an {@link ExecutionInput}.
974
- */
975
- interface ResourceInfo {
976
- /**
977
- * Provider-interpreted reference to this resource, relative to the
978
- * provider's root so it stays valid on another machine (e.g.
979
- * `.evalution/playground/db.ts#db`).
980
- */
981
- uri: string;
982
- /** Human-readable label shown on the chip. */
983
- label: string;
984
- /** How long the created value lives. See {@link ResourceScope}. */
985
- scope: ResourceScope;
986
- /**
987
- * Why this resource is unavailable, if it is — typically its module threw
988
- * at import time. Surfaced in the panel rather than hidden, so a broken
989
- * playground module is visible instead of silently absent.
990
- */
991
- error?: string;
992
- /**
993
- * A snapshot of the resource's current value, so the panel can preview it
994
- * instead of just naming it. Present only when the server already has an
995
- * instance to peek at — a static `value` resource, or a `scope: 'server'`
996
- * one it has already created — and that instance's value is plain JSON
997
- * data. A run-scoped resource, or one whose value isn't plain data (a live
998
- * handle), has nothing here; the chip is all there is to show.
999
- */
1000
- value?: unknown;
1001
- /**
1002
- * Group path this source is displayed under, outermost first. Absent means
1003
- * top level. Purely display metadata — never part of {@link uri} — so
1004
- * renaming a group invalidates no saved selection. See
1005
- * `specs/resource-hierarchy.md` §B.
1006
- */
1007
- group?: string[];
1008
- /**
1009
- * For a value source (one read off another resource): the `uri` of the
1010
- * resource it is read from. Absent for the resource itself.
1011
- */
1012
- parent?: string;
1013
- /**
1014
- * For a value source: how many values that resource exposes in total,
1015
- * before slot matching narrows them down for a particular slot. Only the
1016
- * provider can supply this — after filtering, the panel cannot tell "this
1017
- * resource exposes one value" from "it exposes five and four don't fit
1018
- * here", and those read differently once a submenu collapses to its one
1019
- * remaining entry.
1020
- */
1021
- siblings?: number;
1022
- /**
1023
- * The resource's declared arguments, as slots for the panel to render —
1024
- * one per schema-valued entry of its `inputs`, in declaration order.
1025
- * Absent when the resource takes none. Present with an unresolved (generic
1026
- * string) editor when the requirement is known but its shape is not —
1027
- * the checker-less degradation, same idiom as
1028
- * {@link NormalizedPrompt.executeParameters}.
1029
- *
1030
- * Only the resource itself carries this — a value source (`parent` set)
1031
- * shares its root resource's arguments rather than repeating them. See
1032
- * `specs/resource-arguments.md` §G.
1033
- */
1034
- parameters?: PropDefinition$1[];
1035
- /**
1036
- * The resource's code-wired dependencies — its resource-valued `inputs`
1037
- * entries — as input name → the dependency's {@link uri}. Only the
1038
- * resource itself carries this, and only for dependencies discovery
1039
- * registered. The panel lists them in its Resources section. See
1040
- * `specs/resource-instances.md` §D.
1041
- */
1042
- dependencies?: Record<string, string>;
1043
- }
1044
- /**
1045
- * Which non-authored sources can fill which of a prompt's input slots.
1046
- *
1047
- * Matching runs provider-side, where the checker lives (see
1048
- * `matchResourcesToSlots`), and ships as slot paths so the panel can offer a
1049
- * source without re-deriving the rules.
1050
- */
1051
- interface PromptInputSources {
1052
- /** Every resource in scope for this prompt, identified by `uri`. */
1053
- resources: ResourceInfo[];
1054
- /**
1055
- * Dotted slot path within {@link NormalizedPrompt.functionParameters}
1056
- * (`taskId`, `ctx.db`) → URIs of the resources that can fill it.
1057
- */
1058
- functionSlots: Record<string, string[]>;
1059
- /**
1060
- * Dotted slot path within {@link NormalizedPrompt.executeParameters}
1061
- * (`toolsContext.list_tasks.db`) → URIs of the resources that can fill it.
1062
- */
1063
- executeSlots: Record<string, string[]>;
1064
- /**
1065
- * Resource URI → (argument slot path → URIs of sources that can fill it).
1066
- *
1067
- * Separate from {@link functionSlots} / {@link executeSlots} and keyed by
1068
- * URI rather than folded into the slot path, because an argument slot is a
1069
- * property of the *resource*, not of the prompt: the same resource offers
1070
- * the same arguments in every prompt that can see it. Absent when no
1071
- * resource in scope declares arguments. See
1072
- * `specs/resource-arguments.md` §G.
1073
- */
1074
- resourceSlots?: Record<string, Record<string, string[]>>;
1075
- }
1076
274
  /**
1077
275
  * One prompt input, *before* resolution — the recipe rather than the value.
1078
276
  *
@@ -1177,31 +375,6 @@ interface CheckInfo {
1177
375
  /** Set when the module failed to load or the definition is invalid. */
1178
376
  error?: string;
1179
377
  }
1180
- /** Updates to a {@link NormalizedChatPrompt}. `null` removes a field. */
1181
- interface ChatPromptUpdates {
1182
- style: "chat";
1183
- model?: PropValue$1 | null;
1184
- system?: PropValue$1 | null;
1185
- messages?: NormalizedMessage[] | null;
1186
- /** Per-parameter updates, keyed by parameter name. `null` removes. */
1187
- modelParameters?: Record<string, PropValue$1 | null>;
1188
- }
1189
- /** Updates to a {@link NormalizedQuestionsPrompt}. `null` removes a field. */
1190
- interface QuestionsPromptUpdates {
1191
- style: "questions";
1192
- model?: PropValue$1 | null;
1193
- state?: PropValue$1 | null;
1194
- questions?: PropValue$1 | null;
1195
- /** Per-parameter updates, keyed by parameter name. `null` removes. */
1196
- modelParameters?: Record<string, PropValue$1 | null>;
1197
- }
1198
- /**
1199
- * Updates that can be applied to a {@link NormalizedPrompt} via
1200
- * {@link PromptProvider.updatePromptProperties}, in the vocabulary of the
1201
- * prompt's {@link PromptStyle}. A value of `null` removes that field from the
1202
- * underlying source.
1203
- */
1204
- type NormalizedPromptUpdates = ChatPromptUpdates | QuestionsPromptUpdates;
1205
378
  /** The kind of change that occurred to a prompt. */
1206
379
  type ChangeEventType = "change" | "add" | "remove";
1207
380
  /**
@@ -1362,10 +535,10 @@ interface DatasetField {
1362
535
  /** Name, type, description — the checker's view of the slot this field came from. */
1363
536
  def: PropDefinition$1;
1364
537
  /**
1365
- * Set on a field added by hand (`DatasetProvider.addField`) rather than
1366
- * derived when the dataset was created. Such a field never came from the
1367
- * linked prompt, so it isn't flagged when it matches none of its
1368
- * parameters.
538
+ * Set on a field added by hand — through `DatasetProvider.addField`, or
539
+ * given as `{ name, type }` or `{ from }` when the dataset was created —
540
+ * rather than derived from the linked prompt. Such a field never came from
541
+ * that prompt, so it isn't flagged when it matches none of its parameters.
1369
542
  */
1370
543
  added?: true;
1371
544
  }
@@ -1922,4 +1095,4 @@ declare function check<const N extends ResourceInputs = Record<string, never>>(d
1922
1095
  /** Whether `value` was produced by {@link check}. */
1923
1096
  declare function isCheck(value: unknown): value is Check;
1924
1097
  //#endregion
1925
- export { NormalizedPromptBase as $, TraceCheckResult as $t, DatasetRowsOverview as A, TraceWithSpans as An, EvalArm as At, ChatPromptUpdates as B, EvalInputs as Bt, DatasetFieldShape as C, TraceChangeEvent as Cn, ValueCatalogPreset as Ct, DatasetRow as D, TraceProviderInfo as Dn, VariationInfo as Dt, DatasetProviderInfo as E, TraceLiveEvent as En, VariationId as Et, KnownColumnSpec as F, EvalCheckOutcome as Ft, ExecutionInput as G, EvalRun as Gt, ConflictChoices as H, EvalResults as Ht, AddPromptContext as I, EvalCheckResult as It, InputLayout as J, EvalRunSummary as Jt, ExtractedProps as K, EvalRunProgress as Kt, AddPromptField as L, EvalCounts as Lt, ColumnPath as M, spanMessages as Mn, EvalChangeEvent as Mt, DatasetColumnSpec as N, EvalChangeType as Nt, DatasetRowSource as O, TraceStreamEvent as On, VersionId as Ot, ForeignColumnSpec as P, EvalCheck as Pt, NormalizedPrompt as Q, NewEvalRun as Qt, CalleeBinding as R, EvalDefinition as Rt, DatasetField as S, Trace as Sn, ValueCatalogGroup as St, DatasetPathChild as T, TraceEvalRun as Tn, VariationConflict as Tt, ExecuteRequest as U, EvalRowResult as Ut, CheckInfo as V, EvalProviderInfo as Vt, ExecuteResponse as W, EvalRowStatus as Wt, NormalizedMessage as X, EvalTraceRun as Xt, NormalizedChatPrompt as Y, EvalSummary as Yt, NormalizedParameter as Z, NewEvalDefinition as Zt, isStandardSchema as _, SpanMessageRole as _n, ResourceScope as _t, check as a, AnnotationSource as an, PromptChangeEvent as at, DatasetChangeEvent as b, SpanToolResultPart as bn, UpdatePromptResponse as bt, ResolvedResourceInputs as c, LLMSpanDetails as cn, PromptRef as ct, ResourceInput as d, SERVICE_NAME_ATTRIBUTE as dn, PropType as dt, Annotation as en, NormalizedPromptUpdates as et, ResourceInputs as f, Span as fn, PropValue$1 as ft, isResource as g, SpanMessage as gn, ResourceInstanceInput as gt, StaticResourceDefinition as h, SpanKind as hn, ResourceInfo as ht, CheckRun as i, AnnotationKind as in, PendingConflicts as it, DatasetSummary as j, isCheckSpan as jn, EvalArmSpec as jt, DatasetRowUpdate as k, TraceSummary as kn, VersionInfo as kt, Resource as l, PLAYGROUND_ENVIRONMENT as ln, PromptStyle as lt, ResourceOutputDefinition as m, SpanImagePart as mn, RebaseResult as mt, CheckDefinition as n, AnnotationEvent as nn, NormalizedToolCall as nt, isCheck as o, CHECK_ATTRIBUTE as on, PromptInputSources as ot, ResourceInstance as p, SpanContentPart as pn, QuestionsPromptUpdates as pt, FieldValues as q, EvalRunStatus as qt, CheckOutcome as r, AnnotationEventOp as rn, ParsedPrompt as rt, DynamicResourceDefinition as s, DEPLOYMENT_ENVIRONMENT_ATTRIBUTE as sn, PromptProviderInfo as st, Check as t, AnnotationChanges as tn, NormalizedQuestionsPrompt as tt, ResourceDefinition as u, PromptID as un, PropDefinition$1 as ut, resource as v, SpanTextPart as vn, RunResources as vt, DatasetInstanceShape as w, TraceChangeType as wn, ValueFactory$1 as wt, DatasetChangeType as x, ToolSpanDetails as xn, ValueCatalog as xt, Dataset as y, SpanToolCallPart as yn, SourceSpan as yt, ChangeEventType as z, EvalDefinitionPatch as zt };
1098
+ export { FieldValues as $, VariationConflict$1 as $t, DatasetRowsOverview as A, SpanImagePart as At, AnnotationEvent$1 as B, TraceChangeEvent$1 as Bt, DatasetFieldShape as C, EvalSummary as Cn, ResourceInfo as Ct, DatasetRow as D, TraceCheckResult as Dn, SourceSpan as Dt, DatasetProviderInfo as E, NewEvalRun as En, RunResources as Et, KnownColumnSpec as F, SpanTextPart as Ft, ChangeEventType as G, TraceStreamEvent$1 as Gt, AnnotationKind as H, TraceEvalRun$1 as Ht, AddPromptContext as I, SpanToolCallPart as It, ConflictChoices as J, UpdatePromptResponse as Jt, ChatPromptUpdates as K, TraceSummary$1 as Kt, AddPromptField as L, SpanToolResultPart as Lt, ColumnPath as M, SpanMessage as Mt, DatasetColumnSpec as N, SpanMessageRole as Nt, DatasetRowSource as O, Span$1 as Ot, ForeignColumnSpec as P, SpanReasoningPart as Pt, ExtractedProps as Q, ValueFactory as Qt, Annotation$1 as R, ToolSpanDetails as Rt, DatasetField as S, EvalRunSummary as Sn, RebaseResult as St, DatasetPathChild as T, NewEvalDefinition as Tn, ResourceScope as Tt, AnnotationSource as U, TraceLiveEvent as Ut, AnnotationEventOp$1 as V, TraceChangeType as Vt, CalleeBinding as W, TraceProviderInfo as Wt, ExecuteResponse as X, ValueCatalogGroup as Xt, ExecuteRequest as Y, ValueCatalog as Yt, ExecutionInput as Z, ValueCatalogPreset as Zt, isStandardSchema as _, EvalRowResult as _n, PromptStyle as _t, check as a, EvalArmSpec as an, NormalizedPrompt$1 as at, DatasetChangeEvent as b, EvalRunProgress as bn, PropValue$1 as bt, ResolvedResourceInputs as c, EvalCheck as cn, NormalizedQuestionsPrompt as ct, ResourceInput as d, EvalCounts as dn, PendingConflicts as dt, VariationId$1 as en, InputLayout as et, ResourceInputs as f, EvalDefinition as fn, PromptChangeEvent as ft, isResource as g, EvalResults as gn, PromptRef$1 as gt, StaticResourceDefinition as h, EvalProviderInfo as hn, PromptProviderInfo as ht, CheckRun as i, EvalArm as in, NormalizedParameter as it, DatasetSummary as j, SpanKind as jt, DatasetRowUpdate as k, SpanContentPart as kt, Resource as l, EvalCheckOutcome as ln, NormalizedToolCall as lt, ResourceOutputDefinition as m, EvalInputs as mn, PromptInputSources as mt, CheckDefinition as n, VersionId$1 as nn, NormalizedChatPrompt as nt, isCheck as o, EvalChangeEvent as on, NormalizedPromptBase as ot, ResourceInstance as p, EvalDefinitionPatch as pn, PromptID$1 as pt, CheckInfo as q, TraceWithSpans$1 as qt, CheckOutcome as r, VersionInfo as rn, NormalizedMessage as rt, DynamicResourceDefinition as s, EvalChangeType as sn, NormalizedPromptUpdates as st, Check as t, VariationInfo$1 as tn, LLMSpanDetails as tt, ResourceDefinition as u, EvalCheckResult as un, ParsedPrompt as ut, resource as v, EvalRowStatus as vn, PropDefinition$1 as vt, DatasetInstanceShape as w, EvalTraceRun as wn, ResourceInstanceInput as wt, DatasetChangeType as x, EvalRunStatus as xn, QuestionsPromptUpdates as xt, Dataset as y, EvalRun as yn, PropType as yt, AnnotationChanges$1 as z, Trace$1 as zt };