raindrop-ai 1.1.0 → 1.1.1
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/README.md +1 -1
- package/dist/{chunk-MIF3DD2N.mjs → chunk-7HPYMPNJ.mjs} +1 -1
- package/dist/{chunk-ZY5VBIW4.mjs → chunk-HEJQOFNN.mjs} +423 -277
- package/dist/evals/cli.js +469 -323
- package/dist/evals/cli.mjs +2 -2
- package/dist/{index-Dif41B_Z.d.mts → index-mM4Ls3Kv.d.mts} +951 -939
- package/dist/{index-Dif41B_Z.d.ts → index-mM4Ls3Kv.d.ts} +951 -939
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +492 -346
- package/dist/index.mjs +2 -2
- package/dist/tracing/index.d.mts +1 -1
- package/dist/tracing/index.d.ts +1 -1
- package/dist/tracing/index.js +1 -1
- package/dist/tracing/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -1445,8 +1445,8 @@ declare const RichInteractionEntrySchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObje
|
|
|
1445
1445
|
name: z$1.ZodString;
|
|
1446
1446
|
status: z$1.ZodEnum<{
|
|
1447
1447
|
error: "error";
|
|
1448
|
-
pending: "pending";
|
|
1449
1448
|
unknown: "unknown";
|
|
1449
|
+
pending: "pending";
|
|
1450
1450
|
completed: "completed";
|
|
1451
1451
|
}>;
|
|
1452
1452
|
durationMs: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -1930,8 +1930,8 @@ declare const AIAnalyticsEventSchema: z$1.ZodObject<{
|
|
|
1930
1930
|
name: z$1.ZodString;
|
|
1931
1931
|
status: z$1.ZodEnum<{
|
|
1932
1932
|
error: "error";
|
|
1933
|
-
pending: "pending";
|
|
1934
1933
|
unknown: "unknown";
|
|
1934
|
+
pending: "pending";
|
|
1935
1935
|
completed: "completed";
|
|
1936
1936
|
}>;
|
|
1937
1937
|
durationMs: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -2115,9 +2115,9 @@ declare const AIAnalyticsEventSchema: z$1.ZodObject<{
|
|
|
2115
2115
|
type AIAnalyticsEvent = z$1.infer<typeof AIAnalyticsEventSchema>;
|
|
2116
2116
|
declare const TraceSchema: z$1.ZodObject<{
|
|
2117
2117
|
origin: z$1.ZodEnum<{
|
|
2118
|
+
dataset: "dataset";
|
|
2118
2119
|
replay: "replay";
|
|
2119
2120
|
production: "production";
|
|
2120
|
-
dataset: "dataset";
|
|
2121
2121
|
simulation: "simulation";
|
|
2122
2122
|
}>;
|
|
2123
2123
|
event: z$1.ZodObject<{
|
|
@@ -2464,8 +2464,8 @@ declare const TraceSchema: z$1.ZodObject<{
|
|
|
2464
2464
|
name: z$1.ZodString;
|
|
2465
2465
|
status: z$1.ZodEnum<{
|
|
2466
2466
|
error: "error";
|
|
2467
|
-
pending: "pending";
|
|
2468
2467
|
unknown: "unknown";
|
|
2468
|
+
pending: "pending";
|
|
2469
2469
|
completed: "completed";
|
|
2470
2470
|
}>;
|
|
2471
2471
|
durationMs: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -2875,8 +2875,8 @@ declare const TraceSchema: z$1.ZodObject<{
|
|
|
2875
2875
|
name: z$1.ZodString;
|
|
2876
2876
|
status: z$1.ZodEnum<{
|
|
2877
2877
|
error: "error";
|
|
2878
|
-
pending: "pending";
|
|
2879
2878
|
unknown: "unknown";
|
|
2879
|
+
pending: "pending";
|
|
2880
2880
|
completed: "completed";
|
|
2881
2881
|
}>;
|
|
2882
2882
|
durationMs: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -3033,9 +3033,9 @@ type Trace = z$1.infer<typeof TraceSchema>;
|
|
|
3033
3033
|
declare const EvalContextSchema: z$1.ZodObject<{
|
|
3034
3034
|
trace: z$1.ZodObject<{
|
|
3035
3035
|
origin: z$1.ZodEnum<{
|
|
3036
|
+
dataset: "dataset";
|
|
3036
3037
|
replay: "replay";
|
|
3037
3038
|
production: "production";
|
|
3038
|
-
dataset: "dataset";
|
|
3039
3039
|
simulation: "simulation";
|
|
3040
3040
|
}>;
|
|
3041
3041
|
event: z$1.ZodObject<{
|
|
@@ -3382,8 +3382,8 @@ declare const EvalContextSchema: z$1.ZodObject<{
|
|
|
3382
3382
|
name: z$1.ZodString;
|
|
3383
3383
|
status: z$1.ZodEnum<{
|
|
3384
3384
|
error: "error";
|
|
3385
|
-
pending: "pending";
|
|
3386
3385
|
unknown: "unknown";
|
|
3386
|
+
pending: "pending";
|
|
3387
3387
|
completed: "completed";
|
|
3388
3388
|
}>;
|
|
3389
3389
|
durationMs: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -3793,8 +3793,8 @@ declare const EvalContextSchema: z$1.ZodObject<{
|
|
|
3793
3793
|
name: z$1.ZodString;
|
|
3794
3794
|
status: z$1.ZodEnum<{
|
|
3795
3795
|
error: "error";
|
|
3796
|
-
pending: "pending";
|
|
3797
3796
|
unknown: "unknown";
|
|
3797
|
+
pending: "pending";
|
|
3798
3798
|
completed: "completed";
|
|
3799
3799
|
}>;
|
|
3800
3800
|
durationMs: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -3950,9 +3950,9 @@ declare const EvalContextSchema: z$1.ZodObject<{
|
|
|
3950
3950
|
expectedOutput: z$1.ZodOptional<z$1.ZodType<JsonValue, JsonValue, z$1.core.$ZodTypeInternals<JsonValue, JsonValue>>>;
|
|
3951
3951
|
referenceTrace: z$1.ZodOptional<z$1.ZodObject<{
|
|
3952
3952
|
origin: z$1.ZodEnum<{
|
|
3953
|
+
dataset: "dataset";
|
|
3953
3954
|
replay: "replay";
|
|
3954
3955
|
production: "production";
|
|
3955
|
-
dataset: "dataset";
|
|
3956
3956
|
simulation: "simulation";
|
|
3957
3957
|
}>;
|
|
3958
3958
|
event: z$1.ZodObject<{
|
|
@@ -4299,8 +4299,8 @@ declare const EvalContextSchema: z$1.ZodObject<{
|
|
|
4299
4299
|
name: z$1.ZodString;
|
|
4300
4300
|
status: z$1.ZodEnum<{
|
|
4301
4301
|
error: "error";
|
|
4302
|
-
pending: "pending";
|
|
4303
4302
|
unknown: "unknown";
|
|
4303
|
+
pending: "pending";
|
|
4304
4304
|
completed: "completed";
|
|
4305
4305
|
}>;
|
|
4306
4306
|
durationMs: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -4710,8 +4710,8 @@ declare const EvalContextSchema: z$1.ZodObject<{
|
|
|
4710
4710
|
name: z$1.ZodString;
|
|
4711
4711
|
status: z$1.ZodEnum<{
|
|
4712
4712
|
error: "error";
|
|
4713
|
-
pending: "pending";
|
|
4714
4713
|
unknown: "unknown";
|
|
4714
|
+
pending: "pending";
|
|
4715
4715
|
completed: "completed";
|
|
4716
4716
|
}>;
|
|
4717
4717
|
durationMs: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -4897,18 +4897,12 @@ declare function formatTrace(trace: Trace): string;
|
|
|
4897
4897
|
declare function traceOutput(trace: Trace): string | null;
|
|
4898
4898
|
declare function traceToolCalls(trace: Trace, name?: string): TraceToolCall[];
|
|
4899
4899
|
|
|
4900
|
-
declare const
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
id: z.ZodString;
|
|
4907
|
-
name: z.ZodString;
|
|
4908
|
-
input: z.ZodNullable<z.ZodString>;
|
|
4909
|
-
output: z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>;
|
|
4910
|
-
properties: z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, string>, Record<string, string>>, z.ZodTransform<Record<string, string>, Record<string, string>>>, z.ZodObject<{}, z.core.$catchall<z.ZodString>>>;
|
|
4911
|
-
referenceTrace: z.ZodOptional<z.ZodObject<{
|
|
4900
|
+
declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
4901
|
+
caseId: z.ZodString;
|
|
4902
|
+
output: z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>;
|
|
4903
|
+
rowMetadata: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, string>, Record<string, string>>, z.ZodTransform<Record<string, string>, Record<string, string>>>, z.ZodObject<{}, z.core.$catchall<z.ZodString>>>>;
|
|
4904
|
+
candidate: z.ZodObject<{
|
|
4905
|
+
snapshot: z.ZodObject<{
|
|
4912
4906
|
event: z.ZodObject<{
|
|
4913
4907
|
id: z.ZodString;
|
|
4914
4908
|
_raindropDatabaseId: z.ZodString;
|
|
@@ -5253,8 +5247,8 @@ declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
|
5253
5247
|
name: z.ZodString;
|
|
5254
5248
|
status: z.ZodEnum<{
|
|
5255
5249
|
error: "error";
|
|
5256
|
-
pending: "pending";
|
|
5257
5250
|
unknown: "unknown";
|
|
5251
|
+
pending: "pending";
|
|
5258
5252
|
completed: "completed";
|
|
5259
5253
|
}>;
|
|
5260
5254
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
@@ -5472,85 +5466,8 @@ declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
|
5472
5466
|
duration_ns: z.ZodString;
|
|
5473
5467
|
_inserted_at: z.ZodString;
|
|
5474
5468
|
}, z.core.$strict>>;
|
|
5475
|
-
}, z.core.$strict
|
|
5476
|
-
|
|
5477
|
-
sourceEventId: z.ZodString;
|
|
5478
|
-
sourceEventTimestamp: z.ZodOptional<z.ZodString>;
|
|
5479
|
-
id: z.ZodString;
|
|
5480
|
-
}, z.core.$strict>>;
|
|
5481
|
-
expectation: z.ZodOptional<z.ZodObject<{
|
|
5482
|
-
description: z.ZodString;
|
|
5483
|
-
basis: z.ZodOptional<z.ZodEnum<{
|
|
5484
|
-
code: "code";
|
|
5485
|
-
human: "human";
|
|
5486
|
-
policy: "policy";
|
|
5487
|
-
inferred: "inferred";
|
|
5488
|
-
}>>;
|
|
5489
|
-
reference: z.ZodOptional<z.ZodString>;
|
|
5490
|
-
}, z.core.$strict>>;
|
|
5491
|
-
expectedVerdict: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5492
|
-
pass: z.ZodBoolean;
|
|
5493
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
5494
|
-
score: z.ZodNumber;
|
|
5495
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
5496
|
-
value: z.ZodNumber;
|
|
5497
|
-
}, z.core.$strict>]>>;
|
|
5498
|
-
}, z.core.$strict>>;
|
|
5499
|
-
}, z.core.$strict>;
|
|
5500
|
-
type PublishEvalDatasetVersionInput = z.infer<typeof PublishEvalDatasetVersionInputSchema>;
|
|
5501
|
-
declare const EvalDatasetManifestSchema: z.ZodObject<{
|
|
5502
|
-
dataset: z.ZodObject<{
|
|
5503
|
-
id: z.ZodString;
|
|
5504
|
-
slug: z.ZodString;
|
|
5505
|
-
name: z.ZodString;
|
|
5506
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
5507
|
-
}, z.core.$strip>;
|
|
5508
|
-
version: z.ZodObject<{
|
|
5509
|
-
id: z.ZodString;
|
|
5510
|
-
fingerprint: z.ZodString;
|
|
5511
|
-
datasetId: z.ZodString;
|
|
5512
|
-
parentVersionId: z.ZodNullable<z.ZodString>;
|
|
5513
|
-
createdAt: z.ZodString;
|
|
5514
|
-
}, z.core.$strip>;
|
|
5515
|
-
cases: z.ZodArray<z.ZodObject<{
|
|
5516
|
-
properties: z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, string>, Record<string, string>>, z.ZodTransform<Record<string, string>, Record<string, string>>>, z.ZodObject<{}, z.core.$catchall<z.ZodString>>>;
|
|
5517
|
-
output: z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>;
|
|
5518
|
-
input: z.ZodNullable<z.ZodString>;
|
|
5519
|
-
id: z.ZodString;
|
|
5520
|
-
name: z.ZodString;
|
|
5521
|
-
referenceTraceSha256: z.ZodOptional<z.ZodString>;
|
|
5522
|
-
referenceCapture: z.ZodOptional<z.ZodObject<{
|
|
5523
|
-
sourceEventId: z.ZodString;
|
|
5524
|
-
sourceEventTimestamp: z.ZodOptional<z.ZodString>;
|
|
5525
|
-
id: z.ZodString;
|
|
5526
|
-
}, z.core.$strict>>;
|
|
5527
|
-
expectation: z.ZodOptional<z.ZodObject<{
|
|
5528
|
-
description: z.ZodString;
|
|
5529
|
-
basis: z.ZodOptional<z.ZodEnum<{
|
|
5530
|
-
code: "code";
|
|
5531
|
-
human: "human";
|
|
5532
|
-
policy: "policy";
|
|
5533
|
-
inferred: "inferred";
|
|
5534
|
-
}>>;
|
|
5535
|
-
reference: z.ZodOptional<z.ZodString>;
|
|
5536
|
-
}, z.core.$strict>>;
|
|
5537
|
-
expectedVerdict: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5538
|
-
pass: z.ZodBoolean;
|
|
5539
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
5540
|
-
score: z.ZodNumber;
|
|
5541
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
5542
|
-
value: z.ZodNumber;
|
|
5543
|
-
}, z.core.$strict>]>>;
|
|
5544
|
-
}, z.core.$strict>>;
|
|
5545
|
-
}, z.core.$strip>;
|
|
5546
|
-
type EvalDatasetManifest$1 = z.infer<typeof EvalDatasetManifestSchema>;
|
|
5547
|
-
|
|
5548
|
-
declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
5549
|
-
caseId: z.ZodString;
|
|
5550
|
-
output: z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>;
|
|
5551
|
-
rowMetadata: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, string>, Record<string, string>>, z.ZodTransform<Record<string, string>, Record<string, string>>>, z.ZodObject<{}, z.core.$catchall<z.ZodString>>>>;
|
|
5552
|
-
candidate: z.ZodObject<{
|
|
5553
|
-
snapshot: z.ZodObject<{
|
|
5469
|
+
}, z.core.$strict>;
|
|
5470
|
+
trace: z.ZodObject<{
|
|
5554
5471
|
event: z.ZodObject<{
|
|
5555
5472
|
id: z.ZodString;
|
|
5556
5473
|
_raindropDatabaseId: z.ZodString;
|
|
@@ -5895,8 +5812,8 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
5895
5812
|
name: z.ZodString;
|
|
5896
5813
|
status: z.ZodEnum<{
|
|
5897
5814
|
error: "error";
|
|
5898
|
-
pending: "pending";
|
|
5899
5815
|
unknown: "unknown";
|
|
5816
|
+
pending: "pending";
|
|
5900
5817
|
completed: "completed";
|
|
5901
5818
|
}>;
|
|
5902
5819
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
@@ -6077,572 +5994,215 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
6077
5994
|
userPlanChangeTs: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6078
5995
|
isPending: z.ZodOptional<z.ZodBoolean>;
|
|
6079
5996
|
}, z.core.$strip>;
|
|
6080
|
-
|
|
6081
|
-
convo_id: z.ZodString;
|
|
6082
|
-
event_id: z.ZodString;
|
|
6083
|
-
custom_event_id: z.ZodString;
|
|
6084
|
-
trace_id: z.ZodString;
|
|
6085
|
-
span_id: z.ZodString;
|
|
6086
|
-
parent_span_id: z.ZodString;
|
|
6087
|
-
span_type: z.ZodEnum<{
|
|
6088
|
-
INTERNAL: "INTERNAL";
|
|
6089
|
-
LLM_GENERATION: "LLM_GENERATION";
|
|
6090
|
-
LLM_GENERATION_STREAM: "LLM_GENERATION_STREAM";
|
|
6091
|
-
TOOL_CALL: "TOOL_CALL";
|
|
6092
|
-
}>;
|
|
6093
|
-
span_name: z.ZodString;
|
|
6094
|
-
status: z.ZodEnum<{
|
|
6095
|
-
UNSET: "UNSET";
|
|
6096
|
-
OK: "OK";
|
|
6097
|
-
ERROR: "ERROR";
|
|
6098
|
-
}>;
|
|
6099
|
-
input_payload: z.ZodString;
|
|
6100
|
-
output_payload: z.ZodString;
|
|
6101
|
-
input_tokens: z.ZodNumber;
|
|
6102
|
-
output_tokens: z.ZodNumber;
|
|
6103
|
-
model: z.ZodString;
|
|
6104
|
-
provider: z.ZodString;
|
|
6105
|
-
attributes_string: z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, string>, Record<string, string>>, z.ZodTransform<Record<string, string>, Record<string, string>>>, z.ZodObject<{}, z.core.$catchall<z.ZodString>>>;
|
|
6106
|
-
attributes_num: z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, number>, Record<string, number>>, z.ZodTransform<Record<string, number>, Record<string, number>>>, z.ZodObject<{}, z.core.$catchall<z.ZodNumber>>>;
|
|
6107
|
-
org_public_id: z.ZodString;
|
|
6108
|
-
project_id: z.ZodString;
|
|
6109
|
-
user_id: z.ZodString;
|
|
6110
|
-
start_unix_ns: z.ZodString;
|
|
6111
|
-
timestamp: z.ZodString;
|
|
6112
|
-
end_unix_ns: z.ZodString;
|
|
6113
|
-
end_timestamp: z.ZodString;
|
|
6114
|
-
duration_ns: z.ZodString;
|
|
6115
|
-
_inserted_at: z.ZodString;
|
|
6116
|
-
}, z.core.$strict>>;
|
|
6117
|
-
}, z.core.$strict>;
|
|
6118
|
-
trace: z.ZodObject<{
|
|
6119
|
-
event: z.ZodObject<{
|
|
5997
|
+
entries: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6120
5998
|
id: z.ZodString;
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
5999
|
+
order: z.ZodNumber;
|
|
6000
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6001
|
+
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6002
|
+
source: z.ZodObject<{
|
|
6003
|
+
adapter: z.ZodString;
|
|
6004
|
+
confidence: z.ZodEnum<{
|
|
6005
|
+
high: "high";
|
|
6006
|
+
medium: "medium";
|
|
6007
|
+
low: "low";
|
|
6008
|
+
}>;
|
|
6009
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
6010
|
+
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6011
|
+
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6132
6012
|
}, z.core.$strip>;
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6013
|
+
type: z.ZodLiteral<"system">;
|
|
6014
|
+
role: z.ZodEnum<{
|
|
6015
|
+
system: "system";
|
|
6016
|
+
developer: "developer";
|
|
6017
|
+
}>;
|
|
6018
|
+
content: z.ZodObject<{
|
|
6019
|
+
type: z.ZodLiteral<"text">;
|
|
6020
|
+
text: z.ZodString;
|
|
6021
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6022
|
+
type: z.ZodEnum<{
|
|
6023
|
+
event: "event";
|
|
6024
|
+
file: "file";
|
|
6025
|
+
url: "url";
|
|
6026
|
+
user: "user";
|
|
6027
|
+
signal: "signal";
|
|
6028
|
+
}>;
|
|
6029
|
+
text: z.ZodOptional<z.ZodString>;
|
|
6030
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6031
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6032
|
+
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
6033
|
+
endIndex: z.ZodOptional<z.ZodNumber>;
|
|
6034
|
+
}, z.core.$strip>>>;
|
|
6035
|
+
}, z.core.$strip>;
|
|
6036
|
+
collapsed: z.ZodLiteral<true>;
|
|
6037
|
+
tokenEstimate: z.ZodNullable<z.ZodNumber>;
|
|
6038
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6039
|
+
id: z.ZodString;
|
|
6040
|
+
order: z.ZodNumber;
|
|
6041
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6042
|
+
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6043
|
+
source: z.ZodObject<{
|
|
6044
|
+
adapter: z.ZodString;
|
|
6045
|
+
confidence: z.ZodEnum<{
|
|
6046
|
+
high: "high";
|
|
6047
|
+
medium: "medium";
|
|
6048
|
+
low: "low";
|
|
6151
6049
|
}>;
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6050
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
6051
|
+
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6052
|
+
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6053
|
+
}, z.core.$strip>;
|
|
6054
|
+
type: z.ZodLiteral<"user_message">;
|
|
6055
|
+
role: z.ZodLiteral<"user">;
|
|
6056
|
+
content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
6057
|
+
type: z.ZodLiteral<"text">;
|
|
6058
|
+
text: z.ZodString;
|
|
6059
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6060
|
+
type: z.ZodEnum<{
|
|
6061
|
+
event: "event";
|
|
6062
|
+
file: "file";
|
|
6063
|
+
url: "url";
|
|
6064
|
+
user: "user";
|
|
6065
|
+
signal: "signal";
|
|
6066
|
+
}>;
|
|
6067
|
+
text: z.ZodOptional<z.ZodString>;
|
|
6068
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6069
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6070
|
+
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
6071
|
+
endIndex: z.ZodOptional<z.ZodNumber>;
|
|
6072
|
+
}, z.core.$strip>>>;
|
|
6073
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6074
|
+
type: z.ZodLiteral<"json">;
|
|
6075
|
+
value: z.ZodUnknown;
|
|
6076
|
+
raw: z.ZodNullable<z.ZodString>;
|
|
6077
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6078
|
+
type: z.ZodEnum<{
|
|
6177
6079
|
image: "image";
|
|
6178
|
-
|
|
6179
|
-
}>>;
|
|
6180
|
-
value: z.ZodString;
|
|
6181
|
-
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
6182
|
-
}, z.core.$strip>]>>>, z.ZodTransform<{
|
|
6183
|
-
attachment_id: string;
|
|
6184
|
-
attachment_type: "text" | "image" | "iframe";
|
|
6185
|
-
value: string;
|
|
6186
|
-
name: string;
|
|
6187
|
-
}[], (string | {
|
|
6188
|
-
attachment_id: string;
|
|
6189
|
-
attachment_type: "text" | "image" | "iframe";
|
|
6190
|
-
value: string;
|
|
6191
|
-
name: string;
|
|
6192
|
-
})[] | undefined>>;
|
|
6193
|
-
signals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6194
|
-
id: z.ZodOptional<z.ZodString>;
|
|
6195
|
-
name: z.ZodString;
|
|
6196
|
-
timestamp: z.ZodString;
|
|
6197
|
-
attachmentId: z.ZodOptional<z.ZodString>;
|
|
6198
|
-
properties: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown>>>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>]>;
|
|
6199
|
-
signalType: z.ZodOptional<z.ZodString>;
|
|
6200
|
-
score: z.ZodOptional<z.ZodNumber>;
|
|
6201
|
-
}, z.core.$strip>>>;
|
|
6202
|
-
errorSpans: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6203
|
-
span_id: z.ZodOptional<z.ZodString>;
|
|
6204
|
-
started_at: z.ZodOptional<z.ZodString>;
|
|
6205
|
-
status: z.ZodOptional<z.ZodString>;
|
|
6206
|
-
duration_ms: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
6207
|
-
span_type: z.ZodOptional<z.ZodString>;
|
|
6208
|
-
span_name: z.ZodOptional<z.ZodString>;
|
|
6209
|
-
output_payload: z.ZodOptional<z.ZodAny>;
|
|
6210
|
-
}, z.core.$strip>>>;
|
|
6211
|
-
regexSignals: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6212
|
-
toolCalls: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
6213
|
-
toolCallNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6214
|
-
richInteraction: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6215
|
-
schemaVersion: z.ZodLiteral<"2026-05-20">;
|
|
6216
|
-
eventId: z.ZodString;
|
|
6217
|
-
traceIds: z.ZodArray<z.ZodString>;
|
|
6218
|
-
rootSpanIds: z.ZodArray<z.ZodString>;
|
|
6219
|
-
status: z.ZodEnum<{
|
|
6220
|
-
complete: "complete";
|
|
6221
|
-
partial: "partial";
|
|
6222
|
-
missing_spans: "missing_spans";
|
|
6080
|
+
file: "file";
|
|
6223
6081
|
}>;
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6082
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
6083
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6084
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
6085
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6086
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6087
|
+
type: z.ZodLiteral<"reference">;
|
|
6088
|
+
label: z.ZodString;
|
|
6089
|
+
refType: z.ZodEnum<{
|
|
6090
|
+
external: "external";
|
|
6091
|
+
stored_tool_result: "stored_tool_result";
|
|
6092
|
+
}>;
|
|
6093
|
+
href: z.ZodOptional<z.ZodString>;
|
|
6094
|
+
metadata: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown>>>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
6095
|
+
}, z.core.$strip>]>>;
|
|
6096
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6097
|
+
id: z.ZodString;
|
|
6098
|
+
order: z.ZodNumber;
|
|
6099
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6100
|
+
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6101
|
+
source: z.ZodObject<{
|
|
6102
|
+
adapter: z.ZodString;
|
|
6103
|
+
confidence: z.ZodEnum<{
|
|
6104
|
+
high: "high";
|
|
6105
|
+
medium: "medium";
|
|
6106
|
+
low: "low";
|
|
6107
|
+
}>;
|
|
6108
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
6109
|
+
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6110
|
+
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6111
|
+
}, z.core.$strip>;
|
|
6112
|
+
type: z.ZodLiteral<"assistant_text">;
|
|
6113
|
+
role: z.ZodLiteral<"assistant">;
|
|
6114
|
+
content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
6115
|
+
type: z.ZodLiteral<"text">;
|
|
6116
|
+
text: z.ZodString;
|
|
6117
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6118
|
+
type: z.ZodEnum<{
|
|
6119
|
+
event: "event";
|
|
6120
|
+
file: "file";
|
|
6121
|
+
url: "url";
|
|
6122
|
+
user: "user";
|
|
6123
|
+
signal: "signal";
|
|
6254
6124
|
}>;
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
image: "image";
|
|
6317
|
-
file: "file";
|
|
6318
|
-
}>;
|
|
6319
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
6320
|
-
url: z.ZodOptional<z.ZodString>;
|
|
6321
|
-
fileId: z.ZodOptional<z.ZodString>;
|
|
6322
|
-
name: z.ZodOptional<z.ZodString>;
|
|
6323
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6324
|
-
type: z.ZodLiteral<"reference">;
|
|
6325
|
-
label: z.ZodString;
|
|
6326
|
-
refType: z.ZodEnum<{
|
|
6327
|
-
external: "external";
|
|
6328
|
-
stored_tool_result: "stored_tool_result";
|
|
6329
|
-
}>;
|
|
6330
|
-
href: z.ZodOptional<z.ZodString>;
|
|
6331
|
-
metadata: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown>>>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
6332
|
-
}, z.core.$strip>]>>;
|
|
6333
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6334
|
-
id: z.ZodString;
|
|
6335
|
-
order: z.ZodNumber;
|
|
6336
|
-
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6337
|
-
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6338
|
-
source: z.ZodObject<{
|
|
6339
|
-
adapter: z.ZodString;
|
|
6340
|
-
confidence: z.ZodEnum<{
|
|
6341
|
-
high: "high";
|
|
6342
|
-
medium: "medium";
|
|
6343
|
-
low: "low";
|
|
6344
|
-
}>;
|
|
6345
|
-
spanIds: z.ZodArray<z.ZodString>;
|
|
6346
|
-
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6347
|
-
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6348
|
-
}, z.core.$strip>;
|
|
6349
|
-
type: z.ZodLiteral<"assistant_text">;
|
|
6350
|
-
role: z.ZodLiteral<"assistant">;
|
|
6351
|
-
content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
6352
|
-
type: z.ZodLiteral<"text">;
|
|
6353
|
-
text: z.ZodString;
|
|
6354
|
-
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6355
|
-
type: z.ZodEnum<{
|
|
6356
|
-
event: "event";
|
|
6357
|
-
file: "file";
|
|
6358
|
-
url: "url";
|
|
6359
|
-
user: "user";
|
|
6360
|
-
signal: "signal";
|
|
6361
|
-
}>;
|
|
6362
|
-
text: z.ZodOptional<z.ZodString>;
|
|
6363
|
-
id: z.ZodOptional<z.ZodString>;
|
|
6364
|
-
url: z.ZodOptional<z.ZodString>;
|
|
6365
|
-
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
6366
|
-
endIndex: z.ZodOptional<z.ZodNumber>;
|
|
6367
|
-
}, z.core.$strip>>>;
|
|
6368
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6369
|
-
type: z.ZodLiteral<"json">;
|
|
6370
|
-
value: z.ZodUnknown;
|
|
6371
|
-
raw: z.ZodNullable<z.ZodString>;
|
|
6372
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6373
|
-
type: z.ZodEnum<{
|
|
6374
|
-
image: "image";
|
|
6375
|
-
file: "file";
|
|
6376
|
-
}>;
|
|
6377
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
6378
|
-
url: z.ZodOptional<z.ZodString>;
|
|
6379
|
-
fileId: z.ZodOptional<z.ZodString>;
|
|
6380
|
-
name: z.ZodOptional<z.ZodString>;
|
|
6381
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6382
|
-
type: z.ZodLiteral<"reference">;
|
|
6383
|
-
label: z.ZodString;
|
|
6384
|
-
refType: z.ZodEnum<{
|
|
6385
|
-
external: "external";
|
|
6386
|
-
stored_tool_result: "stored_tool_result";
|
|
6387
|
-
}>;
|
|
6388
|
-
href: z.ZodOptional<z.ZodString>;
|
|
6389
|
-
metadata: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown>>>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
6390
|
-
}, z.core.$strip>]>>;
|
|
6391
|
-
format: z.ZodEnum<{
|
|
6392
|
-
text: "text";
|
|
6393
|
-
markdown: "markdown";
|
|
6394
|
-
}>;
|
|
6395
|
-
final: z.ZodBoolean;
|
|
6396
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6397
|
-
id: z.ZodString;
|
|
6398
|
-
order: z.ZodNumber;
|
|
6399
|
-
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6400
|
-
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6401
|
-
source: z.ZodObject<{
|
|
6402
|
-
adapter: z.ZodString;
|
|
6403
|
-
confidence: z.ZodEnum<{
|
|
6404
|
-
high: "high";
|
|
6405
|
-
medium: "medium";
|
|
6406
|
-
low: "low";
|
|
6407
|
-
}>;
|
|
6408
|
-
spanIds: z.ZodArray<z.ZodString>;
|
|
6409
|
-
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6410
|
-
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6411
|
-
}, z.core.$strip>;
|
|
6412
|
-
type: z.ZodLiteral<"reasoning">;
|
|
6413
|
-
content: z.ZodObject<{
|
|
6414
|
-
type: z.ZodLiteral<"text">;
|
|
6415
|
-
text: z.ZodString;
|
|
6416
|
-
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6417
|
-
type: z.ZodEnum<{
|
|
6418
|
-
event: "event";
|
|
6419
|
-
file: "file";
|
|
6420
|
-
url: "url";
|
|
6421
|
-
user: "user";
|
|
6422
|
-
signal: "signal";
|
|
6423
|
-
}>;
|
|
6424
|
-
text: z.ZodOptional<z.ZodString>;
|
|
6425
|
-
id: z.ZodOptional<z.ZodString>;
|
|
6426
|
-
url: z.ZodOptional<z.ZodString>;
|
|
6427
|
-
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
6428
|
-
endIndex: z.ZodOptional<z.ZodNumber>;
|
|
6429
|
-
}, z.core.$strip>>>;
|
|
6430
|
-
}, z.core.$strip>;
|
|
6431
|
-
format: z.ZodLiteral<"text">;
|
|
6432
|
-
visibility: z.ZodEnum<{
|
|
6433
|
-
collapsed: "collapsed";
|
|
6434
|
-
expanded: "expanded";
|
|
6435
|
-
}>;
|
|
6436
|
-
capturedAs: z.ZodEnum<{
|
|
6437
|
-
unknown: "unknown";
|
|
6438
|
-
provider_reasoning: "provider_reasoning";
|
|
6439
|
-
reasoning_summary: "reasoning_summary";
|
|
6440
|
-
thinking: "thinking";
|
|
6441
|
-
}>;
|
|
6442
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6443
|
-
id: z.ZodString;
|
|
6444
|
-
order: z.ZodNumber;
|
|
6445
|
-
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6446
|
-
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6447
|
-
source: z.ZodObject<{
|
|
6448
|
-
adapter: z.ZodString;
|
|
6449
|
-
confidence: z.ZodEnum<{
|
|
6450
|
-
high: "high";
|
|
6451
|
-
medium: "medium";
|
|
6452
|
-
low: "low";
|
|
6453
|
-
}>;
|
|
6454
|
-
spanIds: z.ZodArray<z.ZodString>;
|
|
6455
|
-
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6456
|
-
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6457
|
-
}, z.core.$strip>;
|
|
6458
|
-
type: z.ZodLiteral<"tool_call">;
|
|
6459
|
-
callId: z.ZodNullable<z.ZodString>;
|
|
6460
|
-
name: z.ZodString;
|
|
6461
|
-
status: z.ZodEnum<{
|
|
6462
|
-
error: "error";
|
|
6463
|
-
pending: "pending";
|
|
6464
|
-
unknown: "unknown";
|
|
6465
|
-
completed: "completed";
|
|
6466
|
-
}>;
|
|
6467
|
-
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
6468
|
-
input: z.ZodObject<{
|
|
6469
|
-
kind: z.ZodEnum<{
|
|
6470
|
-
text: "text";
|
|
6471
|
-
json: "json";
|
|
6472
|
-
reference: "reference";
|
|
6473
|
-
empty: "empty";
|
|
6474
|
-
}>;
|
|
6475
|
-
raw: z.ZodNullable<z.ZodString>;
|
|
6476
|
-
truncated: z.ZodBoolean;
|
|
6477
|
-
sizeChars: z.ZodNullable<z.ZodNumber>;
|
|
6478
|
-
}, z.core.$strip>;
|
|
6479
|
-
output: z.ZodNullable<z.ZodObject<{
|
|
6480
|
-
kind: z.ZodEnum<{
|
|
6481
|
-
text: "text";
|
|
6482
|
-
json: "json";
|
|
6483
|
-
reference: "reference";
|
|
6484
|
-
empty: "empty";
|
|
6485
|
-
}>;
|
|
6486
|
-
raw: z.ZodNullable<z.ZodString>;
|
|
6487
|
-
truncated: z.ZodBoolean;
|
|
6488
|
-
sizeChars: z.ZodNullable<z.ZodNumber>;
|
|
6489
|
-
}, z.core.$strip>>;
|
|
6490
|
-
error: z.ZodNullable<z.ZodObject<{
|
|
6491
|
-
kind: z.ZodEnum<{
|
|
6492
|
-
text: "text";
|
|
6493
|
-
json: "json";
|
|
6494
|
-
reference: "reference";
|
|
6495
|
-
empty: "empty";
|
|
6496
|
-
}>;
|
|
6497
|
-
raw: z.ZodNullable<z.ZodString>;
|
|
6498
|
-
truncated: z.ZodBoolean;
|
|
6499
|
-
sizeChars: z.ZodNullable<z.ZodNumber>;
|
|
6500
|
-
}, z.core.$strip>>;
|
|
6501
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6502
|
-
id: z.ZodString;
|
|
6503
|
-
order: z.ZodNumber;
|
|
6504
|
-
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6505
|
-
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6506
|
-
source: z.ZodObject<{
|
|
6507
|
-
adapter: z.ZodString;
|
|
6508
|
-
confidence: z.ZodEnum<{
|
|
6509
|
-
high: "high";
|
|
6510
|
-
medium: "medium";
|
|
6511
|
-
low: "low";
|
|
6512
|
-
}>;
|
|
6513
|
-
spanIds: z.ZodArray<z.ZodString>;
|
|
6514
|
-
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6515
|
-
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6516
|
-
}, z.core.$strip>;
|
|
6517
|
-
type: z.ZodLiteral<"sub_agent">;
|
|
6518
|
-
rootSpanId: z.ZodString;
|
|
6519
|
-
name: z.ZodString;
|
|
6520
|
-
spanIds: z.ZodArray<z.ZodString>;
|
|
6521
|
-
toolCount: z.ZodNumber;
|
|
6522
|
-
llmCount: z.ZodNumber;
|
|
6523
|
-
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
6524
|
-
inputPreview: z.ZodNullable<z.ZodString>;
|
|
6525
|
-
outputPreview: z.ZodNullable<z.ZodString>;
|
|
6526
|
-
status: z.ZodEnum<{
|
|
6527
|
-
error: "error";
|
|
6528
|
-
unknown: "unknown";
|
|
6529
|
-
ok: "ok";
|
|
6125
|
+
text: z.ZodOptional<z.ZodString>;
|
|
6126
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6127
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6128
|
+
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
6129
|
+
endIndex: z.ZodOptional<z.ZodNumber>;
|
|
6130
|
+
}, z.core.$strip>>>;
|
|
6131
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6132
|
+
type: z.ZodLiteral<"json">;
|
|
6133
|
+
value: z.ZodUnknown;
|
|
6134
|
+
raw: z.ZodNullable<z.ZodString>;
|
|
6135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6136
|
+
type: z.ZodEnum<{
|
|
6137
|
+
image: "image";
|
|
6138
|
+
file: "file";
|
|
6139
|
+
}>;
|
|
6140
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
6141
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6142
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
6143
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6144
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6145
|
+
type: z.ZodLiteral<"reference">;
|
|
6146
|
+
label: z.ZodString;
|
|
6147
|
+
refType: z.ZodEnum<{
|
|
6148
|
+
external: "external";
|
|
6149
|
+
stored_tool_result: "stored_tool_result";
|
|
6150
|
+
}>;
|
|
6151
|
+
href: z.ZodOptional<z.ZodString>;
|
|
6152
|
+
metadata: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown>>>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
6153
|
+
}, z.core.$strip>]>>;
|
|
6154
|
+
format: z.ZodEnum<{
|
|
6155
|
+
text: "text";
|
|
6156
|
+
markdown: "markdown";
|
|
6157
|
+
}>;
|
|
6158
|
+
final: z.ZodBoolean;
|
|
6159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6160
|
+
id: z.ZodString;
|
|
6161
|
+
order: z.ZodNumber;
|
|
6162
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6163
|
+
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6164
|
+
source: z.ZodObject<{
|
|
6165
|
+
adapter: z.ZodString;
|
|
6166
|
+
confidence: z.ZodEnum<{
|
|
6167
|
+
high: "high";
|
|
6168
|
+
medium: "medium";
|
|
6169
|
+
low: "low";
|
|
6170
|
+
}>;
|
|
6171
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
6172
|
+
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6173
|
+
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6174
|
+
}, z.core.$strip>;
|
|
6175
|
+
type: z.ZodLiteral<"reasoning">;
|
|
6176
|
+
content: z.ZodObject<{
|
|
6177
|
+
type: z.ZodLiteral<"text">;
|
|
6178
|
+
text: z.ZodString;
|
|
6179
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6180
|
+
type: z.ZodEnum<{
|
|
6181
|
+
event: "event";
|
|
6182
|
+
file: "file";
|
|
6183
|
+
url: "url";
|
|
6184
|
+
user: "user";
|
|
6185
|
+
signal: "signal";
|
|
6530
6186
|
}>;
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
type: z.ZodLiteral<"detached_sub_agent">;
|
|
6551
|
-
rootSpanId: z.ZodString;
|
|
6552
|
-
name: z.ZodString;
|
|
6553
|
-
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
6554
|
-
inputPreview: z.ZodNullable<z.ZodString>;
|
|
6555
|
-
outputPreview: z.ZodNullable<z.ZodString>;
|
|
6556
|
-
status: z.ZodEnum<{
|
|
6557
|
-
error: "error";
|
|
6558
|
-
unknown: "unknown";
|
|
6559
|
-
ok: "ok";
|
|
6560
|
-
}>;
|
|
6561
|
-
childEventId: z.ZodString;
|
|
6562
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6563
|
-
id: z.ZodString;
|
|
6564
|
-
order: z.ZodNumber;
|
|
6565
|
-
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6566
|
-
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6567
|
-
source: z.ZodObject<{
|
|
6568
|
-
adapter: z.ZodString;
|
|
6569
|
-
confidence: z.ZodEnum<{
|
|
6570
|
-
high: "high";
|
|
6571
|
-
medium: "medium";
|
|
6572
|
-
low: "low";
|
|
6573
|
-
}>;
|
|
6574
|
-
spanIds: z.ZodArray<z.ZodString>;
|
|
6575
|
-
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6576
|
-
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6577
|
-
}, z.core.$strip>;
|
|
6578
|
-
type: z.ZodLiteral<"agent_handoff">;
|
|
6579
|
-
fromAgent: z.ZodString;
|
|
6580
|
-
toAgent: z.ZodString;
|
|
6581
|
-
reason: z.ZodNullable<z.ZodString>;
|
|
6582
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6583
|
-
id: z.ZodString;
|
|
6584
|
-
order: z.ZodNumber;
|
|
6585
|
-
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6586
|
-
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6587
|
-
source: z.ZodObject<{
|
|
6588
|
-
adapter: z.ZodString;
|
|
6589
|
-
confidence: z.ZodEnum<{
|
|
6590
|
-
high: "high";
|
|
6591
|
-
medium: "medium";
|
|
6592
|
-
low: "low";
|
|
6593
|
-
}>;
|
|
6594
|
-
spanIds: z.ZodArray<z.ZodString>;
|
|
6595
|
-
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6596
|
-
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6597
|
-
}, z.core.$strip>;
|
|
6598
|
-
type: z.ZodLiteral<"unknown_span">;
|
|
6599
|
-
spanType: z.ZodNullable<z.ZodString>;
|
|
6600
|
-
name: z.ZodString;
|
|
6601
|
-
hiddenByDefault: z.ZodLiteral<true>;
|
|
6602
|
-
}, z.core.$strip>], "type">>;
|
|
6603
|
-
spans: z.ZodArray<z.ZodObject<{
|
|
6604
|
-
spanId: z.ZodString;
|
|
6605
|
-
parentSpanId: z.ZodNullable<z.ZodString>;
|
|
6606
|
-
traceId: z.ZodString;
|
|
6607
|
-
name: z.ZodString;
|
|
6608
|
-
spanType: z.ZodNullable<z.ZodString>;
|
|
6609
|
-
status: z.ZodNullable<z.ZodString>;
|
|
6610
|
-
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6611
|
-
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6612
|
-
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
6613
|
-
model: z.ZodNullable<z.ZodString>;
|
|
6614
|
-
provider: z.ZodNullable<z.ZodString>;
|
|
6615
|
-
rendered: z.ZodBoolean;
|
|
6616
|
-
}, z.core.$strip>>;
|
|
6617
|
-
diagnostics: z.ZodObject<{
|
|
6618
|
-
extractionVersion: z.ZodLiteral<"rich-interaction/1">;
|
|
6619
|
-
warnings: z.ZodArray<z.ZodObject<{
|
|
6620
|
-
code: z.ZodEnum<{
|
|
6621
|
-
no_spans: "no_spans";
|
|
6622
|
-
missing_llm_input: "missing_llm_input";
|
|
6623
|
-
missing_llm_output: "missing_llm_output";
|
|
6624
|
-
duplicate_output_suppressed: "duplicate_output_suppressed";
|
|
6625
|
-
tool_call_unmatched: "tool_call_unmatched";
|
|
6626
|
-
payload_truncated: "payload_truncated";
|
|
6627
|
-
unknown_span_shape: "unknown_span_shape";
|
|
6628
|
-
}>;
|
|
6629
|
-
message: z.ZodString;
|
|
6630
|
-
spanIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6631
|
-
}, z.core.$strip>>;
|
|
6632
|
-
unrenderedSpanCount: z.ZodNumber;
|
|
6633
|
-
}, z.core.$strip>;
|
|
6634
|
-
}, z.core.$strip>>>;
|
|
6635
|
-
_ai_output_words: z.ZodOptional<z.ZodNumber>;
|
|
6636
|
-
_ai_input_words: z.ZodOptional<z.ZodNumber>;
|
|
6637
|
-
userTraits: z.ZodNullable<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown>>>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>>>;
|
|
6638
|
-
featureFlags: z.ZodNullable<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, string>, Record<string, string>>, z.ZodTransform<Record<string, string>, Record<string, string>>>, z.ZodObject<{}, z.core.$catchall<z.ZodString>>>>>;
|
|
6639
|
-
userCreatedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6640
|
-
userPlan: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6641
|
-
userLastPlan: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6642
|
-
userPlanChangeTs: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6643
|
-
isPending: z.ZodOptional<z.ZodBoolean>;
|
|
6644
|
-
}, z.core.$strip>;
|
|
6645
|
-
entries: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6187
|
+
text: z.ZodOptional<z.ZodString>;
|
|
6188
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6189
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6190
|
+
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
6191
|
+
endIndex: z.ZodOptional<z.ZodNumber>;
|
|
6192
|
+
}, z.core.$strip>>>;
|
|
6193
|
+
}, z.core.$strip>;
|
|
6194
|
+
format: z.ZodLiteral<"text">;
|
|
6195
|
+
visibility: z.ZodEnum<{
|
|
6196
|
+
collapsed: "collapsed";
|
|
6197
|
+
expanded: "expanded";
|
|
6198
|
+
}>;
|
|
6199
|
+
capturedAs: z.ZodEnum<{
|
|
6200
|
+
unknown: "unknown";
|
|
6201
|
+
provider_reasoning: "provider_reasoning";
|
|
6202
|
+
reasoning_summary: "reasoning_summary";
|
|
6203
|
+
thinking: "thinking";
|
|
6204
|
+
}>;
|
|
6205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6646
6206
|
id: z.ZodString;
|
|
6647
6207
|
order: z.ZodNumber;
|
|
6648
6208
|
startMs: z.ZodNullable<z.ZodNumber>;
|
|
@@ -6658,31 +6218,49 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
6658
6218
|
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6659
6219
|
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6660
6220
|
}, z.core.$strip>;
|
|
6661
|
-
type: z.ZodLiteral<"
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6221
|
+
type: z.ZodLiteral<"tool_call">;
|
|
6222
|
+
callId: z.ZodNullable<z.ZodString>;
|
|
6223
|
+
name: z.ZodString;
|
|
6224
|
+
status: z.ZodEnum<{
|
|
6225
|
+
error: "error";
|
|
6226
|
+
unknown: "unknown";
|
|
6227
|
+
pending: "pending";
|
|
6228
|
+
completed: "completed";
|
|
6665
6229
|
}>;
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
text: z.ZodOptional<z.ZodString>;
|
|
6678
|
-
id: z.ZodOptional<z.ZodString>;
|
|
6679
|
-
url: z.ZodOptional<z.ZodString>;
|
|
6680
|
-
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
6681
|
-
endIndex: z.ZodOptional<z.ZodNumber>;
|
|
6682
|
-
}, z.core.$strip>>>;
|
|
6230
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
6231
|
+
input: z.ZodObject<{
|
|
6232
|
+
kind: z.ZodEnum<{
|
|
6233
|
+
text: "text";
|
|
6234
|
+
json: "json";
|
|
6235
|
+
reference: "reference";
|
|
6236
|
+
empty: "empty";
|
|
6237
|
+
}>;
|
|
6238
|
+
raw: z.ZodNullable<z.ZodString>;
|
|
6239
|
+
truncated: z.ZodBoolean;
|
|
6240
|
+
sizeChars: z.ZodNullable<z.ZodNumber>;
|
|
6683
6241
|
}, z.core.$strip>;
|
|
6684
|
-
|
|
6685
|
-
|
|
6242
|
+
output: z.ZodNullable<z.ZodObject<{
|
|
6243
|
+
kind: z.ZodEnum<{
|
|
6244
|
+
text: "text";
|
|
6245
|
+
json: "json";
|
|
6246
|
+
reference: "reference";
|
|
6247
|
+
empty: "empty";
|
|
6248
|
+
}>;
|
|
6249
|
+
raw: z.ZodNullable<z.ZodString>;
|
|
6250
|
+
truncated: z.ZodBoolean;
|
|
6251
|
+
sizeChars: z.ZodNullable<z.ZodNumber>;
|
|
6252
|
+
}, z.core.$strip>>;
|
|
6253
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
6254
|
+
kind: z.ZodEnum<{
|
|
6255
|
+
text: "text";
|
|
6256
|
+
json: "json";
|
|
6257
|
+
reference: "reference";
|
|
6258
|
+
empty: "empty";
|
|
6259
|
+
}>;
|
|
6260
|
+
raw: z.ZodNullable<z.ZodString>;
|
|
6261
|
+
truncated: z.ZodBoolean;
|
|
6262
|
+
sizeChars: z.ZodNullable<z.ZodNumber>;
|
|
6263
|
+
}, z.core.$strip>>;
|
|
6686
6264
|
}, z.core.$strip>, z.ZodObject<{
|
|
6687
6265
|
id: z.ZodString;
|
|
6688
6266
|
order: z.ZodNumber;
|
|
@@ -6699,249 +6277,23 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
6699
6277
|
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6700
6278
|
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6701
6279
|
}, z.core.$strip>;
|
|
6702
|
-
type: z.ZodLiteral<"
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
endIndex: z.ZodOptional<z.ZodNumber>;
|
|
6720
|
-
}, z.core.$strip>>>;
|
|
6721
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6722
|
-
type: z.ZodLiteral<"json">;
|
|
6723
|
-
value: z.ZodUnknown;
|
|
6724
|
-
raw: z.ZodNullable<z.ZodString>;
|
|
6725
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6726
|
-
type: z.ZodEnum<{
|
|
6727
|
-
image: "image";
|
|
6728
|
-
file: "file";
|
|
6729
|
-
}>;
|
|
6730
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
6731
|
-
url: z.ZodOptional<z.ZodString>;
|
|
6732
|
-
fileId: z.ZodOptional<z.ZodString>;
|
|
6733
|
-
name: z.ZodOptional<z.ZodString>;
|
|
6734
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6735
|
-
type: z.ZodLiteral<"reference">;
|
|
6736
|
-
label: z.ZodString;
|
|
6737
|
-
refType: z.ZodEnum<{
|
|
6738
|
-
external: "external";
|
|
6739
|
-
stored_tool_result: "stored_tool_result";
|
|
6740
|
-
}>;
|
|
6741
|
-
href: z.ZodOptional<z.ZodString>;
|
|
6742
|
-
metadata: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown>>>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
6743
|
-
}, z.core.$strip>]>>;
|
|
6744
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6745
|
-
id: z.ZodString;
|
|
6746
|
-
order: z.ZodNumber;
|
|
6747
|
-
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6748
|
-
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6749
|
-
source: z.ZodObject<{
|
|
6750
|
-
adapter: z.ZodString;
|
|
6751
|
-
confidence: z.ZodEnum<{
|
|
6752
|
-
high: "high";
|
|
6753
|
-
medium: "medium";
|
|
6754
|
-
low: "low";
|
|
6755
|
-
}>;
|
|
6756
|
-
spanIds: z.ZodArray<z.ZodString>;
|
|
6757
|
-
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6758
|
-
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6759
|
-
}, z.core.$strip>;
|
|
6760
|
-
type: z.ZodLiteral<"assistant_text">;
|
|
6761
|
-
role: z.ZodLiteral<"assistant">;
|
|
6762
|
-
content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
6763
|
-
type: z.ZodLiteral<"text">;
|
|
6764
|
-
text: z.ZodString;
|
|
6765
|
-
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6766
|
-
type: z.ZodEnum<{
|
|
6767
|
-
event: "event";
|
|
6768
|
-
file: "file";
|
|
6769
|
-
url: "url";
|
|
6770
|
-
user: "user";
|
|
6771
|
-
signal: "signal";
|
|
6772
|
-
}>;
|
|
6773
|
-
text: z.ZodOptional<z.ZodString>;
|
|
6774
|
-
id: z.ZodOptional<z.ZodString>;
|
|
6775
|
-
url: z.ZodOptional<z.ZodString>;
|
|
6776
|
-
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
6777
|
-
endIndex: z.ZodOptional<z.ZodNumber>;
|
|
6778
|
-
}, z.core.$strip>>>;
|
|
6779
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6780
|
-
type: z.ZodLiteral<"json">;
|
|
6781
|
-
value: z.ZodUnknown;
|
|
6782
|
-
raw: z.ZodNullable<z.ZodString>;
|
|
6783
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6784
|
-
type: z.ZodEnum<{
|
|
6785
|
-
image: "image";
|
|
6786
|
-
file: "file";
|
|
6787
|
-
}>;
|
|
6788
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
6789
|
-
url: z.ZodOptional<z.ZodString>;
|
|
6790
|
-
fileId: z.ZodOptional<z.ZodString>;
|
|
6791
|
-
name: z.ZodOptional<z.ZodString>;
|
|
6792
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6793
|
-
type: z.ZodLiteral<"reference">;
|
|
6794
|
-
label: z.ZodString;
|
|
6795
|
-
refType: z.ZodEnum<{
|
|
6796
|
-
external: "external";
|
|
6797
|
-
stored_tool_result: "stored_tool_result";
|
|
6798
|
-
}>;
|
|
6799
|
-
href: z.ZodOptional<z.ZodString>;
|
|
6800
|
-
metadata: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown>>>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
6801
|
-
}, z.core.$strip>]>>;
|
|
6802
|
-
format: z.ZodEnum<{
|
|
6803
|
-
text: "text";
|
|
6804
|
-
markdown: "markdown";
|
|
6805
|
-
}>;
|
|
6806
|
-
final: z.ZodBoolean;
|
|
6807
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6808
|
-
id: z.ZodString;
|
|
6809
|
-
order: z.ZodNumber;
|
|
6810
|
-
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6811
|
-
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6812
|
-
source: z.ZodObject<{
|
|
6813
|
-
adapter: z.ZodString;
|
|
6814
|
-
confidence: z.ZodEnum<{
|
|
6815
|
-
high: "high";
|
|
6816
|
-
medium: "medium";
|
|
6817
|
-
low: "low";
|
|
6818
|
-
}>;
|
|
6819
|
-
spanIds: z.ZodArray<z.ZodString>;
|
|
6820
|
-
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6821
|
-
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6822
|
-
}, z.core.$strip>;
|
|
6823
|
-
type: z.ZodLiteral<"reasoning">;
|
|
6824
|
-
content: z.ZodObject<{
|
|
6825
|
-
type: z.ZodLiteral<"text">;
|
|
6826
|
-
text: z.ZodString;
|
|
6827
|
-
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6828
|
-
type: z.ZodEnum<{
|
|
6829
|
-
event: "event";
|
|
6830
|
-
file: "file";
|
|
6831
|
-
url: "url";
|
|
6832
|
-
user: "user";
|
|
6833
|
-
signal: "signal";
|
|
6834
|
-
}>;
|
|
6835
|
-
text: z.ZodOptional<z.ZodString>;
|
|
6836
|
-
id: z.ZodOptional<z.ZodString>;
|
|
6837
|
-
url: z.ZodOptional<z.ZodString>;
|
|
6838
|
-
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
6839
|
-
endIndex: z.ZodOptional<z.ZodNumber>;
|
|
6840
|
-
}, z.core.$strip>>>;
|
|
6841
|
-
}, z.core.$strip>;
|
|
6842
|
-
format: z.ZodLiteral<"text">;
|
|
6843
|
-
visibility: z.ZodEnum<{
|
|
6844
|
-
collapsed: "collapsed";
|
|
6845
|
-
expanded: "expanded";
|
|
6846
|
-
}>;
|
|
6847
|
-
capturedAs: z.ZodEnum<{
|
|
6848
|
-
unknown: "unknown";
|
|
6849
|
-
provider_reasoning: "provider_reasoning";
|
|
6850
|
-
reasoning_summary: "reasoning_summary";
|
|
6851
|
-
thinking: "thinking";
|
|
6852
|
-
}>;
|
|
6853
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6854
|
-
id: z.ZodString;
|
|
6855
|
-
order: z.ZodNumber;
|
|
6856
|
-
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6857
|
-
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6858
|
-
source: z.ZodObject<{
|
|
6859
|
-
adapter: z.ZodString;
|
|
6860
|
-
confidence: z.ZodEnum<{
|
|
6861
|
-
high: "high";
|
|
6862
|
-
medium: "medium";
|
|
6863
|
-
low: "low";
|
|
6864
|
-
}>;
|
|
6865
|
-
spanIds: z.ZodArray<z.ZodString>;
|
|
6866
|
-
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6867
|
-
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6868
|
-
}, z.core.$strip>;
|
|
6869
|
-
type: z.ZodLiteral<"tool_call">;
|
|
6870
|
-
callId: z.ZodNullable<z.ZodString>;
|
|
6871
|
-
name: z.ZodString;
|
|
6872
|
-
status: z.ZodEnum<{
|
|
6873
|
-
error: "error";
|
|
6874
|
-
pending: "pending";
|
|
6875
|
-
unknown: "unknown";
|
|
6876
|
-
completed: "completed";
|
|
6877
|
-
}>;
|
|
6878
|
-
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
6879
|
-
input: z.ZodObject<{
|
|
6880
|
-
kind: z.ZodEnum<{
|
|
6881
|
-
text: "text";
|
|
6882
|
-
json: "json";
|
|
6883
|
-
reference: "reference";
|
|
6884
|
-
empty: "empty";
|
|
6885
|
-
}>;
|
|
6886
|
-
raw: z.ZodNullable<z.ZodString>;
|
|
6887
|
-
truncated: z.ZodBoolean;
|
|
6888
|
-
sizeChars: z.ZodNullable<z.ZodNumber>;
|
|
6889
|
-
}, z.core.$strip>;
|
|
6890
|
-
output: z.ZodNullable<z.ZodObject<{
|
|
6891
|
-
kind: z.ZodEnum<{
|
|
6892
|
-
text: "text";
|
|
6893
|
-
json: "json";
|
|
6894
|
-
reference: "reference";
|
|
6895
|
-
empty: "empty";
|
|
6896
|
-
}>;
|
|
6897
|
-
raw: z.ZodNullable<z.ZodString>;
|
|
6898
|
-
truncated: z.ZodBoolean;
|
|
6899
|
-
sizeChars: z.ZodNullable<z.ZodNumber>;
|
|
6900
|
-
}, z.core.$strip>>;
|
|
6901
|
-
error: z.ZodNullable<z.ZodObject<{
|
|
6902
|
-
kind: z.ZodEnum<{
|
|
6903
|
-
text: "text";
|
|
6904
|
-
json: "json";
|
|
6905
|
-
reference: "reference";
|
|
6906
|
-
empty: "empty";
|
|
6907
|
-
}>;
|
|
6908
|
-
raw: z.ZodNullable<z.ZodString>;
|
|
6909
|
-
truncated: z.ZodBoolean;
|
|
6910
|
-
sizeChars: z.ZodNullable<z.ZodNumber>;
|
|
6911
|
-
}, z.core.$strip>>;
|
|
6912
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6913
|
-
id: z.ZodString;
|
|
6914
|
-
order: z.ZodNumber;
|
|
6915
|
-
startMs: z.ZodNullable<z.ZodNumber>;
|
|
6916
|
-
endMs: z.ZodNullable<z.ZodNumber>;
|
|
6917
|
-
source: z.ZodObject<{
|
|
6918
|
-
adapter: z.ZodString;
|
|
6919
|
-
confidence: z.ZodEnum<{
|
|
6920
|
-
high: "high";
|
|
6921
|
-
medium: "medium";
|
|
6922
|
-
low: "low";
|
|
6923
|
-
}>;
|
|
6924
|
-
spanIds: z.ZodArray<z.ZodString>;
|
|
6925
|
-
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
6926
|
-
attributeKeys: z.ZodArray<z.ZodString>;
|
|
6927
|
-
}, z.core.$strip>;
|
|
6928
|
-
type: z.ZodLiteral<"sub_agent">;
|
|
6929
|
-
rootSpanId: z.ZodString;
|
|
6930
|
-
name: z.ZodString;
|
|
6931
|
-
spanIds: z.ZodArray<z.ZodString>;
|
|
6932
|
-
toolCount: z.ZodNumber;
|
|
6933
|
-
llmCount: z.ZodNumber;
|
|
6934
|
-
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
6935
|
-
inputPreview: z.ZodNullable<z.ZodString>;
|
|
6936
|
-
outputPreview: z.ZodNullable<z.ZodString>;
|
|
6937
|
-
status: z.ZodEnum<{
|
|
6938
|
-
error: "error";
|
|
6939
|
-
unknown: "unknown";
|
|
6940
|
-
ok: "ok";
|
|
6941
|
-
}>;
|
|
6942
|
-
model: z.ZodNullable<z.ZodString>;
|
|
6943
|
-
totalInputTokens: z.ZodNullable<z.ZodNumber>;
|
|
6944
|
-
totalOutputTokens: z.ZodNullable<z.ZodNumber>;
|
|
6280
|
+
type: z.ZodLiteral<"sub_agent">;
|
|
6281
|
+
rootSpanId: z.ZodString;
|
|
6282
|
+
name: z.ZodString;
|
|
6283
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
6284
|
+
toolCount: z.ZodNumber;
|
|
6285
|
+
llmCount: z.ZodNumber;
|
|
6286
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
6287
|
+
inputPreview: z.ZodNullable<z.ZodString>;
|
|
6288
|
+
outputPreview: z.ZodNullable<z.ZodString>;
|
|
6289
|
+
status: z.ZodEnum<{
|
|
6290
|
+
error: "error";
|
|
6291
|
+
unknown: "unknown";
|
|
6292
|
+
ok: "ok";
|
|
6293
|
+
}>;
|
|
6294
|
+
model: z.ZodNullable<z.ZodString>;
|
|
6295
|
+
totalInputTokens: z.ZodNullable<z.ZodNumber>;
|
|
6296
|
+
totalOutputTokens: z.ZodNullable<z.ZodNumber>;
|
|
6945
6297
|
}, z.core.$strip>, z.ZodObject<{
|
|
6946
6298
|
id: z.ZodString;
|
|
6947
6299
|
order: z.ZodNumber;
|
|
@@ -7025,8 +6377,8 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
7025
6377
|
}, z.core.$strict>>;
|
|
7026
6378
|
}, z.core.$strip>>;
|
|
7027
6379
|
origin: z.ZodEnum<{
|
|
7028
|
-
replay: "replay";
|
|
7029
6380
|
dataset: "dataset";
|
|
6381
|
+
replay: "replay";
|
|
7030
6382
|
}>;
|
|
7031
6383
|
}, z.core.$strip>;
|
|
7032
6384
|
}, z.core.$strip>;
|
|
@@ -7376,8 +6728,8 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
7376
6728
|
name: z.ZodString;
|
|
7377
6729
|
status: z.ZodEnum<{
|
|
7378
6730
|
error: "error";
|
|
7379
|
-
pending: "pending";
|
|
7380
6731
|
unknown: "unknown";
|
|
6732
|
+
pending: "pending";
|
|
7381
6733
|
completed: "completed";
|
|
7382
6734
|
}>;
|
|
7383
6735
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
@@ -7787,8 +7139,8 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
7787
7139
|
name: z.ZodString;
|
|
7788
7140
|
status: z.ZodEnum<{
|
|
7789
7141
|
error: "error";
|
|
7790
|
-
pending: "pending";
|
|
7791
7142
|
unknown: "unknown";
|
|
7143
|
+
pending: "pending";
|
|
7792
7144
|
completed: "completed";
|
|
7793
7145
|
}>;
|
|
7794
7146
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
@@ -8287,8 +7639,8 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
8287
7639
|
name: z.ZodString;
|
|
8288
7640
|
status: z.ZodEnum<{
|
|
8289
7641
|
error: "error";
|
|
8290
|
-
pending: "pending";
|
|
8291
7642
|
unknown: "unknown";
|
|
7643
|
+
pending: "pending";
|
|
8292
7644
|
completed: "completed";
|
|
8293
7645
|
}>;
|
|
8294
7646
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
@@ -8555,7 +7907,65 @@ type EvalManifest = {
|
|
|
8555
7907
|
readonly fingerprint: string;
|
|
8556
7908
|
readonly cases: readonly ReplayRow[];
|
|
8557
7909
|
};
|
|
8558
|
-
|
|
7910
|
+
/**
|
|
7911
|
+
* A dataset version as the server returns it.
|
|
7912
|
+
*
|
|
7913
|
+
* The generated contract is strict because it also checks what the SDK publishes. Responses gain
|
|
7914
|
+
* fields this release does not use (a row's earlier conversation turns, a reply pair, new verdict
|
|
7915
|
+
* kinds), so the reader drops those instead of rejecting the whole dataset.
|
|
7916
|
+
*/
|
|
7917
|
+
declare const EvalDatasetManifestReadSchema: z.ZodObject<{
|
|
7918
|
+
dataset: z.ZodObject<{
|
|
7919
|
+
id: z.ZodString;
|
|
7920
|
+
slug: z.ZodString;
|
|
7921
|
+
name: z.ZodString;
|
|
7922
|
+
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
7923
|
+
}, z.core.$strip>;
|
|
7924
|
+
version: z.ZodObject<{
|
|
7925
|
+
id: z.ZodString;
|
|
7926
|
+
fingerprint: z.ZodString;
|
|
7927
|
+
datasetId: z.ZodString;
|
|
7928
|
+
parentVersionId: z.ZodNullable<z.ZodString>;
|
|
7929
|
+
createdAt: z.ZodString;
|
|
7930
|
+
}, z.core.$strip>;
|
|
7931
|
+
cases: z.ZodArray<z.ZodObject<{
|
|
7932
|
+
referenceCapture: z.ZodOptional<z.ZodObject<{
|
|
7933
|
+
sourceEventId: z.ZodString;
|
|
7934
|
+
sourceEventTimestamp: z.ZodOptional<z.ZodString>;
|
|
7935
|
+
id: z.ZodString;
|
|
7936
|
+
}, z.core.$strip>>;
|
|
7937
|
+
expectation: z.ZodOptional<z.ZodObject<{
|
|
7938
|
+
description: z.ZodString;
|
|
7939
|
+
basis: z.ZodOptional<z.ZodEnum<{
|
|
7940
|
+
code: "code";
|
|
7941
|
+
human: "human";
|
|
7942
|
+
policy: "policy";
|
|
7943
|
+
inferred: "inferred";
|
|
7944
|
+
}>>;
|
|
7945
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
7946
|
+
}, z.core.$strip>>;
|
|
7947
|
+
expectedVerdict: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
7948
|
+
pass: z.ZodBoolean;
|
|
7949
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7950
|
+
score: z.ZodNumber;
|
|
7951
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7952
|
+
value: z.ZodNumber;
|
|
7953
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7954
|
+
preference: z.ZodEnum<{
|
|
7955
|
+
A: "A";
|
|
7956
|
+
B: "B";
|
|
7957
|
+
tie: "tie";
|
|
7958
|
+
}>;
|
|
7959
|
+
}, z.core.$strip>]>>>;
|
|
7960
|
+
properties: z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, string>, Record<string, string>>, z.ZodTransform<Record<string, string>, Record<string, string>>>, z.ZodObject<{}, z.core.$catchall<z.ZodString>>>;
|
|
7961
|
+
output: z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>;
|
|
7962
|
+
input: z.ZodNullable<z.ZodString>;
|
|
7963
|
+
id: z.ZodString;
|
|
7964
|
+
name: z.ZodString;
|
|
7965
|
+
referenceTraceSha256: z.ZodOptional<z.ZodString>;
|
|
7966
|
+
}, z.core.$strip>>;
|
|
7967
|
+
}, z.core.$strip>;
|
|
7968
|
+
type EvalDatasetManifest$1 = z.infer<typeof EvalDatasetManifestReadSchema>;
|
|
8559
7969
|
declare const ReplayCountsSchema: z.ZodObject<{
|
|
8560
7970
|
total: z.ZodNumber;
|
|
8561
7971
|
pending: z.ZodNumber;
|
|
@@ -9495,8 +8905,8 @@ declare const EvalDatasetRowInputSchema: z.ZodObject<{
|
|
|
9495
8905
|
name: z.ZodString;
|
|
9496
8906
|
status: z.ZodEnum<{
|
|
9497
8907
|
error: "error";
|
|
9498
|
-
pending: "pending";
|
|
9499
8908
|
unknown: "unknown";
|
|
8909
|
+
pending: "pending";
|
|
9500
8910
|
completed: "completed";
|
|
9501
8911
|
}>;
|
|
9502
8912
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
@@ -9759,8 +9169,8 @@ declare const PortableEvalArtifactSchema: z.ZodObject<{
|
|
|
9759
9169
|
outputType: z.ZodEnum<{
|
|
9760
9170
|
number: "number";
|
|
9761
9171
|
boolean: "boolean";
|
|
9762
|
-
preference: "preference";
|
|
9763
9172
|
score: "score";
|
|
9173
|
+
preference: "preference";
|
|
9764
9174
|
}>;
|
|
9765
9175
|
scope: z.ZodLiteral<"trace">;
|
|
9766
9176
|
}, z.core.$strict>;
|
|
@@ -10026,6 +9436,608 @@ declare function isEvalSuiteDefinition(value: unknown): value is EvalSuiteDefini
|
|
|
10026
9436
|
/** A published definition is a pinned run snapshot, not a request to update hosted source. */
|
|
10027
9437
|
declare function isPublishedEvalSuite<AgentResult>(definition: EvalSuiteDefinition<AgentResult>): boolean;
|
|
10028
9438
|
|
|
9439
|
+
declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
9440
|
+
name: z.ZodString;
|
|
9441
|
+
requestKey: z.ZodString;
|
|
9442
|
+
expectedCurrentVersionId: z.ZodNullable<z.ZodString>;
|
|
9443
|
+
fingerprint: z.ZodString;
|
|
9444
|
+
cases: z.ZodArray<z.ZodObject<{
|
|
9445
|
+
id: z.ZodString;
|
|
9446
|
+
name: z.ZodString;
|
|
9447
|
+
input: z.ZodNullable<z.ZodString>;
|
|
9448
|
+
output: z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>;
|
|
9449
|
+
properties: z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, string>, Record<string, string>>, z.ZodTransform<Record<string, string>, Record<string, string>>>, z.ZodObject<{}, z.core.$catchall<z.ZodString>>>;
|
|
9450
|
+
referenceTrace: z.ZodOptional<z.ZodObject<{
|
|
9451
|
+
event: z.ZodObject<{
|
|
9452
|
+
id: z.ZodString;
|
|
9453
|
+
_raindropDatabaseId: z.ZodString;
|
|
9454
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
9455
|
+
name: z.ZodString;
|
|
9456
|
+
timestamp: z.ZodString;
|
|
9457
|
+
receivedAt: z.ZodString;
|
|
9458
|
+
userId: z.ZodString;
|
|
9459
|
+
aiData: z.ZodObject<{
|
|
9460
|
+
input: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9461
|
+
output: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9462
|
+
model: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9463
|
+
convoId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9464
|
+
}, z.core.$strip>;
|
|
9465
|
+
properties: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown>>>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
9466
|
+
customEventId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9467
|
+
occurrencesInWindow: z.ZodOptional<z.ZodNumber>;
|
|
9468
|
+
lensInfo: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9469
|
+
lensId: z.ZodCoercedNumber<unknown>;
|
|
9470
|
+
sourceId: z.ZodString;
|
|
9471
|
+
source: z.ZodOptional<z.ZodString>;
|
|
9472
|
+
categoryId: z.ZodCoercedNumber<unknown>;
|
|
9473
|
+
}, z.core.$strip>>>;
|
|
9474
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9475
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodCoercedNumber<unknown>>], null>>>;
|
|
9476
|
+
categoryLog: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9477
|
+
lensId: z.ZodCoercedNumber<unknown>;
|
|
9478
|
+
categoryId: z.ZodCoercedString<unknown>;
|
|
9479
|
+
action: z.ZodEnum<{
|
|
9480
|
+
add_category: "add_category";
|
|
9481
|
+
remove_category: "remove_category";
|
|
9482
|
+
skip_category: "skip_category";
|
|
9483
|
+
}>;
|
|
9484
|
+
}, z.core.$strip>>>;
|
|
9485
|
+
inputAttachments: z.ZodPipe<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9486
|
+
attachment_id: z.ZodString;
|
|
9487
|
+
attachment_type: z.ZodDefault<z.ZodEnum<{
|
|
9488
|
+
text: "text";
|
|
9489
|
+
image: "image";
|
|
9490
|
+
iframe: "iframe";
|
|
9491
|
+
}>>;
|
|
9492
|
+
value: z.ZodString;
|
|
9493
|
+
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9494
|
+
}, z.core.$strip>]>>>, z.ZodTransform<{
|
|
9495
|
+
attachment_id: string;
|
|
9496
|
+
attachment_type: "text" | "image" | "iframe";
|
|
9497
|
+
value: string;
|
|
9498
|
+
name: string;
|
|
9499
|
+
}[], (string | {
|
|
9500
|
+
attachment_id: string;
|
|
9501
|
+
attachment_type: "text" | "image" | "iframe";
|
|
9502
|
+
value: string;
|
|
9503
|
+
name: string;
|
|
9504
|
+
})[] | undefined>>;
|
|
9505
|
+
outputAttachments: z.ZodPipe<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9506
|
+
attachment_id: z.ZodString;
|
|
9507
|
+
attachment_type: z.ZodDefault<z.ZodEnum<{
|
|
9508
|
+
text: "text";
|
|
9509
|
+
image: "image";
|
|
9510
|
+
iframe: "iframe";
|
|
9511
|
+
}>>;
|
|
9512
|
+
value: z.ZodString;
|
|
9513
|
+
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9514
|
+
}, z.core.$strip>]>>>, z.ZodTransform<{
|
|
9515
|
+
attachment_id: string;
|
|
9516
|
+
attachment_type: "text" | "image" | "iframe";
|
|
9517
|
+
value: string;
|
|
9518
|
+
name: string;
|
|
9519
|
+
}[], (string | {
|
|
9520
|
+
attachment_id: string;
|
|
9521
|
+
attachment_type: "text" | "image" | "iframe";
|
|
9522
|
+
value: string;
|
|
9523
|
+
name: string;
|
|
9524
|
+
})[] | undefined>>;
|
|
9525
|
+
signals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9526
|
+
id: z.ZodOptional<z.ZodString>;
|
|
9527
|
+
name: z.ZodString;
|
|
9528
|
+
timestamp: z.ZodString;
|
|
9529
|
+
attachmentId: z.ZodOptional<z.ZodString>;
|
|
9530
|
+
properties: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown>>>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>]>;
|
|
9531
|
+
signalType: z.ZodOptional<z.ZodString>;
|
|
9532
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
9533
|
+
}, z.core.$strip>>>;
|
|
9534
|
+
errorSpans: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9535
|
+
span_id: z.ZodOptional<z.ZodString>;
|
|
9536
|
+
started_at: z.ZodOptional<z.ZodString>;
|
|
9537
|
+
status: z.ZodOptional<z.ZodString>;
|
|
9538
|
+
duration_ms: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
9539
|
+
span_type: z.ZodOptional<z.ZodString>;
|
|
9540
|
+
span_name: z.ZodOptional<z.ZodString>;
|
|
9541
|
+
output_payload: z.ZodOptional<z.ZodAny>;
|
|
9542
|
+
}, z.core.$strip>>>;
|
|
9543
|
+
regexSignals: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9544
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
9545
|
+
toolCallNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9546
|
+
richInteraction: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9547
|
+
schemaVersion: z.ZodLiteral<"2026-05-20">;
|
|
9548
|
+
eventId: z.ZodString;
|
|
9549
|
+
traceIds: z.ZodArray<z.ZodString>;
|
|
9550
|
+
rootSpanIds: z.ZodArray<z.ZodString>;
|
|
9551
|
+
status: z.ZodEnum<{
|
|
9552
|
+
complete: "complete";
|
|
9553
|
+
partial: "partial";
|
|
9554
|
+
missing_spans: "missing_spans";
|
|
9555
|
+
}>;
|
|
9556
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
9557
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
9558
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
9559
|
+
stats: z.ZodObject<{
|
|
9560
|
+
agentCount: z.ZodNumber;
|
|
9561
|
+
llmCallCount: z.ZodNumber;
|
|
9562
|
+
toolCallCount: z.ZodNumber;
|
|
9563
|
+
errorCount: z.ZodNumber;
|
|
9564
|
+
agentNames: z.ZodArray<z.ZodString>;
|
|
9565
|
+
}, z.core.$strip>;
|
|
9566
|
+
entries: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9567
|
+
id: z.ZodString;
|
|
9568
|
+
order: z.ZodNumber;
|
|
9569
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
9570
|
+
endMs: z.ZodNullable<z.ZodNumber>;
|
|
9571
|
+
source: z.ZodObject<{
|
|
9572
|
+
adapter: z.ZodString;
|
|
9573
|
+
confidence: z.ZodEnum<{
|
|
9574
|
+
high: "high";
|
|
9575
|
+
medium: "medium";
|
|
9576
|
+
low: "low";
|
|
9577
|
+
}>;
|
|
9578
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
9579
|
+
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
9580
|
+
attributeKeys: z.ZodArray<z.ZodString>;
|
|
9581
|
+
}, z.core.$strip>;
|
|
9582
|
+
type: z.ZodLiteral<"system">;
|
|
9583
|
+
role: z.ZodEnum<{
|
|
9584
|
+
system: "system";
|
|
9585
|
+
developer: "developer";
|
|
9586
|
+
}>;
|
|
9587
|
+
content: z.ZodObject<{
|
|
9588
|
+
type: z.ZodLiteral<"text">;
|
|
9589
|
+
text: z.ZodString;
|
|
9590
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9591
|
+
type: z.ZodEnum<{
|
|
9592
|
+
event: "event";
|
|
9593
|
+
file: "file";
|
|
9594
|
+
url: "url";
|
|
9595
|
+
user: "user";
|
|
9596
|
+
signal: "signal";
|
|
9597
|
+
}>;
|
|
9598
|
+
text: z.ZodOptional<z.ZodString>;
|
|
9599
|
+
id: z.ZodOptional<z.ZodString>;
|
|
9600
|
+
url: z.ZodOptional<z.ZodString>;
|
|
9601
|
+
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
9602
|
+
endIndex: z.ZodOptional<z.ZodNumber>;
|
|
9603
|
+
}, z.core.$strip>>>;
|
|
9604
|
+
}, z.core.$strip>;
|
|
9605
|
+
collapsed: z.ZodLiteral<true>;
|
|
9606
|
+
tokenEstimate: z.ZodNullable<z.ZodNumber>;
|
|
9607
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9608
|
+
id: z.ZodString;
|
|
9609
|
+
order: z.ZodNumber;
|
|
9610
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
9611
|
+
endMs: z.ZodNullable<z.ZodNumber>;
|
|
9612
|
+
source: z.ZodObject<{
|
|
9613
|
+
adapter: z.ZodString;
|
|
9614
|
+
confidence: z.ZodEnum<{
|
|
9615
|
+
high: "high";
|
|
9616
|
+
medium: "medium";
|
|
9617
|
+
low: "low";
|
|
9618
|
+
}>;
|
|
9619
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
9620
|
+
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
9621
|
+
attributeKeys: z.ZodArray<z.ZodString>;
|
|
9622
|
+
}, z.core.$strip>;
|
|
9623
|
+
type: z.ZodLiteral<"user_message">;
|
|
9624
|
+
role: z.ZodLiteral<"user">;
|
|
9625
|
+
content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
9626
|
+
type: z.ZodLiteral<"text">;
|
|
9627
|
+
text: z.ZodString;
|
|
9628
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9629
|
+
type: z.ZodEnum<{
|
|
9630
|
+
event: "event";
|
|
9631
|
+
file: "file";
|
|
9632
|
+
url: "url";
|
|
9633
|
+
user: "user";
|
|
9634
|
+
signal: "signal";
|
|
9635
|
+
}>;
|
|
9636
|
+
text: z.ZodOptional<z.ZodString>;
|
|
9637
|
+
id: z.ZodOptional<z.ZodString>;
|
|
9638
|
+
url: z.ZodOptional<z.ZodString>;
|
|
9639
|
+
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
9640
|
+
endIndex: z.ZodOptional<z.ZodNumber>;
|
|
9641
|
+
}, z.core.$strip>>>;
|
|
9642
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9643
|
+
type: z.ZodLiteral<"json">;
|
|
9644
|
+
value: z.ZodUnknown;
|
|
9645
|
+
raw: z.ZodNullable<z.ZodString>;
|
|
9646
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9647
|
+
type: z.ZodEnum<{
|
|
9648
|
+
image: "image";
|
|
9649
|
+
file: "file";
|
|
9650
|
+
}>;
|
|
9651
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
9652
|
+
url: z.ZodOptional<z.ZodString>;
|
|
9653
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
9654
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9655
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9656
|
+
type: z.ZodLiteral<"reference">;
|
|
9657
|
+
label: z.ZodString;
|
|
9658
|
+
refType: z.ZodEnum<{
|
|
9659
|
+
external: "external";
|
|
9660
|
+
stored_tool_result: "stored_tool_result";
|
|
9661
|
+
}>;
|
|
9662
|
+
href: z.ZodOptional<z.ZodString>;
|
|
9663
|
+
metadata: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown>>>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
9664
|
+
}, z.core.$strip>]>>;
|
|
9665
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9666
|
+
id: z.ZodString;
|
|
9667
|
+
order: z.ZodNumber;
|
|
9668
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
9669
|
+
endMs: z.ZodNullable<z.ZodNumber>;
|
|
9670
|
+
source: z.ZodObject<{
|
|
9671
|
+
adapter: z.ZodString;
|
|
9672
|
+
confidence: z.ZodEnum<{
|
|
9673
|
+
high: "high";
|
|
9674
|
+
medium: "medium";
|
|
9675
|
+
low: "low";
|
|
9676
|
+
}>;
|
|
9677
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
9678
|
+
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
9679
|
+
attributeKeys: z.ZodArray<z.ZodString>;
|
|
9680
|
+
}, z.core.$strip>;
|
|
9681
|
+
type: z.ZodLiteral<"assistant_text">;
|
|
9682
|
+
role: z.ZodLiteral<"assistant">;
|
|
9683
|
+
content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
9684
|
+
type: z.ZodLiteral<"text">;
|
|
9685
|
+
text: z.ZodString;
|
|
9686
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9687
|
+
type: z.ZodEnum<{
|
|
9688
|
+
event: "event";
|
|
9689
|
+
file: "file";
|
|
9690
|
+
url: "url";
|
|
9691
|
+
user: "user";
|
|
9692
|
+
signal: "signal";
|
|
9693
|
+
}>;
|
|
9694
|
+
text: z.ZodOptional<z.ZodString>;
|
|
9695
|
+
id: z.ZodOptional<z.ZodString>;
|
|
9696
|
+
url: z.ZodOptional<z.ZodString>;
|
|
9697
|
+
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
9698
|
+
endIndex: z.ZodOptional<z.ZodNumber>;
|
|
9699
|
+
}, z.core.$strip>>>;
|
|
9700
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9701
|
+
type: z.ZodLiteral<"json">;
|
|
9702
|
+
value: z.ZodUnknown;
|
|
9703
|
+
raw: z.ZodNullable<z.ZodString>;
|
|
9704
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9705
|
+
type: z.ZodEnum<{
|
|
9706
|
+
image: "image";
|
|
9707
|
+
file: "file";
|
|
9708
|
+
}>;
|
|
9709
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
9710
|
+
url: z.ZodOptional<z.ZodString>;
|
|
9711
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
9712
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9713
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9714
|
+
type: z.ZodLiteral<"reference">;
|
|
9715
|
+
label: z.ZodString;
|
|
9716
|
+
refType: z.ZodEnum<{
|
|
9717
|
+
external: "external";
|
|
9718
|
+
stored_tool_result: "stored_tool_result";
|
|
9719
|
+
}>;
|
|
9720
|
+
href: z.ZodOptional<z.ZodString>;
|
|
9721
|
+
metadata: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown>>>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
9722
|
+
}, z.core.$strip>]>>;
|
|
9723
|
+
format: z.ZodEnum<{
|
|
9724
|
+
text: "text";
|
|
9725
|
+
markdown: "markdown";
|
|
9726
|
+
}>;
|
|
9727
|
+
final: z.ZodBoolean;
|
|
9728
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9729
|
+
id: z.ZodString;
|
|
9730
|
+
order: z.ZodNumber;
|
|
9731
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
9732
|
+
endMs: z.ZodNullable<z.ZodNumber>;
|
|
9733
|
+
source: z.ZodObject<{
|
|
9734
|
+
adapter: z.ZodString;
|
|
9735
|
+
confidence: z.ZodEnum<{
|
|
9736
|
+
high: "high";
|
|
9737
|
+
medium: "medium";
|
|
9738
|
+
low: "low";
|
|
9739
|
+
}>;
|
|
9740
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
9741
|
+
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
9742
|
+
attributeKeys: z.ZodArray<z.ZodString>;
|
|
9743
|
+
}, z.core.$strip>;
|
|
9744
|
+
type: z.ZodLiteral<"reasoning">;
|
|
9745
|
+
content: z.ZodObject<{
|
|
9746
|
+
type: z.ZodLiteral<"text">;
|
|
9747
|
+
text: z.ZodString;
|
|
9748
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9749
|
+
type: z.ZodEnum<{
|
|
9750
|
+
event: "event";
|
|
9751
|
+
file: "file";
|
|
9752
|
+
url: "url";
|
|
9753
|
+
user: "user";
|
|
9754
|
+
signal: "signal";
|
|
9755
|
+
}>;
|
|
9756
|
+
text: z.ZodOptional<z.ZodString>;
|
|
9757
|
+
id: z.ZodOptional<z.ZodString>;
|
|
9758
|
+
url: z.ZodOptional<z.ZodString>;
|
|
9759
|
+
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
9760
|
+
endIndex: z.ZodOptional<z.ZodNumber>;
|
|
9761
|
+
}, z.core.$strip>>>;
|
|
9762
|
+
}, z.core.$strip>;
|
|
9763
|
+
format: z.ZodLiteral<"text">;
|
|
9764
|
+
visibility: z.ZodEnum<{
|
|
9765
|
+
collapsed: "collapsed";
|
|
9766
|
+
expanded: "expanded";
|
|
9767
|
+
}>;
|
|
9768
|
+
capturedAs: z.ZodEnum<{
|
|
9769
|
+
unknown: "unknown";
|
|
9770
|
+
provider_reasoning: "provider_reasoning";
|
|
9771
|
+
reasoning_summary: "reasoning_summary";
|
|
9772
|
+
thinking: "thinking";
|
|
9773
|
+
}>;
|
|
9774
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9775
|
+
id: z.ZodString;
|
|
9776
|
+
order: z.ZodNumber;
|
|
9777
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
9778
|
+
endMs: z.ZodNullable<z.ZodNumber>;
|
|
9779
|
+
source: z.ZodObject<{
|
|
9780
|
+
adapter: z.ZodString;
|
|
9781
|
+
confidence: z.ZodEnum<{
|
|
9782
|
+
high: "high";
|
|
9783
|
+
medium: "medium";
|
|
9784
|
+
low: "low";
|
|
9785
|
+
}>;
|
|
9786
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
9787
|
+
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
9788
|
+
attributeKeys: z.ZodArray<z.ZodString>;
|
|
9789
|
+
}, z.core.$strip>;
|
|
9790
|
+
type: z.ZodLiteral<"tool_call">;
|
|
9791
|
+
callId: z.ZodNullable<z.ZodString>;
|
|
9792
|
+
name: z.ZodString;
|
|
9793
|
+
status: z.ZodEnum<{
|
|
9794
|
+
error: "error";
|
|
9795
|
+
unknown: "unknown";
|
|
9796
|
+
pending: "pending";
|
|
9797
|
+
completed: "completed";
|
|
9798
|
+
}>;
|
|
9799
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
9800
|
+
input: z.ZodObject<{
|
|
9801
|
+
kind: z.ZodEnum<{
|
|
9802
|
+
text: "text";
|
|
9803
|
+
json: "json";
|
|
9804
|
+
reference: "reference";
|
|
9805
|
+
empty: "empty";
|
|
9806
|
+
}>;
|
|
9807
|
+
raw: z.ZodNullable<z.ZodString>;
|
|
9808
|
+
truncated: z.ZodBoolean;
|
|
9809
|
+
sizeChars: z.ZodNullable<z.ZodNumber>;
|
|
9810
|
+
}, z.core.$strip>;
|
|
9811
|
+
output: z.ZodNullable<z.ZodObject<{
|
|
9812
|
+
kind: z.ZodEnum<{
|
|
9813
|
+
text: "text";
|
|
9814
|
+
json: "json";
|
|
9815
|
+
reference: "reference";
|
|
9816
|
+
empty: "empty";
|
|
9817
|
+
}>;
|
|
9818
|
+
raw: z.ZodNullable<z.ZodString>;
|
|
9819
|
+
truncated: z.ZodBoolean;
|
|
9820
|
+
sizeChars: z.ZodNullable<z.ZodNumber>;
|
|
9821
|
+
}, z.core.$strip>>;
|
|
9822
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
9823
|
+
kind: z.ZodEnum<{
|
|
9824
|
+
text: "text";
|
|
9825
|
+
json: "json";
|
|
9826
|
+
reference: "reference";
|
|
9827
|
+
empty: "empty";
|
|
9828
|
+
}>;
|
|
9829
|
+
raw: z.ZodNullable<z.ZodString>;
|
|
9830
|
+
truncated: z.ZodBoolean;
|
|
9831
|
+
sizeChars: z.ZodNullable<z.ZodNumber>;
|
|
9832
|
+
}, z.core.$strip>>;
|
|
9833
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9834
|
+
id: z.ZodString;
|
|
9835
|
+
order: z.ZodNumber;
|
|
9836
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
9837
|
+
endMs: z.ZodNullable<z.ZodNumber>;
|
|
9838
|
+
source: z.ZodObject<{
|
|
9839
|
+
adapter: z.ZodString;
|
|
9840
|
+
confidence: z.ZodEnum<{
|
|
9841
|
+
high: "high";
|
|
9842
|
+
medium: "medium";
|
|
9843
|
+
low: "low";
|
|
9844
|
+
}>;
|
|
9845
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
9846
|
+
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
9847
|
+
attributeKeys: z.ZodArray<z.ZodString>;
|
|
9848
|
+
}, z.core.$strip>;
|
|
9849
|
+
type: z.ZodLiteral<"sub_agent">;
|
|
9850
|
+
rootSpanId: z.ZodString;
|
|
9851
|
+
name: z.ZodString;
|
|
9852
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
9853
|
+
toolCount: z.ZodNumber;
|
|
9854
|
+
llmCount: z.ZodNumber;
|
|
9855
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
9856
|
+
inputPreview: z.ZodNullable<z.ZodString>;
|
|
9857
|
+
outputPreview: z.ZodNullable<z.ZodString>;
|
|
9858
|
+
status: z.ZodEnum<{
|
|
9859
|
+
error: "error";
|
|
9860
|
+
unknown: "unknown";
|
|
9861
|
+
ok: "ok";
|
|
9862
|
+
}>;
|
|
9863
|
+
model: z.ZodNullable<z.ZodString>;
|
|
9864
|
+
totalInputTokens: z.ZodNullable<z.ZodNumber>;
|
|
9865
|
+
totalOutputTokens: z.ZodNullable<z.ZodNumber>;
|
|
9866
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9867
|
+
id: z.ZodString;
|
|
9868
|
+
order: z.ZodNumber;
|
|
9869
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
9870
|
+
endMs: z.ZodNullable<z.ZodNumber>;
|
|
9871
|
+
source: z.ZodObject<{
|
|
9872
|
+
adapter: z.ZodString;
|
|
9873
|
+
confidence: z.ZodEnum<{
|
|
9874
|
+
high: "high";
|
|
9875
|
+
medium: "medium";
|
|
9876
|
+
low: "low";
|
|
9877
|
+
}>;
|
|
9878
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
9879
|
+
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
9880
|
+
attributeKeys: z.ZodArray<z.ZodString>;
|
|
9881
|
+
}, z.core.$strip>;
|
|
9882
|
+
type: z.ZodLiteral<"detached_sub_agent">;
|
|
9883
|
+
rootSpanId: z.ZodString;
|
|
9884
|
+
name: z.ZodString;
|
|
9885
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
9886
|
+
inputPreview: z.ZodNullable<z.ZodString>;
|
|
9887
|
+
outputPreview: z.ZodNullable<z.ZodString>;
|
|
9888
|
+
status: z.ZodEnum<{
|
|
9889
|
+
error: "error";
|
|
9890
|
+
unknown: "unknown";
|
|
9891
|
+
ok: "ok";
|
|
9892
|
+
}>;
|
|
9893
|
+
childEventId: z.ZodString;
|
|
9894
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9895
|
+
id: z.ZodString;
|
|
9896
|
+
order: z.ZodNumber;
|
|
9897
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
9898
|
+
endMs: z.ZodNullable<z.ZodNumber>;
|
|
9899
|
+
source: z.ZodObject<{
|
|
9900
|
+
adapter: z.ZodString;
|
|
9901
|
+
confidence: z.ZodEnum<{
|
|
9902
|
+
high: "high";
|
|
9903
|
+
medium: "medium";
|
|
9904
|
+
low: "low";
|
|
9905
|
+
}>;
|
|
9906
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
9907
|
+
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
9908
|
+
attributeKeys: z.ZodArray<z.ZodString>;
|
|
9909
|
+
}, z.core.$strip>;
|
|
9910
|
+
type: z.ZodLiteral<"agent_handoff">;
|
|
9911
|
+
fromAgent: z.ZodString;
|
|
9912
|
+
toAgent: z.ZodString;
|
|
9913
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
9914
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9915
|
+
id: z.ZodString;
|
|
9916
|
+
order: z.ZodNumber;
|
|
9917
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
9918
|
+
endMs: z.ZodNullable<z.ZodNumber>;
|
|
9919
|
+
source: z.ZodObject<{
|
|
9920
|
+
adapter: z.ZodString;
|
|
9921
|
+
confidence: z.ZodEnum<{
|
|
9922
|
+
high: "high";
|
|
9923
|
+
medium: "medium";
|
|
9924
|
+
low: "low";
|
|
9925
|
+
}>;
|
|
9926
|
+
spanIds: z.ZodArray<z.ZodString>;
|
|
9927
|
+
parentSpanIds: z.ZodArray<z.ZodString>;
|
|
9928
|
+
attributeKeys: z.ZodArray<z.ZodString>;
|
|
9929
|
+
}, z.core.$strip>;
|
|
9930
|
+
type: z.ZodLiteral<"unknown_span">;
|
|
9931
|
+
spanType: z.ZodNullable<z.ZodString>;
|
|
9932
|
+
name: z.ZodString;
|
|
9933
|
+
hiddenByDefault: z.ZodLiteral<true>;
|
|
9934
|
+
}, z.core.$strip>], "type">>;
|
|
9935
|
+
spans: z.ZodArray<z.ZodObject<{
|
|
9936
|
+
spanId: z.ZodString;
|
|
9937
|
+
parentSpanId: z.ZodNullable<z.ZodString>;
|
|
9938
|
+
traceId: z.ZodString;
|
|
9939
|
+
name: z.ZodString;
|
|
9940
|
+
spanType: z.ZodNullable<z.ZodString>;
|
|
9941
|
+
status: z.ZodNullable<z.ZodString>;
|
|
9942
|
+
startMs: z.ZodNullable<z.ZodNumber>;
|
|
9943
|
+
endMs: z.ZodNullable<z.ZodNumber>;
|
|
9944
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
9945
|
+
model: z.ZodNullable<z.ZodString>;
|
|
9946
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
9947
|
+
rendered: z.ZodBoolean;
|
|
9948
|
+
}, z.core.$strip>>;
|
|
9949
|
+
diagnostics: z.ZodObject<{
|
|
9950
|
+
extractionVersion: z.ZodLiteral<"rich-interaction/1">;
|
|
9951
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
9952
|
+
code: z.ZodEnum<{
|
|
9953
|
+
no_spans: "no_spans";
|
|
9954
|
+
missing_llm_input: "missing_llm_input";
|
|
9955
|
+
missing_llm_output: "missing_llm_output";
|
|
9956
|
+
duplicate_output_suppressed: "duplicate_output_suppressed";
|
|
9957
|
+
tool_call_unmatched: "tool_call_unmatched";
|
|
9958
|
+
payload_truncated: "payload_truncated";
|
|
9959
|
+
unknown_span_shape: "unknown_span_shape";
|
|
9960
|
+
}>;
|
|
9961
|
+
message: z.ZodString;
|
|
9962
|
+
spanIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9963
|
+
}, z.core.$strip>>;
|
|
9964
|
+
unrenderedSpanCount: z.ZodNumber;
|
|
9965
|
+
}, z.core.$strip>;
|
|
9966
|
+
}, z.core.$strip>>>;
|
|
9967
|
+
_ai_output_words: z.ZodOptional<z.ZodNumber>;
|
|
9968
|
+
_ai_input_words: z.ZodOptional<z.ZodNumber>;
|
|
9969
|
+
userTraits: z.ZodNullable<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown>>>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>>>;
|
|
9970
|
+
featureFlags: z.ZodNullable<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, string>, Record<string, string>>, z.ZodTransform<Record<string, string>, Record<string, string>>>, z.ZodObject<{}, z.core.$catchall<z.ZodString>>>>>;
|
|
9971
|
+
userCreatedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9972
|
+
userPlan: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9973
|
+
userLastPlan: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9974
|
+
userPlanChangeTs: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9975
|
+
isPending: z.ZodOptional<z.ZodBoolean>;
|
|
9976
|
+
}, z.core.$strip>;
|
|
9977
|
+
spans: z.ZodArray<z.ZodObject<{
|
|
9978
|
+
convo_id: z.ZodString;
|
|
9979
|
+
event_id: z.ZodString;
|
|
9980
|
+
custom_event_id: z.ZodString;
|
|
9981
|
+
trace_id: z.ZodString;
|
|
9982
|
+
span_id: z.ZodString;
|
|
9983
|
+
parent_span_id: z.ZodString;
|
|
9984
|
+
span_type: z.ZodEnum<{
|
|
9985
|
+
INTERNAL: "INTERNAL";
|
|
9986
|
+
LLM_GENERATION: "LLM_GENERATION";
|
|
9987
|
+
LLM_GENERATION_STREAM: "LLM_GENERATION_STREAM";
|
|
9988
|
+
TOOL_CALL: "TOOL_CALL";
|
|
9989
|
+
}>;
|
|
9990
|
+
span_name: z.ZodString;
|
|
9991
|
+
status: z.ZodEnum<{
|
|
9992
|
+
UNSET: "UNSET";
|
|
9993
|
+
OK: "OK";
|
|
9994
|
+
ERROR: "ERROR";
|
|
9995
|
+
}>;
|
|
9996
|
+
input_payload: z.ZodString;
|
|
9997
|
+
output_payload: z.ZodString;
|
|
9998
|
+
input_tokens: z.ZodNumber;
|
|
9999
|
+
output_tokens: z.ZodNumber;
|
|
10000
|
+
model: z.ZodString;
|
|
10001
|
+
provider: z.ZodString;
|
|
10002
|
+
attributes_string: z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, string>, Record<string, string>>, z.ZodTransform<Record<string, string>, Record<string, string>>>, z.ZodObject<{}, z.core.$catchall<z.ZodString>>>;
|
|
10003
|
+
attributes_num: z.ZodPipe<z.ZodPipe<z.ZodCustom<Record<string, number>, Record<string, number>>, z.ZodTransform<Record<string, number>, Record<string, number>>>, z.ZodObject<{}, z.core.$catchall<z.ZodNumber>>>;
|
|
10004
|
+
org_public_id: z.ZodString;
|
|
10005
|
+
project_id: z.ZodString;
|
|
10006
|
+
user_id: z.ZodString;
|
|
10007
|
+
start_unix_ns: z.ZodString;
|
|
10008
|
+
timestamp: z.ZodString;
|
|
10009
|
+
end_unix_ns: z.ZodString;
|
|
10010
|
+
end_timestamp: z.ZodString;
|
|
10011
|
+
duration_ns: z.ZodString;
|
|
10012
|
+
_inserted_at: z.ZodString;
|
|
10013
|
+
}, z.core.$strict>>;
|
|
10014
|
+
}, z.core.$strict>>;
|
|
10015
|
+
referenceCapture: z.ZodOptional<z.ZodObject<{
|
|
10016
|
+
sourceEventId: z.ZodString;
|
|
10017
|
+
sourceEventTimestamp: z.ZodOptional<z.ZodString>;
|
|
10018
|
+
id: z.ZodString;
|
|
10019
|
+
}, z.core.$strict>>;
|
|
10020
|
+
expectation: z.ZodOptional<z.ZodObject<{
|
|
10021
|
+
description: z.ZodString;
|
|
10022
|
+
basis: z.ZodOptional<z.ZodEnum<{
|
|
10023
|
+
code: "code";
|
|
10024
|
+
human: "human";
|
|
10025
|
+
policy: "policy";
|
|
10026
|
+
inferred: "inferred";
|
|
10027
|
+
}>>;
|
|
10028
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
10029
|
+
}, z.core.$strict>>;
|
|
10030
|
+
expectedVerdict: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
10031
|
+
pass: z.ZodBoolean;
|
|
10032
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10033
|
+
score: z.ZodNumber;
|
|
10034
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10035
|
+
value: z.ZodNumber;
|
|
10036
|
+
}, z.core.$strict>]>>;
|
|
10037
|
+
}, z.core.$strict>>;
|
|
10038
|
+
}, z.core.$strict>;
|
|
10039
|
+
type PublishEvalDatasetVersionInput = z.infer<typeof PublishEvalDatasetVersionInputSchema>;
|
|
10040
|
+
|
|
10029
10041
|
type PublishEvalDatasetOptions = {
|
|
10030
10042
|
/** Stable project-scoped identifier used by eval definitions. */
|
|
10031
10043
|
readonly slug: string;
|
|
@@ -10095,7 +10107,7 @@ declare function readEvalRun(client: ReplayClient, runId: string, options?: {
|
|
|
10095
10107
|
runId: string;
|
|
10096
10108
|
datasetId: string;
|
|
10097
10109
|
datasetVersionId: string | null;
|
|
10098
|
-
status: "
|
|
10110
|
+
status: "complete" | "failed" | "queued" | "running";
|
|
10099
10111
|
counts: {
|
|
10100
10112
|
total: number;
|
|
10101
10113
|
pending: number;
|
|
@@ -10115,10 +10127,10 @@ declare function readEvalRun(client: ReplayClient, runId: string, options?: {
|
|
|
10115
10127
|
evaluator: string;
|
|
10116
10128
|
evaluatorId: string;
|
|
10117
10129
|
programVersion: number;
|
|
10118
|
-
executedBy: "
|
|
10130
|
+
executedBy: "local" | "hosted";
|
|
10119
10131
|
id: string;
|
|
10120
10132
|
evalSlug: string;
|
|
10121
|
-
status: "
|
|
10133
|
+
status: "completed" | "failed" | "running";
|
|
10122
10134
|
summary: {
|
|
10123
10135
|
outputType: "preference";
|
|
10124
10136
|
counts: {
|