raindrop-ai 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-BMYWLBYI.mjs → chunk-JK73MFZN.mjs} +731 -130
- package/dist/{chunk-J2WYJUH7.mjs → chunk-NELGM2YD.mjs} +22 -9
- package/dist/evals/cli.js +754 -146
- package/dist/evals/cli.mjs +2 -2
- package/dist/{index-BXzOiaVu.d.mts → index-BOTg0MlJ.d.mts} +1205 -1187
- package/dist/{index-BXzOiaVu.d.ts → index-BOTg0MlJ.d.ts} +1205 -1187
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +759 -151
- package/dist/index.mjs +2 -2
- package/dist/tracing/index.d.mts +5 -1
- package/dist/tracing/index.d.ts +5 -1
- package/dist/tracing/index.js +985 -456
- package/dist/tracing/index.mjs +1 -1
- package/package.json +2 -2
|
@@ -118,9 +118,15 @@ type FlushResultCompat = void & FlushResult;
|
|
|
118
118
|
/** Payload kinds a field map can name: event items on `events/track` and
|
|
119
119
|
* `events/track_partial`, `signals/track` items and `users/identify` items. */
|
|
120
120
|
type PiiPayloadKind = "event" | "signal" | "identify";
|
|
121
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* Extra fields to redact, per payload kind (CONTRACT 11.2). `span` lists trace
|
|
123
|
+
* span attribute names, exact (`agent.session.title`) or a prefix ending in
|
|
124
|
+
* `*` (`custom.*`), redacted when `redactTracePii` is on (see `span-pii.ts`).
|
|
125
|
+
*/
|
|
122
126
|
type PiiFieldMap = {
|
|
123
127
|
[K in PiiPayloadKind]?: readonly string[];
|
|
128
|
+
} & {
|
|
129
|
+
span?: readonly string[];
|
|
124
130
|
};
|
|
125
131
|
type Attachment$1 = {
|
|
126
132
|
type: string;
|
|
@@ -20442,6 +20448,7 @@ declare const EvalContextSchema: z$1.ZodObject<{
|
|
|
20442
20448
|
}>>;
|
|
20443
20449
|
rowMetadata: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
|
|
20444
20450
|
}, "strip", z$1.ZodTypeAny, {
|
|
20451
|
+
rowMetadata: Record<string, string>;
|
|
20445
20452
|
trace: {
|
|
20446
20453
|
event: {
|
|
20447
20454
|
properties: Record<string, unknown> | null;
|
|
@@ -21076,7 +21083,6 @@ declare const EvalContextSchema: z$1.ZodObject<{
|
|
|
21076
21083
|
} | undefined;
|
|
21077
21084
|
} | undefined;
|
|
21078
21085
|
};
|
|
21079
|
-
rowMetadata: Record<string, string>;
|
|
21080
21086
|
referenceTrace?: {
|
|
21081
21087
|
event: {
|
|
21082
21088
|
properties: Record<string, unknown> | null;
|
|
@@ -21713,6 +21719,7 @@ declare const EvalContextSchema: z$1.ZodObject<{
|
|
|
21713
21719
|
} | undefined;
|
|
21714
21720
|
expectedOutput?: JsonValue | undefined;
|
|
21715
21721
|
}, {
|
|
21722
|
+
rowMetadata: Record<string, string>;
|
|
21716
21723
|
trace: {
|
|
21717
21724
|
event: {
|
|
21718
21725
|
properties: Record<string, unknown> | null;
|
|
@@ -22347,7 +22354,6 @@ declare const EvalContextSchema: z$1.ZodObject<{
|
|
|
22347
22354
|
} | undefined;
|
|
22348
22355
|
} | undefined;
|
|
22349
22356
|
};
|
|
22350
|
-
rowMetadata: Record<string, string>;
|
|
22351
22357
|
referenceTrace?: {
|
|
22352
22358
|
event: {
|
|
22353
22359
|
properties: Record<string, unknown> | null;
|
|
@@ -27467,6 +27473,11 @@ declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
|
27467
27473
|
name: string;
|
|
27468
27474
|
id: string;
|
|
27469
27475
|
output?: JsonValue | undefined;
|
|
27476
|
+
expectation?: {
|
|
27477
|
+
description: string;
|
|
27478
|
+
reference?: string | undefined;
|
|
27479
|
+
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
27480
|
+
} | undefined;
|
|
27470
27481
|
referenceTrace?: {
|
|
27471
27482
|
event: {
|
|
27472
27483
|
properties: Record<string, unknown> | null;
|
|
@@ -27870,11 +27881,6 @@ declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
|
27870
27881
|
sourceEventId: string;
|
|
27871
27882
|
sourceEventTimestamp?: string | undefined;
|
|
27872
27883
|
} | undefined;
|
|
27873
|
-
expectation?: {
|
|
27874
|
-
description: string;
|
|
27875
|
-
reference?: string | undefined;
|
|
27876
|
-
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
27877
|
-
} | undefined;
|
|
27878
27884
|
expectedVerdict?: {
|
|
27879
27885
|
pass: boolean;
|
|
27880
27886
|
} | {
|
|
@@ -27888,6 +27894,11 @@ declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
|
27888
27894
|
name: string;
|
|
27889
27895
|
id: string;
|
|
27890
27896
|
output?: JsonValue | undefined;
|
|
27897
|
+
expectation?: {
|
|
27898
|
+
description: string;
|
|
27899
|
+
reference?: string | undefined;
|
|
27900
|
+
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
27901
|
+
} | undefined;
|
|
27891
27902
|
referenceTrace?: {
|
|
27892
27903
|
event: {
|
|
27893
27904
|
properties: Record<string, unknown> | null;
|
|
@@ -28291,11 +28302,6 @@ declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
|
28291
28302
|
sourceEventId: string;
|
|
28292
28303
|
sourceEventTimestamp?: string | undefined;
|
|
28293
28304
|
} | undefined;
|
|
28294
|
-
expectation?: {
|
|
28295
|
-
description: string;
|
|
28296
|
-
reference?: string | undefined;
|
|
28297
|
-
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
28298
|
-
} | undefined;
|
|
28299
28305
|
expectedVerdict?: {
|
|
28300
28306
|
pass: boolean;
|
|
28301
28307
|
} | {
|
|
@@ -28309,6 +28315,11 @@ declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
|
28309
28315
|
name: string;
|
|
28310
28316
|
id: string;
|
|
28311
28317
|
output?: JsonValue | undefined;
|
|
28318
|
+
expectation?: {
|
|
28319
|
+
description: string;
|
|
28320
|
+
reference?: string | undefined;
|
|
28321
|
+
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
28322
|
+
} | undefined;
|
|
28312
28323
|
referenceTrace?: {
|
|
28313
28324
|
event: {
|
|
28314
28325
|
properties: Record<string, unknown> | null;
|
|
@@ -28712,11 +28723,6 @@ declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
|
28712
28723
|
sourceEventId: string;
|
|
28713
28724
|
sourceEventTimestamp?: string | undefined;
|
|
28714
28725
|
} | undefined;
|
|
28715
|
-
expectation?: {
|
|
28716
|
-
description: string;
|
|
28717
|
-
reference?: string | undefined;
|
|
28718
|
-
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
28719
|
-
} | undefined;
|
|
28720
28726
|
expectedVerdict?: {
|
|
28721
28727
|
pass: boolean;
|
|
28722
28728
|
} | {
|
|
@@ -28730,6 +28736,11 @@ declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
|
28730
28736
|
name: string;
|
|
28731
28737
|
id: string;
|
|
28732
28738
|
output?: JsonValue | undefined;
|
|
28739
|
+
expectation?: {
|
|
28740
|
+
description: string;
|
|
28741
|
+
reference?: string | undefined;
|
|
28742
|
+
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
28743
|
+
} | undefined;
|
|
28733
28744
|
referenceTrace?: {
|
|
28734
28745
|
event: {
|
|
28735
28746
|
properties: Record<string, unknown> | null;
|
|
@@ -29133,11 +29144,6 @@ declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
|
29133
29144
|
sourceEventId: string;
|
|
29134
29145
|
sourceEventTimestamp?: string | undefined;
|
|
29135
29146
|
} | undefined;
|
|
29136
|
-
expectation?: {
|
|
29137
|
-
description: string;
|
|
29138
|
-
reference?: string | undefined;
|
|
29139
|
-
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
29140
|
-
} | undefined;
|
|
29141
29147
|
expectedVerdict?: {
|
|
29142
29148
|
pass: boolean;
|
|
29143
29149
|
} | {
|
|
@@ -29157,6 +29163,11 @@ declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
|
29157
29163
|
name: string;
|
|
29158
29164
|
id: string;
|
|
29159
29165
|
output?: JsonValue | undefined;
|
|
29166
|
+
expectation?: {
|
|
29167
|
+
description: string;
|
|
29168
|
+
reference?: string | undefined;
|
|
29169
|
+
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
29170
|
+
} | undefined;
|
|
29160
29171
|
referenceTrace?: {
|
|
29161
29172
|
event: {
|
|
29162
29173
|
properties: Record<string, unknown> | null;
|
|
@@ -29560,11 +29571,6 @@ declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
|
29560
29571
|
sourceEventId: string;
|
|
29561
29572
|
sourceEventTimestamp?: string | undefined;
|
|
29562
29573
|
} | undefined;
|
|
29563
|
-
expectation?: {
|
|
29564
|
-
description: string;
|
|
29565
|
-
reference?: string | undefined;
|
|
29566
|
-
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
29567
|
-
} | undefined;
|
|
29568
29574
|
expectedVerdict?: {
|
|
29569
29575
|
pass: boolean;
|
|
29570
29576
|
} | {
|
|
@@ -29584,6 +29590,11 @@ declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
|
29584
29590
|
name: string;
|
|
29585
29591
|
id: string;
|
|
29586
29592
|
output?: JsonValue | undefined;
|
|
29593
|
+
expectation?: {
|
|
29594
|
+
description: string;
|
|
29595
|
+
reference?: string | undefined;
|
|
29596
|
+
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
29597
|
+
} | undefined;
|
|
29587
29598
|
referenceTrace?: {
|
|
29588
29599
|
event: {
|
|
29589
29600
|
properties: Record<string, unknown> | null;
|
|
@@ -29987,11 +29998,6 @@ declare const PublishEvalDatasetVersionInputSchema: z.ZodObject<{
|
|
|
29987
29998
|
sourceEventId: string;
|
|
29988
29999
|
sourceEventTimestamp?: string | undefined;
|
|
29989
30000
|
} | undefined;
|
|
29990
|
-
expectation?: {
|
|
29991
|
-
description: string;
|
|
29992
|
-
reference?: string | undefined;
|
|
29993
|
-
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
29994
|
-
} | undefined;
|
|
29995
30001
|
expectedVerdict?: {
|
|
29996
30002
|
pass: boolean;
|
|
29997
30003
|
} | {
|
|
@@ -34473,6 +34479,11 @@ declare const EvalDatasetManifestSchema: z.ZodObject<{
|
|
|
34473
34479
|
name: string;
|
|
34474
34480
|
id: string;
|
|
34475
34481
|
output?: JsonValue | undefined;
|
|
34482
|
+
expectation?: {
|
|
34483
|
+
description: string;
|
|
34484
|
+
reference?: string | undefined;
|
|
34485
|
+
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
34486
|
+
} | undefined;
|
|
34476
34487
|
referenceTrace?: {
|
|
34477
34488
|
event: {
|
|
34478
34489
|
properties: Record<string, unknown> | null;
|
|
@@ -34876,11 +34887,6 @@ declare const EvalDatasetManifestSchema: z.ZodObject<{
|
|
|
34876
34887
|
sourceEventId: string;
|
|
34877
34888
|
sourceEventTimestamp?: string | undefined;
|
|
34878
34889
|
} | undefined;
|
|
34879
|
-
expectation?: {
|
|
34880
|
-
description: string;
|
|
34881
|
-
reference?: string | undefined;
|
|
34882
|
-
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
34883
|
-
} | undefined;
|
|
34884
34890
|
expectedVerdict?: {
|
|
34885
34891
|
pass: boolean;
|
|
34886
34892
|
} | {
|
|
@@ -34895,6 +34901,11 @@ declare const EvalDatasetManifestSchema: z.ZodObject<{
|
|
|
34895
34901
|
name: string;
|
|
34896
34902
|
id: string;
|
|
34897
34903
|
output?: JsonValue | undefined;
|
|
34904
|
+
expectation?: {
|
|
34905
|
+
description: string;
|
|
34906
|
+
reference?: string | undefined;
|
|
34907
|
+
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
34908
|
+
} | undefined;
|
|
34898
34909
|
referenceTrace?: {
|
|
34899
34910
|
event: {
|
|
34900
34911
|
properties: Record<string, unknown> | null;
|
|
@@ -35298,11 +35309,6 @@ declare const EvalDatasetManifestSchema: z.ZodObject<{
|
|
|
35298
35309
|
sourceEventId: string;
|
|
35299
35310
|
sourceEventTimestamp?: string | undefined;
|
|
35300
35311
|
} | undefined;
|
|
35301
|
-
expectation?: {
|
|
35302
|
-
description: string;
|
|
35303
|
-
reference?: string | undefined;
|
|
35304
|
-
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
35305
|
-
} | undefined;
|
|
35306
35312
|
expectedVerdict?: {
|
|
35307
35313
|
pass: boolean;
|
|
35308
35314
|
} | {
|
|
@@ -39823,16 +39829,16 @@ declare const EvalDatasetManifestSchema: z.ZodObject<{
|
|
|
39823
39829
|
name: string;
|
|
39824
39830
|
id: string;
|
|
39825
39831
|
output?: JsonValue | undefined;
|
|
39826
|
-
referenceCapture?: {
|
|
39827
|
-
id: string;
|
|
39828
|
-
sourceEventId: string;
|
|
39829
|
-
sourceEventTimestamp?: string | undefined;
|
|
39830
|
-
} | undefined;
|
|
39831
39832
|
expectation?: {
|
|
39832
39833
|
description: string;
|
|
39833
39834
|
reference?: string | undefined;
|
|
39834
39835
|
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
39835
39836
|
} | undefined;
|
|
39837
|
+
referenceCapture?: {
|
|
39838
|
+
id: string;
|
|
39839
|
+
sourceEventId: string;
|
|
39840
|
+
sourceEventTimestamp?: string | undefined;
|
|
39841
|
+
} | undefined;
|
|
39836
39842
|
expectedVerdict?: {
|
|
39837
39843
|
pass: boolean;
|
|
39838
39844
|
} | {
|
|
@@ -39847,16 +39853,16 @@ declare const EvalDatasetManifestSchema: z.ZodObject<{
|
|
|
39847
39853
|
name: string;
|
|
39848
39854
|
id: string;
|
|
39849
39855
|
output?: JsonValue | undefined;
|
|
39850
|
-
referenceCapture?: {
|
|
39851
|
-
id: string;
|
|
39852
|
-
sourceEventId: string;
|
|
39853
|
-
sourceEventTimestamp?: string | undefined;
|
|
39854
|
-
} | undefined;
|
|
39855
39856
|
expectation?: {
|
|
39856
39857
|
description: string;
|
|
39857
39858
|
reference?: string | undefined;
|
|
39858
39859
|
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
39859
39860
|
} | undefined;
|
|
39861
|
+
referenceCapture?: {
|
|
39862
|
+
id: string;
|
|
39863
|
+
sourceEventId: string;
|
|
39864
|
+
sourceEventTimestamp?: string | undefined;
|
|
39865
|
+
} | undefined;
|
|
39860
39866
|
expectedVerdict?: {
|
|
39861
39867
|
pass: boolean;
|
|
39862
39868
|
} | {
|
|
@@ -39879,16 +39885,16 @@ declare const EvalDatasetManifestSchema: z.ZodObject<{
|
|
|
39879
39885
|
name: string;
|
|
39880
39886
|
id: string;
|
|
39881
39887
|
output?: JsonValue | undefined;
|
|
39882
|
-
referenceCapture?: {
|
|
39883
|
-
id: string;
|
|
39884
|
-
sourceEventId: string;
|
|
39885
|
-
sourceEventTimestamp?: string | undefined;
|
|
39886
|
-
} | undefined;
|
|
39887
39888
|
expectation?: {
|
|
39888
39889
|
description: string;
|
|
39889
39890
|
reference?: string | undefined;
|
|
39890
39891
|
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
39891
39892
|
} | undefined;
|
|
39893
|
+
referenceCapture?: {
|
|
39894
|
+
id: string;
|
|
39895
|
+
sourceEventId: string;
|
|
39896
|
+
sourceEventTimestamp?: string | undefined;
|
|
39897
|
+
} | undefined;
|
|
39892
39898
|
expectedVerdict?: {
|
|
39893
39899
|
pass: boolean;
|
|
39894
39900
|
} | {
|
|
@@ -39918,16 +39924,16 @@ declare const EvalDatasetManifestSchema: z.ZodObject<{
|
|
|
39918
39924
|
name: string;
|
|
39919
39925
|
id: string;
|
|
39920
39926
|
output?: JsonValue | undefined;
|
|
39921
|
-
referenceCapture?: {
|
|
39922
|
-
id: string;
|
|
39923
|
-
sourceEventId: string;
|
|
39924
|
-
sourceEventTimestamp?: string | undefined;
|
|
39925
|
-
} | undefined;
|
|
39926
39927
|
expectation?: {
|
|
39927
39928
|
description: string;
|
|
39928
39929
|
reference?: string | undefined;
|
|
39929
39930
|
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
39930
39931
|
} | undefined;
|
|
39932
|
+
referenceCapture?: {
|
|
39933
|
+
id: string;
|
|
39934
|
+
sourceEventId: string;
|
|
39935
|
+
sourceEventTimestamp?: string | undefined;
|
|
39936
|
+
} | undefined;
|
|
39931
39937
|
expectedVerdict?: {
|
|
39932
39938
|
pass: boolean;
|
|
39933
39939
|
} | {
|
|
@@ -49477,6 +49483,404 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
49477
49483
|
} | undefined;
|
|
49478
49484
|
}>;
|
|
49479
49485
|
}, "strip", z.ZodTypeAny, {
|
|
49486
|
+
snapshot: {
|
|
49487
|
+
event: {
|
|
49488
|
+
properties: Record<string, unknown> | null;
|
|
49489
|
+
timestamp: string;
|
|
49490
|
+
userId: string;
|
|
49491
|
+
name: string;
|
|
49492
|
+
id: string;
|
|
49493
|
+
_raindropDatabaseId: string;
|
|
49494
|
+
receivedAt: string;
|
|
49495
|
+
aiData: {
|
|
49496
|
+
model?: string | null | undefined;
|
|
49497
|
+
convoId?: string | null | undefined;
|
|
49498
|
+
input?: string | null | undefined;
|
|
49499
|
+
output?: string | null | undefined;
|
|
49500
|
+
};
|
|
49501
|
+
inputAttachments: {
|
|
49502
|
+
value: string;
|
|
49503
|
+
attachment_id: string;
|
|
49504
|
+
name: string;
|
|
49505
|
+
attachment_type: "text" | "image" | "iframe";
|
|
49506
|
+
}[];
|
|
49507
|
+
outputAttachments: {
|
|
49508
|
+
value: string;
|
|
49509
|
+
attachment_id: string;
|
|
49510
|
+
name: string;
|
|
49511
|
+
attachment_type: "text" | "image" | "iframe";
|
|
49512
|
+
}[];
|
|
49513
|
+
featureFlags?: Record<string, string> | null | undefined;
|
|
49514
|
+
projectId?: string | undefined;
|
|
49515
|
+
customEventId?: string | null | undefined;
|
|
49516
|
+
occurrencesInWindow?: number | undefined;
|
|
49517
|
+
lensInfo?: {
|
|
49518
|
+
lensId: number;
|
|
49519
|
+
sourceId: string;
|
|
49520
|
+
categoryId: number;
|
|
49521
|
+
source?: string | undefined;
|
|
49522
|
+
}[] | undefined;
|
|
49523
|
+
topics?: string[] | undefined;
|
|
49524
|
+
categories?: [string, string | null, number | null][] | undefined;
|
|
49525
|
+
categoryLog?: {
|
|
49526
|
+
lensId: number;
|
|
49527
|
+
categoryId: string;
|
|
49528
|
+
action: "add_category" | "remove_category" | "skip_category";
|
|
49529
|
+
}[] | undefined;
|
|
49530
|
+
signals?: {
|
|
49531
|
+
timestamp: string;
|
|
49532
|
+
name: string;
|
|
49533
|
+
properties?: any;
|
|
49534
|
+
score?: number | undefined;
|
|
49535
|
+
id?: string | undefined;
|
|
49536
|
+
attachmentId?: string | undefined;
|
|
49537
|
+
signalType?: string | undefined;
|
|
49538
|
+
}[] | undefined;
|
|
49539
|
+
errorSpans?: {
|
|
49540
|
+
status?: string | undefined;
|
|
49541
|
+
span_id?: string | undefined;
|
|
49542
|
+
started_at?: string | undefined;
|
|
49543
|
+
duration_ms?: number | undefined;
|
|
49544
|
+
span_type?: string | undefined;
|
|
49545
|
+
span_name?: string | undefined;
|
|
49546
|
+
output_payload?: any;
|
|
49547
|
+
}[] | undefined;
|
|
49548
|
+
regexSignals?: string[] | undefined;
|
|
49549
|
+
toolCalls?: any[] | undefined;
|
|
49550
|
+
toolCallNames?: string[] | undefined;
|
|
49551
|
+
richInteraction?: {
|
|
49552
|
+
eventId: string;
|
|
49553
|
+
entries: ({
|
|
49554
|
+
type: "system";
|
|
49555
|
+
role: "system" | "developer";
|
|
49556
|
+
id: string;
|
|
49557
|
+
source: {
|
|
49558
|
+
spanIds: string[];
|
|
49559
|
+
adapter: string;
|
|
49560
|
+
confidence: "high" | "medium" | "low";
|
|
49561
|
+
parentSpanIds: string[];
|
|
49562
|
+
attributeKeys: string[];
|
|
49563
|
+
};
|
|
49564
|
+
order: number;
|
|
49565
|
+
startMs: number | null;
|
|
49566
|
+
endMs: number | null;
|
|
49567
|
+
content: {
|
|
49568
|
+
type: "text";
|
|
49569
|
+
text: string;
|
|
49570
|
+
annotations?: {
|
|
49571
|
+
type: "event" | "url" | "file" | "user" | "signal";
|
|
49572
|
+
text?: string | undefined;
|
|
49573
|
+
url?: string | undefined;
|
|
49574
|
+
id?: string | undefined;
|
|
49575
|
+
startIndex?: number | undefined;
|
|
49576
|
+
endIndex?: number | undefined;
|
|
49577
|
+
}[] | undefined;
|
|
49578
|
+
};
|
|
49579
|
+
collapsed: true;
|
|
49580
|
+
tokenEstimate: number | null;
|
|
49581
|
+
} | {
|
|
49582
|
+
type: "user_message";
|
|
49583
|
+
role: "user";
|
|
49584
|
+
id: string;
|
|
49585
|
+
source: {
|
|
49586
|
+
spanIds: string[];
|
|
49587
|
+
adapter: string;
|
|
49588
|
+
confidence: "high" | "medium" | "low";
|
|
49589
|
+
parentSpanIds: string[];
|
|
49590
|
+
attributeKeys: string[];
|
|
49591
|
+
};
|
|
49592
|
+
order: number;
|
|
49593
|
+
startMs: number | null;
|
|
49594
|
+
endMs: number | null;
|
|
49595
|
+
content: ({
|
|
49596
|
+
type: "text";
|
|
49597
|
+
text: string;
|
|
49598
|
+
annotations?: {
|
|
49599
|
+
type: "event" | "url" | "file" | "user" | "signal";
|
|
49600
|
+
text?: string | undefined;
|
|
49601
|
+
url?: string | undefined;
|
|
49602
|
+
id?: string | undefined;
|
|
49603
|
+
startIndex?: number | undefined;
|
|
49604
|
+
endIndex?: number | undefined;
|
|
49605
|
+
}[] | undefined;
|
|
49606
|
+
} | {
|
|
49607
|
+
type: "json";
|
|
49608
|
+
raw: string | null;
|
|
49609
|
+
value?: unknown;
|
|
49610
|
+
} | {
|
|
49611
|
+
type: "image" | "file";
|
|
49612
|
+
name?: string | undefined;
|
|
49613
|
+
url?: string | undefined;
|
|
49614
|
+
mimeType?: string | undefined;
|
|
49615
|
+
fileId?: string | undefined;
|
|
49616
|
+
} | {
|
|
49617
|
+
type: "reference";
|
|
49618
|
+
label: string;
|
|
49619
|
+
refType: "stored_tool_result" | "external";
|
|
49620
|
+
href?: string | undefined;
|
|
49621
|
+
metadata?: Record<string, unknown> | undefined;
|
|
49622
|
+
})[];
|
|
49623
|
+
} | {
|
|
49624
|
+
type: "assistant_text";
|
|
49625
|
+
role: "assistant";
|
|
49626
|
+
id: string;
|
|
49627
|
+
source: {
|
|
49628
|
+
spanIds: string[];
|
|
49629
|
+
adapter: string;
|
|
49630
|
+
confidence: "high" | "medium" | "low";
|
|
49631
|
+
parentSpanIds: string[];
|
|
49632
|
+
attributeKeys: string[];
|
|
49633
|
+
};
|
|
49634
|
+
order: number;
|
|
49635
|
+
startMs: number | null;
|
|
49636
|
+
endMs: number | null;
|
|
49637
|
+
content: ({
|
|
49638
|
+
type: "text";
|
|
49639
|
+
text: string;
|
|
49640
|
+
annotations?: {
|
|
49641
|
+
type: "event" | "url" | "file" | "user" | "signal";
|
|
49642
|
+
text?: string | undefined;
|
|
49643
|
+
url?: string | undefined;
|
|
49644
|
+
id?: string | undefined;
|
|
49645
|
+
startIndex?: number | undefined;
|
|
49646
|
+
endIndex?: number | undefined;
|
|
49647
|
+
}[] | undefined;
|
|
49648
|
+
} | {
|
|
49649
|
+
type: "json";
|
|
49650
|
+
raw: string | null;
|
|
49651
|
+
value?: unknown;
|
|
49652
|
+
} | {
|
|
49653
|
+
type: "image" | "file";
|
|
49654
|
+
name?: string | undefined;
|
|
49655
|
+
url?: string | undefined;
|
|
49656
|
+
mimeType?: string | undefined;
|
|
49657
|
+
fileId?: string | undefined;
|
|
49658
|
+
} | {
|
|
49659
|
+
type: "reference";
|
|
49660
|
+
label: string;
|
|
49661
|
+
refType: "stored_tool_result" | "external";
|
|
49662
|
+
href?: string | undefined;
|
|
49663
|
+
metadata?: Record<string, unknown> | undefined;
|
|
49664
|
+
})[];
|
|
49665
|
+
format: "text" | "markdown";
|
|
49666
|
+
final: boolean;
|
|
49667
|
+
} | {
|
|
49668
|
+
type: "reasoning";
|
|
49669
|
+
id: string;
|
|
49670
|
+
source: {
|
|
49671
|
+
spanIds: string[];
|
|
49672
|
+
adapter: string;
|
|
49673
|
+
confidence: "high" | "medium" | "low";
|
|
49674
|
+
parentSpanIds: string[];
|
|
49675
|
+
attributeKeys: string[];
|
|
49676
|
+
};
|
|
49677
|
+
order: number;
|
|
49678
|
+
startMs: number | null;
|
|
49679
|
+
endMs: number | null;
|
|
49680
|
+
content: {
|
|
49681
|
+
type: "text";
|
|
49682
|
+
text: string;
|
|
49683
|
+
annotations?: {
|
|
49684
|
+
type: "event" | "url" | "file" | "user" | "signal";
|
|
49685
|
+
text?: string | undefined;
|
|
49686
|
+
url?: string | undefined;
|
|
49687
|
+
id?: string | undefined;
|
|
49688
|
+
startIndex?: number | undefined;
|
|
49689
|
+
endIndex?: number | undefined;
|
|
49690
|
+
}[] | undefined;
|
|
49691
|
+
};
|
|
49692
|
+
format: "text";
|
|
49693
|
+
visibility: "collapsed" | "expanded";
|
|
49694
|
+
capturedAs: "unknown" | "provider_reasoning" | "reasoning_summary" | "thinking";
|
|
49695
|
+
} | {
|
|
49696
|
+
type: "tool_call";
|
|
49697
|
+
status: "pending" | "unknown" | "error" | "completed";
|
|
49698
|
+
input: {
|
|
49699
|
+
raw: string | null;
|
|
49700
|
+
kind: "text" | "json" | "reference" | "empty";
|
|
49701
|
+
truncated: boolean;
|
|
49702
|
+
sizeChars: number | null;
|
|
49703
|
+
};
|
|
49704
|
+
output: {
|
|
49705
|
+
raw: string | null;
|
|
49706
|
+
kind: "text" | "json" | "reference" | "empty";
|
|
49707
|
+
truncated: boolean;
|
|
49708
|
+
sizeChars: number | null;
|
|
49709
|
+
} | null;
|
|
49710
|
+
name: string;
|
|
49711
|
+
durationMs: number | null;
|
|
49712
|
+
id: string;
|
|
49713
|
+
error: {
|
|
49714
|
+
raw: string | null;
|
|
49715
|
+
kind: "text" | "json" | "reference" | "empty";
|
|
49716
|
+
truncated: boolean;
|
|
49717
|
+
sizeChars: number | null;
|
|
49718
|
+
} | null;
|
|
49719
|
+
source: {
|
|
49720
|
+
spanIds: string[];
|
|
49721
|
+
adapter: string;
|
|
49722
|
+
confidence: "high" | "medium" | "low";
|
|
49723
|
+
parentSpanIds: string[];
|
|
49724
|
+
attributeKeys: string[];
|
|
49725
|
+
};
|
|
49726
|
+
order: number;
|
|
49727
|
+
startMs: number | null;
|
|
49728
|
+
endMs: number | null;
|
|
49729
|
+
callId: string | null;
|
|
49730
|
+
} | {
|
|
49731
|
+
type: "sub_agent";
|
|
49732
|
+
status: "unknown" | "error" | "ok";
|
|
49733
|
+
model: string | null;
|
|
49734
|
+
name: string;
|
|
49735
|
+
durationMs: number | null;
|
|
49736
|
+
id: string;
|
|
49737
|
+
spanIds: string[];
|
|
49738
|
+
source: {
|
|
49739
|
+
spanIds: string[];
|
|
49740
|
+
adapter: string;
|
|
49741
|
+
confidence: "high" | "medium" | "low";
|
|
49742
|
+
parentSpanIds: string[];
|
|
49743
|
+
attributeKeys: string[];
|
|
49744
|
+
};
|
|
49745
|
+
order: number;
|
|
49746
|
+
startMs: number | null;
|
|
49747
|
+
endMs: number | null;
|
|
49748
|
+
rootSpanId: string;
|
|
49749
|
+
toolCount: number;
|
|
49750
|
+
llmCount: number;
|
|
49751
|
+
inputPreview: string | null;
|
|
49752
|
+
outputPreview: string | null;
|
|
49753
|
+
totalInputTokens: number | null;
|
|
49754
|
+
totalOutputTokens: number | null;
|
|
49755
|
+
} | {
|
|
49756
|
+
type: "detached_sub_agent";
|
|
49757
|
+
status: "unknown" | "error" | "ok";
|
|
49758
|
+
name: string;
|
|
49759
|
+
durationMs: number | null;
|
|
49760
|
+
id: string;
|
|
49761
|
+
source: {
|
|
49762
|
+
spanIds: string[];
|
|
49763
|
+
adapter: string;
|
|
49764
|
+
confidence: "high" | "medium" | "low";
|
|
49765
|
+
parentSpanIds: string[];
|
|
49766
|
+
attributeKeys: string[];
|
|
49767
|
+
};
|
|
49768
|
+
order: number;
|
|
49769
|
+
startMs: number | null;
|
|
49770
|
+
endMs: number | null;
|
|
49771
|
+
rootSpanId: string;
|
|
49772
|
+
inputPreview: string | null;
|
|
49773
|
+
outputPreview: string | null;
|
|
49774
|
+
childEventId: string;
|
|
49775
|
+
} | {
|
|
49776
|
+
type: "agent_handoff";
|
|
49777
|
+
reason: string | null;
|
|
49778
|
+
id: string;
|
|
49779
|
+
source: {
|
|
49780
|
+
spanIds: string[];
|
|
49781
|
+
adapter: string;
|
|
49782
|
+
confidence: "high" | "medium" | "low";
|
|
49783
|
+
parentSpanIds: string[];
|
|
49784
|
+
attributeKeys: string[];
|
|
49785
|
+
};
|
|
49786
|
+
order: number;
|
|
49787
|
+
startMs: number | null;
|
|
49788
|
+
endMs: number | null;
|
|
49789
|
+
fromAgent: string;
|
|
49790
|
+
toAgent: string;
|
|
49791
|
+
} | {
|
|
49792
|
+
type: "unknown_span";
|
|
49793
|
+
name: string;
|
|
49794
|
+
id: string;
|
|
49795
|
+
source: {
|
|
49796
|
+
spanIds: string[];
|
|
49797
|
+
adapter: string;
|
|
49798
|
+
confidence: "high" | "medium" | "low";
|
|
49799
|
+
parentSpanIds: string[];
|
|
49800
|
+
attributeKeys: string[];
|
|
49801
|
+
};
|
|
49802
|
+
order: number;
|
|
49803
|
+
startMs: number | null;
|
|
49804
|
+
endMs: number | null;
|
|
49805
|
+
spanType: string | null;
|
|
49806
|
+
hiddenByDefault: true;
|
|
49807
|
+
})[];
|
|
49808
|
+
status: "complete" | "partial" | "missing_spans";
|
|
49809
|
+
durationMs: number | null;
|
|
49810
|
+
stats: {
|
|
49811
|
+
agentCount: number;
|
|
49812
|
+
llmCallCount: number;
|
|
49813
|
+
toolCallCount: number;
|
|
49814
|
+
errorCount: number;
|
|
49815
|
+
agentNames: string[];
|
|
49816
|
+
};
|
|
49817
|
+
schemaVersion: "2026-05-20";
|
|
49818
|
+
traceIds: string[];
|
|
49819
|
+
rootSpanIds: string[];
|
|
49820
|
+
startedAt: string | null;
|
|
49821
|
+
endedAt: string | null;
|
|
49822
|
+
spans: {
|
|
49823
|
+
provider: string | null;
|
|
49824
|
+
status: string | null;
|
|
49825
|
+
model: string | null;
|
|
49826
|
+
name: string;
|
|
49827
|
+
durationMs: number | null;
|
|
49828
|
+
traceId: string;
|
|
49829
|
+
startMs: number | null;
|
|
49830
|
+
endMs: number | null;
|
|
49831
|
+
spanType: string | null;
|
|
49832
|
+
spanId: string;
|
|
49833
|
+
parentSpanId: string | null;
|
|
49834
|
+
rendered: boolean;
|
|
49835
|
+
}[];
|
|
49836
|
+
diagnostics: {
|
|
49837
|
+
extractionVersion: "rich-interaction/1";
|
|
49838
|
+
warnings: {
|
|
49839
|
+
code: "no_spans" | "missing_llm_input" | "missing_llm_output" | "duplicate_output_suppressed" | "tool_call_unmatched" | "payload_truncated" | "unknown_span_shape";
|
|
49840
|
+
message: string;
|
|
49841
|
+
spanIds?: string[] | undefined;
|
|
49842
|
+
}[];
|
|
49843
|
+
unrenderedSpanCount: number;
|
|
49844
|
+
};
|
|
49845
|
+
} | null | undefined;
|
|
49846
|
+
_ai_output_words?: number | undefined;
|
|
49847
|
+
_ai_input_words?: number | undefined;
|
|
49848
|
+
userTraits?: Record<string, unknown> | null | undefined;
|
|
49849
|
+
userCreatedAt?: string | null | undefined;
|
|
49850
|
+
userPlan?: string | null | undefined;
|
|
49851
|
+
userLastPlan?: string | null | undefined;
|
|
49852
|
+
userPlanChangeTs?: string | null | undefined;
|
|
49853
|
+
isPending?: boolean | undefined;
|
|
49854
|
+
};
|
|
49855
|
+
spans: {
|
|
49856
|
+
timestamp: string;
|
|
49857
|
+
provider: string;
|
|
49858
|
+
status: "UNSET" | "OK" | "ERROR";
|
|
49859
|
+
model: string;
|
|
49860
|
+
event_id: string;
|
|
49861
|
+
user_id: string;
|
|
49862
|
+
convo_id: string;
|
|
49863
|
+
trace_id: string;
|
|
49864
|
+
span_id: string;
|
|
49865
|
+
span_type: "INTERNAL" | "LLM_GENERATION" | "LLM_GENERATION_STREAM" | "TOOL_CALL";
|
|
49866
|
+
span_name: string;
|
|
49867
|
+
output_payload: string;
|
|
49868
|
+
project_id: string;
|
|
49869
|
+
custom_event_id: string;
|
|
49870
|
+
parent_span_id: string;
|
|
49871
|
+
input_payload: string;
|
|
49872
|
+
start_unix_ns: string;
|
|
49873
|
+
end_unix_ns: string;
|
|
49874
|
+
duration_ns: string;
|
|
49875
|
+
input_tokens: number;
|
|
49876
|
+
output_tokens: number;
|
|
49877
|
+
attributes_string: Record<string, string>;
|
|
49878
|
+
attributes_num: Record<string, number>;
|
|
49879
|
+
org_public_id: string;
|
|
49880
|
+
end_timestamp: string;
|
|
49881
|
+
_inserted_at: string;
|
|
49882
|
+
}[];
|
|
49883
|
+
};
|
|
49480
49884
|
trace: {
|
|
49481
49885
|
event: {
|
|
49482
49886
|
properties: Record<string, unknown> | null;
|
|
@@ -50111,6 +50515,7 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
50111
50515
|
} | undefined;
|
|
50112
50516
|
} | undefined;
|
|
50113
50517
|
};
|
|
50518
|
+
}, {
|
|
50114
50519
|
snapshot: {
|
|
50115
50520
|
event: {
|
|
50116
50521
|
properties: Record<string, unknown> | null;
|
|
@@ -50126,18 +50531,6 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
50126
50531
|
input?: string | null | undefined;
|
|
50127
50532
|
output?: string | null | undefined;
|
|
50128
50533
|
};
|
|
50129
|
-
inputAttachments: {
|
|
50130
|
-
value: string;
|
|
50131
|
-
attachment_id: string;
|
|
50132
|
-
name: string;
|
|
50133
|
-
attachment_type: "text" | "image" | "iframe";
|
|
50134
|
-
}[];
|
|
50135
|
-
outputAttachments: {
|
|
50136
|
-
value: string;
|
|
50137
|
-
attachment_id: string;
|
|
50138
|
-
name: string;
|
|
50139
|
-
attachment_type: "text" | "image" | "iframe";
|
|
50140
|
-
}[];
|
|
50141
50534
|
featureFlags?: Record<string, string> | null | undefined;
|
|
50142
50535
|
projectId?: string | undefined;
|
|
50143
50536
|
customEventId?: string | null | undefined;
|
|
@@ -50155,10 +50548,22 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
50155
50548
|
categoryId: string;
|
|
50156
50549
|
action: "add_category" | "remove_category" | "skip_category";
|
|
50157
50550
|
}[] | undefined;
|
|
50551
|
+
inputAttachments?: (string | {
|
|
50552
|
+
value: string;
|
|
50553
|
+
attachment_id: string;
|
|
50554
|
+
name?: string | undefined;
|
|
50555
|
+
attachment_type?: "text" | "image" | "iframe" | undefined;
|
|
50556
|
+
})[] | undefined;
|
|
50557
|
+
outputAttachments?: (string | {
|
|
50558
|
+
value: string;
|
|
50559
|
+
attachment_id: string;
|
|
50560
|
+
name?: string | undefined;
|
|
50561
|
+
attachment_type?: "text" | "image" | "iframe" | undefined;
|
|
50562
|
+
})[] | undefined;
|
|
50158
50563
|
signals?: {
|
|
50564
|
+
properties: string | Record<string, unknown>;
|
|
50159
50565
|
timestamp: string;
|
|
50160
50566
|
name: string;
|
|
50161
|
-
properties?: any;
|
|
50162
50567
|
score?: number | undefined;
|
|
50163
50568
|
id?: string | undefined;
|
|
50164
50569
|
attachmentId?: string | undefined;
|
|
@@ -50509,7 +50914,6 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
50509
50914
|
_inserted_at: string;
|
|
50510
50915
|
}[];
|
|
50511
50916
|
};
|
|
50512
|
-
}, {
|
|
50513
50917
|
trace: {
|
|
50514
50918
|
event: {
|
|
50515
50919
|
properties: Record<string, unknown> | null;
|
|
@@ -51144,404 +51548,6 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
51144
51548
|
} | undefined;
|
|
51145
51549
|
} | undefined;
|
|
51146
51550
|
};
|
|
51147
|
-
snapshot: {
|
|
51148
|
-
event: {
|
|
51149
|
-
properties: Record<string, unknown> | null;
|
|
51150
|
-
timestamp: string;
|
|
51151
|
-
userId: string;
|
|
51152
|
-
name: string;
|
|
51153
|
-
id: string;
|
|
51154
|
-
_raindropDatabaseId: string;
|
|
51155
|
-
receivedAt: string;
|
|
51156
|
-
aiData: {
|
|
51157
|
-
model?: string | null | undefined;
|
|
51158
|
-
convoId?: string | null | undefined;
|
|
51159
|
-
input?: string | null | undefined;
|
|
51160
|
-
output?: string | null | undefined;
|
|
51161
|
-
};
|
|
51162
|
-
featureFlags?: Record<string, string> | null | undefined;
|
|
51163
|
-
projectId?: string | undefined;
|
|
51164
|
-
customEventId?: string | null | undefined;
|
|
51165
|
-
occurrencesInWindow?: number | undefined;
|
|
51166
|
-
lensInfo?: {
|
|
51167
|
-
lensId: number;
|
|
51168
|
-
sourceId: string;
|
|
51169
|
-
categoryId: number;
|
|
51170
|
-
source?: string | undefined;
|
|
51171
|
-
}[] | undefined;
|
|
51172
|
-
topics?: string[] | undefined;
|
|
51173
|
-
categories?: [string, string | null, number | null][] | undefined;
|
|
51174
|
-
categoryLog?: {
|
|
51175
|
-
lensId: number;
|
|
51176
|
-
categoryId: string;
|
|
51177
|
-
action: "add_category" | "remove_category" | "skip_category";
|
|
51178
|
-
}[] | undefined;
|
|
51179
|
-
inputAttachments?: (string | {
|
|
51180
|
-
value: string;
|
|
51181
|
-
attachment_id: string;
|
|
51182
|
-
name?: string | undefined;
|
|
51183
|
-
attachment_type?: "text" | "image" | "iframe" | undefined;
|
|
51184
|
-
})[] | undefined;
|
|
51185
|
-
outputAttachments?: (string | {
|
|
51186
|
-
value: string;
|
|
51187
|
-
attachment_id: string;
|
|
51188
|
-
name?: string | undefined;
|
|
51189
|
-
attachment_type?: "text" | "image" | "iframe" | undefined;
|
|
51190
|
-
})[] | undefined;
|
|
51191
|
-
signals?: {
|
|
51192
|
-
properties: string | Record<string, unknown>;
|
|
51193
|
-
timestamp: string;
|
|
51194
|
-
name: string;
|
|
51195
|
-
score?: number | undefined;
|
|
51196
|
-
id?: string | undefined;
|
|
51197
|
-
attachmentId?: string | undefined;
|
|
51198
|
-
signalType?: string | undefined;
|
|
51199
|
-
}[] | undefined;
|
|
51200
|
-
errorSpans?: {
|
|
51201
|
-
status?: string | undefined;
|
|
51202
|
-
span_id?: string | undefined;
|
|
51203
|
-
started_at?: string | undefined;
|
|
51204
|
-
duration_ms?: number | undefined;
|
|
51205
|
-
span_type?: string | undefined;
|
|
51206
|
-
span_name?: string | undefined;
|
|
51207
|
-
output_payload?: any;
|
|
51208
|
-
}[] | undefined;
|
|
51209
|
-
regexSignals?: string[] | undefined;
|
|
51210
|
-
toolCalls?: any[] | undefined;
|
|
51211
|
-
toolCallNames?: string[] | undefined;
|
|
51212
|
-
richInteraction?: {
|
|
51213
|
-
eventId: string;
|
|
51214
|
-
entries: ({
|
|
51215
|
-
type: "system";
|
|
51216
|
-
role: "system" | "developer";
|
|
51217
|
-
id: string;
|
|
51218
|
-
source: {
|
|
51219
|
-
spanIds: string[];
|
|
51220
|
-
adapter: string;
|
|
51221
|
-
confidence: "high" | "medium" | "low";
|
|
51222
|
-
parentSpanIds: string[];
|
|
51223
|
-
attributeKeys: string[];
|
|
51224
|
-
};
|
|
51225
|
-
order: number;
|
|
51226
|
-
startMs: number | null;
|
|
51227
|
-
endMs: number | null;
|
|
51228
|
-
content: {
|
|
51229
|
-
type: "text";
|
|
51230
|
-
text: string;
|
|
51231
|
-
annotations?: {
|
|
51232
|
-
type: "event" | "url" | "file" | "user" | "signal";
|
|
51233
|
-
text?: string | undefined;
|
|
51234
|
-
url?: string | undefined;
|
|
51235
|
-
id?: string | undefined;
|
|
51236
|
-
startIndex?: number | undefined;
|
|
51237
|
-
endIndex?: number | undefined;
|
|
51238
|
-
}[] | undefined;
|
|
51239
|
-
};
|
|
51240
|
-
collapsed: true;
|
|
51241
|
-
tokenEstimate: number | null;
|
|
51242
|
-
} | {
|
|
51243
|
-
type: "user_message";
|
|
51244
|
-
role: "user";
|
|
51245
|
-
id: string;
|
|
51246
|
-
source: {
|
|
51247
|
-
spanIds: string[];
|
|
51248
|
-
adapter: string;
|
|
51249
|
-
confidence: "high" | "medium" | "low";
|
|
51250
|
-
parentSpanIds: string[];
|
|
51251
|
-
attributeKeys: string[];
|
|
51252
|
-
};
|
|
51253
|
-
order: number;
|
|
51254
|
-
startMs: number | null;
|
|
51255
|
-
endMs: number | null;
|
|
51256
|
-
content: ({
|
|
51257
|
-
type: "text";
|
|
51258
|
-
text: string;
|
|
51259
|
-
annotations?: {
|
|
51260
|
-
type: "event" | "url" | "file" | "user" | "signal";
|
|
51261
|
-
text?: string | undefined;
|
|
51262
|
-
url?: string | undefined;
|
|
51263
|
-
id?: string | undefined;
|
|
51264
|
-
startIndex?: number | undefined;
|
|
51265
|
-
endIndex?: number | undefined;
|
|
51266
|
-
}[] | undefined;
|
|
51267
|
-
} | {
|
|
51268
|
-
type: "json";
|
|
51269
|
-
raw: string | null;
|
|
51270
|
-
value?: unknown;
|
|
51271
|
-
} | {
|
|
51272
|
-
type: "image" | "file";
|
|
51273
|
-
name?: string | undefined;
|
|
51274
|
-
url?: string | undefined;
|
|
51275
|
-
mimeType?: string | undefined;
|
|
51276
|
-
fileId?: string | undefined;
|
|
51277
|
-
} | {
|
|
51278
|
-
type: "reference";
|
|
51279
|
-
label: string;
|
|
51280
|
-
refType: "stored_tool_result" | "external";
|
|
51281
|
-
href?: string | undefined;
|
|
51282
|
-
metadata?: Record<string, unknown> | undefined;
|
|
51283
|
-
})[];
|
|
51284
|
-
} | {
|
|
51285
|
-
type: "assistant_text";
|
|
51286
|
-
role: "assistant";
|
|
51287
|
-
id: string;
|
|
51288
|
-
source: {
|
|
51289
|
-
spanIds: string[];
|
|
51290
|
-
adapter: string;
|
|
51291
|
-
confidence: "high" | "medium" | "low";
|
|
51292
|
-
parentSpanIds: string[];
|
|
51293
|
-
attributeKeys: string[];
|
|
51294
|
-
};
|
|
51295
|
-
order: number;
|
|
51296
|
-
startMs: number | null;
|
|
51297
|
-
endMs: number | null;
|
|
51298
|
-
content: ({
|
|
51299
|
-
type: "text";
|
|
51300
|
-
text: string;
|
|
51301
|
-
annotations?: {
|
|
51302
|
-
type: "event" | "url" | "file" | "user" | "signal";
|
|
51303
|
-
text?: string | undefined;
|
|
51304
|
-
url?: string | undefined;
|
|
51305
|
-
id?: string | undefined;
|
|
51306
|
-
startIndex?: number | undefined;
|
|
51307
|
-
endIndex?: number | undefined;
|
|
51308
|
-
}[] | undefined;
|
|
51309
|
-
} | {
|
|
51310
|
-
type: "json";
|
|
51311
|
-
raw: string | null;
|
|
51312
|
-
value?: unknown;
|
|
51313
|
-
} | {
|
|
51314
|
-
type: "image" | "file";
|
|
51315
|
-
name?: string | undefined;
|
|
51316
|
-
url?: string | undefined;
|
|
51317
|
-
mimeType?: string | undefined;
|
|
51318
|
-
fileId?: string | undefined;
|
|
51319
|
-
} | {
|
|
51320
|
-
type: "reference";
|
|
51321
|
-
label: string;
|
|
51322
|
-
refType: "stored_tool_result" | "external";
|
|
51323
|
-
href?: string | undefined;
|
|
51324
|
-
metadata?: Record<string, unknown> | undefined;
|
|
51325
|
-
})[];
|
|
51326
|
-
format: "text" | "markdown";
|
|
51327
|
-
final: boolean;
|
|
51328
|
-
} | {
|
|
51329
|
-
type: "reasoning";
|
|
51330
|
-
id: string;
|
|
51331
|
-
source: {
|
|
51332
|
-
spanIds: string[];
|
|
51333
|
-
adapter: string;
|
|
51334
|
-
confidence: "high" | "medium" | "low";
|
|
51335
|
-
parentSpanIds: string[];
|
|
51336
|
-
attributeKeys: string[];
|
|
51337
|
-
};
|
|
51338
|
-
order: number;
|
|
51339
|
-
startMs: number | null;
|
|
51340
|
-
endMs: number | null;
|
|
51341
|
-
content: {
|
|
51342
|
-
type: "text";
|
|
51343
|
-
text: string;
|
|
51344
|
-
annotations?: {
|
|
51345
|
-
type: "event" | "url" | "file" | "user" | "signal";
|
|
51346
|
-
text?: string | undefined;
|
|
51347
|
-
url?: string | undefined;
|
|
51348
|
-
id?: string | undefined;
|
|
51349
|
-
startIndex?: number | undefined;
|
|
51350
|
-
endIndex?: number | undefined;
|
|
51351
|
-
}[] | undefined;
|
|
51352
|
-
};
|
|
51353
|
-
format: "text";
|
|
51354
|
-
visibility: "collapsed" | "expanded";
|
|
51355
|
-
capturedAs: "unknown" | "provider_reasoning" | "reasoning_summary" | "thinking";
|
|
51356
|
-
} | {
|
|
51357
|
-
type: "tool_call";
|
|
51358
|
-
status: "pending" | "unknown" | "error" | "completed";
|
|
51359
|
-
input: {
|
|
51360
|
-
raw: string | null;
|
|
51361
|
-
kind: "text" | "json" | "reference" | "empty";
|
|
51362
|
-
truncated: boolean;
|
|
51363
|
-
sizeChars: number | null;
|
|
51364
|
-
};
|
|
51365
|
-
output: {
|
|
51366
|
-
raw: string | null;
|
|
51367
|
-
kind: "text" | "json" | "reference" | "empty";
|
|
51368
|
-
truncated: boolean;
|
|
51369
|
-
sizeChars: number | null;
|
|
51370
|
-
} | null;
|
|
51371
|
-
name: string;
|
|
51372
|
-
durationMs: number | null;
|
|
51373
|
-
id: string;
|
|
51374
|
-
error: {
|
|
51375
|
-
raw: string | null;
|
|
51376
|
-
kind: "text" | "json" | "reference" | "empty";
|
|
51377
|
-
truncated: boolean;
|
|
51378
|
-
sizeChars: number | null;
|
|
51379
|
-
} | null;
|
|
51380
|
-
source: {
|
|
51381
|
-
spanIds: string[];
|
|
51382
|
-
adapter: string;
|
|
51383
|
-
confidence: "high" | "medium" | "low";
|
|
51384
|
-
parentSpanIds: string[];
|
|
51385
|
-
attributeKeys: string[];
|
|
51386
|
-
};
|
|
51387
|
-
order: number;
|
|
51388
|
-
startMs: number | null;
|
|
51389
|
-
endMs: number | null;
|
|
51390
|
-
callId: string | null;
|
|
51391
|
-
} | {
|
|
51392
|
-
type: "sub_agent";
|
|
51393
|
-
status: "unknown" | "error" | "ok";
|
|
51394
|
-
model: string | null;
|
|
51395
|
-
name: string;
|
|
51396
|
-
durationMs: number | null;
|
|
51397
|
-
id: string;
|
|
51398
|
-
spanIds: string[];
|
|
51399
|
-
source: {
|
|
51400
|
-
spanIds: string[];
|
|
51401
|
-
adapter: string;
|
|
51402
|
-
confidence: "high" | "medium" | "low";
|
|
51403
|
-
parentSpanIds: string[];
|
|
51404
|
-
attributeKeys: string[];
|
|
51405
|
-
};
|
|
51406
|
-
order: number;
|
|
51407
|
-
startMs: number | null;
|
|
51408
|
-
endMs: number | null;
|
|
51409
|
-
rootSpanId: string;
|
|
51410
|
-
toolCount: number;
|
|
51411
|
-
llmCount: number;
|
|
51412
|
-
inputPreview: string | null;
|
|
51413
|
-
outputPreview: string | null;
|
|
51414
|
-
totalInputTokens: number | null;
|
|
51415
|
-
totalOutputTokens: number | null;
|
|
51416
|
-
} | {
|
|
51417
|
-
type: "detached_sub_agent";
|
|
51418
|
-
status: "unknown" | "error" | "ok";
|
|
51419
|
-
name: string;
|
|
51420
|
-
durationMs: number | null;
|
|
51421
|
-
id: string;
|
|
51422
|
-
source: {
|
|
51423
|
-
spanIds: string[];
|
|
51424
|
-
adapter: string;
|
|
51425
|
-
confidence: "high" | "medium" | "low";
|
|
51426
|
-
parentSpanIds: string[];
|
|
51427
|
-
attributeKeys: string[];
|
|
51428
|
-
};
|
|
51429
|
-
order: number;
|
|
51430
|
-
startMs: number | null;
|
|
51431
|
-
endMs: number | null;
|
|
51432
|
-
rootSpanId: string;
|
|
51433
|
-
inputPreview: string | null;
|
|
51434
|
-
outputPreview: string | null;
|
|
51435
|
-
childEventId: string;
|
|
51436
|
-
} | {
|
|
51437
|
-
type: "agent_handoff";
|
|
51438
|
-
reason: string | null;
|
|
51439
|
-
id: string;
|
|
51440
|
-
source: {
|
|
51441
|
-
spanIds: string[];
|
|
51442
|
-
adapter: string;
|
|
51443
|
-
confidence: "high" | "medium" | "low";
|
|
51444
|
-
parentSpanIds: string[];
|
|
51445
|
-
attributeKeys: string[];
|
|
51446
|
-
};
|
|
51447
|
-
order: number;
|
|
51448
|
-
startMs: number | null;
|
|
51449
|
-
endMs: number | null;
|
|
51450
|
-
fromAgent: string;
|
|
51451
|
-
toAgent: string;
|
|
51452
|
-
} | {
|
|
51453
|
-
type: "unknown_span";
|
|
51454
|
-
name: string;
|
|
51455
|
-
id: string;
|
|
51456
|
-
source: {
|
|
51457
|
-
spanIds: string[];
|
|
51458
|
-
adapter: string;
|
|
51459
|
-
confidence: "high" | "medium" | "low";
|
|
51460
|
-
parentSpanIds: string[];
|
|
51461
|
-
attributeKeys: string[];
|
|
51462
|
-
};
|
|
51463
|
-
order: number;
|
|
51464
|
-
startMs: number | null;
|
|
51465
|
-
endMs: number | null;
|
|
51466
|
-
spanType: string | null;
|
|
51467
|
-
hiddenByDefault: true;
|
|
51468
|
-
})[];
|
|
51469
|
-
status: "complete" | "partial" | "missing_spans";
|
|
51470
|
-
durationMs: number | null;
|
|
51471
|
-
stats: {
|
|
51472
|
-
agentCount: number;
|
|
51473
|
-
llmCallCount: number;
|
|
51474
|
-
toolCallCount: number;
|
|
51475
|
-
errorCount: number;
|
|
51476
|
-
agentNames: string[];
|
|
51477
|
-
};
|
|
51478
|
-
schemaVersion: "2026-05-20";
|
|
51479
|
-
traceIds: string[];
|
|
51480
|
-
rootSpanIds: string[];
|
|
51481
|
-
startedAt: string | null;
|
|
51482
|
-
endedAt: string | null;
|
|
51483
|
-
spans: {
|
|
51484
|
-
provider: string | null;
|
|
51485
|
-
status: string | null;
|
|
51486
|
-
model: string | null;
|
|
51487
|
-
name: string;
|
|
51488
|
-
durationMs: number | null;
|
|
51489
|
-
traceId: string;
|
|
51490
|
-
startMs: number | null;
|
|
51491
|
-
endMs: number | null;
|
|
51492
|
-
spanType: string | null;
|
|
51493
|
-
spanId: string;
|
|
51494
|
-
parentSpanId: string | null;
|
|
51495
|
-
rendered: boolean;
|
|
51496
|
-
}[];
|
|
51497
|
-
diagnostics: {
|
|
51498
|
-
extractionVersion: "rich-interaction/1";
|
|
51499
|
-
warnings: {
|
|
51500
|
-
code: "no_spans" | "missing_llm_input" | "missing_llm_output" | "duplicate_output_suppressed" | "tool_call_unmatched" | "payload_truncated" | "unknown_span_shape";
|
|
51501
|
-
message: string;
|
|
51502
|
-
spanIds?: string[] | undefined;
|
|
51503
|
-
}[];
|
|
51504
|
-
unrenderedSpanCount: number;
|
|
51505
|
-
};
|
|
51506
|
-
} | null | undefined;
|
|
51507
|
-
_ai_output_words?: number | undefined;
|
|
51508
|
-
_ai_input_words?: number | undefined;
|
|
51509
|
-
userTraits?: Record<string, unknown> | null | undefined;
|
|
51510
|
-
userCreatedAt?: string | null | undefined;
|
|
51511
|
-
userPlan?: string | null | undefined;
|
|
51512
|
-
userLastPlan?: string | null | undefined;
|
|
51513
|
-
userPlanChangeTs?: string | null | undefined;
|
|
51514
|
-
isPending?: boolean | undefined;
|
|
51515
|
-
};
|
|
51516
|
-
spans: {
|
|
51517
|
-
timestamp: string;
|
|
51518
|
-
provider: string;
|
|
51519
|
-
status: "UNSET" | "OK" | "ERROR";
|
|
51520
|
-
model: string;
|
|
51521
|
-
event_id: string;
|
|
51522
|
-
user_id: string;
|
|
51523
|
-
convo_id: string;
|
|
51524
|
-
trace_id: string;
|
|
51525
|
-
span_id: string;
|
|
51526
|
-
span_type: "INTERNAL" | "LLM_GENERATION" | "LLM_GENERATION_STREAM" | "TOOL_CALL";
|
|
51527
|
-
span_name: string;
|
|
51528
|
-
output_payload: string;
|
|
51529
|
-
project_id: string;
|
|
51530
|
-
custom_event_id: string;
|
|
51531
|
-
parent_span_id: string;
|
|
51532
|
-
input_payload: string;
|
|
51533
|
-
start_unix_ns: string;
|
|
51534
|
-
end_unix_ns: string;
|
|
51535
|
-
duration_ns: string;
|
|
51536
|
-
input_tokens: number;
|
|
51537
|
-
output_tokens: number;
|
|
51538
|
-
attributes_string: Record<string, string>;
|
|
51539
|
-
attributes_num: Record<string, number>;
|
|
51540
|
-
org_public_id: string;
|
|
51541
|
-
end_timestamp: string;
|
|
51542
|
-
_inserted_at: string;
|
|
51543
|
-
}[];
|
|
51544
|
-
};
|
|
51545
51551
|
}>;
|
|
51546
51552
|
} & {
|
|
51547
51553
|
reference: z.ZodOptional<z.ZodObject<{
|
|
@@ -63134,11 +63140,409 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
63134
63140
|
end_timestamp: string;
|
|
63135
63141
|
_inserted_at: string;
|
|
63136
63142
|
}[];
|
|
63137
|
-
} | undefined;
|
|
63138
|
-
}>>;
|
|
63139
|
-
}, "strip", z.ZodTypeAny, {
|
|
63140
|
-
caseId: string;
|
|
63141
|
-
candidate: {
|
|
63143
|
+
} | undefined;
|
|
63144
|
+
}>>;
|
|
63145
|
+
}, "strip", z.ZodTypeAny, {
|
|
63146
|
+
caseId: string;
|
|
63147
|
+
candidate: {
|
|
63148
|
+
snapshot: {
|
|
63149
|
+
event: {
|
|
63150
|
+
properties: Record<string, unknown> | null;
|
|
63151
|
+
timestamp: string;
|
|
63152
|
+
userId: string;
|
|
63153
|
+
name: string;
|
|
63154
|
+
id: string;
|
|
63155
|
+
_raindropDatabaseId: string;
|
|
63156
|
+
receivedAt: string;
|
|
63157
|
+
aiData: {
|
|
63158
|
+
model?: string | null | undefined;
|
|
63159
|
+
convoId?: string | null | undefined;
|
|
63160
|
+
input?: string | null | undefined;
|
|
63161
|
+
output?: string | null | undefined;
|
|
63162
|
+
};
|
|
63163
|
+
inputAttachments: {
|
|
63164
|
+
value: string;
|
|
63165
|
+
attachment_id: string;
|
|
63166
|
+
name: string;
|
|
63167
|
+
attachment_type: "text" | "image" | "iframe";
|
|
63168
|
+
}[];
|
|
63169
|
+
outputAttachments: {
|
|
63170
|
+
value: string;
|
|
63171
|
+
attachment_id: string;
|
|
63172
|
+
name: string;
|
|
63173
|
+
attachment_type: "text" | "image" | "iframe";
|
|
63174
|
+
}[];
|
|
63175
|
+
featureFlags?: Record<string, string> | null | undefined;
|
|
63176
|
+
projectId?: string | undefined;
|
|
63177
|
+
customEventId?: string | null | undefined;
|
|
63178
|
+
occurrencesInWindow?: number | undefined;
|
|
63179
|
+
lensInfo?: {
|
|
63180
|
+
lensId: number;
|
|
63181
|
+
sourceId: string;
|
|
63182
|
+
categoryId: number;
|
|
63183
|
+
source?: string | undefined;
|
|
63184
|
+
}[] | undefined;
|
|
63185
|
+
topics?: string[] | undefined;
|
|
63186
|
+
categories?: [string, string | null, number | null][] | undefined;
|
|
63187
|
+
categoryLog?: {
|
|
63188
|
+
lensId: number;
|
|
63189
|
+
categoryId: string;
|
|
63190
|
+
action: "add_category" | "remove_category" | "skip_category";
|
|
63191
|
+
}[] | undefined;
|
|
63192
|
+
signals?: {
|
|
63193
|
+
timestamp: string;
|
|
63194
|
+
name: string;
|
|
63195
|
+
properties?: any;
|
|
63196
|
+
score?: number | undefined;
|
|
63197
|
+
id?: string | undefined;
|
|
63198
|
+
attachmentId?: string | undefined;
|
|
63199
|
+
signalType?: string | undefined;
|
|
63200
|
+
}[] | undefined;
|
|
63201
|
+
errorSpans?: {
|
|
63202
|
+
status?: string | undefined;
|
|
63203
|
+
span_id?: string | undefined;
|
|
63204
|
+
started_at?: string | undefined;
|
|
63205
|
+
duration_ms?: number | undefined;
|
|
63206
|
+
span_type?: string | undefined;
|
|
63207
|
+
span_name?: string | undefined;
|
|
63208
|
+
output_payload?: any;
|
|
63209
|
+
}[] | undefined;
|
|
63210
|
+
regexSignals?: string[] | undefined;
|
|
63211
|
+
toolCalls?: any[] | undefined;
|
|
63212
|
+
toolCallNames?: string[] | undefined;
|
|
63213
|
+
richInteraction?: {
|
|
63214
|
+
eventId: string;
|
|
63215
|
+
entries: ({
|
|
63216
|
+
type: "system";
|
|
63217
|
+
role: "system" | "developer";
|
|
63218
|
+
id: string;
|
|
63219
|
+
source: {
|
|
63220
|
+
spanIds: string[];
|
|
63221
|
+
adapter: string;
|
|
63222
|
+
confidence: "high" | "medium" | "low";
|
|
63223
|
+
parentSpanIds: string[];
|
|
63224
|
+
attributeKeys: string[];
|
|
63225
|
+
};
|
|
63226
|
+
order: number;
|
|
63227
|
+
startMs: number | null;
|
|
63228
|
+
endMs: number | null;
|
|
63229
|
+
content: {
|
|
63230
|
+
type: "text";
|
|
63231
|
+
text: string;
|
|
63232
|
+
annotations?: {
|
|
63233
|
+
type: "event" | "url" | "file" | "user" | "signal";
|
|
63234
|
+
text?: string | undefined;
|
|
63235
|
+
url?: string | undefined;
|
|
63236
|
+
id?: string | undefined;
|
|
63237
|
+
startIndex?: number | undefined;
|
|
63238
|
+
endIndex?: number | undefined;
|
|
63239
|
+
}[] | undefined;
|
|
63240
|
+
};
|
|
63241
|
+
collapsed: true;
|
|
63242
|
+
tokenEstimate: number | null;
|
|
63243
|
+
} | {
|
|
63244
|
+
type: "user_message";
|
|
63245
|
+
role: "user";
|
|
63246
|
+
id: string;
|
|
63247
|
+
source: {
|
|
63248
|
+
spanIds: string[];
|
|
63249
|
+
adapter: string;
|
|
63250
|
+
confidence: "high" | "medium" | "low";
|
|
63251
|
+
parentSpanIds: string[];
|
|
63252
|
+
attributeKeys: string[];
|
|
63253
|
+
};
|
|
63254
|
+
order: number;
|
|
63255
|
+
startMs: number | null;
|
|
63256
|
+
endMs: number | null;
|
|
63257
|
+
content: ({
|
|
63258
|
+
type: "text";
|
|
63259
|
+
text: string;
|
|
63260
|
+
annotations?: {
|
|
63261
|
+
type: "event" | "url" | "file" | "user" | "signal";
|
|
63262
|
+
text?: string | undefined;
|
|
63263
|
+
url?: string | undefined;
|
|
63264
|
+
id?: string | undefined;
|
|
63265
|
+
startIndex?: number | undefined;
|
|
63266
|
+
endIndex?: number | undefined;
|
|
63267
|
+
}[] | undefined;
|
|
63268
|
+
} | {
|
|
63269
|
+
type: "json";
|
|
63270
|
+
raw: string | null;
|
|
63271
|
+
value?: unknown;
|
|
63272
|
+
} | {
|
|
63273
|
+
type: "image" | "file";
|
|
63274
|
+
name?: string | undefined;
|
|
63275
|
+
url?: string | undefined;
|
|
63276
|
+
mimeType?: string | undefined;
|
|
63277
|
+
fileId?: string | undefined;
|
|
63278
|
+
} | {
|
|
63279
|
+
type: "reference";
|
|
63280
|
+
label: string;
|
|
63281
|
+
refType: "stored_tool_result" | "external";
|
|
63282
|
+
href?: string | undefined;
|
|
63283
|
+
metadata?: Record<string, unknown> | undefined;
|
|
63284
|
+
})[];
|
|
63285
|
+
} | {
|
|
63286
|
+
type: "assistant_text";
|
|
63287
|
+
role: "assistant";
|
|
63288
|
+
id: string;
|
|
63289
|
+
source: {
|
|
63290
|
+
spanIds: string[];
|
|
63291
|
+
adapter: string;
|
|
63292
|
+
confidence: "high" | "medium" | "low";
|
|
63293
|
+
parentSpanIds: string[];
|
|
63294
|
+
attributeKeys: string[];
|
|
63295
|
+
};
|
|
63296
|
+
order: number;
|
|
63297
|
+
startMs: number | null;
|
|
63298
|
+
endMs: number | null;
|
|
63299
|
+
content: ({
|
|
63300
|
+
type: "text";
|
|
63301
|
+
text: string;
|
|
63302
|
+
annotations?: {
|
|
63303
|
+
type: "event" | "url" | "file" | "user" | "signal";
|
|
63304
|
+
text?: string | undefined;
|
|
63305
|
+
url?: string | undefined;
|
|
63306
|
+
id?: string | undefined;
|
|
63307
|
+
startIndex?: number | undefined;
|
|
63308
|
+
endIndex?: number | undefined;
|
|
63309
|
+
}[] | undefined;
|
|
63310
|
+
} | {
|
|
63311
|
+
type: "json";
|
|
63312
|
+
raw: string | null;
|
|
63313
|
+
value?: unknown;
|
|
63314
|
+
} | {
|
|
63315
|
+
type: "image" | "file";
|
|
63316
|
+
name?: string | undefined;
|
|
63317
|
+
url?: string | undefined;
|
|
63318
|
+
mimeType?: string | undefined;
|
|
63319
|
+
fileId?: string | undefined;
|
|
63320
|
+
} | {
|
|
63321
|
+
type: "reference";
|
|
63322
|
+
label: string;
|
|
63323
|
+
refType: "stored_tool_result" | "external";
|
|
63324
|
+
href?: string | undefined;
|
|
63325
|
+
metadata?: Record<string, unknown> | undefined;
|
|
63326
|
+
})[];
|
|
63327
|
+
format: "text" | "markdown";
|
|
63328
|
+
final: boolean;
|
|
63329
|
+
} | {
|
|
63330
|
+
type: "reasoning";
|
|
63331
|
+
id: string;
|
|
63332
|
+
source: {
|
|
63333
|
+
spanIds: string[];
|
|
63334
|
+
adapter: string;
|
|
63335
|
+
confidence: "high" | "medium" | "low";
|
|
63336
|
+
parentSpanIds: string[];
|
|
63337
|
+
attributeKeys: string[];
|
|
63338
|
+
};
|
|
63339
|
+
order: number;
|
|
63340
|
+
startMs: number | null;
|
|
63341
|
+
endMs: number | null;
|
|
63342
|
+
content: {
|
|
63343
|
+
type: "text";
|
|
63344
|
+
text: string;
|
|
63345
|
+
annotations?: {
|
|
63346
|
+
type: "event" | "url" | "file" | "user" | "signal";
|
|
63347
|
+
text?: string | undefined;
|
|
63348
|
+
url?: string | undefined;
|
|
63349
|
+
id?: string | undefined;
|
|
63350
|
+
startIndex?: number | undefined;
|
|
63351
|
+
endIndex?: number | undefined;
|
|
63352
|
+
}[] | undefined;
|
|
63353
|
+
};
|
|
63354
|
+
format: "text";
|
|
63355
|
+
visibility: "collapsed" | "expanded";
|
|
63356
|
+
capturedAs: "unknown" | "provider_reasoning" | "reasoning_summary" | "thinking";
|
|
63357
|
+
} | {
|
|
63358
|
+
type: "tool_call";
|
|
63359
|
+
status: "pending" | "unknown" | "error" | "completed";
|
|
63360
|
+
input: {
|
|
63361
|
+
raw: string | null;
|
|
63362
|
+
kind: "text" | "json" | "reference" | "empty";
|
|
63363
|
+
truncated: boolean;
|
|
63364
|
+
sizeChars: number | null;
|
|
63365
|
+
};
|
|
63366
|
+
output: {
|
|
63367
|
+
raw: string | null;
|
|
63368
|
+
kind: "text" | "json" | "reference" | "empty";
|
|
63369
|
+
truncated: boolean;
|
|
63370
|
+
sizeChars: number | null;
|
|
63371
|
+
} | null;
|
|
63372
|
+
name: string;
|
|
63373
|
+
durationMs: number | null;
|
|
63374
|
+
id: string;
|
|
63375
|
+
error: {
|
|
63376
|
+
raw: string | null;
|
|
63377
|
+
kind: "text" | "json" | "reference" | "empty";
|
|
63378
|
+
truncated: boolean;
|
|
63379
|
+
sizeChars: number | null;
|
|
63380
|
+
} | null;
|
|
63381
|
+
source: {
|
|
63382
|
+
spanIds: string[];
|
|
63383
|
+
adapter: string;
|
|
63384
|
+
confidence: "high" | "medium" | "low";
|
|
63385
|
+
parentSpanIds: string[];
|
|
63386
|
+
attributeKeys: string[];
|
|
63387
|
+
};
|
|
63388
|
+
order: number;
|
|
63389
|
+
startMs: number | null;
|
|
63390
|
+
endMs: number | null;
|
|
63391
|
+
callId: string | null;
|
|
63392
|
+
} | {
|
|
63393
|
+
type: "sub_agent";
|
|
63394
|
+
status: "unknown" | "error" | "ok";
|
|
63395
|
+
model: string | null;
|
|
63396
|
+
name: string;
|
|
63397
|
+
durationMs: number | null;
|
|
63398
|
+
id: string;
|
|
63399
|
+
spanIds: string[];
|
|
63400
|
+
source: {
|
|
63401
|
+
spanIds: string[];
|
|
63402
|
+
adapter: string;
|
|
63403
|
+
confidence: "high" | "medium" | "low";
|
|
63404
|
+
parentSpanIds: string[];
|
|
63405
|
+
attributeKeys: string[];
|
|
63406
|
+
};
|
|
63407
|
+
order: number;
|
|
63408
|
+
startMs: number | null;
|
|
63409
|
+
endMs: number | null;
|
|
63410
|
+
rootSpanId: string;
|
|
63411
|
+
toolCount: number;
|
|
63412
|
+
llmCount: number;
|
|
63413
|
+
inputPreview: string | null;
|
|
63414
|
+
outputPreview: string | null;
|
|
63415
|
+
totalInputTokens: number | null;
|
|
63416
|
+
totalOutputTokens: number | null;
|
|
63417
|
+
} | {
|
|
63418
|
+
type: "detached_sub_agent";
|
|
63419
|
+
status: "unknown" | "error" | "ok";
|
|
63420
|
+
name: string;
|
|
63421
|
+
durationMs: number | null;
|
|
63422
|
+
id: string;
|
|
63423
|
+
source: {
|
|
63424
|
+
spanIds: string[];
|
|
63425
|
+
adapter: string;
|
|
63426
|
+
confidence: "high" | "medium" | "low";
|
|
63427
|
+
parentSpanIds: string[];
|
|
63428
|
+
attributeKeys: string[];
|
|
63429
|
+
};
|
|
63430
|
+
order: number;
|
|
63431
|
+
startMs: number | null;
|
|
63432
|
+
endMs: number | null;
|
|
63433
|
+
rootSpanId: string;
|
|
63434
|
+
inputPreview: string | null;
|
|
63435
|
+
outputPreview: string | null;
|
|
63436
|
+
childEventId: string;
|
|
63437
|
+
} | {
|
|
63438
|
+
type: "agent_handoff";
|
|
63439
|
+
reason: string | null;
|
|
63440
|
+
id: string;
|
|
63441
|
+
source: {
|
|
63442
|
+
spanIds: string[];
|
|
63443
|
+
adapter: string;
|
|
63444
|
+
confidence: "high" | "medium" | "low";
|
|
63445
|
+
parentSpanIds: string[];
|
|
63446
|
+
attributeKeys: string[];
|
|
63447
|
+
};
|
|
63448
|
+
order: number;
|
|
63449
|
+
startMs: number | null;
|
|
63450
|
+
endMs: number | null;
|
|
63451
|
+
fromAgent: string;
|
|
63452
|
+
toAgent: string;
|
|
63453
|
+
} | {
|
|
63454
|
+
type: "unknown_span";
|
|
63455
|
+
name: string;
|
|
63456
|
+
id: string;
|
|
63457
|
+
source: {
|
|
63458
|
+
spanIds: string[];
|
|
63459
|
+
adapter: string;
|
|
63460
|
+
confidence: "high" | "medium" | "low";
|
|
63461
|
+
parentSpanIds: string[];
|
|
63462
|
+
attributeKeys: string[];
|
|
63463
|
+
};
|
|
63464
|
+
order: number;
|
|
63465
|
+
startMs: number | null;
|
|
63466
|
+
endMs: number | null;
|
|
63467
|
+
spanType: string | null;
|
|
63468
|
+
hiddenByDefault: true;
|
|
63469
|
+
})[];
|
|
63470
|
+
status: "complete" | "partial" | "missing_spans";
|
|
63471
|
+
durationMs: number | null;
|
|
63472
|
+
stats: {
|
|
63473
|
+
agentCount: number;
|
|
63474
|
+
llmCallCount: number;
|
|
63475
|
+
toolCallCount: number;
|
|
63476
|
+
errorCount: number;
|
|
63477
|
+
agentNames: string[];
|
|
63478
|
+
};
|
|
63479
|
+
schemaVersion: "2026-05-20";
|
|
63480
|
+
traceIds: string[];
|
|
63481
|
+
rootSpanIds: string[];
|
|
63482
|
+
startedAt: string | null;
|
|
63483
|
+
endedAt: string | null;
|
|
63484
|
+
spans: {
|
|
63485
|
+
provider: string | null;
|
|
63486
|
+
status: string | null;
|
|
63487
|
+
model: string | null;
|
|
63488
|
+
name: string;
|
|
63489
|
+
durationMs: number | null;
|
|
63490
|
+
traceId: string;
|
|
63491
|
+
startMs: number | null;
|
|
63492
|
+
endMs: number | null;
|
|
63493
|
+
spanType: string | null;
|
|
63494
|
+
spanId: string;
|
|
63495
|
+
parentSpanId: string | null;
|
|
63496
|
+
rendered: boolean;
|
|
63497
|
+
}[];
|
|
63498
|
+
diagnostics: {
|
|
63499
|
+
extractionVersion: "rich-interaction/1";
|
|
63500
|
+
warnings: {
|
|
63501
|
+
code: "no_spans" | "missing_llm_input" | "missing_llm_output" | "duplicate_output_suppressed" | "tool_call_unmatched" | "payload_truncated" | "unknown_span_shape";
|
|
63502
|
+
message: string;
|
|
63503
|
+
spanIds?: string[] | undefined;
|
|
63504
|
+
}[];
|
|
63505
|
+
unrenderedSpanCount: number;
|
|
63506
|
+
};
|
|
63507
|
+
} | null | undefined;
|
|
63508
|
+
_ai_output_words?: number | undefined;
|
|
63509
|
+
_ai_input_words?: number | undefined;
|
|
63510
|
+
userTraits?: Record<string, unknown> | null | undefined;
|
|
63511
|
+
userCreatedAt?: string | null | undefined;
|
|
63512
|
+
userPlan?: string | null | undefined;
|
|
63513
|
+
userLastPlan?: string | null | undefined;
|
|
63514
|
+
userPlanChangeTs?: string | null | undefined;
|
|
63515
|
+
isPending?: boolean | undefined;
|
|
63516
|
+
};
|
|
63517
|
+
spans: {
|
|
63518
|
+
timestamp: string;
|
|
63519
|
+
provider: string;
|
|
63520
|
+
status: "UNSET" | "OK" | "ERROR";
|
|
63521
|
+
model: string;
|
|
63522
|
+
event_id: string;
|
|
63523
|
+
user_id: string;
|
|
63524
|
+
convo_id: string;
|
|
63525
|
+
trace_id: string;
|
|
63526
|
+
span_id: string;
|
|
63527
|
+
span_type: "INTERNAL" | "LLM_GENERATION" | "LLM_GENERATION_STREAM" | "TOOL_CALL";
|
|
63528
|
+
span_name: string;
|
|
63529
|
+
output_payload: string;
|
|
63530
|
+
project_id: string;
|
|
63531
|
+
custom_event_id: string;
|
|
63532
|
+
parent_span_id: string;
|
|
63533
|
+
input_payload: string;
|
|
63534
|
+
start_unix_ns: string;
|
|
63535
|
+
end_unix_ns: string;
|
|
63536
|
+
duration_ns: string;
|
|
63537
|
+
input_tokens: number;
|
|
63538
|
+
output_tokens: number;
|
|
63539
|
+
attributes_string: Record<string, string>;
|
|
63540
|
+
attributes_num: Record<string, number>;
|
|
63541
|
+
org_public_id: string;
|
|
63542
|
+
end_timestamp: string;
|
|
63543
|
+
_inserted_at: string;
|
|
63544
|
+
}[];
|
|
63545
|
+
};
|
|
63142
63546
|
trace: {
|
|
63143
63547
|
event: {
|
|
63144
63548
|
properties: Record<string, unknown> | null;
|
|
@@ -63773,406 +64177,9 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
63773
64177
|
} | undefined;
|
|
63774
64178
|
} | undefined;
|
|
63775
64179
|
};
|
|
63776
|
-
snapshot: {
|
|
63777
|
-
event: {
|
|
63778
|
-
properties: Record<string, unknown> | null;
|
|
63779
|
-
timestamp: string;
|
|
63780
|
-
userId: string;
|
|
63781
|
-
name: string;
|
|
63782
|
-
id: string;
|
|
63783
|
-
_raindropDatabaseId: string;
|
|
63784
|
-
receivedAt: string;
|
|
63785
|
-
aiData: {
|
|
63786
|
-
model?: string | null | undefined;
|
|
63787
|
-
convoId?: string | null | undefined;
|
|
63788
|
-
input?: string | null | undefined;
|
|
63789
|
-
output?: string | null | undefined;
|
|
63790
|
-
};
|
|
63791
|
-
inputAttachments: {
|
|
63792
|
-
value: string;
|
|
63793
|
-
attachment_id: string;
|
|
63794
|
-
name: string;
|
|
63795
|
-
attachment_type: "text" | "image" | "iframe";
|
|
63796
|
-
}[];
|
|
63797
|
-
outputAttachments: {
|
|
63798
|
-
value: string;
|
|
63799
|
-
attachment_id: string;
|
|
63800
|
-
name: string;
|
|
63801
|
-
attachment_type: "text" | "image" | "iframe";
|
|
63802
|
-
}[];
|
|
63803
|
-
featureFlags?: Record<string, string> | null | undefined;
|
|
63804
|
-
projectId?: string | undefined;
|
|
63805
|
-
customEventId?: string | null | undefined;
|
|
63806
|
-
occurrencesInWindow?: number | undefined;
|
|
63807
|
-
lensInfo?: {
|
|
63808
|
-
lensId: number;
|
|
63809
|
-
sourceId: string;
|
|
63810
|
-
categoryId: number;
|
|
63811
|
-
source?: string | undefined;
|
|
63812
|
-
}[] | undefined;
|
|
63813
|
-
topics?: string[] | undefined;
|
|
63814
|
-
categories?: [string, string | null, number | null][] | undefined;
|
|
63815
|
-
categoryLog?: {
|
|
63816
|
-
lensId: number;
|
|
63817
|
-
categoryId: string;
|
|
63818
|
-
action: "add_category" | "remove_category" | "skip_category";
|
|
63819
|
-
}[] | undefined;
|
|
63820
|
-
signals?: {
|
|
63821
|
-
timestamp: string;
|
|
63822
|
-
name: string;
|
|
63823
|
-
properties?: any;
|
|
63824
|
-
score?: number | undefined;
|
|
63825
|
-
id?: string | undefined;
|
|
63826
|
-
attachmentId?: string | undefined;
|
|
63827
|
-
signalType?: string | undefined;
|
|
63828
|
-
}[] | undefined;
|
|
63829
|
-
errorSpans?: {
|
|
63830
|
-
status?: string | undefined;
|
|
63831
|
-
span_id?: string | undefined;
|
|
63832
|
-
started_at?: string | undefined;
|
|
63833
|
-
duration_ms?: number | undefined;
|
|
63834
|
-
span_type?: string | undefined;
|
|
63835
|
-
span_name?: string | undefined;
|
|
63836
|
-
output_payload?: any;
|
|
63837
|
-
}[] | undefined;
|
|
63838
|
-
regexSignals?: string[] | undefined;
|
|
63839
|
-
toolCalls?: any[] | undefined;
|
|
63840
|
-
toolCallNames?: string[] | undefined;
|
|
63841
|
-
richInteraction?: {
|
|
63842
|
-
eventId: string;
|
|
63843
|
-
entries: ({
|
|
63844
|
-
type: "system";
|
|
63845
|
-
role: "system" | "developer";
|
|
63846
|
-
id: string;
|
|
63847
|
-
source: {
|
|
63848
|
-
spanIds: string[];
|
|
63849
|
-
adapter: string;
|
|
63850
|
-
confidence: "high" | "medium" | "low";
|
|
63851
|
-
parentSpanIds: string[];
|
|
63852
|
-
attributeKeys: string[];
|
|
63853
|
-
};
|
|
63854
|
-
order: number;
|
|
63855
|
-
startMs: number | null;
|
|
63856
|
-
endMs: number | null;
|
|
63857
|
-
content: {
|
|
63858
|
-
type: "text";
|
|
63859
|
-
text: string;
|
|
63860
|
-
annotations?: {
|
|
63861
|
-
type: "event" | "url" | "file" | "user" | "signal";
|
|
63862
|
-
text?: string | undefined;
|
|
63863
|
-
url?: string | undefined;
|
|
63864
|
-
id?: string | undefined;
|
|
63865
|
-
startIndex?: number | undefined;
|
|
63866
|
-
endIndex?: number | undefined;
|
|
63867
|
-
}[] | undefined;
|
|
63868
|
-
};
|
|
63869
|
-
collapsed: true;
|
|
63870
|
-
tokenEstimate: number | null;
|
|
63871
|
-
} | {
|
|
63872
|
-
type: "user_message";
|
|
63873
|
-
role: "user";
|
|
63874
|
-
id: string;
|
|
63875
|
-
source: {
|
|
63876
|
-
spanIds: string[];
|
|
63877
|
-
adapter: string;
|
|
63878
|
-
confidence: "high" | "medium" | "low";
|
|
63879
|
-
parentSpanIds: string[];
|
|
63880
|
-
attributeKeys: string[];
|
|
63881
|
-
};
|
|
63882
|
-
order: number;
|
|
63883
|
-
startMs: number | null;
|
|
63884
|
-
endMs: number | null;
|
|
63885
|
-
content: ({
|
|
63886
|
-
type: "text";
|
|
63887
|
-
text: string;
|
|
63888
|
-
annotations?: {
|
|
63889
|
-
type: "event" | "url" | "file" | "user" | "signal";
|
|
63890
|
-
text?: string | undefined;
|
|
63891
|
-
url?: string | undefined;
|
|
63892
|
-
id?: string | undefined;
|
|
63893
|
-
startIndex?: number | undefined;
|
|
63894
|
-
endIndex?: number | undefined;
|
|
63895
|
-
}[] | undefined;
|
|
63896
|
-
} | {
|
|
63897
|
-
type: "json";
|
|
63898
|
-
raw: string | null;
|
|
63899
|
-
value?: unknown;
|
|
63900
|
-
} | {
|
|
63901
|
-
type: "image" | "file";
|
|
63902
|
-
name?: string | undefined;
|
|
63903
|
-
url?: string | undefined;
|
|
63904
|
-
mimeType?: string | undefined;
|
|
63905
|
-
fileId?: string | undefined;
|
|
63906
|
-
} | {
|
|
63907
|
-
type: "reference";
|
|
63908
|
-
label: string;
|
|
63909
|
-
refType: "stored_tool_result" | "external";
|
|
63910
|
-
href?: string | undefined;
|
|
63911
|
-
metadata?: Record<string, unknown> | undefined;
|
|
63912
|
-
})[];
|
|
63913
|
-
} | {
|
|
63914
|
-
type: "assistant_text";
|
|
63915
|
-
role: "assistant";
|
|
63916
|
-
id: string;
|
|
63917
|
-
source: {
|
|
63918
|
-
spanIds: string[];
|
|
63919
|
-
adapter: string;
|
|
63920
|
-
confidence: "high" | "medium" | "low";
|
|
63921
|
-
parentSpanIds: string[];
|
|
63922
|
-
attributeKeys: string[];
|
|
63923
|
-
};
|
|
63924
|
-
order: number;
|
|
63925
|
-
startMs: number | null;
|
|
63926
|
-
endMs: number | null;
|
|
63927
|
-
content: ({
|
|
63928
|
-
type: "text";
|
|
63929
|
-
text: string;
|
|
63930
|
-
annotations?: {
|
|
63931
|
-
type: "event" | "url" | "file" | "user" | "signal";
|
|
63932
|
-
text?: string | undefined;
|
|
63933
|
-
url?: string | undefined;
|
|
63934
|
-
id?: string | undefined;
|
|
63935
|
-
startIndex?: number | undefined;
|
|
63936
|
-
endIndex?: number | undefined;
|
|
63937
|
-
}[] | undefined;
|
|
63938
|
-
} | {
|
|
63939
|
-
type: "json";
|
|
63940
|
-
raw: string | null;
|
|
63941
|
-
value?: unknown;
|
|
63942
|
-
} | {
|
|
63943
|
-
type: "image" | "file";
|
|
63944
|
-
name?: string | undefined;
|
|
63945
|
-
url?: string | undefined;
|
|
63946
|
-
mimeType?: string | undefined;
|
|
63947
|
-
fileId?: string | undefined;
|
|
63948
|
-
} | {
|
|
63949
|
-
type: "reference";
|
|
63950
|
-
label: string;
|
|
63951
|
-
refType: "stored_tool_result" | "external";
|
|
63952
|
-
href?: string | undefined;
|
|
63953
|
-
metadata?: Record<string, unknown> | undefined;
|
|
63954
|
-
})[];
|
|
63955
|
-
format: "text" | "markdown";
|
|
63956
|
-
final: boolean;
|
|
63957
|
-
} | {
|
|
63958
|
-
type: "reasoning";
|
|
63959
|
-
id: string;
|
|
63960
|
-
source: {
|
|
63961
|
-
spanIds: string[];
|
|
63962
|
-
adapter: string;
|
|
63963
|
-
confidence: "high" | "medium" | "low";
|
|
63964
|
-
parentSpanIds: string[];
|
|
63965
|
-
attributeKeys: string[];
|
|
63966
|
-
};
|
|
63967
|
-
order: number;
|
|
63968
|
-
startMs: number | null;
|
|
63969
|
-
endMs: number | null;
|
|
63970
|
-
content: {
|
|
63971
|
-
type: "text";
|
|
63972
|
-
text: string;
|
|
63973
|
-
annotations?: {
|
|
63974
|
-
type: "event" | "url" | "file" | "user" | "signal";
|
|
63975
|
-
text?: string | undefined;
|
|
63976
|
-
url?: string | undefined;
|
|
63977
|
-
id?: string | undefined;
|
|
63978
|
-
startIndex?: number | undefined;
|
|
63979
|
-
endIndex?: number | undefined;
|
|
63980
|
-
}[] | undefined;
|
|
63981
|
-
};
|
|
63982
|
-
format: "text";
|
|
63983
|
-
visibility: "collapsed" | "expanded";
|
|
63984
|
-
capturedAs: "unknown" | "provider_reasoning" | "reasoning_summary" | "thinking";
|
|
63985
|
-
} | {
|
|
63986
|
-
type: "tool_call";
|
|
63987
|
-
status: "pending" | "unknown" | "error" | "completed";
|
|
63988
|
-
input: {
|
|
63989
|
-
raw: string | null;
|
|
63990
|
-
kind: "text" | "json" | "reference" | "empty";
|
|
63991
|
-
truncated: boolean;
|
|
63992
|
-
sizeChars: number | null;
|
|
63993
|
-
};
|
|
63994
|
-
output: {
|
|
63995
|
-
raw: string | null;
|
|
63996
|
-
kind: "text" | "json" | "reference" | "empty";
|
|
63997
|
-
truncated: boolean;
|
|
63998
|
-
sizeChars: number | null;
|
|
63999
|
-
} | null;
|
|
64000
|
-
name: string;
|
|
64001
|
-
durationMs: number | null;
|
|
64002
|
-
id: string;
|
|
64003
|
-
error: {
|
|
64004
|
-
raw: string | null;
|
|
64005
|
-
kind: "text" | "json" | "reference" | "empty";
|
|
64006
|
-
truncated: boolean;
|
|
64007
|
-
sizeChars: number | null;
|
|
64008
|
-
} | null;
|
|
64009
|
-
source: {
|
|
64010
|
-
spanIds: string[];
|
|
64011
|
-
adapter: string;
|
|
64012
|
-
confidence: "high" | "medium" | "low";
|
|
64013
|
-
parentSpanIds: string[];
|
|
64014
|
-
attributeKeys: string[];
|
|
64015
|
-
};
|
|
64016
|
-
order: number;
|
|
64017
|
-
startMs: number | null;
|
|
64018
|
-
endMs: number | null;
|
|
64019
|
-
callId: string | null;
|
|
64020
|
-
} | {
|
|
64021
|
-
type: "sub_agent";
|
|
64022
|
-
status: "unknown" | "error" | "ok";
|
|
64023
|
-
model: string | null;
|
|
64024
|
-
name: string;
|
|
64025
|
-
durationMs: number | null;
|
|
64026
|
-
id: string;
|
|
64027
|
-
spanIds: string[];
|
|
64028
|
-
source: {
|
|
64029
|
-
spanIds: string[];
|
|
64030
|
-
adapter: string;
|
|
64031
|
-
confidence: "high" | "medium" | "low";
|
|
64032
|
-
parentSpanIds: string[];
|
|
64033
|
-
attributeKeys: string[];
|
|
64034
|
-
};
|
|
64035
|
-
order: number;
|
|
64036
|
-
startMs: number | null;
|
|
64037
|
-
endMs: number | null;
|
|
64038
|
-
rootSpanId: string;
|
|
64039
|
-
toolCount: number;
|
|
64040
|
-
llmCount: number;
|
|
64041
|
-
inputPreview: string | null;
|
|
64042
|
-
outputPreview: string | null;
|
|
64043
|
-
totalInputTokens: number | null;
|
|
64044
|
-
totalOutputTokens: number | null;
|
|
64045
|
-
} | {
|
|
64046
|
-
type: "detached_sub_agent";
|
|
64047
|
-
status: "unknown" | "error" | "ok";
|
|
64048
|
-
name: string;
|
|
64049
|
-
durationMs: number | null;
|
|
64050
|
-
id: string;
|
|
64051
|
-
source: {
|
|
64052
|
-
spanIds: string[];
|
|
64053
|
-
adapter: string;
|
|
64054
|
-
confidence: "high" | "medium" | "low";
|
|
64055
|
-
parentSpanIds: string[];
|
|
64056
|
-
attributeKeys: string[];
|
|
64057
|
-
};
|
|
64058
|
-
order: number;
|
|
64059
|
-
startMs: number | null;
|
|
64060
|
-
endMs: number | null;
|
|
64061
|
-
rootSpanId: string;
|
|
64062
|
-
inputPreview: string | null;
|
|
64063
|
-
outputPreview: string | null;
|
|
64064
|
-
childEventId: string;
|
|
64065
|
-
} | {
|
|
64066
|
-
type: "agent_handoff";
|
|
64067
|
-
reason: string | null;
|
|
64068
|
-
id: string;
|
|
64069
|
-
source: {
|
|
64070
|
-
spanIds: string[];
|
|
64071
|
-
adapter: string;
|
|
64072
|
-
confidence: "high" | "medium" | "low";
|
|
64073
|
-
parentSpanIds: string[];
|
|
64074
|
-
attributeKeys: string[];
|
|
64075
|
-
};
|
|
64076
|
-
order: number;
|
|
64077
|
-
startMs: number | null;
|
|
64078
|
-
endMs: number | null;
|
|
64079
|
-
fromAgent: string;
|
|
64080
|
-
toAgent: string;
|
|
64081
|
-
} | {
|
|
64082
|
-
type: "unknown_span";
|
|
64083
|
-
name: string;
|
|
64084
|
-
id: string;
|
|
64085
|
-
source: {
|
|
64086
|
-
spanIds: string[];
|
|
64087
|
-
adapter: string;
|
|
64088
|
-
confidence: "high" | "medium" | "low";
|
|
64089
|
-
parentSpanIds: string[];
|
|
64090
|
-
attributeKeys: string[];
|
|
64091
|
-
};
|
|
64092
|
-
order: number;
|
|
64093
|
-
startMs: number | null;
|
|
64094
|
-
endMs: number | null;
|
|
64095
|
-
spanType: string | null;
|
|
64096
|
-
hiddenByDefault: true;
|
|
64097
|
-
})[];
|
|
64098
|
-
status: "complete" | "partial" | "missing_spans";
|
|
64099
|
-
durationMs: number | null;
|
|
64100
|
-
stats: {
|
|
64101
|
-
agentCount: number;
|
|
64102
|
-
llmCallCount: number;
|
|
64103
|
-
toolCallCount: number;
|
|
64104
|
-
errorCount: number;
|
|
64105
|
-
agentNames: string[];
|
|
64106
|
-
};
|
|
64107
|
-
schemaVersion: "2026-05-20";
|
|
64108
|
-
traceIds: string[];
|
|
64109
|
-
rootSpanIds: string[];
|
|
64110
|
-
startedAt: string | null;
|
|
64111
|
-
endedAt: string | null;
|
|
64112
|
-
spans: {
|
|
64113
|
-
provider: string | null;
|
|
64114
|
-
status: string | null;
|
|
64115
|
-
model: string | null;
|
|
64116
|
-
name: string;
|
|
64117
|
-
durationMs: number | null;
|
|
64118
|
-
traceId: string;
|
|
64119
|
-
startMs: number | null;
|
|
64120
|
-
endMs: number | null;
|
|
64121
|
-
spanType: string | null;
|
|
64122
|
-
spanId: string;
|
|
64123
|
-
parentSpanId: string | null;
|
|
64124
|
-
rendered: boolean;
|
|
64125
|
-
}[];
|
|
64126
|
-
diagnostics: {
|
|
64127
|
-
extractionVersion: "rich-interaction/1";
|
|
64128
|
-
warnings: {
|
|
64129
|
-
code: "no_spans" | "missing_llm_input" | "missing_llm_output" | "duplicate_output_suppressed" | "tool_call_unmatched" | "payload_truncated" | "unknown_span_shape";
|
|
64130
|
-
message: string;
|
|
64131
|
-
spanIds?: string[] | undefined;
|
|
64132
|
-
}[];
|
|
64133
|
-
unrenderedSpanCount: number;
|
|
64134
|
-
};
|
|
64135
|
-
} | null | undefined;
|
|
64136
|
-
_ai_output_words?: number | undefined;
|
|
64137
|
-
_ai_input_words?: number | undefined;
|
|
64138
|
-
userTraits?: Record<string, unknown> | null | undefined;
|
|
64139
|
-
userCreatedAt?: string | null | undefined;
|
|
64140
|
-
userPlan?: string | null | undefined;
|
|
64141
|
-
userLastPlan?: string | null | undefined;
|
|
64142
|
-
userPlanChangeTs?: string | null | undefined;
|
|
64143
|
-
isPending?: boolean | undefined;
|
|
64144
|
-
};
|
|
64145
|
-
spans: {
|
|
64146
|
-
timestamp: string;
|
|
64147
|
-
provider: string;
|
|
64148
|
-
status: "UNSET" | "OK" | "ERROR";
|
|
64149
|
-
model: string;
|
|
64150
|
-
event_id: string;
|
|
64151
|
-
user_id: string;
|
|
64152
|
-
convo_id: string;
|
|
64153
|
-
trace_id: string;
|
|
64154
|
-
span_id: string;
|
|
64155
|
-
span_type: "INTERNAL" | "LLM_GENERATION" | "LLM_GENERATION_STREAM" | "TOOL_CALL";
|
|
64156
|
-
span_name: string;
|
|
64157
|
-
output_payload: string;
|
|
64158
|
-
project_id: string;
|
|
64159
|
-
custom_event_id: string;
|
|
64160
|
-
parent_span_id: string;
|
|
64161
|
-
input_payload: string;
|
|
64162
|
-
start_unix_ns: string;
|
|
64163
|
-
end_unix_ns: string;
|
|
64164
|
-
duration_ns: string;
|
|
64165
|
-
input_tokens: number;
|
|
64166
|
-
output_tokens: number;
|
|
64167
|
-
attributes_string: Record<string, string>;
|
|
64168
|
-
attributes_num: Record<string, number>;
|
|
64169
|
-
org_public_id: string;
|
|
64170
|
-
end_timestamp: string;
|
|
64171
|
-
_inserted_at: string;
|
|
64172
|
-
}[];
|
|
64173
|
-
};
|
|
64174
64180
|
};
|
|
64175
64181
|
output?: JsonValue | undefined;
|
|
64182
|
+
rowMetadata?: Record<string, string> | undefined;
|
|
64176
64183
|
reference?: {
|
|
64177
64184
|
trace: {
|
|
64178
64185
|
event: {
|
|
@@ -65207,11 +65214,10 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
65207
65214
|
}[];
|
|
65208
65215
|
} | undefined;
|
|
65209
65216
|
} | undefined;
|
|
65210
|
-
rowMetadata?: Record<string, string> | undefined;
|
|
65211
65217
|
}, {
|
|
65212
65218
|
caseId: string;
|
|
65213
65219
|
candidate: {
|
|
65214
|
-
|
|
65220
|
+
snapshot: {
|
|
65215
65221
|
event: {
|
|
65216
65222
|
properties: Record<string, unknown> | null;
|
|
65217
65223
|
timestamp: string;
|
|
@@ -65580,272 +65586,36 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
65580
65586
|
userPlanChangeTs?: string | null | undefined;
|
|
65581
65587
|
isPending?: boolean | undefined;
|
|
65582
65588
|
};
|
|
65583
|
-
|
|
65584
|
-
|
|
65585
|
-
|
|
65586
|
-
|
|
65587
|
-
|
|
65588
|
-
|
|
65589
|
-
|
|
65590
|
-
|
|
65591
|
-
|
|
65592
|
-
|
|
65593
|
-
|
|
65594
|
-
|
|
65595
|
-
|
|
65596
|
-
|
|
65597
|
-
|
|
65598
|
-
|
|
65599
|
-
|
|
65600
|
-
|
|
65601
|
-
|
|
65602
|
-
|
|
65603
|
-
|
|
65604
|
-
|
|
65605
|
-
|
|
65606
|
-
|
|
65607
|
-
|
|
65608
|
-
|
|
65609
|
-
|
|
65610
|
-
|
|
65611
|
-
} | {
|
|
65612
|
-
type: "user_message";
|
|
65613
|
-
role: "user";
|
|
65614
|
-
id: string;
|
|
65615
|
-
source: {
|
|
65616
|
-
spanIds: string[];
|
|
65617
|
-
adapter: string;
|
|
65618
|
-
confidence: "high" | "medium" | "low";
|
|
65619
|
-
parentSpanIds: string[];
|
|
65620
|
-
attributeKeys: string[];
|
|
65621
|
-
};
|
|
65622
|
-
order: number;
|
|
65623
|
-
startMs: number | null;
|
|
65624
|
-
endMs: number | null;
|
|
65625
|
-
content: ({
|
|
65626
|
-
type: "text";
|
|
65627
|
-
text: string;
|
|
65628
|
-
annotations?: {
|
|
65629
|
-
type: "event" | "url" | "file" | "user" | "signal";
|
|
65630
|
-
text?: string | undefined;
|
|
65631
|
-
url?: string | undefined;
|
|
65632
|
-
id?: string | undefined;
|
|
65633
|
-
startIndex?: number | undefined;
|
|
65634
|
-
endIndex?: number | undefined;
|
|
65635
|
-
}[] | undefined;
|
|
65636
|
-
} | {
|
|
65637
|
-
type: "json";
|
|
65638
|
-
raw: string | null;
|
|
65639
|
-
value?: unknown;
|
|
65640
|
-
} | {
|
|
65641
|
-
type: "image" | "file";
|
|
65642
|
-
name?: string | undefined;
|
|
65643
|
-
url?: string | undefined;
|
|
65644
|
-
mimeType?: string | undefined;
|
|
65645
|
-
fileId?: string | undefined;
|
|
65646
|
-
} | {
|
|
65647
|
-
type: "reference";
|
|
65648
|
-
label: string;
|
|
65649
|
-
refType: "stored_tool_result" | "external";
|
|
65650
|
-
href?: string | undefined;
|
|
65651
|
-
metadata?: Record<string, unknown> | undefined;
|
|
65652
|
-
})[];
|
|
65653
|
-
} | {
|
|
65654
|
-
type: "assistant_text";
|
|
65655
|
-
role: "assistant";
|
|
65656
|
-
id: string;
|
|
65657
|
-
source: {
|
|
65658
|
-
spanIds: string[];
|
|
65659
|
-
adapter: string;
|
|
65660
|
-
confidence: "high" | "medium" | "low";
|
|
65661
|
-
parentSpanIds: string[];
|
|
65662
|
-
attributeKeys: string[];
|
|
65663
|
-
};
|
|
65664
|
-
order: number;
|
|
65665
|
-
startMs: number | null;
|
|
65666
|
-
endMs: number | null;
|
|
65667
|
-
content: ({
|
|
65668
|
-
type: "text";
|
|
65669
|
-
text: string;
|
|
65670
|
-
annotations?: {
|
|
65671
|
-
type: "event" | "url" | "file" | "user" | "signal";
|
|
65672
|
-
text?: string | undefined;
|
|
65673
|
-
url?: string | undefined;
|
|
65674
|
-
id?: string | undefined;
|
|
65675
|
-
startIndex?: number | undefined;
|
|
65676
|
-
endIndex?: number | undefined;
|
|
65677
|
-
}[] | undefined;
|
|
65678
|
-
} | {
|
|
65679
|
-
type: "json";
|
|
65680
|
-
raw: string | null;
|
|
65681
|
-
value?: unknown;
|
|
65682
|
-
} | {
|
|
65683
|
-
type: "image" | "file";
|
|
65684
|
-
name?: string | undefined;
|
|
65685
|
-
url?: string | undefined;
|
|
65686
|
-
mimeType?: string | undefined;
|
|
65687
|
-
fileId?: string | undefined;
|
|
65688
|
-
} | {
|
|
65689
|
-
type: "reference";
|
|
65690
|
-
label: string;
|
|
65691
|
-
refType: "stored_tool_result" | "external";
|
|
65692
|
-
href?: string | undefined;
|
|
65693
|
-
metadata?: Record<string, unknown> | undefined;
|
|
65694
|
-
})[];
|
|
65695
|
-
format: "text" | "markdown";
|
|
65696
|
-
final: boolean;
|
|
65697
|
-
} | {
|
|
65698
|
-
type: "reasoning";
|
|
65699
|
-
id: string;
|
|
65700
|
-
source: {
|
|
65701
|
-
spanIds: string[];
|
|
65702
|
-
adapter: string;
|
|
65703
|
-
confidence: "high" | "medium" | "low";
|
|
65704
|
-
parentSpanIds: string[];
|
|
65705
|
-
attributeKeys: string[];
|
|
65706
|
-
};
|
|
65707
|
-
order: number;
|
|
65708
|
-
startMs: number | null;
|
|
65709
|
-
endMs: number | null;
|
|
65710
|
-
content: {
|
|
65711
|
-
type: "text";
|
|
65712
|
-
text: string;
|
|
65713
|
-
annotations?: {
|
|
65714
|
-
type: "event" | "url" | "file" | "user" | "signal";
|
|
65715
|
-
text?: string | undefined;
|
|
65716
|
-
url?: string | undefined;
|
|
65717
|
-
id?: string | undefined;
|
|
65718
|
-
startIndex?: number | undefined;
|
|
65719
|
-
endIndex?: number | undefined;
|
|
65720
|
-
}[] | undefined;
|
|
65721
|
-
};
|
|
65722
|
-
format: "text";
|
|
65723
|
-
visibility: "collapsed" | "expanded";
|
|
65724
|
-
capturedAs: "unknown" | "provider_reasoning" | "reasoning_summary" | "thinking";
|
|
65725
|
-
} | {
|
|
65726
|
-
type: "tool_call";
|
|
65727
|
-
status: "pending" | "unknown" | "error" | "completed";
|
|
65728
|
-
input: {
|
|
65729
|
-
raw: string | null;
|
|
65730
|
-
kind: "text" | "json" | "reference" | "empty";
|
|
65731
|
-
truncated: boolean;
|
|
65732
|
-
sizeChars: number | null;
|
|
65733
|
-
};
|
|
65734
|
-
output: {
|
|
65735
|
-
raw: string | null;
|
|
65736
|
-
kind: "text" | "json" | "reference" | "empty";
|
|
65737
|
-
truncated: boolean;
|
|
65738
|
-
sizeChars: number | null;
|
|
65739
|
-
} | null;
|
|
65740
|
-
name: string;
|
|
65741
|
-
durationMs: number | null;
|
|
65742
|
-
id: string;
|
|
65743
|
-
error: {
|
|
65744
|
-
raw: string | null;
|
|
65745
|
-
kind: "text" | "json" | "reference" | "empty";
|
|
65746
|
-
truncated: boolean;
|
|
65747
|
-
sizeChars: number | null;
|
|
65748
|
-
} | null;
|
|
65749
|
-
source: {
|
|
65750
|
-
spanIds: string[];
|
|
65751
|
-
adapter: string;
|
|
65752
|
-
confidence: "high" | "medium" | "low";
|
|
65753
|
-
parentSpanIds: string[];
|
|
65754
|
-
attributeKeys: string[];
|
|
65755
|
-
};
|
|
65756
|
-
order: number;
|
|
65757
|
-
startMs: number | null;
|
|
65758
|
-
endMs: number | null;
|
|
65759
|
-
callId: string | null;
|
|
65760
|
-
} | {
|
|
65761
|
-
type: "sub_agent";
|
|
65762
|
-
status: "unknown" | "error" | "ok";
|
|
65763
|
-
model: string | null;
|
|
65764
|
-
name: string;
|
|
65765
|
-
durationMs: number | null;
|
|
65766
|
-
id: string;
|
|
65767
|
-
spanIds: string[];
|
|
65768
|
-
source: {
|
|
65769
|
-
spanIds: string[];
|
|
65770
|
-
adapter: string;
|
|
65771
|
-
confidence: "high" | "medium" | "low";
|
|
65772
|
-
parentSpanIds: string[];
|
|
65773
|
-
attributeKeys: string[];
|
|
65774
|
-
};
|
|
65775
|
-
order: number;
|
|
65776
|
-
startMs: number | null;
|
|
65777
|
-
endMs: number | null;
|
|
65778
|
-
rootSpanId: string;
|
|
65779
|
-
toolCount: number;
|
|
65780
|
-
llmCount: number;
|
|
65781
|
-
inputPreview: string | null;
|
|
65782
|
-
outputPreview: string | null;
|
|
65783
|
-
totalInputTokens: number | null;
|
|
65784
|
-
totalOutputTokens: number | null;
|
|
65785
|
-
} | {
|
|
65786
|
-
type: "detached_sub_agent";
|
|
65787
|
-
status: "unknown" | "error" | "ok";
|
|
65788
|
-
name: string;
|
|
65789
|
-
durationMs: number | null;
|
|
65790
|
-
id: string;
|
|
65791
|
-
source: {
|
|
65792
|
-
spanIds: string[];
|
|
65793
|
-
adapter: string;
|
|
65794
|
-
confidence: "high" | "medium" | "low";
|
|
65795
|
-
parentSpanIds: string[];
|
|
65796
|
-
attributeKeys: string[];
|
|
65797
|
-
};
|
|
65798
|
-
order: number;
|
|
65799
|
-
startMs: number | null;
|
|
65800
|
-
endMs: number | null;
|
|
65801
|
-
rootSpanId: string;
|
|
65802
|
-
inputPreview: string | null;
|
|
65803
|
-
outputPreview: string | null;
|
|
65804
|
-
childEventId: string;
|
|
65805
|
-
} | {
|
|
65806
|
-
type: "agent_handoff";
|
|
65807
|
-
reason: string | null;
|
|
65808
|
-
id: string;
|
|
65809
|
-
source: {
|
|
65810
|
-
spanIds: string[];
|
|
65811
|
-
adapter: string;
|
|
65812
|
-
confidence: "high" | "medium" | "low";
|
|
65813
|
-
parentSpanIds: string[];
|
|
65814
|
-
attributeKeys: string[];
|
|
65815
|
-
};
|
|
65816
|
-
order: number;
|
|
65817
|
-
startMs: number | null;
|
|
65818
|
-
endMs: number | null;
|
|
65819
|
-
fromAgent: string;
|
|
65820
|
-
toAgent: string;
|
|
65821
|
-
} | {
|
|
65822
|
-
type: "unknown_span";
|
|
65823
|
-
name: string;
|
|
65824
|
-
id: string;
|
|
65825
|
-
source: {
|
|
65826
|
-
spanIds: string[];
|
|
65827
|
-
adapter: string;
|
|
65828
|
-
confidence: "high" | "medium" | "low";
|
|
65829
|
-
parentSpanIds: string[];
|
|
65830
|
-
attributeKeys: string[];
|
|
65831
|
-
};
|
|
65832
|
-
order: number;
|
|
65833
|
-
startMs: number | null;
|
|
65834
|
-
endMs: number | null;
|
|
65835
|
-
spanType: string | null;
|
|
65836
|
-
hiddenByDefault: true;
|
|
65837
|
-
})[];
|
|
65838
|
-
origin: "replay" | "dataset";
|
|
65839
|
-
caseContext?: {
|
|
65840
|
-
caseId: string;
|
|
65841
|
-
expectation?: {
|
|
65842
|
-
description: string;
|
|
65843
|
-
reference?: string | undefined;
|
|
65844
|
-
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
65845
|
-
} | undefined;
|
|
65846
|
-
} | undefined;
|
|
65589
|
+
spans: {
|
|
65590
|
+
timestamp: string;
|
|
65591
|
+
provider: string;
|
|
65592
|
+
status: "UNSET" | "OK" | "ERROR";
|
|
65593
|
+
model: string;
|
|
65594
|
+
event_id: string;
|
|
65595
|
+
user_id: string;
|
|
65596
|
+
convo_id: string;
|
|
65597
|
+
trace_id: string;
|
|
65598
|
+
span_id: string;
|
|
65599
|
+
span_type: "INTERNAL" | "LLM_GENERATION" | "LLM_GENERATION_STREAM" | "TOOL_CALL";
|
|
65600
|
+
span_name: string;
|
|
65601
|
+
output_payload: string;
|
|
65602
|
+
project_id: string;
|
|
65603
|
+
custom_event_id: string;
|
|
65604
|
+
parent_span_id: string;
|
|
65605
|
+
input_payload: string;
|
|
65606
|
+
start_unix_ns: string;
|
|
65607
|
+
end_unix_ns: string;
|
|
65608
|
+
duration_ns: string;
|
|
65609
|
+
input_tokens: number;
|
|
65610
|
+
output_tokens: number;
|
|
65611
|
+
attributes_string: Record<string, string>;
|
|
65612
|
+
attributes_num: Record<string, number>;
|
|
65613
|
+
org_public_id: string;
|
|
65614
|
+
end_timestamp: string;
|
|
65615
|
+
_inserted_at: string;
|
|
65616
|
+
}[];
|
|
65847
65617
|
};
|
|
65848
|
-
|
|
65618
|
+
trace: {
|
|
65849
65619
|
event: {
|
|
65850
65620
|
properties: Record<string, unknown> | null;
|
|
65851
65621
|
timestamp: string;
|
|
@@ -66214,37 +65984,274 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
66214
65984
|
userPlanChangeTs?: string | null | undefined;
|
|
66215
65985
|
isPending?: boolean | undefined;
|
|
66216
65986
|
};
|
|
66217
|
-
|
|
66218
|
-
|
|
66219
|
-
|
|
66220
|
-
|
|
66221
|
-
|
|
66222
|
-
|
|
66223
|
-
|
|
66224
|
-
|
|
66225
|
-
|
|
66226
|
-
|
|
66227
|
-
|
|
66228
|
-
|
|
66229
|
-
|
|
66230
|
-
|
|
66231
|
-
|
|
66232
|
-
|
|
66233
|
-
|
|
66234
|
-
|
|
66235
|
-
|
|
66236
|
-
|
|
66237
|
-
|
|
66238
|
-
|
|
66239
|
-
|
|
66240
|
-
|
|
66241
|
-
|
|
66242
|
-
|
|
66243
|
-
|
|
66244
|
-
|
|
65987
|
+
entries: ({
|
|
65988
|
+
type: "system";
|
|
65989
|
+
role: "system" | "developer";
|
|
65990
|
+
id: string;
|
|
65991
|
+
source: {
|
|
65992
|
+
spanIds: string[];
|
|
65993
|
+
adapter: string;
|
|
65994
|
+
confidence: "high" | "medium" | "low";
|
|
65995
|
+
parentSpanIds: string[];
|
|
65996
|
+
attributeKeys: string[];
|
|
65997
|
+
};
|
|
65998
|
+
order: number;
|
|
65999
|
+
startMs: number | null;
|
|
66000
|
+
endMs: number | null;
|
|
66001
|
+
content: {
|
|
66002
|
+
type: "text";
|
|
66003
|
+
text: string;
|
|
66004
|
+
annotations?: {
|
|
66005
|
+
type: "event" | "url" | "file" | "user" | "signal";
|
|
66006
|
+
text?: string | undefined;
|
|
66007
|
+
url?: string | undefined;
|
|
66008
|
+
id?: string | undefined;
|
|
66009
|
+
startIndex?: number | undefined;
|
|
66010
|
+
endIndex?: number | undefined;
|
|
66011
|
+
}[] | undefined;
|
|
66012
|
+
};
|
|
66013
|
+
collapsed: true;
|
|
66014
|
+
tokenEstimate: number | null;
|
|
66015
|
+
} | {
|
|
66016
|
+
type: "user_message";
|
|
66017
|
+
role: "user";
|
|
66018
|
+
id: string;
|
|
66019
|
+
source: {
|
|
66020
|
+
spanIds: string[];
|
|
66021
|
+
adapter: string;
|
|
66022
|
+
confidence: "high" | "medium" | "low";
|
|
66023
|
+
parentSpanIds: string[];
|
|
66024
|
+
attributeKeys: string[];
|
|
66025
|
+
};
|
|
66026
|
+
order: number;
|
|
66027
|
+
startMs: number | null;
|
|
66028
|
+
endMs: number | null;
|
|
66029
|
+
content: ({
|
|
66030
|
+
type: "text";
|
|
66031
|
+
text: string;
|
|
66032
|
+
annotations?: {
|
|
66033
|
+
type: "event" | "url" | "file" | "user" | "signal";
|
|
66034
|
+
text?: string | undefined;
|
|
66035
|
+
url?: string | undefined;
|
|
66036
|
+
id?: string | undefined;
|
|
66037
|
+
startIndex?: number | undefined;
|
|
66038
|
+
endIndex?: number | undefined;
|
|
66039
|
+
}[] | undefined;
|
|
66040
|
+
} | {
|
|
66041
|
+
type: "json";
|
|
66042
|
+
raw: string | null;
|
|
66043
|
+
value?: unknown;
|
|
66044
|
+
} | {
|
|
66045
|
+
type: "image" | "file";
|
|
66046
|
+
name?: string | undefined;
|
|
66047
|
+
url?: string | undefined;
|
|
66048
|
+
mimeType?: string | undefined;
|
|
66049
|
+
fileId?: string | undefined;
|
|
66050
|
+
} | {
|
|
66051
|
+
type: "reference";
|
|
66052
|
+
label: string;
|
|
66053
|
+
refType: "stored_tool_result" | "external";
|
|
66054
|
+
href?: string | undefined;
|
|
66055
|
+
metadata?: Record<string, unknown> | undefined;
|
|
66056
|
+
})[];
|
|
66057
|
+
} | {
|
|
66058
|
+
type: "assistant_text";
|
|
66059
|
+
role: "assistant";
|
|
66060
|
+
id: string;
|
|
66061
|
+
source: {
|
|
66062
|
+
spanIds: string[];
|
|
66063
|
+
adapter: string;
|
|
66064
|
+
confidence: "high" | "medium" | "low";
|
|
66065
|
+
parentSpanIds: string[];
|
|
66066
|
+
attributeKeys: string[];
|
|
66067
|
+
};
|
|
66068
|
+
order: number;
|
|
66069
|
+
startMs: number | null;
|
|
66070
|
+
endMs: number | null;
|
|
66071
|
+
content: ({
|
|
66072
|
+
type: "text";
|
|
66073
|
+
text: string;
|
|
66074
|
+
annotations?: {
|
|
66075
|
+
type: "event" | "url" | "file" | "user" | "signal";
|
|
66076
|
+
text?: string | undefined;
|
|
66077
|
+
url?: string | undefined;
|
|
66078
|
+
id?: string | undefined;
|
|
66079
|
+
startIndex?: number | undefined;
|
|
66080
|
+
endIndex?: number | undefined;
|
|
66081
|
+
}[] | undefined;
|
|
66082
|
+
} | {
|
|
66083
|
+
type: "json";
|
|
66084
|
+
raw: string | null;
|
|
66085
|
+
value?: unknown;
|
|
66086
|
+
} | {
|
|
66087
|
+
type: "image" | "file";
|
|
66088
|
+
name?: string | undefined;
|
|
66089
|
+
url?: string | undefined;
|
|
66090
|
+
mimeType?: string | undefined;
|
|
66091
|
+
fileId?: string | undefined;
|
|
66092
|
+
} | {
|
|
66093
|
+
type: "reference";
|
|
66094
|
+
label: string;
|
|
66095
|
+
refType: "stored_tool_result" | "external";
|
|
66096
|
+
href?: string | undefined;
|
|
66097
|
+
metadata?: Record<string, unknown> | undefined;
|
|
66098
|
+
})[];
|
|
66099
|
+
format: "text" | "markdown";
|
|
66100
|
+
final: boolean;
|
|
66101
|
+
} | {
|
|
66102
|
+
type: "reasoning";
|
|
66103
|
+
id: string;
|
|
66104
|
+
source: {
|
|
66105
|
+
spanIds: string[];
|
|
66106
|
+
adapter: string;
|
|
66107
|
+
confidence: "high" | "medium" | "low";
|
|
66108
|
+
parentSpanIds: string[];
|
|
66109
|
+
attributeKeys: string[];
|
|
66110
|
+
};
|
|
66111
|
+
order: number;
|
|
66112
|
+
startMs: number | null;
|
|
66113
|
+
endMs: number | null;
|
|
66114
|
+
content: {
|
|
66115
|
+
type: "text";
|
|
66116
|
+
text: string;
|
|
66117
|
+
annotations?: {
|
|
66118
|
+
type: "event" | "url" | "file" | "user" | "signal";
|
|
66119
|
+
text?: string | undefined;
|
|
66120
|
+
url?: string | undefined;
|
|
66121
|
+
id?: string | undefined;
|
|
66122
|
+
startIndex?: number | undefined;
|
|
66123
|
+
endIndex?: number | undefined;
|
|
66124
|
+
}[] | undefined;
|
|
66125
|
+
};
|
|
66126
|
+
format: "text";
|
|
66127
|
+
visibility: "collapsed" | "expanded";
|
|
66128
|
+
capturedAs: "unknown" | "provider_reasoning" | "reasoning_summary" | "thinking";
|
|
66129
|
+
} | {
|
|
66130
|
+
type: "tool_call";
|
|
66131
|
+
status: "pending" | "unknown" | "error" | "completed";
|
|
66132
|
+
input: {
|
|
66133
|
+
raw: string | null;
|
|
66134
|
+
kind: "text" | "json" | "reference" | "empty";
|
|
66135
|
+
truncated: boolean;
|
|
66136
|
+
sizeChars: number | null;
|
|
66137
|
+
};
|
|
66138
|
+
output: {
|
|
66139
|
+
raw: string | null;
|
|
66140
|
+
kind: "text" | "json" | "reference" | "empty";
|
|
66141
|
+
truncated: boolean;
|
|
66142
|
+
sizeChars: number | null;
|
|
66143
|
+
} | null;
|
|
66144
|
+
name: string;
|
|
66145
|
+
durationMs: number | null;
|
|
66146
|
+
id: string;
|
|
66147
|
+
error: {
|
|
66148
|
+
raw: string | null;
|
|
66149
|
+
kind: "text" | "json" | "reference" | "empty";
|
|
66150
|
+
truncated: boolean;
|
|
66151
|
+
sizeChars: number | null;
|
|
66152
|
+
} | null;
|
|
66153
|
+
source: {
|
|
66154
|
+
spanIds: string[];
|
|
66155
|
+
adapter: string;
|
|
66156
|
+
confidence: "high" | "medium" | "low";
|
|
66157
|
+
parentSpanIds: string[];
|
|
66158
|
+
attributeKeys: string[];
|
|
66159
|
+
};
|
|
66160
|
+
order: number;
|
|
66161
|
+
startMs: number | null;
|
|
66162
|
+
endMs: number | null;
|
|
66163
|
+
callId: string | null;
|
|
66164
|
+
} | {
|
|
66165
|
+
type: "sub_agent";
|
|
66166
|
+
status: "unknown" | "error" | "ok";
|
|
66167
|
+
model: string | null;
|
|
66168
|
+
name: string;
|
|
66169
|
+
durationMs: number | null;
|
|
66170
|
+
id: string;
|
|
66171
|
+
spanIds: string[];
|
|
66172
|
+
source: {
|
|
66173
|
+
spanIds: string[];
|
|
66174
|
+
adapter: string;
|
|
66175
|
+
confidence: "high" | "medium" | "low";
|
|
66176
|
+
parentSpanIds: string[];
|
|
66177
|
+
attributeKeys: string[];
|
|
66178
|
+
};
|
|
66179
|
+
order: number;
|
|
66180
|
+
startMs: number | null;
|
|
66181
|
+
endMs: number | null;
|
|
66182
|
+
rootSpanId: string;
|
|
66183
|
+
toolCount: number;
|
|
66184
|
+
llmCount: number;
|
|
66185
|
+
inputPreview: string | null;
|
|
66186
|
+
outputPreview: string | null;
|
|
66187
|
+
totalInputTokens: number | null;
|
|
66188
|
+
totalOutputTokens: number | null;
|
|
66189
|
+
} | {
|
|
66190
|
+
type: "detached_sub_agent";
|
|
66191
|
+
status: "unknown" | "error" | "ok";
|
|
66192
|
+
name: string;
|
|
66193
|
+
durationMs: number | null;
|
|
66194
|
+
id: string;
|
|
66195
|
+
source: {
|
|
66196
|
+
spanIds: string[];
|
|
66197
|
+
adapter: string;
|
|
66198
|
+
confidence: "high" | "medium" | "low";
|
|
66199
|
+
parentSpanIds: string[];
|
|
66200
|
+
attributeKeys: string[];
|
|
66201
|
+
};
|
|
66202
|
+
order: number;
|
|
66203
|
+
startMs: number | null;
|
|
66204
|
+
endMs: number | null;
|
|
66205
|
+
rootSpanId: string;
|
|
66206
|
+
inputPreview: string | null;
|
|
66207
|
+
outputPreview: string | null;
|
|
66208
|
+
childEventId: string;
|
|
66209
|
+
} | {
|
|
66210
|
+
type: "agent_handoff";
|
|
66211
|
+
reason: string | null;
|
|
66212
|
+
id: string;
|
|
66213
|
+
source: {
|
|
66214
|
+
spanIds: string[];
|
|
66215
|
+
adapter: string;
|
|
66216
|
+
confidence: "high" | "medium" | "low";
|
|
66217
|
+
parentSpanIds: string[];
|
|
66218
|
+
attributeKeys: string[];
|
|
66219
|
+
};
|
|
66220
|
+
order: number;
|
|
66221
|
+
startMs: number | null;
|
|
66222
|
+
endMs: number | null;
|
|
66223
|
+
fromAgent: string;
|
|
66224
|
+
toAgent: string;
|
|
66225
|
+
} | {
|
|
66226
|
+
type: "unknown_span";
|
|
66227
|
+
name: string;
|
|
66228
|
+
id: string;
|
|
66229
|
+
source: {
|
|
66230
|
+
spanIds: string[];
|
|
66231
|
+
adapter: string;
|
|
66232
|
+
confidence: "high" | "medium" | "low";
|
|
66233
|
+
parentSpanIds: string[];
|
|
66234
|
+
attributeKeys: string[];
|
|
66235
|
+
};
|
|
66236
|
+
order: number;
|
|
66237
|
+
startMs: number | null;
|
|
66238
|
+
endMs: number | null;
|
|
66239
|
+
spanType: string | null;
|
|
66240
|
+
hiddenByDefault: true;
|
|
66241
|
+
})[];
|
|
66242
|
+
origin: "replay" | "dataset";
|
|
66243
|
+
caseContext?: {
|
|
66244
|
+
caseId: string;
|
|
66245
|
+
expectation?: {
|
|
66246
|
+
description: string;
|
|
66247
|
+
reference?: string | undefined;
|
|
66248
|
+
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
66249
|
+
} | undefined;
|
|
66250
|
+
} | undefined;
|
|
66245
66251
|
};
|
|
66246
66252
|
};
|
|
66247
66253
|
output?: JsonValue | undefined;
|
|
66254
|
+
rowMetadata?: Record<string, string> | undefined;
|
|
66248
66255
|
reference?: {
|
|
66249
66256
|
trace: {
|
|
66250
66257
|
event: {
|
|
@@ -67279,7 +67286,6 @@ declare const EvalCaseTracePairSchema: z.ZodObject<{
|
|
|
67279
67286
|
}[];
|
|
67280
67287
|
} | undefined;
|
|
67281
67288
|
} | undefined;
|
|
67282
|
-
rowMetadata?: Record<string, string> | undefined;
|
|
67283
67289
|
}>;
|
|
67284
67290
|
type EvalCaseTracePair = z.infer<typeof EvalCaseTracePairSchema>;
|
|
67285
67291
|
|
|
@@ -73095,6 +73101,11 @@ declare const EvalDatasetRowInputSchema: z.ZodObject<{
|
|
|
73095
73101
|
name: string;
|
|
73096
73102
|
id: string;
|
|
73097
73103
|
output?: JsonValue | undefined;
|
|
73104
|
+
expectation?: {
|
|
73105
|
+
description: string;
|
|
73106
|
+
reference?: string | undefined;
|
|
73107
|
+
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
73108
|
+
} | undefined;
|
|
73098
73109
|
referenceTrace?: {
|
|
73099
73110
|
event: {
|
|
73100
73111
|
properties: Record<string, unknown> | null;
|
|
@@ -73498,11 +73509,6 @@ declare const EvalDatasetRowInputSchema: z.ZodObject<{
|
|
|
73498
73509
|
sourceEventId: string;
|
|
73499
73510
|
sourceEventTimestamp?: string | undefined;
|
|
73500
73511
|
} | undefined;
|
|
73501
|
-
expectation?: {
|
|
73502
|
-
description: string;
|
|
73503
|
-
reference?: string | undefined;
|
|
73504
|
-
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
73505
|
-
} | undefined;
|
|
73506
73512
|
expectedVerdict?: {
|
|
73507
73513
|
pass: boolean;
|
|
73508
73514
|
} | {
|
|
@@ -73516,6 +73522,11 @@ declare const EvalDatasetRowInputSchema: z.ZodObject<{
|
|
|
73516
73522
|
name: string;
|
|
73517
73523
|
id: string;
|
|
73518
73524
|
output?: JsonValue | undefined;
|
|
73525
|
+
expectation?: {
|
|
73526
|
+
description: string;
|
|
73527
|
+
reference?: string | undefined;
|
|
73528
|
+
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
73529
|
+
} | undefined;
|
|
73519
73530
|
referenceTrace?: {
|
|
73520
73531
|
event: {
|
|
73521
73532
|
properties: Record<string, unknown> | null;
|
|
@@ -73919,11 +73930,6 @@ declare const EvalDatasetRowInputSchema: z.ZodObject<{
|
|
|
73919
73930
|
sourceEventId: string;
|
|
73920
73931
|
sourceEventTimestamp?: string | undefined;
|
|
73921
73932
|
} | undefined;
|
|
73922
|
-
expectation?: {
|
|
73923
|
-
description: string;
|
|
73924
|
-
reference?: string | undefined;
|
|
73925
|
-
basis?: "code" | "human" | "policy" | "inferred" | undefined;
|
|
73926
|
-
} | undefined;
|
|
73927
73933
|
expectedVerdict?: {
|
|
73928
73934
|
pass: boolean;
|
|
73929
73935
|
} | {
|
|
@@ -74630,12 +74636,22 @@ interface AnalyticsConfig {
|
|
|
74630
74636
|
debugLogs?: boolean;
|
|
74631
74637
|
endpoint?: string;
|
|
74632
74638
|
redactPii?: boolean;
|
|
74639
|
+
/**
|
|
74640
|
+
* Redact PII (emails, phone numbers, card numbers, addresses, secrets) from
|
|
74641
|
+
* trace span input and output (prompts, completions, tool arguments and
|
|
74642
|
+
* results) before it leaves the process. Off by default; `redactPii` covers
|
|
74643
|
+
* events only.
|
|
74644
|
+
*/
|
|
74645
|
+
redactTracePii?: boolean;
|
|
74633
74646
|
/**
|
|
74634
74647
|
* More fields to redact when `redactPii` is on, per payload kind, as wire
|
|
74635
74648
|
* field paths: `{ event: ["properties.customer.email", "attachments[].value"],
|
|
74636
74649
|
* signal: ["comment"], identify: ["traits.email"] }`. Adds to the default
|
|
74637
74650
|
* `ai_data.input` and `ai_data.output` and never removes them; applied when a
|
|
74638
|
-
* payload is sent (CONTRACT 11.2).
|
|
74651
|
+
* payload is sent (CONTRACT 11.2). `span` lists span attribute names to
|
|
74652
|
+
* redact when `redactTracePii` is on, exact or a prefix ending in `*`
|
|
74653
|
+
* (`["agent.session.title", "custom.*"]`), on top of the default span input
|
|
74654
|
+
* and output.
|
|
74639
74655
|
*/
|
|
74640
74656
|
redactPiiFields?: PiiFieldMap;
|
|
74641
74657
|
/**
|
|
@@ -74828,7 +74844,9 @@ declare class Raindrop {
|
|
|
74828
74844
|
/** Cuts off batch sends still running at a forceFlush or close deadline. */
|
|
74829
74845
|
private readonly cutOff;
|
|
74830
74846
|
private flushTimeoutMs;
|
|
74847
|
+
/** Undefined when unset, so an opted-in remote setting can fill it in. */
|
|
74831
74848
|
private redactPii;
|
|
74849
|
+
private remotePiiConfig;
|
|
74832
74850
|
private piiFields;
|
|
74833
74851
|
private disabled;
|
|
74834
74852
|
private context;
|
|
@@ -75101,5 +75119,5 @@ declare const EVAL_CORRELATION_ID_ATTRIBUTE: "raindrop.eval_correlation_id";
|
|
|
75101
75119
|
declare const currentEvalScope: () => EvalScope | undefined;
|
|
75102
75120
|
declare const withEvalScope: <Result>(scope: EvalScope, callback: () => Result) => Result;
|
|
75103
75121
|
|
|
75104
|
-
export { DEFAULT_EVAL_POLL_INTERVAL_MS as D, EVAL_CORRELATION_ID_ATTRIBUTE as E, EvalDatasetPublishConflictError as K, EvalDatasetRowInputSchema as M, Raindrop as R, EvalParameterError as
|
|
75105
|
-
export type {
|
|
75122
|
+
export { EvalPublishError as $, DEFAULT_EVAL_POLL_INTERVAL_MS as D, EVAL_CORRELATION_ID_ATTRIBUTE as E, EvalDatasetPublishConflictError as K, EvalDatasetRowInputSchema as M, Raindrop as R, EvalParameterError as W, EvalSuiteManifestSchema as a7, ReplayCountsSchema as aQ, ReplayEvaluatorCountsSchema as aT, ReplayEvaluatorStatsSchema as aV, ReplayEvaluatorSummarySchema as aX, LocalBooleanVerdictSchema as ag, LocalNumberVerdictSchema as al, LocalPreferenceVerdictSchema as an, LocalScoreVerdictSchema as ap, LocalVerdictSchema as ar, MAX_EVAL_STATUS_RETRIES as as, MAX_INGEST_SIZE_BYTES as at, NumericThresholdSchema as av, traceToolCalls as b$, ReplayResultRowSchema as b2, ReplayVerdictSchema as b6, defineDataset as bA, defineEvalSuite as bB, defineEvaluatorProgram as bC, defineLocalEvaluator as bD, evaluateEvalRun as bE, evaluatePortableEvaluator as bF, evaluateReplay as bG, formatTrace as bH, importPortableEvaluator as bI, isEvalDataset as bJ, isEvalSuiteDefinition as bK, isPublishedEvalSuite as bL, loadEvalSnapshot as bM, projectWorkshopTrace as bN, publishEvalDataset as bO, publishEvalSuite as bP, pullEval as bQ, readEvalDataset as bR, readEvalManifest as bS, readEvalRun as bT, readEvaluator as bU, readReplay as bV, replay as bW, resolveDisableBatching as bX, runEvalSuite as bY, runReplay as bZ, traceOutput as b_, TraceSchema as bq, claimReplay as bt, compareEvalRuns as bu, createEvalHandler as bv, createEvalSuiteRun as bw, createReplay as bx, currentEvalScope as by, defineAgent as bz, traceTools as c0, verifyPortableEvalArtifact as c1, withEvalScope as c2, BooleanThresholdSchema as n, DEFAULT_EVAL_WAIT_MS as q, DEFAULT_QUERY_URL as r, DEFAULT_TRACE_WAIT_MS as s, EvalContextSchema as z };
|
|
75123
|
+
export type { AiTrackUsage as A, BeginParams as B, CarrierHeaders as C, FlushResultCompat as F, EvalDataset as G, EvalDatasetInput as H, InitializeOptions as I, EvalDatasetManifest as J, EvalDatasetRowInput as L, EvalDestination as N, EvalEvaluator as O, PiiFieldMap as P, EvalHandlerOptions as Q, SpanProcessorOptions as S, TraceCarrier as T, EvalLocalEvaluator as U, EvalManifest as V, EvalParameterField as X, EvalParameterFields as Y, EvalParameters as Z, EvalProgram as _, RaindropSpanProcessor as a, ReplayReading as a$, EvalRowResult as a0, EvalRowTracePair as a1, EvalRunReading as a2, EvalScope as a3, EvalSuiteDefinition as a4, EvalSuiteDefinitionInput as a5, EvalSuiteManifest as a6, EvalSuiteResult as a8, EvalSuiteRunSession as a9, PortableEvalResult as aA, PortableEvaluator as aB, PortableJudgeRequest as aC, PortableJudgeVerdict as aD, PublishEvalDatasetOptions as aE, PublishEvalSuiteOptions as aF, PullEvalOptions as aG, PulledEvalSnapshot as aH, RaindropConnection as aI, RaindropFeatureFlagValue as aJ, RaindropFeatureFlags as aK, RaindropProperties as aL, RaindropPropertyLeaf as aM, RaindropPropertyValue as aN, ReplayClient as aO, ReplayCounts as aP, ReplayEvaluator as aR, ReplayEvaluatorCounts as aS, ReplayEvaluatorStats as aU, ReplayEvaluatorSummary as aW, ReplayHandle as aY, LocalEvaluatorContext$1 as aZ, ReplayOptions as a_, EvalVerdictAssessment as aa, EvaluateReplayOptions as ab, FinishInteractionOptions as ac, HostedEvaluatorPin as ad, IdentifyEvent as ae, LocalBooleanVerdict as af, LocalDebuggerLiveEventInput as ah, LocalEvaluator as ai, LocalEvaluatorContext as aj, LocalNumberVerdict as ak, LocalPreferenceVerdict as am, LocalScoreVerdict as ao, LocalVerdict as aq, NumericThreshold as au, PartialAiTrackEvent as aw, PortableEvalArtifact as ax, PortableEvalLimits as ay, PortableEvalOutcome as az, Interaction as b, ReplayResult as b0, ReplayResultRow as b1, ReplayRow as b3, ReplayRowOutcome as b4, ReplayVerdict as b5, RunEvalSuiteOptions as b7, RunReplayOptions as b8, SelfDiagnoseOptions as b9, SelfDiagnosticsExecuteContext as ba, SelfDiagnosticsExecuteResult as bb, SelfDiagnosticsSignalDefinition as bc, SelfDiagnosticsSignalDefinitions as bd, SelfDiagnosticsTool as be, SelfDiagnosticsToolInputSchema as bf, SelfDiagnosticsToolOptions as bg, SignalEvent as bh, SpanParams as bi, SubagentDispatch as bj, SubagentDispatchOptions as bk, SubagentFinishOptions as bl, ToolParams as bm, ToolSpan as bn, Trace as bo, TraceContext as bp, TrackToolParams as br, WorkflowParams as bs, AppGitSnapshot as c, SubagentResumeOptions as d, SubagentRun as e, Tracer as f, FlushResult as g, AiTrackEvent as h, AppGitOptions as i, Attachment as j, AttachmentType as k, BeginInteractionOptions as l, BooleanThreshold as m, CreateEvalSuiteRunOptions as o, CreateReplayOptions as p, DefinedEvalAgent as t, DefinedEvalDataset as u, EvalAgentDefinition as v, EvalAgentExecution as w, EvalClient as x, EvalContext as y };
|