braintrust 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dev/dist/index.d.mts +156 -0
- package/dev/dist/index.d.ts +156 -0
- package/dev/dist/index.js +16 -9
- package/dev/dist/index.mjs +16 -9
- package/dist/browser.d.mts +514 -0
- package/dist/browser.d.ts +514 -0
- package/dist/chunk-CDBUTZMH.js +1713 -0
- package/dist/chunk-NB5AEJPK.mjs +19 -0
- package/dist/chunk-VKR7HDRS.js +19 -0
- package/dist/chunk-WKBXJQ57.mjs +1713 -0
- package/dist/cli.js +23 -14
- package/dist/getMachineId-bsd-7YM2UMB4.js +37 -0
- package/dist/getMachineId-bsd-L7QQYES7.mjs +37 -0
- package/dist/getMachineId-darwin-QV3NVG7H.js +37 -0
- package/dist/getMachineId-darwin-YXDFFCXM.mjs +37 -0
- package/dist/getMachineId-linux-HKJ2YLJC.js +29 -0
- package/dist/getMachineId-linux-LWEEVKPU.mjs +29 -0
- package/dist/getMachineId-unsupported-EGJSIDYQ.mjs +20 -0
- package/dist/getMachineId-unsupported-TX34Q66M.js +20 -0
- package/dist/getMachineId-win-M5YW2KGK.js +39 -0
- package/dist/getMachineId-win-UDA4B6X2.mjs +39 -0
- package/dist/index.d.mts +905 -27
- package/dist/index.d.ts +905 -27
- package/dist/index.js +3664 -237
- package/dist/index.mjs +3460 -33
- package/package.json +7 -5
package/dist/browser.d.ts
CHANGED
|
@@ -2587,6 +2587,52 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
2587
2587
|
name: string;
|
|
2588
2588
|
content: string | null;
|
|
2589
2589
|
role: "function";
|
|
2590
|
+
}>, z.ZodObject<{
|
|
2591
|
+
content: z.ZodUnion<[z.ZodDefault<z.ZodString>, z.ZodArray<z.ZodObject<{
|
|
2592
|
+
text: z.ZodDefault<z.ZodString>;
|
|
2593
|
+
type: z.ZodLiteral<"text">;
|
|
2594
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2595
|
+
type: z.ZodEnum<["ephemeral"]>;
|
|
2596
|
+
}, "strip", z.ZodTypeAny, {
|
|
2597
|
+
type: "ephemeral";
|
|
2598
|
+
}, {
|
|
2599
|
+
type: "ephemeral";
|
|
2600
|
+
}>>;
|
|
2601
|
+
}, "strip", z.ZodTypeAny, {
|
|
2602
|
+
type: "text";
|
|
2603
|
+
text: string;
|
|
2604
|
+
cache_control?: {
|
|
2605
|
+
type: "ephemeral";
|
|
2606
|
+
} | undefined;
|
|
2607
|
+
}, {
|
|
2608
|
+
type: "text";
|
|
2609
|
+
text?: string | undefined;
|
|
2610
|
+
cache_control?: {
|
|
2611
|
+
type: "ephemeral";
|
|
2612
|
+
} | undefined;
|
|
2613
|
+
}>, "many">]>;
|
|
2614
|
+
role: z.ZodLiteral<"developer">;
|
|
2615
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2616
|
+
}, "strip", z.ZodTypeAny, {
|
|
2617
|
+
content: string | {
|
|
2618
|
+
type: "text";
|
|
2619
|
+
text: string;
|
|
2620
|
+
cache_control?: {
|
|
2621
|
+
type: "ephemeral";
|
|
2622
|
+
} | undefined;
|
|
2623
|
+
}[];
|
|
2624
|
+
role: "developer";
|
|
2625
|
+
name?: string | undefined;
|
|
2626
|
+
}, {
|
|
2627
|
+
role: "developer";
|
|
2628
|
+
name?: string | undefined;
|
|
2629
|
+
content?: string | {
|
|
2630
|
+
type: "text";
|
|
2631
|
+
text?: string | undefined;
|
|
2632
|
+
cache_control?: {
|
|
2633
|
+
type: "ephemeral";
|
|
2634
|
+
} | undefined;
|
|
2635
|
+
}[] | undefined;
|
|
2590
2636
|
}>]>, z.ZodObject<{
|
|
2591
2637
|
role: z.ZodEnum<["model"]>;
|
|
2592
2638
|
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2664,6 +2710,16 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
2664
2710
|
name: string;
|
|
2665
2711
|
content: string | null;
|
|
2666
2712
|
role: "function";
|
|
2713
|
+
} | {
|
|
2714
|
+
content: string | {
|
|
2715
|
+
type: "text";
|
|
2716
|
+
text: string;
|
|
2717
|
+
cache_control?: {
|
|
2718
|
+
type: "ephemeral";
|
|
2719
|
+
} | undefined;
|
|
2720
|
+
}[];
|
|
2721
|
+
role: "developer";
|
|
2722
|
+
name?: string | undefined;
|
|
2667
2723
|
} | {
|
|
2668
2724
|
role: "model";
|
|
2669
2725
|
content?: string | null | undefined;
|
|
@@ -2735,6 +2791,16 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
2735
2791
|
name: string;
|
|
2736
2792
|
content: string | null;
|
|
2737
2793
|
role: "function";
|
|
2794
|
+
} | {
|
|
2795
|
+
role: "developer";
|
|
2796
|
+
name?: string | undefined;
|
|
2797
|
+
content?: string | {
|
|
2798
|
+
type: "text";
|
|
2799
|
+
text?: string | undefined;
|
|
2800
|
+
cache_control?: {
|
|
2801
|
+
type: "ephemeral";
|
|
2802
|
+
} | undefined;
|
|
2803
|
+
}[] | undefined;
|
|
2738
2804
|
} | {
|
|
2739
2805
|
role: "model";
|
|
2740
2806
|
content?: string | null | undefined;
|
|
@@ -3668,6 +3734,52 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
3668
3734
|
name: string;
|
|
3669
3735
|
content: string | null;
|
|
3670
3736
|
role: "function";
|
|
3737
|
+
}>, z.ZodObject<{
|
|
3738
|
+
content: z.ZodUnion<[z.ZodDefault<z.ZodString>, z.ZodArray<z.ZodObject<{
|
|
3739
|
+
text: z.ZodDefault<z.ZodString>;
|
|
3740
|
+
type: z.ZodLiteral<"text">;
|
|
3741
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3742
|
+
type: z.ZodEnum<["ephemeral"]>;
|
|
3743
|
+
}, "strip", z.ZodTypeAny, {
|
|
3744
|
+
type: "ephemeral";
|
|
3745
|
+
}, {
|
|
3746
|
+
type: "ephemeral";
|
|
3747
|
+
}>>;
|
|
3748
|
+
}, "strip", z.ZodTypeAny, {
|
|
3749
|
+
type: "text";
|
|
3750
|
+
text: string;
|
|
3751
|
+
cache_control?: {
|
|
3752
|
+
type: "ephemeral";
|
|
3753
|
+
} | undefined;
|
|
3754
|
+
}, {
|
|
3755
|
+
type: "text";
|
|
3756
|
+
text?: string | undefined;
|
|
3757
|
+
cache_control?: {
|
|
3758
|
+
type: "ephemeral";
|
|
3759
|
+
} | undefined;
|
|
3760
|
+
}>, "many">]>;
|
|
3761
|
+
role: z.ZodLiteral<"developer">;
|
|
3762
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3763
|
+
}, "strip", z.ZodTypeAny, {
|
|
3764
|
+
content: string | {
|
|
3765
|
+
type: "text";
|
|
3766
|
+
text: string;
|
|
3767
|
+
cache_control?: {
|
|
3768
|
+
type: "ephemeral";
|
|
3769
|
+
} | undefined;
|
|
3770
|
+
}[];
|
|
3771
|
+
role: "developer";
|
|
3772
|
+
name?: string | undefined;
|
|
3773
|
+
}, {
|
|
3774
|
+
role: "developer";
|
|
3775
|
+
name?: string | undefined;
|
|
3776
|
+
content?: string | {
|
|
3777
|
+
type: "text";
|
|
3778
|
+
text?: string | undefined;
|
|
3779
|
+
cache_control?: {
|
|
3780
|
+
type: "ephemeral";
|
|
3781
|
+
} | undefined;
|
|
3782
|
+
}[] | undefined;
|
|
3671
3783
|
}>]>, z.ZodObject<{
|
|
3672
3784
|
role: z.ZodEnum<["model"]>;
|
|
3673
3785
|
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3745,6 +3857,16 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
3745
3857
|
name: string;
|
|
3746
3858
|
content: string | null;
|
|
3747
3859
|
role: "function";
|
|
3860
|
+
} | {
|
|
3861
|
+
content: string | {
|
|
3862
|
+
type: "text";
|
|
3863
|
+
text: string;
|
|
3864
|
+
cache_control?: {
|
|
3865
|
+
type: "ephemeral";
|
|
3866
|
+
} | undefined;
|
|
3867
|
+
}[];
|
|
3868
|
+
role: "developer";
|
|
3869
|
+
name?: string | undefined;
|
|
3748
3870
|
} | {
|
|
3749
3871
|
role: "model";
|
|
3750
3872
|
content?: string | null | undefined;
|
|
@@ -3816,6 +3938,16 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
3816
3938
|
name: string;
|
|
3817
3939
|
content: string | null;
|
|
3818
3940
|
role: "function";
|
|
3941
|
+
} | {
|
|
3942
|
+
role: "developer";
|
|
3943
|
+
name?: string | undefined;
|
|
3944
|
+
content?: string | {
|
|
3945
|
+
type: "text";
|
|
3946
|
+
text?: string | undefined;
|
|
3947
|
+
cache_control?: {
|
|
3948
|
+
type: "ephemeral";
|
|
3949
|
+
} | undefined;
|
|
3950
|
+
}[] | undefined;
|
|
3819
3951
|
} | {
|
|
3820
3952
|
role: "model";
|
|
3821
3953
|
content?: string | null | undefined;
|
|
@@ -4503,6 +4635,16 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
4503
4635
|
name: string;
|
|
4504
4636
|
content: string | null;
|
|
4505
4637
|
role: "function";
|
|
4638
|
+
} | {
|
|
4639
|
+
content: string | {
|
|
4640
|
+
type: "text";
|
|
4641
|
+
text: string;
|
|
4642
|
+
cache_control?: {
|
|
4643
|
+
type: "ephemeral";
|
|
4644
|
+
} | undefined;
|
|
4645
|
+
}[];
|
|
4646
|
+
role: "developer";
|
|
4647
|
+
name?: string | undefined;
|
|
4506
4648
|
} | {
|
|
4507
4649
|
role: "model";
|
|
4508
4650
|
content?: string | null | undefined;
|
|
@@ -4702,6 +4844,16 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
4702
4844
|
name: string;
|
|
4703
4845
|
content: string | null;
|
|
4704
4846
|
role: "function";
|
|
4847
|
+
} | {
|
|
4848
|
+
role: "developer";
|
|
4849
|
+
name?: string | undefined;
|
|
4850
|
+
content?: string | {
|
|
4851
|
+
type: "text";
|
|
4852
|
+
text?: string | undefined;
|
|
4853
|
+
cache_control?: {
|
|
4854
|
+
type: "ephemeral";
|
|
4855
|
+
} | undefined;
|
|
4856
|
+
}[] | undefined;
|
|
4705
4857
|
} | {
|
|
4706
4858
|
role: "model";
|
|
4707
4859
|
content?: string | null | undefined;
|
|
@@ -4886,6 +5038,10 @@ interface EvalHooks<Expected, Metadata extends BaseMetadata, Parameters extends
|
|
|
4886
5038
|
* Report progress that will show up in the playground.
|
|
4887
5039
|
*/
|
|
4888
5040
|
reportProgress: (progress: TaskProgressEvent) => void;
|
|
5041
|
+
/**
|
|
5042
|
+
* The index of the current trial (0-based). This is useful when trialCount > 1.
|
|
5043
|
+
*/
|
|
5044
|
+
trialIndex: number;
|
|
4889
5045
|
}
|
|
4890
5046
|
type EvalScorerArgs<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalCase<Input, Expected, Metadata> & {
|
|
4891
5047
|
output: Output;
|
|
@@ -5416,6 +5572,52 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
5416
5572
|
name: string;
|
|
5417
5573
|
content: string | null;
|
|
5418
5574
|
role: "function";
|
|
5575
|
+
}>, z.ZodObject<{
|
|
5576
|
+
content: z.ZodUnion<[z.ZodDefault<z.ZodString>, z.ZodArray<z.ZodObject<{
|
|
5577
|
+
text: z.ZodDefault<z.ZodString>;
|
|
5578
|
+
type: z.ZodLiteral<"text">;
|
|
5579
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
5580
|
+
type: z.ZodEnum<["ephemeral"]>;
|
|
5581
|
+
}, "strip", z.ZodTypeAny, {
|
|
5582
|
+
type: "ephemeral";
|
|
5583
|
+
}, {
|
|
5584
|
+
type: "ephemeral";
|
|
5585
|
+
}>>;
|
|
5586
|
+
}, "strip", z.ZodTypeAny, {
|
|
5587
|
+
type: "text";
|
|
5588
|
+
text: string;
|
|
5589
|
+
cache_control?: {
|
|
5590
|
+
type: "ephemeral";
|
|
5591
|
+
} | undefined;
|
|
5592
|
+
}, {
|
|
5593
|
+
type: "text";
|
|
5594
|
+
text?: string | undefined;
|
|
5595
|
+
cache_control?: {
|
|
5596
|
+
type: "ephemeral";
|
|
5597
|
+
} | undefined;
|
|
5598
|
+
}>, "many">]>;
|
|
5599
|
+
role: z.ZodLiteral<"developer">;
|
|
5600
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5601
|
+
}, "strip", z.ZodTypeAny, {
|
|
5602
|
+
content: string | {
|
|
5603
|
+
type: "text";
|
|
5604
|
+
text: string;
|
|
5605
|
+
cache_control?: {
|
|
5606
|
+
type: "ephemeral";
|
|
5607
|
+
} | undefined;
|
|
5608
|
+
}[];
|
|
5609
|
+
role: "developer";
|
|
5610
|
+
name?: string | undefined;
|
|
5611
|
+
}, {
|
|
5612
|
+
role: "developer";
|
|
5613
|
+
name?: string | undefined;
|
|
5614
|
+
content?: string | {
|
|
5615
|
+
type: "text";
|
|
5616
|
+
text?: string | undefined;
|
|
5617
|
+
cache_control?: {
|
|
5618
|
+
type: "ephemeral";
|
|
5619
|
+
} | undefined;
|
|
5620
|
+
}[] | undefined;
|
|
5419
5621
|
}>]>, z.ZodObject<{
|
|
5420
5622
|
role: z.ZodEnum<["model"]>;
|
|
5421
5623
|
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -5439,6 +5641,16 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
5439
5641
|
}[];
|
|
5440
5642
|
role: "system";
|
|
5441
5643
|
name?: string | undefined;
|
|
5644
|
+
} | {
|
|
5645
|
+
content: string | {
|
|
5646
|
+
type: "text";
|
|
5647
|
+
text: string;
|
|
5648
|
+
cache_control?: {
|
|
5649
|
+
type: "ephemeral";
|
|
5650
|
+
} | undefined;
|
|
5651
|
+
}[];
|
|
5652
|
+
role: "developer";
|
|
5653
|
+
name?: string | undefined;
|
|
5442
5654
|
} | {
|
|
5443
5655
|
content: string | ({
|
|
5444
5656
|
type: "text";
|
|
@@ -5512,6 +5724,16 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
5512
5724
|
type: "ephemeral";
|
|
5513
5725
|
} | undefined;
|
|
5514
5726
|
}[] | undefined;
|
|
5727
|
+
} | {
|
|
5728
|
+
role: "developer";
|
|
5729
|
+
name?: string | undefined;
|
|
5730
|
+
content?: string | {
|
|
5731
|
+
type: "text";
|
|
5732
|
+
text?: string | undefined;
|
|
5733
|
+
cache_control?: {
|
|
5734
|
+
type: "ephemeral";
|
|
5735
|
+
} | undefined;
|
|
5736
|
+
}[] | undefined;
|
|
5515
5737
|
} | {
|
|
5516
5738
|
role: "user";
|
|
5517
5739
|
name?: string | undefined;
|
|
@@ -6307,6 +6529,16 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
6307
6529
|
}[];
|
|
6308
6530
|
role: "system";
|
|
6309
6531
|
name?: string | undefined;
|
|
6532
|
+
} | {
|
|
6533
|
+
content: string | {
|
|
6534
|
+
type: "text";
|
|
6535
|
+
text: string;
|
|
6536
|
+
cache_control?: {
|
|
6537
|
+
type: "ephemeral";
|
|
6538
|
+
} | undefined;
|
|
6539
|
+
}[];
|
|
6540
|
+
role: "developer";
|
|
6541
|
+
name?: string | undefined;
|
|
6310
6542
|
} | {
|
|
6311
6543
|
content: string | ({
|
|
6312
6544
|
type: "text";
|
|
@@ -6516,6 +6748,16 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
6516
6748
|
type: "ephemeral";
|
|
6517
6749
|
} | undefined;
|
|
6518
6750
|
}[] | undefined;
|
|
6751
|
+
} | {
|
|
6752
|
+
role: "developer";
|
|
6753
|
+
name?: string | undefined;
|
|
6754
|
+
content?: string | {
|
|
6755
|
+
type: "text";
|
|
6756
|
+
text?: string | undefined;
|
|
6757
|
+
cache_control?: {
|
|
6758
|
+
type: "ephemeral";
|
|
6759
|
+
} | undefined;
|
|
6760
|
+
}[] | undefined;
|
|
6519
6761
|
} | {
|
|
6520
6762
|
role: "user";
|
|
6521
6763
|
name?: string | undefined;
|
|
@@ -6729,6 +6971,16 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
6729
6971
|
}[];
|
|
6730
6972
|
role: "system";
|
|
6731
6973
|
name?: string | undefined;
|
|
6974
|
+
} | {
|
|
6975
|
+
content: string | {
|
|
6976
|
+
type: "text";
|
|
6977
|
+
text: string;
|
|
6978
|
+
cache_control?: {
|
|
6979
|
+
type: "ephemeral";
|
|
6980
|
+
} | undefined;
|
|
6981
|
+
}[];
|
|
6982
|
+
role: "developer";
|
|
6983
|
+
name?: string | undefined;
|
|
6732
6984
|
} | {
|
|
6733
6985
|
content: string | ({
|
|
6734
6986
|
type: "text";
|
|
@@ -6942,6 +7194,16 @@ declare const evalParametersSerializedSchema: z.ZodRecord<z.ZodString, z.ZodUnio
|
|
|
6942
7194
|
type: "ephemeral";
|
|
6943
7195
|
} | undefined;
|
|
6944
7196
|
}[] | undefined;
|
|
7197
|
+
} | {
|
|
7198
|
+
role: "developer";
|
|
7199
|
+
name?: string | undefined;
|
|
7200
|
+
content?: string | {
|
|
7201
|
+
type: "text";
|
|
7202
|
+
text?: string | undefined;
|
|
7203
|
+
cache_control?: {
|
|
7204
|
+
type: "ephemeral";
|
|
7205
|
+
} | undefined;
|
|
7206
|
+
}[] | undefined;
|
|
6945
7207
|
} | {
|
|
6946
7208
|
role: "user";
|
|
6947
7209
|
name?: string | undefined;
|
|
@@ -7393,6 +7655,52 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
7393
7655
|
name: string;
|
|
7394
7656
|
content: string | null;
|
|
7395
7657
|
role: "function";
|
|
7658
|
+
}>, z.ZodObject<{
|
|
7659
|
+
content: z.ZodUnion<[z.ZodDefault<z.ZodString>, z.ZodArray<z.ZodObject<{
|
|
7660
|
+
text: z.ZodDefault<z.ZodString>;
|
|
7661
|
+
type: z.ZodLiteral<"text">;
|
|
7662
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
7663
|
+
type: z.ZodEnum<["ephemeral"]>;
|
|
7664
|
+
}, "strip", z.ZodTypeAny, {
|
|
7665
|
+
type: "ephemeral";
|
|
7666
|
+
}, {
|
|
7667
|
+
type: "ephemeral";
|
|
7668
|
+
}>>;
|
|
7669
|
+
}, "strip", z.ZodTypeAny, {
|
|
7670
|
+
type: "text";
|
|
7671
|
+
text: string;
|
|
7672
|
+
cache_control?: {
|
|
7673
|
+
type: "ephemeral";
|
|
7674
|
+
} | undefined;
|
|
7675
|
+
}, {
|
|
7676
|
+
type: "text";
|
|
7677
|
+
text?: string | undefined;
|
|
7678
|
+
cache_control?: {
|
|
7679
|
+
type: "ephemeral";
|
|
7680
|
+
} | undefined;
|
|
7681
|
+
}>, "many">]>;
|
|
7682
|
+
role: z.ZodLiteral<"developer">;
|
|
7683
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7684
|
+
}, "strip", z.ZodTypeAny, {
|
|
7685
|
+
content: string | {
|
|
7686
|
+
type: "text";
|
|
7687
|
+
text: string;
|
|
7688
|
+
cache_control?: {
|
|
7689
|
+
type: "ephemeral";
|
|
7690
|
+
} | undefined;
|
|
7691
|
+
}[];
|
|
7692
|
+
role: "developer";
|
|
7693
|
+
name?: string | undefined;
|
|
7694
|
+
}, {
|
|
7695
|
+
role: "developer";
|
|
7696
|
+
name?: string | undefined;
|
|
7697
|
+
content?: string | {
|
|
7698
|
+
type: "text";
|
|
7699
|
+
text?: string | undefined;
|
|
7700
|
+
cache_control?: {
|
|
7701
|
+
type: "ephemeral";
|
|
7702
|
+
} | undefined;
|
|
7703
|
+
}[] | undefined;
|
|
7396
7704
|
}>]>, z.ZodObject<{
|
|
7397
7705
|
role: z.ZodEnum<["model"]>;
|
|
7398
7706
|
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -7416,6 +7724,16 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
7416
7724
|
}[];
|
|
7417
7725
|
role: "system";
|
|
7418
7726
|
name?: string | undefined;
|
|
7727
|
+
} | {
|
|
7728
|
+
content: string | {
|
|
7729
|
+
type: "text";
|
|
7730
|
+
text: string;
|
|
7731
|
+
cache_control?: {
|
|
7732
|
+
type: "ephemeral";
|
|
7733
|
+
} | undefined;
|
|
7734
|
+
}[];
|
|
7735
|
+
role: "developer";
|
|
7736
|
+
name?: string | undefined;
|
|
7419
7737
|
} | {
|
|
7420
7738
|
content: string | ({
|
|
7421
7739
|
type: "text";
|
|
@@ -7489,6 +7807,16 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
7489
7807
|
type: "ephemeral";
|
|
7490
7808
|
} | undefined;
|
|
7491
7809
|
}[] | undefined;
|
|
7810
|
+
} | {
|
|
7811
|
+
role: "developer";
|
|
7812
|
+
name?: string | undefined;
|
|
7813
|
+
content?: string | {
|
|
7814
|
+
type: "text";
|
|
7815
|
+
text?: string | undefined;
|
|
7816
|
+
cache_control?: {
|
|
7817
|
+
type: "ephemeral";
|
|
7818
|
+
} | undefined;
|
|
7819
|
+
}[] | undefined;
|
|
7492
7820
|
} | {
|
|
7493
7821
|
role: "user";
|
|
7494
7822
|
name?: string | undefined;
|
|
@@ -8284,6 +8612,16 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
8284
8612
|
}[];
|
|
8285
8613
|
role: "system";
|
|
8286
8614
|
name?: string | undefined;
|
|
8615
|
+
} | {
|
|
8616
|
+
content: string | {
|
|
8617
|
+
type: "text";
|
|
8618
|
+
text: string;
|
|
8619
|
+
cache_control?: {
|
|
8620
|
+
type: "ephemeral";
|
|
8621
|
+
} | undefined;
|
|
8622
|
+
}[];
|
|
8623
|
+
role: "developer";
|
|
8624
|
+
name?: string | undefined;
|
|
8287
8625
|
} | {
|
|
8288
8626
|
content: string | ({
|
|
8289
8627
|
type: "text";
|
|
@@ -8493,6 +8831,16 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
8493
8831
|
type: "ephemeral";
|
|
8494
8832
|
} | undefined;
|
|
8495
8833
|
}[] | undefined;
|
|
8834
|
+
} | {
|
|
8835
|
+
role: "developer";
|
|
8836
|
+
name?: string | undefined;
|
|
8837
|
+
content?: string | {
|
|
8838
|
+
type: "text";
|
|
8839
|
+
text?: string | undefined;
|
|
8840
|
+
cache_control?: {
|
|
8841
|
+
type: "ephemeral";
|
|
8842
|
+
} | undefined;
|
|
8843
|
+
}[] | undefined;
|
|
8496
8844
|
} | {
|
|
8497
8845
|
role: "user";
|
|
8498
8846
|
name?: string | undefined;
|
|
@@ -8706,6 +9054,16 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
8706
9054
|
}[];
|
|
8707
9055
|
role: "system";
|
|
8708
9056
|
name?: string | undefined;
|
|
9057
|
+
} | {
|
|
9058
|
+
content: string | {
|
|
9059
|
+
type: "text";
|
|
9060
|
+
text: string;
|
|
9061
|
+
cache_control?: {
|
|
9062
|
+
type: "ephemeral";
|
|
9063
|
+
} | undefined;
|
|
9064
|
+
}[];
|
|
9065
|
+
role: "developer";
|
|
9066
|
+
name?: string | undefined;
|
|
8709
9067
|
} | {
|
|
8710
9068
|
content: string | ({
|
|
8711
9069
|
type: "text";
|
|
@@ -8919,6 +9277,16 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
8919
9277
|
type: "ephemeral";
|
|
8920
9278
|
} | undefined;
|
|
8921
9279
|
}[] | undefined;
|
|
9280
|
+
} | {
|
|
9281
|
+
role: "developer";
|
|
9282
|
+
name?: string | undefined;
|
|
9283
|
+
content?: string | {
|
|
9284
|
+
type: "text";
|
|
9285
|
+
text?: string | undefined;
|
|
9286
|
+
cache_control?: {
|
|
9287
|
+
type: "ephemeral";
|
|
9288
|
+
} | undefined;
|
|
9289
|
+
}[] | undefined;
|
|
8922
9290
|
} | {
|
|
8923
9291
|
role: "user";
|
|
8924
9292
|
name?: string | undefined;
|
|
@@ -9149,6 +9517,16 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
9149
9517
|
}[];
|
|
9150
9518
|
role: "system";
|
|
9151
9519
|
name?: string | undefined;
|
|
9520
|
+
} | {
|
|
9521
|
+
content: string | {
|
|
9522
|
+
type: "text";
|
|
9523
|
+
text: string;
|
|
9524
|
+
cache_control?: {
|
|
9525
|
+
type: "ephemeral";
|
|
9526
|
+
} | undefined;
|
|
9527
|
+
}[];
|
|
9528
|
+
role: "developer";
|
|
9529
|
+
name?: string | undefined;
|
|
9152
9530
|
} | {
|
|
9153
9531
|
content: string | ({
|
|
9154
9532
|
type: "text";
|
|
@@ -9369,6 +9747,16 @@ declare const evaluatorDefinitionSchema: z.ZodObject<{
|
|
|
9369
9747
|
type: "ephemeral";
|
|
9370
9748
|
} | undefined;
|
|
9371
9749
|
}[] | undefined;
|
|
9750
|
+
} | {
|
|
9751
|
+
role: "developer";
|
|
9752
|
+
name?: string | undefined;
|
|
9753
|
+
content?: string | {
|
|
9754
|
+
type: "text";
|
|
9755
|
+
text?: string | undefined;
|
|
9756
|
+
cache_control?: {
|
|
9757
|
+
type: "ephemeral";
|
|
9758
|
+
} | undefined;
|
|
9759
|
+
}[] | undefined;
|
|
9372
9760
|
} | {
|
|
9373
9761
|
role: "user";
|
|
9374
9762
|
name?: string | undefined;
|
|
@@ -9811,6 +10199,52 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
9811
10199
|
name: string;
|
|
9812
10200
|
content: string | null;
|
|
9813
10201
|
role: "function";
|
|
10202
|
+
}>, z.ZodObject<{
|
|
10203
|
+
content: z.ZodUnion<[z.ZodDefault<z.ZodString>, z.ZodArray<z.ZodObject<{
|
|
10204
|
+
text: z.ZodDefault<z.ZodString>;
|
|
10205
|
+
type: z.ZodLiteral<"text">;
|
|
10206
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
10207
|
+
type: z.ZodEnum<["ephemeral"]>;
|
|
10208
|
+
}, "strip", z.ZodTypeAny, {
|
|
10209
|
+
type: "ephemeral";
|
|
10210
|
+
}, {
|
|
10211
|
+
type: "ephemeral";
|
|
10212
|
+
}>>;
|
|
10213
|
+
}, "strip", z.ZodTypeAny, {
|
|
10214
|
+
type: "text";
|
|
10215
|
+
text: string;
|
|
10216
|
+
cache_control?: {
|
|
10217
|
+
type: "ephemeral";
|
|
10218
|
+
} | undefined;
|
|
10219
|
+
}, {
|
|
10220
|
+
type: "text";
|
|
10221
|
+
text?: string | undefined;
|
|
10222
|
+
cache_control?: {
|
|
10223
|
+
type: "ephemeral";
|
|
10224
|
+
} | undefined;
|
|
10225
|
+
}>, "many">]>;
|
|
10226
|
+
role: z.ZodLiteral<"developer">;
|
|
10227
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10228
|
+
}, "strip", z.ZodTypeAny, {
|
|
10229
|
+
content: string | {
|
|
10230
|
+
type: "text";
|
|
10231
|
+
text: string;
|
|
10232
|
+
cache_control?: {
|
|
10233
|
+
type: "ephemeral";
|
|
10234
|
+
} | undefined;
|
|
10235
|
+
}[];
|
|
10236
|
+
role: "developer";
|
|
10237
|
+
name?: string | undefined;
|
|
10238
|
+
}, {
|
|
10239
|
+
role: "developer";
|
|
10240
|
+
name?: string | undefined;
|
|
10241
|
+
content?: string | {
|
|
10242
|
+
type: "text";
|
|
10243
|
+
text?: string | undefined;
|
|
10244
|
+
cache_control?: {
|
|
10245
|
+
type: "ephemeral";
|
|
10246
|
+
} | undefined;
|
|
10247
|
+
}[] | undefined;
|
|
9814
10248
|
}>]>, z.ZodObject<{
|
|
9815
10249
|
role: z.ZodEnum<["model"]>;
|
|
9816
10250
|
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -9834,6 +10268,16 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
9834
10268
|
}[];
|
|
9835
10269
|
role: "system";
|
|
9836
10270
|
name?: string | undefined;
|
|
10271
|
+
} | {
|
|
10272
|
+
content: string | {
|
|
10273
|
+
type: "text";
|
|
10274
|
+
text: string;
|
|
10275
|
+
cache_control?: {
|
|
10276
|
+
type: "ephemeral";
|
|
10277
|
+
} | undefined;
|
|
10278
|
+
}[];
|
|
10279
|
+
role: "developer";
|
|
10280
|
+
name?: string | undefined;
|
|
9837
10281
|
} | {
|
|
9838
10282
|
content: string | ({
|
|
9839
10283
|
type: "text";
|
|
@@ -9907,6 +10351,16 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
9907
10351
|
type: "ephemeral";
|
|
9908
10352
|
} | undefined;
|
|
9909
10353
|
}[] | undefined;
|
|
10354
|
+
} | {
|
|
10355
|
+
role: "developer";
|
|
10356
|
+
name?: string | undefined;
|
|
10357
|
+
content?: string | {
|
|
10358
|
+
type: "text";
|
|
10359
|
+
text?: string | undefined;
|
|
10360
|
+
cache_control?: {
|
|
10361
|
+
type: "ephemeral";
|
|
10362
|
+
} | undefined;
|
|
10363
|
+
}[] | undefined;
|
|
9910
10364
|
} | {
|
|
9911
10365
|
role: "user";
|
|
9912
10366
|
name?: string | undefined;
|
|
@@ -10702,6 +11156,16 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
10702
11156
|
}[];
|
|
10703
11157
|
role: "system";
|
|
10704
11158
|
name?: string | undefined;
|
|
11159
|
+
} | {
|
|
11160
|
+
content: string | {
|
|
11161
|
+
type: "text";
|
|
11162
|
+
text: string;
|
|
11163
|
+
cache_control?: {
|
|
11164
|
+
type: "ephemeral";
|
|
11165
|
+
} | undefined;
|
|
11166
|
+
}[];
|
|
11167
|
+
role: "developer";
|
|
11168
|
+
name?: string | undefined;
|
|
10705
11169
|
} | {
|
|
10706
11170
|
content: string | ({
|
|
10707
11171
|
type: "text";
|
|
@@ -10911,6 +11375,16 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
10911
11375
|
type: "ephemeral";
|
|
10912
11376
|
} | undefined;
|
|
10913
11377
|
}[] | undefined;
|
|
11378
|
+
} | {
|
|
11379
|
+
role: "developer";
|
|
11380
|
+
name?: string | undefined;
|
|
11381
|
+
content?: string | {
|
|
11382
|
+
type: "text";
|
|
11383
|
+
text?: string | undefined;
|
|
11384
|
+
cache_control?: {
|
|
11385
|
+
type: "ephemeral";
|
|
11386
|
+
} | undefined;
|
|
11387
|
+
}[] | undefined;
|
|
10914
11388
|
} | {
|
|
10915
11389
|
role: "user";
|
|
10916
11390
|
name?: string | undefined;
|
|
@@ -11124,6 +11598,16 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
11124
11598
|
}[];
|
|
11125
11599
|
role: "system";
|
|
11126
11600
|
name?: string | undefined;
|
|
11601
|
+
} | {
|
|
11602
|
+
content: string | {
|
|
11603
|
+
type: "text";
|
|
11604
|
+
text: string;
|
|
11605
|
+
cache_control?: {
|
|
11606
|
+
type: "ephemeral";
|
|
11607
|
+
} | undefined;
|
|
11608
|
+
}[];
|
|
11609
|
+
role: "developer";
|
|
11610
|
+
name?: string | undefined;
|
|
11127
11611
|
} | {
|
|
11128
11612
|
content: string | ({
|
|
11129
11613
|
type: "text";
|
|
@@ -11337,6 +11821,16 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
11337
11821
|
type: "ephemeral";
|
|
11338
11822
|
} | undefined;
|
|
11339
11823
|
}[] | undefined;
|
|
11824
|
+
} | {
|
|
11825
|
+
role: "developer";
|
|
11826
|
+
name?: string | undefined;
|
|
11827
|
+
content?: string | {
|
|
11828
|
+
type: "text";
|
|
11829
|
+
text?: string | undefined;
|
|
11830
|
+
cache_control?: {
|
|
11831
|
+
type: "ephemeral";
|
|
11832
|
+
} | undefined;
|
|
11833
|
+
}[] | undefined;
|
|
11340
11834
|
} | {
|
|
11341
11835
|
role: "user";
|
|
11342
11836
|
name?: string | undefined;
|
|
@@ -11567,6 +12061,16 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
11567
12061
|
}[];
|
|
11568
12062
|
role: "system";
|
|
11569
12063
|
name?: string | undefined;
|
|
12064
|
+
} | {
|
|
12065
|
+
content: string | {
|
|
12066
|
+
type: "text";
|
|
12067
|
+
text: string;
|
|
12068
|
+
cache_control?: {
|
|
12069
|
+
type: "ephemeral";
|
|
12070
|
+
} | undefined;
|
|
12071
|
+
}[];
|
|
12072
|
+
role: "developer";
|
|
12073
|
+
name?: string | undefined;
|
|
11570
12074
|
} | {
|
|
11571
12075
|
content: string | ({
|
|
11572
12076
|
type: "text";
|
|
@@ -11787,6 +12291,16 @@ declare const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
11787
12291
|
type: "ephemeral";
|
|
11788
12292
|
} | undefined;
|
|
11789
12293
|
}[] | undefined;
|
|
12294
|
+
} | {
|
|
12295
|
+
role: "developer";
|
|
12296
|
+
name?: string | undefined;
|
|
12297
|
+
content?: string | {
|
|
12298
|
+
type: "text";
|
|
12299
|
+
text?: string | undefined;
|
|
12300
|
+
cache_control?: {
|
|
12301
|
+
type: "ephemeral";
|
|
12302
|
+
} | undefined;
|
|
12303
|
+
}[] | undefined;
|
|
11790
12304
|
} | {
|
|
11791
12305
|
role: "user";
|
|
11792
12306
|
name?: string | undefined;
|