braintrust 3.30.0 → 3.32.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 +740 -1
- package/dev/dist/index.d.ts +740 -1
- package/dev/dist/index.js +1307 -434
- package/dev/dist/index.mjs +886 -13
- package/dist/apply-auto-instrumentation.js +281 -216
- package/dist/apply-auto-instrumentation.mjs +66 -1
- package/dist/auto-instrumentations/bundler/esbuild.cjs +104 -2
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/next.cjs +113 -5
- package/dist/auto-instrumentations/bundler/next.mjs +12 -6
- package/dist/auto-instrumentations/bundler/rollup.cjs +104 -2
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +104 -2
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +104 -2
- package/dist/auto-instrumentations/bundler/webpack.cjs +104 -2
- package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
- package/dist/auto-instrumentations/{chunk-U64OYU4Q.mjs → chunk-AFND2U7E.mjs} +38 -1
- package/dist/auto-instrumentations/{chunk-OXINGIEZ.mjs → chunk-QEEPRBIS.mjs} +1 -1
- package/dist/auto-instrumentations/{chunk-LW4HDHXT.mjs → chunk-RI4Y55ZF.mjs} +69 -2
- package/dist/auto-instrumentations/hook.mjs +126 -3
- package/dist/auto-instrumentations/index.cjs +39 -1
- package/dist/auto-instrumentations/index.d.mts +3 -1
- package/dist/auto-instrumentations/index.d.ts +3 -1
- package/dist/auto-instrumentations/index.mjs +3 -1
- package/dist/browser.d.mts +3052 -927
- package/dist/browser.d.ts +3052 -927
- package/dist/browser.js +1023 -18
- package/dist/browser.mjs +1023 -18
- package/dist/{chunk-BU6SM54N.mjs → chunk-4QSAHP7D.mjs} +834 -10
- package/dist/{chunk-2XDW3UCG.js → chunk-AW4QECG5.js} +47 -4
- package/dist/{chunk-TWCDSYJN.js → chunk-BTRLPQG5.js} +1679 -855
- package/dist/{chunk-N3JKQ3D3.mjs → chunk-WV6QZI2W.mjs} +46 -3
- package/dist/cli.js +950 -14
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +1023 -18
- package/dist/edge-light.mjs +1023 -18
- package/dist/index.d.mts +3052 -927
- package/dist/index.d.ts +3052 -927
- package/dist/index.js +594 -450
- package/dist/index.mjs +149 -5
- package/dist/instrumentation/index.d.mts +434 -0
- package/dist/instrumentation/index.d.ts +434 -0
- package/dist/instrumentation/index.js +875 -12
- package/dist/instrumentation/index.mjs +875 -12
- package/dist/vitest-evals-reporter.js +16 -16
- package/dist/vitest-evals-reporter.mjs +2 -2
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +1023 -18
- package/dist/workerd.mjs +1023 -18
- package/package.json +1 -1
- package/util/dist/index.d.mts +326 -0
- package/util/dist/index.d.ts +326 -0
package/dev/dist/index.d.mts
CHANGED
|
@@ -520,6 +520,9 @@ interface Score {
|
|
|
520
520
|
*/
|
|
521
521
|
error?: unknown;
|
|
522
522
|
}
|
|
523
|
+
type SingleScore = Omit<Score, "name"> & {
|
|
524
|
+
name?: string;
|
|
525
|
+
};
|
|
523
526
|
|
|
524
527
|
declare const spanComponentsV4Schema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
525
528
|
object_type: z.ZodNativeEnum<typeof SpanObjectTypeV3>;
|
|
@@ -935,6 +938,48 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
935
938
|
type: "ephemeral";
|
|
936
939
|
ttl?: "5m" | "1h" | undefined;
|
|
937
940
|
} | undefined;
|
|
941
|
+
}>, z.ZodObject<{
|
|
942
|
+
input_audio: z.ZodObject<{
|
|
943
|
+
data: z.ZodString;
|
|
944
|
+
format: z.ZodEnum<["wav", "mp3"]>;
|
|
945
|
+
}, "strip", z.ZodTypeAny, {
|
|
946
|
+
data: string;
|
|
947
|
+
format: "wav" | "mp3";
|
|
948
|
+
}, {
|
|
949
|
+
data: string;
|
|
950
|
+
format: "wav" | "mp3";
|
|
951
|
+
}>;
|
|
952
|
+
type: z.ZodLiteral<"input_audio">;
|
|
953
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
954
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
955
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
956
|
+
}, "strip", z.ZodTypeAny, {
|
|
957
|
+
type: "ephemeral";
|
|
958
|
+
ttl?: "5m" | "1h" | undefined;
|
|
959
|
+
}, {
|
|
960
|
+
type: "ephemeral";
|
|
961
|
+
ttl?: "5m" | "1h" | undefined;
|
|
962
|
+
}>>;
|
|
963
|
+
}, "strip", z.ZodTypeAny, {
|
|
964
|
+
type: "input_audio";
|
|
965
|
+
input_audio: {
|
|
966
|
+
data: string;
|
|
967
|
+
format: "wav" | "mp3";
|
|
968
|
+
};
|
|
969
|
+
cache_control?: {
|
|
970
|
+
type: "ephemeral";
|
|
971
|
+
ttl?: "5m" | "1h" | undefined;
|
|
972
|
+
} | undefined;
|
|
973
|
+
}, {
|
|
974
|
+
type: "input_audio";
|
|
975
|
+
input_audio: {
|
|
976
|
+
data: string;
|
|
977
|
+
format: "wav" | "mp3";
|
|
978
|
+
};
|
|
979
|
+
cache_control?: {
|
|
980
|
+
type: "ephemeral";
|
|
981
|
+
ttl?: "5m" | "1h" | undefined;
|
|
982
|
+
} | undefined;
|
|
938
983
|
}>, z.ZodObject<{
|
|
939
984
|
file: z.ZodObject<{
|
|
940
985
|
file_data: z.ZodOptional<z.ZodString>;
|
|
@@ -1004,6 +1049,16 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
1004
1049
|
type: "ephemeral";
|
|
1005
1050
|
ttl?: "5m" | "1h" | undefined;
|
|
1006
1051
|
} | undefined;
|
|
1052
|
+
} | {
|
|
1053
|
+
type: "input_audio";
|
|
1054
|
+
input_audio: {
|
|
1055
|
+
data: string;
|
|
1056
|
+
format: "wav" | "mp3";
|
|
1057
|
+
};
|
|
1058
|
+
cache_control?: {
|
|
1059
|
+
type: "ephemeral";
|
|
1060
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1061
|
+
} | undefined;
|
|
1007
1062
|
} | {
|
|
1008
1063
|
type: "file";
|
|
1009
1064
|
file: {
|
|
@@ -1036,6 +1091,16 @@ declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
1036
1091
|
type: "ephemeral";
|
|
1037
1092
|
ttl?: "5m" | "1h" | undefined;
|
|
1038
1093
|
} | undefined;
|
|
1094
|
+
} | {
|
|
1095
|
+
type: "input_audio";
|
|
1096
|
+
input_audio: {
|
|
1097
|
+
data: string;
|
|
1098
|
+
format: "wav" | "mp3";
|
|
1099
|
+
};
|
|
1100
|
+
cache_control?: {
|
|
1101
|
+
type: "ephemeral";
|
|
1102
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1103
|
+
} | undefined;
|
|
1039
1104
|
} | {
|
|
1040
1105
|
type: "file";
|
|
1041
1106
|
file: {
|
|
@@ -1437,6 +1502,48 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
1437
1502
|
type: "ephemeral";
|
|
1438
1503
|
ttl?: "5m" | "1h" | undefined;
|
|
1439
1504
|
} | undefined;
|
|
1505
|
+
}>, z.ZodObject<{
|
|
1506
|
+
input_audio: z.ZodObject<{
|
|
1507
|
+
data: z.ZodString;
|
|
1508
|
+
format: z.ZodEnum<["wav", "mp3"]>;
|
|
1509
|
+
}, "strip", z.ZodTypeAny, {
|
|
1510
|
+
data: string;
|
|
1511
|
+
format: "wav" | "mp3";
|
|
1512
|
+
}, {
|
|
1513
|
+
data: string;
|
|
1514
|
+
format: "wav" | "mp3";
|
|
1515
|
+
}>;
|
|
1516
|
+
type: z.ZodLiteral<"input_audio">;
|
|
1517
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1518
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1519
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
1520
|
+
}, "strip", z.ZodTypeAny, {
|
|
1521
|
+
type: "ephemeral";
|
|
1522
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1523
|
+
}, {
|
|
1524
|
+
type: "ephemeral";
|
|
1525
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1526
|
+
}>>;
|
|
1527
|
+
}, "strip", z.ZodTypeAny, {
|
|
1528
|
+
type: "input_audio";
|
|
1529
|
+
input_audio: {
|
|
1530
|
+
data: string;
|
|
1531
|
+
format: "wav" | "mp3";
|
|
1532
|
+
};
|
|
1533
|
+
cache_control?: {
|
|
1534
|
+
type: "ephemeral";
|
|
1535
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1536
|
+
} | undefined;
|
|
1537
|
+
}, {
|
|
1538
|
+
type: "input_audio";
|
|
1539
|
+
input_audio: {
|
|
1540
|
+
data: string;
|
|
1541
|
+
format: "wav" | "mp3";
|
|
1542
|
+
};
|
|
1543
|
+
cache_control?: {
|
|
1544
|
+
type: "ephemeral";
|
|
1545
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1546
|
+
} | undefined;
|
|
1440
1547
|
}>, z.ZodObject<{
|
|
1441
1548
|
file: z.ZodObject<{
|
|
1442
1549
|
file_data: z.ZodOptional<z.ZodString>;
|
|
@@ -1506,6 +1613,16 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
1506
1613
|
type: "ephemeral";
|
|
1507
1614
|
ttl?: "5m" | "1h" | undefined;
|
|
1508
1615
|
} | undefined;
|
|
1616
|
+
} | {
|
|
1617
|
+
type: "input_audio";
|
|
1618
|
+
input_audio: {
|
|
1619
|
+
data: string;
|
|
1620
|
+
format: "wav" | "mp3";
|
|
1621
|
+
};
|
|
1622
|
+
cache_control?: {
|
|
1623
|
+
type: "ephemeral";
|
|
1624
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1625
|
+
} | undefined;
|
|
1509
1626
|
} | {
|
|
1510
1627
|
type: "file";
|
|
1511
1628
|
file: {
|
|
@@ -1538,6 +1655,16 @@ declare const ChatCompletionOpenAIMessageParam: z.ZodUnion<[z.ZodObject<{
|
|
|
1538
1655
|
type: "ephemeral";
|
|
1539
1656
|
ttl?: "5m" | "1h" | undefined;
|
|
1540
1657
|
} | undefined;
|
|
1658
|
+
} | {
|
|
1659
|
+
type: "input_audio";
|
|
1660
|
+
input_audio: {
|
|
1661
|
+
data: string;
|
|
1662
|
+
format: "wav" | "mp3";
|
|
1663
|
+
};
|
|
1664
|
+
cache_control?: {
|
|
1665
|
+
type: "ephemeral";
|
|
1666
|
+
ttl?: "5m" | "1h" | undefined;
|
|
1667
|
+
} | undefined;
|
|
1541
1668
|
} | {
|
|
1542
1669
|
type: "file";
|
|
1543
1670
|
file: {
|
|
@@ -2018,6 +2145,48 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
2018
2145
|
type: "ephemeral";
|
|
2019
2146
|
ttl?: "5m" | "1h" | undefined;
|
|
2020
2147
|
} | undefined;
|
|
2148
|
+
}>, z.ZodObject<{
|
|
2149
|
+
input_audio: z.ZodObject<{
|
|
2150
|
+
data: z.ZodString;
|
|
2151
|
+
format: z.ZodEnum<["wav", "mp3"]>;
|
|
2152
|
+
}, "strip", z.ZodTypeAny, {
|
|
2153
|
+
data: string;
|
|
2154
|
+
format: "wav" | "mp3";
|
|
2155
|
+
}, {
|
|
2156
|
+
data: string;
|
|
2157
|
+
format: "wav" | "mp3";
|
|
2158
|
+
}>;
|
|
2159
|
+
type: z.ZodLiteral<"input_audio">;
|
|
2160
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2161
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
2162
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
2163
|
+
}, "strip", z.ZodTypeAny, {
|
|
2164
|
+
type: "ephemeral";
|
|
2165
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2166
|
+
}, {
|
|
2167
|
+
type: "ephemeral";
|
|
2168
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2169
|
+
}>>;
|
|
2170
|
+
}, "strip", z.ZodTypeAny, {
|
|
2171
|
+
type: "input_audio";
|
|
2172
|
+
input_audio: {
|
|
2173
|
+
data: string;
|
|
2174
|
+
format: "wav" | "mp3";
|
|
2175
|
+
};
|
|
2176
|
+
cache_control?: {
|
|
2177
|
+
type: "ephemeral";
|
|
2178
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2179
|
+
} | undefined;
|
|
2180
|
+
}, {
|
|
2181
|
+
type: "input_audio";
|
|
2182
|
+
input_audio: {
|
|
2183
|
+
data: string;
|
|
2184
|
+
format: "wav" | "mp3";
|
|
2185
|
+
};
|
|
2186
|
+
cache_control?: {
|
|
2187
|
+
type: "ephemeral";
|
|
2188
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2189
|
+
} | undefined;
|
|
2021
2190
|
}>, z.ZodObject<{
|
|
2022
2191
|
file: z.ZodObject<{
|
|
2023
2192
|
file_data: z.ZodOptional<z.ZodString>;
|
|
@@ -2087,6 +2256,16 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
2087
2256
|
type: "ephemeral";
|
|
2088
2257
|
ttl?: "5m" | "1h" | undefined;
|
|
2089
2258
|
} | undefined;
|
|
2259
|
+
} | {
|
|
2260
|
+
type: "input_audio";
|
|
2261
|
+
input_audio: {
|
|
2262
|
+
data: string;
|
|
2263
|
+
format: "wav" | "mp3";
|
|
2264
|
+
};
|
|
2265
|
+
cache_control?: {
|
|
2266
|
+
type: "ephemeral";
|
|
2267
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2268
|
+
} | undefined;
|
|
2090
2269
|
} | {
|
|
2091
2270
|
type: "file";
|
|
2092
2271
|
file: {
|
|
@@ -2119,6 +2298,16 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
2119
2298
|
type: "ephemeral";
|
|
2120
2299
|
ttl?: "5m" | "1h" | undefined;
|
|
2121
2300
|
} | undefined;
|
|
2301
|
+
} | {
|
|
2302
|
+
type: "input_audio";
|
|
2303
|
+
input_audio: {
|
|
2304
|
+
data: string;
|
|
2305
|
+
format: "wav" | "mp3";
|
|
2306
|
+
};
|
|
2307
|
+
cache_control?: {
|
|
2308
|
+
type: "ephemeral";
|
|
2309
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2310
|
+
} | undefined;
|
|
2122
2311
|
} | {
|
|
2123
2312
|
type: "file";
|
|
2124
2313
|
file: {
|
|
@@ -2429,6 +2618,16 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
2429
2618
|
type: "ephemeral";
|
|
2430
2619
|
ttl?: "5m" | "1h" | undefined;
|
|
2431
2620
|
} | undefined;
|
|
2621
|
+
} | {
|
|
2622
|
+
type: "input_audio";
|
|
2623
|
+
input_audio: {
|
|
2624
|
+
data: string;
|
|
2625
|
+
format: "wav" | "mp3";
|
|
2626
|
+
};
|
|
2627
|
+
cache_control?: {
|
|
2628
|
+
type: "ephemeral";
|
|
2629
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2630
|
+
} | undefined;
|
|
2432
2631
|
} | {
|
|
2433
2632
|
type: "file";
|
|
2434
2633
|
file: {
|
|
@@ -2533,6 +2732,16 @@ declare const PromptBlockData: z.ZodUnion<[z.ZodObject<{
|
|
|
2533
2732
|
type: "ephemeral";
|
|
2534
2733
|
ttl?: "5m" | "1h" | undefined;
|
|
2535
2734
|
} | undefined;
|
|
2735
|
+
} | {
|
|
2736
|
+
type: "input_audio";
|
|
2737
|
+
input_audio: {
|
|
2738
|
+
data: string;
|
|
2739
|
+
format: "wav" | "mp3";
|
|
2740
|
+
};
|
|
2741
|
+
cache_control?: {
|
|
2742
|
+
type: "ephemeral";
|
|
2743
|
+
ttl?: "5m" | "1h" | undefined;
|
|
2744
|
+
} | undefined;
|
|
2536
2745
|
} | {
|
|
2537
2746
|
type: "file";
|
|
2538
2747
|
file: {
|
|
@@ -3293,6 +3502,48 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3293
3502
|
type: "ephemeral";
|
|
3294
3503
|
ttl?: "5m" | "1h" | undefined;
|
|
3295
3504
|
} | undefined;
|
|
3505
|
+
}>, z.ZodObject<{
|
|
3506
|
+
input_audio: z.ZodObject<{
|
|
3507
|
+
data: z.ZodString;
|
|
3508
|
+
format: z.ZodEnum<["wav", "mp3"]>;
|
|
3509
|
+
}, "strip", z.ZodTypeAny, {
|
|
3510
|
+
data: string;
|
|
3511
|
+
format: "wav" | "mp3";
|
|
3512
|
+
}, {
|
|
3513
|
+
data: string;
|
|
3514
|
+
format: "wav" | "mp3";
|
|
3515
|
+
}>;
|
|
3516
|
+
type: z.ZodLiteral<"input_audio">;
|
|
3517
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3518
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
3519
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
3520
|
+
}, "strip", z.ZodTypeAny, {
|
|
3521
|
+
type: "ephemeral";
|
|
3522
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3523
|
+
}, {
|
|
3524
|
+
type: "ephemeral";
|
|
3525
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3526
|
+
}>>;
|
|
3527
|
+
}, "strip", z.ZodTypeAny, {
|
|
3528
|
+
type: "input_audio";
|
|
3529
|
+
input_audio: {
|
|
3530
|
+
data: string;
|
|
3531
|
+
format: "wav" | "mp3";
|
|
3532
|
+
};
|
|
3533
|
+
cache_control?: {
|
|
3534
|
+
type: "ephemeral";
|
|
3535
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3536
|
+
} | undefined;
|
|
3537
|
+
}, {
|
|
3538
|
+
type: "input_audio";
|
|
3539
|
+
input_audio: {
|
|
3540
|
+
data: string;
|
|
3541
|
+
format: "wav" | "mp3";
|
|
3542
|
+
};
|
|
3543
|
+
cache_control?: {
|
|
3544
|
+
type: "ephemeral";
|
|
3545
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3546
|
+
} | undefined;
|
|
3296
3547
|
}>, z.ZodObject<{
|
|
3297
3548
|
file: z.ZodObject<{
|
|
3298
3549
|
file_data: z.ZodOptional<z.ZodString>;
|
|
@@ -3362,6 +3613,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3362
3613
|
type: "ephemeral";
|
|
3363
3614
|
ttl?: "5m" | "1h" | undefined;
|
|
3364
3615
|
} | undefined;
|
|
3616
|
+
} | {
|
|
3617
|
+
type: "input_audio";
|
|
3618
|
+
input_audio: {
|
|
3619
|
+
data: string;
|
|
3620
|
+
format: "wav" | "mp3";
|
|
3621
|
+
};
|
|
3622
|
+
cache_control?: {
|
|
3623
|
+
type: "ephemeral";
|
|
3624
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3625
|
+
} | undefined;
|
|
3365
3626
|
} | {
|
|
3366
3627
|
type: "file";
|
|
3367
3628
|
file: {
|
|
@@ -3394,6 +3655,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3394
3655
|
type: "ephemeral";
|
|
3395
3656
|
ttl?: "5m" | "1h" | undefined;
|
|
3396
3657
|
} | undefined;
|
|
3658
|
+
} | {
|
|
3659
|
+
type: "input_audio";
|
|
3660
|
+
input_audio: {
|
|
3661
|
+
data: string;
|
|
3662
|
+
format: "wav" | "mp3";
|
|
3663
|
+
};
|
|
3664
|
+
cache_control?: {
|
|
3665
|
+
type: "ephemeral";
|
|
3666
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3667
|
+
} | undefined;
|
|
3397
3668
|
} | {
|
|
3398
3669
|
type: "file";
|
|
3399
3670
|
file: {
|
|
@@ -3704,6 +3975,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3704
3975
|
type: "ephemeral";
|
|
3705
3976
|
ttl?: "5m" | "1h" | undefined;
|
|
3706
3977
|
} | undefined;
|
|
3978
|
+
} | {
|
|
3979
|
+
type: "input_audio";
|
|
3980
|
+
input_audio: {
|
|
3981
|
+
data: string;
|
|
3982
|
+
format: "wav" | "mp3";
|
|
3983
|
+
};
|
|
3984
|
+
cache_control?: {
|
|
3985
|
+
type: "ephemeral";
|
|
3986
|
+
ttl?: "5m" | "1h" | undefined;
|
|
3987
|
+
} | undefined;
|
|
3707
3988
|
} | {
|
|
3708
3989
|
type: "file";
|
|
3709
3990
|
file: {
|
|
@@ -3808,6 +4089,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3808
4089
|
type: "ephemeral";
|
|
3809
4090
|
ttl?: "5m" | "1h" | undefined;
|
|
3810
4091
|
} | undefined;
|
|
4092
|
+
} | {
|
|
4093
|
+
type: "input_audio";
|
|
4094
|
+
input_audio: {
|
|
4095
|
+
data: string;
|
|
4096
|
+
format: "wav" | "mp3";
|
|
4097
|
+
};
|
|
4098
|
+
cache_control?: {
|
|
4099
|
+
type: "ephemeral";
|
|
4100
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4101
|
+
} | undefined;
|
|
3811
4102
|
} | {
|
|
3812
4103
|
type: "file";
|
|
3813
4104
|
file: {
|
|
@@ -3924,6 +4215,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
3924
4215
|
type: "ephemeral";
|
|
3925
4216
|
ttl?: "5m" | "1h" | undefined;
|
|
3926
4217
|
} | undefined;
|
|
4218
|
+
} | {
|
|
4219
|
+
type: "input_audio";
|
|
4220
|
+
input_audio: {
|
|
4221
|
+
data: string;
|
|
4222
|
+
format: "wav" | "mp3";
|
|
4223
|
+
};
|
|
4224
|
+
cache_control?: {
|
|
4225
|
+
type: "ephemeral";
|
|
4226
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4227
|
+
} | undefined;
|
|
3927
4228
|
} | {
|
|
3928
4229
|
type: "file";
|
|
3929
4230
|
file: {
|
|
@@ -4039,6 +4340,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
4039
4340
|
type: "ephemeral";
|
|
4040
4341
|
ttl?: "5m" | "1h" | undefined;
|
|
4041
4342
|
} | undefined;
|
|
4343
|
+
} | {
|
|
4344
|
+
type: "input_audio";
|
|
4345
|
+
input_audio: {
|
|
4346
|
+
data: string;
|
|
4347
|
+
format: "wav" | "mp3";
|
|
4348
|
+
};
|
|
4349
|
+
cache_control?: {
|
|
4350
|
+
type: "ephemeral";
|
|
4351
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4352
|
+
} | undefined;
|
|
4042
4353
|
} | {
|
|
4043
4354
|
type: "file";
|
|
4044
4355
|
file: {
|
|
@@ -4255,6 +4566,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
4255
4566
|
type: "ephemeral";
|
|
4256
4567
|
ttl?: "5m" | "1h" | undefined;
|
|
4257
4568
|
} | undefined;
|
|
4569
|
+
} | {
|
|
4570
|
+
type: "input_audio";
|
|
4571
|
+
input_audio: {
|
|
4572
|
+
data: string;
|
|
4573
|
+
format: "wav" | "mp3";
|
|
4574
|
+
};
|
|
4575
|
+
cache_control?: {
|
|
4576
|
+
type: "ephemeral";
|
|
4577
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4578
|
+
} | undefined;
|
|
4258
4579
|
} | {
|
|
4259
4580
|
type: "file";
|
|
4260
4581
|
file: {
|
|
@@ -4439,6 +4760,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
|
|
|
4439
4760
|
type: "ephemeral";
|
|
4440
4761
|
ttl?: "5m" | "1h" | undefined;
|
|
4441
4762
|
} | undefined;
|
|
4763
|
+
} | {
|
|
4764
|
+
type: "input_audio";
|
|
4765
|
+
input_audio: {
|
|
4766
|
+
data: string;
|
|
4767
|
+
format: "wav" | "mp3";
|
|
4768
|
+
};
|
|
4769
|
+
cache_control?: {
|
|
4770
|
+
type: "ephemeral";
|
|
4771
|
+
ttl?: "5m" | "1h" | undefined;
|
|
4772
|
+
} | undefined;
|
|
4442
4773
|
} | {
|
|
4443
4774
|
type: "file";
|
|
4444
4775
|
file: {
|
|
@@ -5311,6 +5642,48 @@ declare const PromptData: z.ZodObject<{
|
|
|
5311
5642
|
type: "ephemeral";
|
|
5312
5643
|
ttl?: "5m" | "1h" | undefined;
|
|
5313
5644
|
} | undefined;
|
|
5645
|
+
}>, z.ZodObject<{
|
|
5646
|
+
input_audio: z.ZodObject<{
|
|
5647
|
+
data: z.ZodString;
|
|
5648
|
+
format: z.ZodEnum<["wav", "mp3"]>;
|
|
5649
|
+
}, "strip", z.ZodTypeAny, {
|
|
5650
|
+
data: string;
|
|
5651
|
+
format: "wav" | "mp3";
|
|
5652
|
+
}, {
|
|
5653
|
+
data: string;
|
|
5654
|
+
format: "wav" | "mp3";
|
|
5655
|
+
}>;
|
|
5656
|
+
type: z.ZodLiteral<"input_audio">;
|
|
5657
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
5658
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
5659
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
5660
|
+
}, "strip", z.ZodTypeAny, {
|
|
5661
|
+
type: "ephemeral";
|
|
5662
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5663
|
+
}, {
|
|
5664
|
+
type: "ephemeral";
|
|
5665
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5666
|
+
}>>;
|
|
5667
|
+
}, "strip", z.ZodTypeAny, {
|
|
5668
|
+
type: "input_audio";
|
|
5669
|
+
input_audio: {
|
|
5670
|
+
data: string;
|
|
5671
|
+
format: "wav" | "mp3";
|
|
5672
|
+
};
|
|
5673
|
+
cache_control?: {
|
|
5674
|
+
type: "ephemeral";
|
|
5675
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5676
|
+
} | undefined;
|
|
5677
|
+
}, {
|
|
5678
|
+
type: "input_audio";
|
|
5679
|
+
input_audio: {
|
|
5680
|
+
data: string;
|
|
5681
|
+
format: "wav" | "mp3";
|
|
5682
|
+
};
|
|
5683
|
+
cache_control?: {
|
|
5684
|
+
type: "ephemeral";
|
|
5685
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5686
|
+
} | undefined;
|
|
5314
5687
|
}>, z.ZodObject<{
|
|
5315
5688
|
file: z.ZodObject<{
|
|
5316
5689
|
file_data: z.ZodOptional<z.ZodString>;
|
|
@@ -5380,6 +5753,16 @@ declare const PromptData: z.ZodObject<{
|
|
|
5380
5753
|
type: "ephemeral";
|
|
5381
5754
|
ttl?: "5m" | "1h" | undefined;
|
|
5382
5755
|
} | undefined;
|
|
5756
|
+
} | {
|
|
5757
|
+
type: "input_audio";
|
|
5758
|
+
input_audio: {
|
|
5759
|
+
data: string;
|
|
5760
|
+
format: "wav" | "mp3";
|
|
5761
|
+
};
|
|
5762
|
+
cache_control?: {
|
|
5763
|
+
type: "ephemeral";
|
|
5764
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5765
|
+
} | undefined;
|
|
5383
5766
|
} | {
|
|
5384
5767
|
type: "file";
|
|
5385
5768
|
file: {
|
|
@@ -5412,6 +5795,16 @@ declare const PromptData: z.ZodObject<{
|
|
|
5412
5795
|
type: "ephemeral";
|
|
5413
5796
|
ttl?: "5m" | "1h" | undefined;
|
|
5414
5797
|
} | undefined;
|
|
5798
|
+
} | {
|
|
5799
|
+
type: "input_audio";
|
|
5800
|
+
input_audio: {
|
|
5801
|
+
data: string;
|
|
5802
|
+
format: "wav" | "mp3";
|
|
5803
|
+
};
|
|
5804
|
+
cache_control?: {
|
|
5805
|
+
type: "ephemeral";
|
|
5806
|
+
ttl?: "5m" | "1h" | undefined;
|
|
5807
|
+
} | undefined;
|
|
5415
5808
|
} | {
|
|
5416
5809
|
type: "file";
|
|
5417
5810
|
file: {
|
|
@@ -5722,6 +6115,16 @@ declare const PromptData: z.ZodObject<{
|
|
|
5722
6115
|
type: "ephemeral";
|
|
5723
6116
|
ttl?: "5m" | "1h" | undefined;
|
|
5724
6117
|
} | undefined;
|
|
6118
|
+
} | {
|
|
6119
|
+
type: "input_audio";
|
|
6120
|
+
input_audio: {
|
|
6121
|
+
data: string;
|
|
6122
|
+
format: "wav" | "mp3";
|
|
6123
|
+
};
|
|
6124
|
+
cache_control?: {
|
|
6125
|
+
type: "ephemeral";
|
|
6126
|
+
ttl?: "5m" | "1h" | undefined;
|
|
6127
|
+
} | undefined;
|
|
5725
6128
|
} | {
|
|
5726
6129
|
type: "file";
|
|
5727
6130
|
file: {
|
|
@@ -5826,6 +6229,16 @@ declare const PromptData: z.ZodObject<{
|
|
|
5826
6229
|
type: "ephemeral";
|
|
5827
6230
|
ttl?: "5m" | "1h" | undefined;
|
|
5828
6231
|
} | undefined;
|
|
6232
|
+
} | {
|
|
6233
|
+
type: "input_audio";
|
|
6234
|
+
input_audio: {
|
|
6235
|
+
data: string;
|
|
6236
|
+
format: "wav" | "mp3";
|
|
6237
|
+
};
|
|
6238
|
+
cache_control?: {
|
|
6239
|
+
type: "ephemeral";
|
|
6240
|
+
ttl?: "5m" | "1h" | undefined;
|
|
6241
|
+
} | undefined;
|
|
5829
6242
|
} | {
|
|
5830
6243
|
type: "file";
|
|
5831
6244
|
file: {
|
|
@@ -6785,6 +7198,16 @@ declare const PromptData: z.ZodObject<{
|
|
|
6785
7198
|
type: "ephemeral";
|
|
6786
7199
|
ttl?: "5m" | "1h" | undefined;
|
|
6787
7200
|
} | undefined;
|
|
7201
|
+
} | {
|
|
7202
|
+
type: "input_audio";
|
|
7203
|
+
input_audio: {
|
|
7204
|
+
data: string;
|
|
7205
|
+
format: "wav" | "mp3";
|
|
7206
|
+
};
|
|
7207
|
+
cache_control?: {
|
|
7208
|
+
type: "ephemeral";
|
|
7209
|
+
ttl?: "5m" | "1h" | undefined;
|
|
7210
|
+
} | undefined;
|
|
6788
7211
|
} | {
|
|
6789
7212
|
type: "file";
|
|
6790
7213
|
file: {
|
|
@@ -7062,6 +7485,16 @@ declare const PromptData: z.ZodObject<{
|
|
|
7062
7485
|
type: "ephemeral";
|
|
7063
7486
|
ttl?: "5m" | "1h" | undefined;
|
|
7064
7487
|
} | undefined;
|
|
7488
|
+
} | {
|
|
7489
|
+
type: "input_audio";
|
|
7490
|
+
input_audio: {
|
|
7491
|
+
data: string;
|
|
7492
|
+
format: "wav" | "mp3";
|
|
7493
|
+
};
|
|
7494
|
+
cache_control?: {
|
|
7495
|
+
type: "ephemeral";
|
|
7496
|
+
ttl?: "5m" | "1h" | undefined;
|
|
7497
|
+
} | undefined;
|
|
7065
7498
|
} | {
|
|
7066
7499
|
type: "file";
|
|
7067
7500
|
file: {
|
|
@@ -7355,6 +7788,48 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
7355
7788
|
type: "ephemeral";
|
|
7356
7789
|
ttl?: "5m" | "1h" | undefined;
|
|
7357
7790
|
} | undefined;
|
|
7791
|
+
}>, z.ZodObject<{
|
|
7792
|
+
input_audio: z.ZodObject<{
|
|
7793
|
+
data: z.ZodString;
|
|
7794
|
+
format: z.ZodEnum<["wav", "mp3"]>;
|
|
7795
|
+
}, "strip", z.ZodTypeAny, {
|
|
7796
|
+
data: string;
|
|
7797
|
+
format: "wav" | "mp3";
|
|
7798
|
+
}, {
|
|
7799
|
+
data: string;
|
|
7800
|
+
format: "wav" | "mp3";
|
|
7801
|
+
}>;
|
|
7802
|
+
type: z.ZodLiteral<"input_audio">;
|
|
7803
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
7804
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
7805
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
7806
|
+
}, "strip", z.ZodTypeAny, {
|
|
7807
|
+
type: "ephemeral";
|
|
7808
|
+
ttl?: "5m" | "1h" | undefined;
|
|
7809
|
+
}, {
|
|
7810
|
+
type: "ephemeral";
|
|
7811
|
+
ttl?: "5m" | "1h" | undefined;
|
|
7812
|
+
}>>;
|
|
7813
|
+
}, "strip", z.ZodTypeAny, {
|
|
7814
|
+
type: "input_audio";
|
|
7815
|
+
input_audio: {
|
|
7816
|
+
data: string;
|
|
7817
|
+
format: "wav" | "mp3";
|
|
7818
|
+
};
|
|
7819
|
+
cache_control?: {
|
|
7820
|
+
type: "ephemeral";
|
|
7821
|
+
ttl?: "5m" | "1h" | undefined;
|
|
7822
|
+
} | undefined;
|
|
7823
|
+
}, {
|
|
7824
|
+
type: "input_audio";
|
|
7825
|
+
input_audio: {
|
|
7826
|
+
data: string;
|
|
7827
|
+
format: "wav" | "mp3";
|
|
7828
|
+
};
|
|
7829
|
+
cache_control?: {
|
|
7830
|
+
type: "ephemeral";
|
|
7831
|
+
ttl?: "5m" | "1h" | undefined;
|
|
7832
|
+
} | undefined;
|
|
7358
7833
|
}>, z.ZodObject<{
|
|
7359
7834
|
file: z.ZodObject<{
|
|
7360
7835
|
file_data: z.ZodOptional<z.ZodString>;
|
|
@@ -7424,6 +7899,16 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
7424
7899
|
type: "ephemeral";
|
|
7425
7900
|
ttl?: "5m" | "1h" | undefined;
|
|
7426
7901
|
} | undefined;
|
|
7902
|
+
} | {
|
|
7903
|
+
type: "input_audio";
|
|
7904
|
+
input_audio: {
|
|
7905
|
+
data: string;
|
|
7906
|
+
format: "wav" | "mp3";
|
|
7907
|
+
};
|
|
7908
|
+
cache_control?: {
|
|
7909
|
+
type: "ephemeral";
|
|
7910
|
+
ttl?: "5m" | "1h" | undefined;
|
|
7911
|
+
} | undefined;
|
|
7427
7912
|
} | {
|
|
7428
7913
|
type: "file";
|
|
7429
7914
|
file: {
|
|
@@ -7456,6 +7941,16 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
7456
7941
|
type: "ephemeral";
|
|
7457
7942
|
ttl?: "5m" | "1h" | undefined;
|
|
7458
7943
|
} | undefined;
|
|
7944
|
+
} | {
|
|
7945
|
+
type: "input_audio";
|
|
7946
|
+
input_audio: {
|
|
7947
|
+
data: string;
|
|
7948
|
+
format: "wav" | "mp3";
|
|
7949
|
+
};
|
|
7950
|
+
cache_control?: {
|
|
7951
|
+
type: "ephemeral";
|
|
7952
|
+
ttl?: "5m" | "1h" | undefined;
|
|
7953
|
+
} | undefined;
|
|
7459
7954
|
} | {
|
|
7460
7955
|
type: "file";
|
|
7461
7956
|
file: {
|
|
@@ -7766,6 +8261,16 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
7766
8261
|
type: "ephemeral";
|
|
7767
8262
|
ttl?: "5m" | "1h" | undefined;
|
|
7768
8263
|
} | undefined;
|
|
8264
|
+
} | {
|
|
8265
|
+
type: "input_audio";
|
|
8266
|
+
input_audio: {
|
|
8267
|
+
data: string;
|
|
8268
|
+
format: "wav" | "mp3";
|
|
8269
|
+
};
|
|
8270
|
+
cache_control?: {
|
|
8271
|
+
type: "ephemeral";
|
|
8272
|
+
ttl?: "5m" | "1h" | undefined;
|
|
8273
|
+
} | undefined;
|
|
7769
8274
|
} | {
|
|
7770
8275
|
type: "file";
|
|
7771
8276
|
file: {
|
|
@@ -7870,6 +8375,16 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
7870
8375
|
type: "ephemeral";
|
|
7871
8376
|
ttl?: "5m" | "1h" | undefined;
|
|
7872
8377
|
} | undefined;
|
|
8378
|
+
} | {
|
|
8379
|
+
type: "input_audio";
|
|
8380
|
+
input_audio: {
|
|
8381
|
+
data: string;
|
|
8382
|
+
format: "wav" | "mp3";
|
|
8383
|
+
};
|
|
8384
|
+
cache_control?: {
|
|
8385
|
+
type: "ephemeral";
|
|
8386
|
+
ttl?: "5m" | "1h" | undefined;
|
|
8387
|
+
} | undefined;
|
|
7873
8388
|
} | {
|
|
7874
8389
|
type: "file";
|
|
7875
8390
|
file: {
|
|
@@ -8829,6 +9344,16 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
8829
9344
|
type: "ephemeral";
|
|
8830
9345
|
ttl?: "5m" | "1h" | undefined;
|
|
8831
9346
|
} | undefined;
|
|
9347
|
+
} | {
|
|
9348
|
+
type: "input_audio";
|
|
9349
|
+
input_audio: {
|
|
9350
|
+
data: string;
|
|
9351
|
+
format: "wav" | "mp3";
|
|
9352
|
+
};
|
|
9353
|
+
cache_control?: {
|
|
9354
|
+
type: "ephemeral";
|
|
9355
|
+
ttl?: "5m" | "1h" | undefined;
|
|
9356
|
+
} | undefined;
|
|
8832
9357
|
} | {
|
|
8833
9358
|
type: "file";
|
|
8834
9359
|
file: {
|
|
@@ -9106,6 +9631,16 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
9106
9631
|
type: "ephemeral";
|
|
9107
9632
|
ttl?: "5m" | "1h" | undefined;
|
|
9108
9633
|
} | undefined;
|
|
9634
|
+
} | {
|
|
9635
|
+
type: "input_audio";
|
|
9636
|
+
input_audio: {
|
|
9637
|
+
data: string;
|
|
9638
|
+
format: "wav" | "mp3";
|
|
9639
|
+
};
|
|
9640
|
+
cache_control?: {
|
|
9641
|
+
type: "ephemeral";
|
|
9642
|
+
ttl?: "5m" | "1h" | undefined;
|
|
9643
|
+
} | undefined;
|
|
9109
9644
|
} | {
|
|
9110
9645
|
type: "file";
|
|
9111
9646
|
file: {
|
|
@@ -9400,6 +9935,16 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
9400
9935
|
type: "ephemeral";
|
|
9401
9936
|
ttl?: "5m" | "1h" | undefined;
|
|
9402
9937
|
} | undefined;
|
|
9938
|
+
} | {
|
|
9939
|
+
type: "input_audio";
|
|
9940
|
+
input_audio: {
|
|
9941
|
+
data: string;
|
|
9942
|
+
format: "wav" | "mp3";
|
|
9943
|
+
};
|
|
9944
|
+
cache_control?: {
|
|
9945
|
+
type: "ephemeral";
|
|
9946
|
+
ttl?: "5m" | "1h" | undefined;
|
|
9947
|
+
} | undefined;
|
|
9403
9948
|
} | {
|
|
9404
9949
|
type: "file";
|
|
9405
9950
|
file: {
|
|
@@ -9691,6 +10236,16 @@ declare const Prompt$1: z.ZodObject<{
|
|
|
9691
10236
|
type: "ephemeral";
|
|
9692
10237
|
ttl?: "5m" | "1h" | undefined;
|
|
9693
10238
|
} | undefined;
|
|
10239
|
+
} | {
|
|
10240
|
+
type: "input_audio";
|
|
10241
|
+
input_audio: {
|
|
10242
|
+
data: string;
|
|
10243
|
+
format: "wav" | "mp3";
|
|
10244
|
+
};
|
|
10245
|
+
cache_control?: {
|
|
10246
|
+
type: "ephemeral";
|
|
10247
|
+
ttl?: "5m" | "1h" | undefined;
|
|
10248
|
+
} | undefined;
|
|
9694
10249
|
} | {
|
|
9695
10250
|
type: "file";
|
|
9696
10251
|
file: {
|
|
@@ -10529,6 +11084,48 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
10529
11084
|
type: "ephemeral";
|
|
10530
11085
|
ttl?: "5m" | "1h" | undefined;
|
|
10531
11086
|
} | undefined;
|
|
11087
|
+
}>, z.ZodObject<{
|
|
11088
|
+
input_audio: z.ZodObject<{
|
|
11089
|
+
data: z.ZodString;
|
|
11090
|
+
format: z.ZodEnum<["wav", "mp3"]>;
|
|
11091
|
+
}, "strip", z.ZodTypeAny, {
|
|
11092
|
+
data: string;
|
|
11093
|
+
format: "wav" | "mp3";
|
|
11094
|
+
}, {
|
|
11095
|
+
data: string;
|
|
11096
|
+
format: "wav" | "mp3";
|
|
11097
|
+
}>;
|
|
11098
|
+
type: z.ZodLiteral<"input_audio">;
|
|
11099
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
11100
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
11101
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
11102
|
+
}, "strip", z.ZodTypeAny, {
|
|
11103
|
+
type: "ephemeral";
|
|
11104
|
+
ttl?: "5m" | "1h" | undefined;
|
|
11105
|
+
}, {
|
|
11106
|
+
type: "ephemeral";
|
|
11107
|
+
ttl?: "5m" | "1h" | undefined;
|
|
11108
|
+
}>>;
|
|
11109
|
+
}, "strip", z.ZodTypeAny, {
|
|
11110
|
+
type: "input_audio";
|
|
11111
|
+
input_audio: {
|
|
11112
|
+
data: string;
|
|
11113
|
+
format: "wav" | "mp3";
|
|
11114
|
+
};
|
|
11115
|
+
cache_control?: {
|
|
11116
|
+
type: "ephemeral";
|
|
11117
|
+
ttl?: "5m" | "1h" | undefined;
|
|
11118
|
+
} | undefined;
|
|
11119
|
+
}, {
|
|
11120
|
+
type: "input_audio";
|
|
11121
|
+
input_audio: {
|
|
11122
|
+
data: string;
|
|
11123
|
+
format: "wav" | "mp3";
|
|
11124
|
+
};
|
|
11125
|
+
cache_control?: {
|
|
11126
|
+
type: "ephemeral";
|
|
11127
|
+
ttl?: "5m" | "1h" | undefined;
|
|
11128
|
+
} | undefined;
|
|
10532
11129
|
}>, z.ZodObject<{
|
|
10533
11130
|
file: z.ZodObject<{
|
|
10534
11131
|
file_data: z.ZodOptional<z.ZodString>;
|
|
@@ -10598,6 +11195,16 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
10598
11195
|
type: "ephemeral";
|
|
10599
11196
|
ttl?: "5m" | "1h" | undefined;
|
|
10600
11197
|
} | undefined;
|
|
11198
|
+
} | {
|
|
11199
|
+
type: "input_audio";
|
|
11200
|
+
input_audio: {
|
|
11201
|
+
data: string;
|
|
11202
|
+
format: "wav" | "mp3";
|
|
11203
|
+
};
|
|
11204
|
+
cache_control?: {
|
|
11205
|
+
type: "ephemeral";
|
|
11206
|
+
ttl?: "5m" | "1h" | undefined;
|
|
11207
|
+
} | undefined;
|
|
10601
11208
|
} | {
|
|
10602
11209
|
type: "file";
|
|
10603
11210
|
file: {
|
|
@@ -10630,6 +11237,16 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
10630
11237
|
type: "ephemeral";
|
|
10631
11238
|
ttl?: "5m" | "1h" | undefined;
|
|
10632
11239
|
} | undefined;
|
|
11240
|
+
} | {
|
|
11241
|
+
type: "input_audio";
|
|
11242
|
+
input_audio: {
|
|
11243
|
+
data: string;
|
|
11244
|
+
format: "wav" | "mp3";
|
|
11245
|
+
};
|
|
11246
|
+
cache_control?: {
|
|
11247
|
+
type: "ephemeral";
|
|
11248
|
+
ttl?: "5m" | "1h" | undefined;
|
|
11249
|
+
} | undefined;
|
|
10633
11250
|
} | {
|
|
10634
11251
|
type: "file";
|
|
10635
11252
|
file: {
|
|
@@ -10938,6 +11555,16 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
10938
11555
|
type: "ephemeral";
|
|
10939
11556
|
ttl?: "5m" | "1h" | undefined;
|
|
10940
11557
|
} | undefined;
|
|
11558
|
+
} | {
|
|
11559
|
+
type: "input_audio";
|
|
11560
|
+
input_audio: {
|
|
11561
|
+
data: string;
|
|
11562
|
+
format: "wav" | "mp3";
|
|
11563
|
+
};
|
|
11564
|
+
cache_control?: {
|
|
11565
|
+
type: "ephemeral";
|
|
11566
|
+
ttl?: "5m" | "1h" | undefined;
|
|
11567
|
+
} | undefined;
|
|
10941
11568
|
} | {
|
|
10942
11569
|
type: "file";
|
|
10943
11570
|
file: {
|
|
@@ -11040,6 +11667,16 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
11040
11667
|
type: "ephemeral";
|
|
11041
11668
|
ttl?: "5m" | "1h" | undefined;
|
|
11042
11669
|
} | undefined;
|
|
11670
|
+
} | {
|
|
11671
|
+
type: "input_audio";
|
|
11672
|
+
input_audio: {
|
|
11673
|
+
data: string;
|
|
11674
|
+
format: "wav" | "mp3";
|
|
11675
|
+
};
|
|
11676
|
+
cache_control?: {
|
|
11677
|
+
type: "ephemeral";
|
|
11678
|
+
ttl?: "5m" | "1h" | undefined;
|
|
11679
|
+
} | undefined;
|
|
11043
11680
|
} | {
|
|
11044
11681
|
type: "file";
|
|
11045
11682
|
file: {
|
|
@@ -11800,6 +12437,16 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
11800
12437
|
type: "ephemeral";
|
|
11801
12438
|
ttl?: "5m" | "1h" | undefined;
|
|
11802
12439
|
} | undefined;
|
|
12440
|
+
} | {
|
|
12441
|
+
type: "input_audio";
|
|
12442
|
+
input_audio: {
|
|
12443
|
+
data: string;
|
|
12444
|
+
format: "wav" | "mp3";
|
|
12445
|
+
};
|
|
12446
|
+
cache_control?: {
|
|
12447
|
+
type: "ephemeral";
|
|
12448
|
+
ttl?: "5m" | "1h" | undefined;
|
|
12449
|
+
} | undefined;
|
|
11803
12450
|
} | {
|
|
11804
12451
|
type: "file";
|
|
11805
12452
|
file: {
|
|
@@ -12039,6 +12686,16 @@ declare const evalParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOb
|
|
|
12039
12686
|
type: "ephemeral";
|
|
12040
12687
|
ttl?: "5m" | "1h" | undefined;
|
|
12041
12688
|
} | undefined;
|
|
12689
|
+
} | {
|
|
12690
|
+
type: "input_audio";
|
|
12691
|
+
input_audio: {
|
|
12692
|
+
data: string;
|
|
12693
|
+
format: "wav" | "mp3";
|
|
12694
|
+
};
|
|
12695
|
+
cache_control?: {
|
|
12696
|
+
type: "ephemeral";
|
|
12697
|
+
ttl?: "5m" | "1h" | undefined;
|
|
12698
|
+
} | undefined;
|
|
12042
12699
|
} | {
|
|
12043
12700
|
type: "file";
|
|
12044
12701
|
file: {
|
|
@@ -13971,6 +14628,48 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
13971
14628
|
type: "ephemeral";
|
|
13972
14629
|
ttl?: "5m" | "1h" | undefined;
|
|
13973
14630
|
} | undefined;
|
|
14631
|
+
}>, z.ZodObject<{
|
|
14632
|
+
input_audio: z.ZodObject<{
|
|
14633
|
+
data: z.ZodString;
|
|
14634
|
+
format: z.ZodEnum<["wav", "mp3"]>;
|
|
14635
|
+
}, "strip", z.ZodTypeAny, {
|
|
14636
|
+
data: string;
|
|
14637
|
+
format: "wav" | "mp3";
|
|
14638
|
+
}, {
|
|
14639
|
+
data: string;
|
|
14640
|
+
format: "wav" | "mp3";
|
|
14641
|
+
}>;
|
|
14642
|
+
type: z.ZodLiteral<"input_audio">;
|
|
14643
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
14644
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
14645
|
+
ttl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
14646
|
+
}, "strip", z.ZodTypeAny, {
|
|
14647
|
+
type: "ephemeral";
|
|
14648
|
+
ttl?: "5m" | "1h" | undefined;
|
|
14649
|
+
}, {
|
|
14650
|
+
type: "ephemeral";
|
|
14651
|
+
ttl?: "5m" | "1h" | undefined;
|
|
14652
|
+
}>>;
|
|
14653
|
+
}, "strip", z.ZodTypeAny, {
|
|
14654
|
+
type: "input_audio";
|
|
14655
|
+
input_audio: {
|
|
14656
|
+
data: string;
|
|
14657
|
+
format: "wav" | "mp3";
|
|
14658
|
+
};
|
|
14659
|
+
cache_control?: {
|
|
14660
|
+
type: "ephemeral";
|
|
14661
|
+
ttl?: "5m" | "1h" | undefined;
|
|
14662
|
+
} | undefined;
|
|
14663
|
+
}, {
|
|
14664
|
+
type: "input_audio";
|
|
14665
|
+
input_audio: {
|
|
14666
|
+
data: string;
|
|
14667
|
+
format: "wav" | "mp3";
|
|
14668
|
+
};
|
|
14669
|
+
cache_control?: {
|
|
14670
|
+
type: "ephemeral";
|
|
14671
|
+
ttl?: "5m" | "1h" | undefined;
|
|
14672
|
+
} | undefined;
|
|
13974
14673
|
}>, z.ZodObject<{
|
|
13975
14674
|
file: z.ZodObject<{
|
|
13976
14675
|
file_data: z.ZodOptional<z.ZodString>;
|
|
@@ -14040,6 +14739,16 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
14040
14739
|
type: "ephemeral";
|
|
14041
14740
|
ttl?: "5m" | "1h" | undefined;
|
|
14042
14741
|
} | undefined;
|
|
14742
|
+
} | {
|
|
14743
|
+
type: "input_audio";
|
|
14744
|
+
input_audio: {
|
|
14745
|
+
data: string;
|
|
14746
|
+
format: "wav" | "mp3";
|
|
14747
|
+
};
|
|
14748
|
+
cache_control?: {
|
|
14749
|
+
type: "ephemeral";
|
|
14750
|
+
ttl?: "5m" | "1h" | undefined;
|
|
14751
|
+
} | undefined;
|
|
14043
14752
|
} | {
|
|
14044
14753
|
type: "file";
|
|
14045
14754
|
file: {
|
|
@@ -14072,6 +14781,16 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
14072
14781
|
type: "ephemeral";
|
|
14073
14782
|
ttl?: "5m" | "1h" | undefined;
|
|
14074
14783
|
} | undefined;
|
|
14784
|
+
} | {
|
|
14785
|
+
type: "input_audio";
|
|
14786
|
+
input_audio: {
|
|
14787
|
+
data: string;
|
|
14788
|
+
format: "wav" | "mp3";
|
|
14789
|
+
};
|
|
14790
|
+
cache_control?: {
|
|
14791
|
+
type: "ephemeral";
|
|
14792
|
+
ttl?: "5m" | "1h" | undefined;
|
|
14793
|
+
} | undefined;
|
|
14075
14794
|
} | {
|
|
14076
14795
|
type: "file";
|
|
14077
14796
|
file: {
|
|
@@ -14380,6 +15099,16 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
14380
15099
|
type: "ephemeral";
|
|
14381
15100
|
ttl?: "5m" | "1h" | undefined;
|
|
14382
15101
|
} | undefined;
|
|
15102
|
+
} | {
|
|
15103
|
+
type: "input_audio";
|
|
15104
|
+
input_audio: {
|
|
15105
|
+
data: string;
|
|
15106
|
+
format: "wav" | "mp3";
|
|
15107
|
+
};
|
|
15108
|
+
cache_control?: {
|
|
15109
|
+
type: "ephemeral";
|
|
15110
|
+
ttl?: "5m" | "1h" | undefined;
|
|
15111
|
+
} | undefined;
|
|
14383
15112
|
} | {
|
|
14384
15113
|
type: "file";
|
|
14385
15114
|
file: {
|
|
@@ -14482,6 +15211,16 @@ declare const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<
|
|
|
14482
15211
|
type: "ephemeral";
|
|
14483
15212
|
ttl?: "5m" | "1h" | undefined;
|
|
14484
15213
|
} | undefined;
|
|
15214
|
+
} | {
|
|
15215
|
+
type: "input_audio";
|
|
15216
|
+
input_audio: {
|
|
15217
|
+
data: string;
|
|
15218
|
+
format: "wav" | "mp3";
|
|
15219
|
+
};
|
|
15220
|
+
cache_control?: {
|
|
15221
|
+
type: "ephemeral";
|
|
15222
|
+
ttl?: "5m" | "1h" | undefined;
|
|
15223
|
+
} | undefined;
|
|
14485
15224
|
} | {
|
|
14486
15225
|
type: "file";
|
|
14487
15226
|
file: {
|
|
@@ -15436,7 +16175,7 @@ type EvalScorerArgs<Input, Output, Expected, Metadata extends BaseMetadata = Def
|
|
|
15436
16175
|
output: Output;
|
|
15437
16176
|
trace?: Trace;
|
|
15438
16177
|
};
|
|
15439
|
-
type OneOrMoreScores =
|
|
16178
|
+
type OneOrMoreScores = SingleScore | number | null | Array<Score>;
|
|
15440
16179
|
type EvalScorer<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = (args: EvalScorerArgs<Input, Output, Expected, Metadata>) => OneOrMoreScores | Promise<OneOrMoreScores>;
|
|
15441
16180
|
type OneOrMoreClassifications = Classification | Classification[] | null;
|
|
15442
16181
|
type EvalClassifier<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = (args: EvalScorerArgs<Input, Output, Expected, Metadata>) => OneOrMoreClassifications | Promise<OneOrMoreClassifications>;
|