raindrop-ai 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/dist/{chunk-MVJNJ4TS.mjs → chunk-K427YJE7.mjs} +52 -10
- package/dist/{chunk-GQKFYSJ5.mjs → chunk-M6RTFC5O.mjs} +1 -1
- package/dist/{chunk-X637VXF6.mjs → chunk-OZMT7UW4.mjs} +14 -4
- package/dist/evals/cli.js +58 -9
- package/dist/evals/cli.mjs +3 -3
- package/dist/{index-BBP9eqvk.d.ts → index-Dwn_0jsy.d.mts} +242 -13
- package/dist/{index-BBP9eqvk.d.mts → index-Dwn_0jsy.d.ts} +242 -13
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +66 -13
- package/dist/index.mjs +5 -3
- package/dist/{portable-runtime-IIFK7U5Q.mjs → portable-runtime-SHDZJP7W.mjs} +2 -2
- package/dist/tracing/index.d.mts +1 -1
- package/dist/tracing/index.d.ts +1 -1
- package/dist/tracing/index.js +1 -1
- package/dist/tracing/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -67343,6 +67343,106 @@ declare const ReplayEvaluatorStatsSchema: z.ZodObject<{
|
|
|
67343
67343
|
}>;
|
|
67344
67344
|
type ReplayEvaluatorStats = z.infer<typeof ReplayEvaluatorStatsSchema>;
|
|
67345
67345
|
declare const ReplayEvaluatorSummarySchema: z.ZodDiscriminatedUnion<"outputType", [z.ZodObject<{
|
|
67346
|
+
outputType: z.ZodLiteral<"preference">;
|
|
67347
|
+
counts: z.ZodObject<{
|
|
67348
|
+
traces: z.ZodNumber;
|
|
67349
|
+
graded: z.ZodNumber;
|
|
67350
|
+
errored: z.ZodNumber;
|
|
67351
|
+
ungraded: z.ZodNumber;
|
|
67352
|
+
pending: z.ZodNumber;
|
|
67353
|
+
}, "strip", z.ZodTypeAny, {
|
|
67354
|
+
pending: number;
|
|
67355
|
+
graded: number;
|
|
67356
|
+
errored: number;
|
|
67357
|
+
ungraded: number;
|
|
67358
|
+
traces: number;
|
|
67359
|
+
}, {
|
|
67360
|
+
pending: number;
|
|
67361
|
+
graded: number;
|
|
67362
|
+
errored: number;
|
|
67363
|
+
ungraded: number;
|
|
67364
|
+
traces: number;
|
|
67365
|
+
}>;
|
|
67366
|
+
stats: z.ZodObject<{
|
|
67367
|
+
traceCount: z.ZodNumber;
|
|
67368
|
+
hydratedCount: z.ZodNumber;
|
|
67369
|
+
judgeCalls: z.ZodNumber;
|
|
67370
|
+
durationMs: z.ZodNumber;
|
|
67371
|
+
skippedRows: z.ZodNumber;
|
|
67372
|
+
skippedReason: z.ZodNullable<z.ZodLiteral<"no trace">>;
|
|
67373
|
+
}, "strip", z.ZodTypeAny, {
|
|
67374
|
+
durationMs: number;
|
|
67375
|
+
traceCount: number;
|
|
67376
|
+
hydratedCount: number;
|
|
67377
|
+
judgeCalls: number;
|
|
67378
|
+
skippedRows: number;
|
|
67379
|
+
skippedReason: "no trace" | null;
|
|
67380
|
+
}, {
|
|
67381
|
+
durationMs: number;
|
|
67382
|
+
traceCount: number;
|
|
67383
|
+
hydratedCount: number;
|
|
67384
|
+
judgeCalls: number;
|
|
67385
|
+
skippedRows: number;
|
|
67386
|
+
skippedReason: "no trace" | null;
|
|
67387
|
+
}>;
|
|
67388
|
+
preferences: z.ZodObject<{
|
|
67389
|
+
A: z.ZodNumber;
|
|
67390
|
+
B: z.ZodNumber;
|
|
67391
|
+
tie: z.ZodNumber;
|
|
67392
|
+
}, "strip", z.ZodTypeAny, {
|
|
67393
|
+
A: number;
|
|
67394
|
+
B: number;
|
|
67395
|
+
tie: number;
|
|
67396
|
+
}, {
|
|
67397
|
+
A: number;
|
|
67398
|
+
B: number;
|
|
67399
|
+
tie: number;
|
|
67400
|
+
}>;
|
|
67401
|
+
}, "strip", z.ZodTypeAny, {
|
|
67402
|
+
stats: {
|
|
67403
|
+
durationMs: number;
|
|
67404
|
+
traceCount: number;
|
|
67405
|
+
hydratedCount: number;
|
|
67406
|
+
judgeCalls: number;
|
|
67407
|
+
skippedRows: number;
|
|
67408
|
+
skippedReason: "no trace" | null;
|
|
67409
|
+
};
|
|
67410
|
+
outputType: "preference";
|
|
67411
|
+
counts: {
|
|
67412
|
+
pending: number;
|
|
67413
|
+
graded: number;
|
|
67414
|
+
errored: number;
|
|
67415
|
+
ungraded: number;
|
|
67416
|
+
traces: number;
|
|
67417
|
+
};
|
|
67418
|
+
preferences: {
|
|
67419
|
+
A: number;
|
|
67420
|
+
B: number;
|
|
67421
|
+
tie: number;
|
|
67422
|
+
};
|
|
67423
|
+
}, {
|
|
67424
|
+
stats: {
|
|
67425
|
+
durationMs: number;
|
|
67426
|
+
traceCount: number;
|
|
67427
|
+
hydratedCount: number;
|
|
67428
|
+
judgeCalls: number;
|
|
67429
|
+
skippedRows: number;
|
|
67430
|
+
skippedReason: "no trace" | null;
|
|
67431
|
+
};
|
|
67432
|
+
outputType: "preference";
|
|
67433
|
+
counts: {
|
|
67434
|
+
pending: number;
|
|
67435
|
+
graded: number;
|
|
67436
|
+
errored: number;
|
|
67437
|
+
ungraded: number;
|
|
67438
|
+
traces: number;
|
|
67439
|
+
};
|
|
67440
|
+
preferences: {
|
|
67441
|
+
A: number;
|
|
67442
|
+
B: number;
|
|
67443
|
+
tie: number;
|
|
67444
|
+
};
|
|
67445
|
+
}>, z.ZodObject<{
|
|
67346
67446
|
outputType: z.ZodLiteral<"boolean">;
|
|
67347
67447
|
counts: z.ZodObject<{
|
|
67348
67448
|
traces: z.ZodNumber;
|
|
@@ -67693,6 +67793,29 @@ declare const ReplayVerdictSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
67693
67793
|
evaluator: z.ZodString;
|
|
67694
67794
|
runId: z.ZodString;
|
|
67695
67795
|
url: z.ZodString;
|
|
67796
|
+
} & {
|
|
67797
|
+
state: z.ZodLiteral<"graded">;
|
|
67798
|
+
note: z.ZodOptional<z.ZodString>;
|
|
67799
|
+
} & {
|
|
67800
|
+
preference: z.ZodEnum<["A", "B", "tie"]>;
|
|
67801
|
+
}, "strip", z.ZodTypeAny, {
|
|
67802
|
+
url: string;
|
|
67803
|
+
evaluator: string;
|
|
67804
|
+
preference: "A" | "B" | "tie";
|
|
67805
|
+
state: "graded";
|
|
67806
|
+
runId: string;
|
|
67807
|
+
note?: string | undefined;
|
|
67808
|
+
}, {
|
|
67809
|
+
url: string;
|
|
67810
|
+
evaluator: string;
|
|
67811
|
+
preference: "A" | "B" | "tie";
|
|
67812
|
+
state: "graded";
|
|
67813
|
+
runId: string;
|
|
67814
|
+
note?: string | undefined;
|
|
67815
|
+
}>, z.ZodObject<{
|
|
67816
|
+
evaluator: z.ZodString;
|
|
67817
|
+
runId: z.ZodString;
|
|
67818
|
+
url: z.ZodString;
|
|
67696
67819
|
} & {
|
|
67697
67820
|
state: z.ZodLiteral<"errored">;
|
|
67698
67821
|
message: z.ZodString;
|
|
@@ -67812,6 +67935,29 @@ declare const ReplayResultRowSchema: z.ZodObject<{
|
|
|
67812
67935
|
evaluator: z.ZodString;
|
|
67813
67936
|
runId: z.ZodString;
|
|
67814
67937
|
url: z.ZodString;
|
|
67938
|
+
} & {
|
|
67939
|
+
state: z.ZodLiteral<"graded">;
|
|
67940
|
+
note: z.ZodOptional<z.ZodString>;
|
|
67941
|
+
} & {
|
|
67942
|
+
preference: z.ZodEnum<["A", "B", "tie"]>;
|
|
67943
|
+
}, "strip", z.ZodTypeAny, {
|
|
67944
|
+
url: string;
|
|
67945
|
+
evaluator: string;
|
|
67946
|
+
preference: "A" | "B" | "tie";
|
|
67947
|
+
state: "graded";
|
|
67948
|
+
runId: string;
|
|
67949
|
+
note?: string | undefined;
|
|
67950
|
+
}, {
|
|
67951
|
+
url: string;
|
|
67952
|
+
evaluator: string;
|
|
67953
|
+
preference: "A" | "B" | "tie";
|
|
67954
|
+
state: "graded";
|
|
67955
|
+
runId: string;
|
|
67956
|
+
note?: string | undefined;
|
|
67957
|
+
}>, z.ZodObject<{
|
|
67958
|
+
evaluator: z.ZodString;
|
|
67959
|
+
runId: z.ZodString;
|
|
67960
|
+
url: z.ZodString;
|
|
67815
67961
|
} & {
|
|
67816
67962
|
state: z.ZodLiteral<"errored">;
|
|
67817
67963
|
message: z.ZodString;
|
|
@@ -67877,6 +68023,13 @@ declare const ReplayResultRowSchema: z.ZodObject<{
|
|
|
67877
68023
|
state: "graded";
|
|
67878
68024
|
runId: string;
|
|
67879
68025
|
note?: string | undefined;
|
|
68026
|
+
} | {
|
|
68027
|
+
url: string;
|
|
68028
|
+
evaluator: string;
|
|
68029
|
+
preference: "A" | "B" | "tie";
|
|
68030
|
+
state: "graded";
|
|
68031
|
+
runId: string;
|
|
68032
|
+
note?: string | undefined;
|
|
67880
68033
|
} | {
|
|
67881
68034
|
message: string;
|
|
67882
68035
|
url: string;
|
|
@@ -67920,6 +68073,13 @@ declare const ReplayResultRowSchema: z.ZodObject<{
|
|
|
67920
68073
|
state: "graded";
|
|
67921
68074
|
runId: string;
|
|
67922
68075
|
note?: string | undefined;
|
|
68076
|
+
} | {
|
|
68077
|
+
url: string;
|
|
68078
|
+
evaluator: string;
|
|
68079
|
+
preference: "A" | "B" | "tie";
|
|
68080
|
+
state: "graded";
|
|
68081
|
+
runId: string;
|
|
68082
|
+
note?: string | undefined;
|
|
67923
68083
|
} | {
|
|
67924
68084
|
message: string;
|
|
67925
68085
|
url: string;
|
|
@@ -68003,6 +68163,16 @@ declare const LocalNumberVerdictSchema: z.ZodObject<{
|
|
|
68003
68163
|
value: number;
|
|
68004
68164
|
note?: string | undefined;
|
|
68005
68165
|
}>;
|
|
68166
|
+
declare const LocalPreferenceVerdictSchema: z.ZodObject<{
|
|
68167
|
+
preference: z.ZodEnum<["A", "B", "tie"]>;
|
|
68168
|
+
note: z.ZodOptional<z.ZodString>;
|
|
68169
|
+
}, "strict", z.ZodTypeAny, {
|
|
68170
|
+
preference: "A" | "B" | "tie";
|
|
68171
|
+
note?: string | undefined;
|
|
68172
|
+
}, {
|
|
68173
|
+
preference: "A" | "B" | "tie";
|
|
68174
|
+
note?: string | undefined;
|
|
68175
|
+
}>;
|
|
68006
68176
|
declare const LocalVerdictSchema: z.ZodUnion<[z.ZodObject<{
|
|
68007
68177
|
pass: z.ZodBoolean;
|
|
68008
68178
|
note: z.ZodOptional<z.ZodString>;
|
|
@@ -68030,10 +68200,20 @@ declare const LocalVerdictSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
68030
68200
|
}, {
|
|
68031
68201
|
value: number;
|
|
68032
68202
|
note?: string | undefined;
|
|
68203
|
+
}>, z.ZodObject<{
|
|
68204
|
+
preference: z.ZodEnum<["A", "B", "tie"]>;
|
|
68205
|
+
note: z.ZodOptional<z.ZodString>;
|
|
68206
|
+
}, "strict", z.ZodTypeAny, {
|
|
68207
|
+
preference: "A" | "B" | "tie";
|
|
68208
|
+
note?: string | undefined;
|
|
68209
|
+
}, {
|
|
68210
|
+
preference: "A" | "B" | "tie";
|
|
68211
|
+
note?: string | undefined;
|
|
68033
68212
|
}>]>;
|
|
68034
68213
|
type LocalBooleanVerdict = z.infer<typeof LocalBooleanVerdictSchema>;
|
|
68035
68214
|
type LocalScoreVerdict = z.infer<typeof LocalScoreVerdictSchema>;
|
|
68036
68215
|
type LocalNumberVerdict = z.infer<typeof LocalNumberVerdictSchema>;
|
|
68216
|
+
type LocalPreferenceVerdict = z.infer<typeof LocalPreferenceVerdictSchema>;
|
|
68037
68217
|
type LocalVerdict = z.infer<typeof LocalVerdictSchema>;
|
|
68038
68218
|
type LocalEvaluatorContext$1<AgentResult = unknown> = EvalContext & {
|
|
68039
68219
|
readonly row: ReplayRow;
|
|
@@ -68059,6 +68239,11 @@ type LocalEvaluator<AgentResult = unknown> = {
|
|
|
68059
68239
|
readonly name: string;
|
|
68060
68240
|
readonly output: "number";
|
|
68061
68241
|
readonly judge: LocalJudge<AgentResult, LocalNumberVerdict>;
|
|
68242
|
+
} | {
|
|
68243
|
+
readonly slug: string;
|
|
68244
|
+
readonly name: string;
|
|
68245
|
+
readonly output: "preference";
|
|
68246
|
+
readonly judge: LocalJudge<AgentResult, LocalPreferenceVerdict>;
|
|
68062
68247
|
});
|
|
68063
68248
|
type CreateReplayOptions = {
|
|
68064
68249
|
/** Optional agent source override; metadata discovery never delays a replay. */
|
|
@@ -68298,7 +68483,8 @@ type EvalSuiteManifest = z.infer<typeof EvalSuiteManifestSchema>;
|
|
|
68298
68483
|
* `.optional()`, or `.describe()`. Raindrop renders each key as a form control.
|
|
68299
68484
|
*/
|
|
68300
68485
|
type EvalParameterFields = Record<string, z.ZodTypeAny>;
|
|
68301
|
-
|
|
68486
|
+
declare const ParameterValueSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
68487
|
+
type EvalParameterValues<Fields extends EvalParameterFields> = z.infer<z.ZodObject<Fields>> & Readonly<Record<string, z.infer<typeof ParameterValueSchema> | undefined>>;
|
|
68302
68488
|
/** Parameter values as Raindrop sends them, before the agent's schema validates them. */
|
|
68303
68489
|
type EvalParameters = Readonly<Record<string, unknown>>;
|
|
68304
68490
|
type ParameterFieldBase = {
|
|
@@ -73682,19 +73868,19 @@ declare const PortableEvalArtifactSchema: z.ZodObject<{
|
|
|
73682
73868
|
slug: z.ZodString;
|
|
73683
73869
|
programVersion: z.ZodNumber;
|
|
73684
73870
|
executionMode: z.ZodEnum<["deterministic", "judge"]>;
|
|
73685
|
-
outputType: z.ZodEnum<["boolean", "score", "number"]>;
|
|
73871
|
+
outputType: z.ZodEnum<["boolean", "score", "number", "preference"]>;
|
|
73686
73872
|
scope: z.ZodLiteral<"trace">;
|
|
73687
73873
|
}, "strict", z.ZodTypeAny, {
|
|
73688
73874
|
id: string;
|
|
73689
73875
|
slug: string;
|
|
73690
|
-
outputType: "number" | "boolean" | "score";
|
|
73876
|
+
outputType: "number" | "boolean" | "score" | "preference";
|
|
73691
73877
|
programVersion: number;
|
|
73692
73878
|
executionMode: "deterministic" | "judge";
|
|
73693
73879
|
scope: "trace";
|
|
73694
73880
|
}, {
|
|
73695
73881
|
id: string;
|
|
73696
73882
|
slug: string;
|
|
73697
|
-
outputType: "number" | "boolean" | "score";
|
|
73883
|
+
outputType: "number" | "boolean" | "score" | "preference";
|
|
73698
73884
|
programVersion: number;
|
|
73699
73885
|
executionMode: "deterministic" | "judge";
|
|
73700
73886
|
scope: "trace";
|
|
@@ -73709,7 +73895,7 @@ declare const PortableEvalArtifactSchema: z.ZodObject<{
|
|
|
73709
73895
|
evaluator: {
|
|
73710
73896
|
id: string;
|
|
73711
73897
|
slug: string;
|
|
73712
|
-
outputType: "number" | "boolean" | "score";
|
|
73898
|
+
outputType: "number" | "boolean" | "score" | "preference";
|
|
73713
73899
|
programVersion: number;
|
|
73714
73900
|
executionMode: "deterministic" | "judge";
|
|
73715
73901
|
scope: "trace";
|
|
@@ -73725,7 +73911,7 @@ declare const PortableEvalArtifactSchema: z.ZodObject<{
|
|
|
73725
73911
|
evaluator: {
|
|
73726
73912
|
id: string;
|
|
73727
73913
|
slug: string;
|
|
73728
|
-
outputType: "number" | "boolean" | "score";
|
|
73914
|
+
outputType: "number" | "boolean" | "score" | "preference";
|
|
73729
73915
|
programVersion: number;
|
|
73730
73916
|
executionMode: "deterministic" | "judge";
|
|
73731
73917
|
scope: "trace";
|
|
@@ -73739,7 +73925,7 @@ declare const PortableEvalArtifactSchema: z.ZodObject<{
|
|
|
73739
73925
|
type PortableEvalArtifact = z.infer<typeof PortableEvalArtifactSchema>;
|
|
73740
73926
|
type PortableJudgeRequest = {
|
|
73741
73927
|
readonly text: string;
|
|
73742
|
-
readonly outputType: "boolean" | "score";
|
|
73928
|
+
readonly outputType: "boolean" | "score" | "preference";
|
|
73743
73929
|
readonly trace: Trace;
|
|
73744
73930
|
readonly tracePair?: EvalRowTracePair;
|
|
73745
73931
|
readonly rubric: string;
|
|
@@ -73754,6 +73940,9 @@ type PortableJudgeVerdict = {
|
|
|
73754
73940
|
} | {
|
|
73755
73941
|
readonly value: number;
|
|
73756
73942
|
readonly note?: string;
|
|
73943
|
+
} | {
|
|
73944
|
+
readonly preference: "A" | "B" | "tie";
|
|
73945
|
+
readonly note?: string;
|
|
73757
73946
|
};
|
|
73758
73947
|
declare const PortableEvalLimitsSchema: z.ZodReadonly<z.ZodObject<{
|
|
73759
73948
|
memoryBytes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -73789,7 +73978,7 @@ type PortableEvaluator = {
|
|
|
73789
73978
|
readonly limits?: PortableEvalLimits;
|
|
73790
73979
|
readonly slug: string;
|
|
73791
73980
|
readonly name: string;
|
|
73792
|
-
readonly output: "boolean" | "score" | "number";
|
|
73981
|
+
readonly output: "boolean" | "score" | "number" | "preference";
|
|
73793
73982
|
readonly scope: "trace";
|
|
73794
73983
|
};
|
|
73795
73984
|
type PortableEvalOutcome = {
|
|
@@ -73807,6 +73996,11 @@ type PortableEvalOutcome = {
|
|
|
73807
73996
|
readonly traceId: string;
|
|
73808
73997
|
readonly value: number;
|
|
73809
73998
|
readonly note?: string;
|
|
73999
|
+
} | {
|
|
74000
|
+
readonly state: "graded";
|
|
74001
|
+
readonly traceId: string;
|
|
74002
|
+
readonly preference: "A" | "B" | "tie";
|
|
74003
|
+
readonly note?: string;
|
|
73810
74004
|
} | {
|
|
73811
74005
|
readonly state: "errored";
|
|
73812
74006
|
readonly traceId: string;
|
|
@@ -73899,7 +74093,7 @@ type EvalProgram = {
|
|
|
73899
74093
|
readonly kind: "program";
|
|
73900
74094
|
readonly slug: string;
|
|
73901
74095
|
readonly name: string;
|
|
73902
|
-
readonly output: "boolean" | "score" | "number";
|
|
74096
|
+
readonly output: "boolean" | "score" | "number" | "preference";
|
|
73903
74097
|
readonly scope: "trace";
|
|
73904
74098
|
readonly executionMode: "deterministic" | "judge";
|
|
73905
74099
|
readonly source: string;
|
|
@@ -73935,8 +74129,8 @@ type LocalEvaluatorBase<AgentResult, Output, Verdict> = {
|
|
|
73935
74129
|
readonly scope: "row";
|
|
73936
74130
|
readonly judge: (context: LocalEvaluatorContext<AgentResult>) => Verdict | Promise<Verdict>;
|
|
73937
74131
|
};
|
|
73938
|
-
type EvalLocalEvaluator<AgentResult = unknown> = LocalEvaluatorBase<AgentResult, "boolean", LocalBooleanVerdict> | LocalEvaluatorBase<AgentResult, "score", LocalScoreVerdict> | LocalEvaluatorBase<AgentResult, "number", LocalNumberVerdict>;
|
|
73939
|
-
type LocalEvaluatorInput<AgentResult, Output extends "boolean" | "score" | "number"> = Omit<Extract<EvalLocalEvaluator<AgentResult>, {
|
|
74132
|
+
type EvalLocalEvaluator<AgentResult = unknown> = LocalEvaluatorBase<AgentResult, "boolean", LocalBooleanVerdict> | LocalEvaluatorBase<AgentResult, "score", LocalScoreVerdict> | LocalEvaluatorBase<AgentResult, "number", LocalNumberVerdict> | LocalEvaluatorBase<AgentResult, "preference", LocalPreferenceVerdict>;
|
|
74133
|
+
type LocalEvaluatorInput<AgentResult, Output extends "boolean" | "score" | "number" | "preference"> = Omit<Extract<EvalLocalEvaluator<AgentResult>, {
|
|
73940
74134
|
readonly output: Output;
|
|
73941
74135
|
}>, "scope"> & {
|
|
73942
74136
|
readonly scope?: "row";
|
|
@@ -73950,6 +74144,9 @@ declare function defineLocalEvaluator<AgentResult = unknown>(evaluator: LocalEva
|
|
|
73950
74144
|
declare function defineLocalEvaluator<AgentResult = unknown>(evaluator: LocalEvaluatorInput<AgentResult, "number">): Extract<EvalLocalEvaluator<AgentResult>, {
|
|
73951
74145
|
readonly output: "number";
|
|
73952
74146
|
}>;
|
|
74147
|
+
declare function defineLocalEvaluator<AgentResult = unknown>(evaluator: LocalEvaluatorInput<AgentResult, "preference">): Extract<EvalLocalEvaluator<AgentResult>, {
|
|
74148
|
+
readonly output: "preference";
|
|
74149
|
+
}>;
|
|
73953
74150
|
type LocalBooleanEvaluator<AgentResult> = {
|
|
73954
74151
|
readonly evaluator: Extract<EvalLocalEvaluator<AgentResult>, {
|
|
73955
74152
|
readonly output: "boolean";
|
|
@@ -73968,7 +74165,12 @@ type LocalNumberEvaluator<AgentResult> = {
|
|
|
73968
74165
|
}>;
|
|
73969
74166
|
readonly threshold?: NumericThreshold;
|
|
73970
74167
|
};
|
|
73971
|
-
type EvalEvaluator<AgentResult = unknown> = HostedEvaluator | ImportedPortableEvaluator | AuthoredProgramEvaluator | LocalBooleanEvaluator<AgentResult> | LocalScoreEvaluator<AgentResult> | LocalNumberEvaluator<AgentResult
|
|
74168
|
+
type EvalEvaluator<AgentResult = unknown> = HostedEvaluator | ImportedPortableEvaluator | AuthoredProgramEvaluator | LocalBooleanEvaluator<AgentResult> | LocalScoreEvaluator<AgentResult> | LocalNumberEvaluator<AgentResult> | {
|
|
74169
|
+
readonly evaluator: Extract<EvalLocalEvaluator<AgentResult>, {
|
|
74170
|
+
readonly output: "preference";
|
|
74171
|
+
}>;
|
|
74172
|
+
readonly threshold?: never;
|
|
74173
|
+
};
|
|
73972
74174
|
type EvalSuiteOptions<AgentResult> = {
|
|
73973
74175
|
readonly name: string;
|
|
73974
74176
|
readonly dataset: string | DefinedEvalDataset;
|
|
@@ -74113,6 +74315,11 @@ declare function readEvalRun(client: ReplayClient, runId: string, options?: {
|
|
|
74113
74315
|
traceId: string;
|
|
74114
74316
|
state: "graded";
|
|
74115
74317
|
note?: string | undefined;
|
|
74318
|
+
} | {
|
|
74319
|
+
traceId: string;
|
|
74320
|
+
preference: "A" | "B" | "tie";
|
|
74321
|
+
state: "graded";
|
|
74322
|
+
note?: string | undefined;
|
|
74116
74323
|
} | {
|
|
74117
74324
|
message: string;
|
|
74118
74325
|
traceId: string;
|
|
@@ -74124,6 +74331,28 @@ declare function readEvalRun(client: ReplayClient, runId: string, options?: {
|
|
|
74124
74331
|
})[];
|
|
74125
74332
|
evalSlug: string;
|
|
74126
74333
|
summary: {
|
|
74334
|
+
stats: {
|
|
74335
|
+
durationMs: number;
|
|
74336
|
+
traceCount: number;
|
|
74337
|
+
hydratedCount: number;
|
|
74338
|
+
judgeCalls: number;
|
|
74339
|
+
skippedRows: number;
|
|
74340
|
+
skippedReason: "no trace" | null;
|
|
74341
|
+
};
|
|
74342
|
+
outputType: "preference";
|
|
74343
|
+
counts: {
|
|
74344
|
+
pending: number;
|
|
74345
|
+
graded: number;
|
|
74346
|
+
errored: number;
|
|
74347
|
+
ungraded: number;
|
|
74348
|
+
traces: number;
|
|
74349
|
+
};
|
|
74350
|
+
preferences: {
|
|
74351
|
+
A: number;
|
|
74352
|
+
B: number;
|
|
74353
|
+
tie: number;
|
|
74354
|
+
};
|
|
74355
|
+
} | {
|
|
74127
74356
|
stats: {
|
|
74128
74357
|
durationMs: number;
|
|
74129
74358
|
traceCount: number;
|
|
@@ -74773,4 +75002,4 @@ declare const EVAL_CORRELATION_ID_ATTRIBUTE: "raindrop.eval_correlation_id";
|
|
|
74773
75002
|
declare const currentEvalScope: () => EvalScope | undefined;
|
|
74774
75003
|
declare const withEvalScope: <Result>(scope: EvalScope, callback: () => Result) => Result;
|
|
74775
75004
|
|
|
74776
|
-
export { type EvalRunReading as $, type AiTrackUsage as A, type BeginParams as B, type CarrierHeaders as C, DEFAULT_EVAL_POLL_INTERVAL_MS as D, EVAL_CORRELATION_ID_ATTRIBUTE as E, type EvalDatasetInput as F, type EvalDatasetManifest as G, EvalDatasetPublishConflictError as H, type InitializeOptions as I, type EvalDatasetRowInput as J, EvalDatasetRowInputSchema as K, type EvalDestination as L, type EvalEvaluator as M, type EvalHandlerOptions as N, type EvalLocalEvaluator as O, type EvalManifest as P, EvalParameterError as Q, Raindrop as R, type SpanProcessorOptions as S, type TraceCarrier as T, type EvalParameterField as U, type EvalParameterFields as V, type EvalParameters as W, type EvalProgram as X, EvalPublishError as Y, type EvalRowResult as Z, type EvalRowTracePair as _, type RaindropSpanProcessor as a,
|
|
75005
|
+
export { type EvalRunReading as $, type AiTrackUsage as A, type BeginParams as B, type CarrierHeaders as C, DEFAULT_EVAL_POLL_INTERVAL_MS as D, EVAL_CORRELATION_ID_ATTRIBUTE as E, type EvalDatasetInput as F, type EvalDatasetManifest as G, EvalDatasetPublishConflictError as H, type InitializeOptions as I, type EvalDatasetRowInput as J, EvalDatasetRowInputSchema as K, type EvalDestination as L, type EvalEvaluator as M, type EvalHandlerOptions as N, type EvalLocalEvaluator as O, type EvalManifest as P, EvalParameterError as Q, Raindrop as R, type SpanProcessorOptions as S, type TraceCarrier as T, type EvalParameterField as U, type EvalParameterFields as V, type EvalParameters as W, type EvalProgram as X, EvalPublishError as Y, type EvalRowResult as Z, type EvalRowTracePair as _, type RaindropSpanProcessor as a, ReplayResultRowSchema as a$, type EvalScope as a0, type EvalSuiteDefinition as a1, type EvalSuiteDefinitionInput as a2, type EvalSuiteManifest as a3, EvalSuiteManifestSchema as a4, type EvalSuiteResult as a5, type EvalSuiteRunSession as a6, type EvalVerdictAssessment as a7, type EvaluateReplayOptions as a8, type FinishInteractionOptions as a9, type PortableJudgeVerdict as aA, type PublishEvalDatasetOptions as aB, type PublishEvalSuiteOptions as aC, type PullEvalOptions as aD, type PulledEvalSnapshot as aE, type RaindropConnection as aF, type RaindropFeatureFlagValue as aG, type RaindropFeatureFlags as aH, type RaindropProperties as aI, type RaindropPropertyLeaf as aJ, type RaindropPropertyValue as aK, type ReplayClient as aL, type ReplayCounts as aM, ReplayCountsSchema as aN, type ReplayEvaluator as aO, type ReplayEvaluatorCounts as aP, ReplayEvaluatorCountsSchema as aQ, type ReplayEvaluatorStats as aR, ReplayEvaluatorStatsSchema as aS, type ReplayEvaluatorSummary as aT, ReplayEvaluatorSummarySchema as aU, type ReplayHandle as aV, type LocalEvaluatorContext$1 as aW, type ReplayOptions as aX, type ReplayReading as aY, type ReplayResult as aZ, type ReplayResultRow as a_, type HostedEvaluatorPin as aa, type IdentifyEvent as ab, type LocalBooleanVerdict as ac, LocalBooleanVerdictSchema as ad, type LocalDebuggerLiveEventInput as ae, type LocalEvaluator as af, type LocalEvaluatorContext as ag, type LocalNumberVerdict as ah, LocalNumberVerdictSchema as ai, type LocalPreferenceVerdict as aj, LocalPreferenceVerdictSchema as ak, type LocalScoreVerdict as al, LocalScoreVerdictSchema as am, type LocalVerdict as an, LocalVerdictSchema as ao, MAX_EVAL_STATUS_RETRIES as ap, MAX_INGEST_SIZE_BYTES as aq, type NumericThreshold as ar, NumericThresholdSchema as as, type PartialAiTrackEvent as at, type PortableEvalArtifact as au, type PortableEvalLimits as av, type PortableEvalOutcome as aw, type PortableEvalResult as ax, type PortableEvaluator as ay, type PortableJudgeRequest as az, type Interaction as b, withEvalScope as b$, type ReplayRow as b0, type ReplayRowOutcome as b1, type ReplayVerdict as b2, ReplayVerdictSchema as b3, type RunEvalSuiteOptions as b4, type RunReplayOptions as b5, type SelfDiagnoseOptions as b6, type SelfDiagnosticsExecuteContext as b7, type SelfDiagnosticsExecuteResult as b8, type SelfDiagnosticsSignalDefinition as b9, defineLocalEvaluator as bA, evaluateEvalRun as bB, evaluatePortableEvaluator as bC, evaluateReplay as bD, formatTrace as bE, importPortableEvaluator as bF, isEvalDataset as bG, isEvalSuiteDefinition as bH, isPublishedEvalSuite as bI, loadEvalSnapshot as bJ, projectWorkshopTrace as bK, publishEvalDataset as bL, publishEvalSuite as bM, pullEval as bN, readEvalDataset as bO, readEvalManifest as bP, readEvalRun as bQ, readEvaluator as bR, readReplay as bS, replay as bT, resolveDisableBatching as bU, runEvalSuite as bV, runReplay as bW, traceOutput as bX, traceToolCalls as bY, traceTools as bZ, verifyPortableEvalArtifact as b_, type SelfDiagnosticsSignalDefinitions as ba, type SelfDiagnosticsTool as bb, type SelfDiagnosticsToolInputSchema as bc, type SelfDiagnosticsToolOptions as bd, type SignalEvent as be, type SpanParams as bf, type SubagentDispatch as bg, type SubagentDispatchOptions as bh, type SubagentFinishOptions as bi, type ToolParams as bj, type ToolSpan as bk, type Trace as bl, type TraceContext as bm, TraceSchema as bn, type TrackToolParams as bo, type WorkflowParams as bp, claimReplay as bq, compareEvalRuns as br, createEvalHandler as bs, createEvalSuiteRun as bt, createReplay as bu, currentEvalScope as bv, defineAgent as bw, defineDataset as bx, defineEvalSuite as by, defineEvaluatorProgram as bz, type AppGitSnapshot as c, type SubagentResumeOptions as d, type SubagentRun as e, type Tracer as f, type AiTrackEvent as g, type AppGitOptions as h, type Attachment as i, type AttachmentType as j, type BeginInteractionOptions as k, type BooleanThreshold as l, BooleanThresholdSchema as m, type CreateEvalSuiteRunOptions as n, type CreateReplayOptions as o, DEFAULT_EVAL_WAIT_MS as p, DEFAULT_QUERY_URL as q, DEFAULT_TRACE_WAIT_MS as r, type DefinedEvalAgent as s, type DefinedEvalDataset as t, type EvalAgentDefinition as u, type EvalAgentExecution as v, type EvalClient as w, type EvalContext as x, EvalContextSchema as y, type EvalDataset as z };
|