@oxy.so/contracts 4.5.0 → 4.7.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/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/agency.js +49 -0
- package/dist/cjs/capabilityInvocation.js +173 -0
- package/dist/cjs/index.js +28 -6
- package/dist/cjs/inference/catalogue.js +55 -1
- package/dist/cjs/inference/decisions.js +245 -0
- package/dist/cjs/inference/request.js +13 -0
- package/dist/cjs/inference/routingPolicy.js +45 -1
- package/dist/cjs/inference/version.js +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/agency.js +49 -0
- package/dist/esm/capabilityInvocation.js +165 -0
- package/dist/esm/index.js +4 -2
- package/dist/esm/inference/catalogue.js +54 -0
- package/dist/esm/inference/decisions.js +239 -0
- package/dist/esm/inference/request.js +13 -0
- package/dist/esm/inference/routingPolicy.js +44 -1
- package/dist/esm/inference/version.js +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/agency.d.ts +6 -6
- package/dist/types/capabilityInvocation.d.ts +80 -0
- package/dist/types/index.d.ts +7 -3
- package/dist/types/inference/catalogue.d.ts +75 -22
- package/dist/types/inference/decisions.d.ts +1833 -0
- package/dist/types/inference/modelDocumentation.d.ts +16 -16
- package/dist/types/inference/realtime.d.ts +72 -72
- package/dist/types/inference/request.d.ts +520 -26
- package/dist/types/inference/routingPolicy.d.ts +44 -10
- package/dist/types/inference/streamEvents.d.ts +8 -8
- package/dist/types/inference/usage.d.ts +4 -4
- package/dist/types/inference/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -329,13 +329,13 @@ export declare const realtimeSessionConfigSchema: z.ZodObject<{
|
|
|
329
329
|
} | undefined;
|
|
330
330
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
331
331
|
maxOutputTokens?: number | undefined;
|
|
332
|
+
instructions?: string | undefined;
|
|
332
333
|
temperature?: number | undefined;
|
|
333
334
|
voice?: string | undefined;
|
|
334
335
|
toolChoice?: "none" | "required" | "auto" | {
|
|
335
336
|
type: "function";
|
|
336
337
|
name: string;
|
|
337
338
|
} | undefined;
|
|
338
|
-
instructions?: string | undefined;
|
|
339
339
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
340
340
|
inputAudioTranscription?: {
|
|
341
341
|
language?: string | undefined;
|
|
@@ -370,13 +370,13 @@ export declare const realtimeSessionConfigSchema: z.ZodObject<{
|
|
|
370
370
|
} | undefined;
|
|
371
371
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
372
372
|
maxOutputTokens?: number | undefined;
|
|
373
|
+
instructions?: string | undefined;
|
|
373
374
|
temperature?: number | undefined;
|
|
374
375
|
voice?: string | undefined;
|
|
375
376
|
toolChoice?: "none" | "required" | "auto" | {
|
|
376
377
|
type: "function";
|
|
377
378
|
name: string;
|
|
378
379
|
} | undefined;
|
|
379
|
-
instructions?: string | undefined;
|
|
380
380
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
381
381
|
inputAudioTranscription?: {
|
|
382
382
|
language?: string | undefined;
|
|
@@ -489,12 +489,12 @@ export declare const realtimeSessionConfigUpdateSchema: z.ZodEffects<z.ZodObject
|
|
|
489
489
|
}[] | undefined;
|
|
490
490
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
491
491
|
maxOutputTokens?: number | undefined;
|
|
492
|
+
instructions?: string | undefined;
|
|
492
493
|
temperature?: number | undefined;
|
|
493
494
|
toolChoice?: "none" | "required" | "auto" | {
|
|
494
495
|
type: "function";
|
|
495
496
|
name: string;
|
|
496
497
|
} | undefined;
|
|
497
|
-
instructions?: string | undefined;
|
|
498
498
|
turnDetection?: {
|
|
499
499
|
type: "none";
|
|
500
500
|
} | {
|
|
@@ -524,12 +524,12 @@ export declare const realtimeSessionConfigUpdateSchema: z.ZodEffects<z.ZodObject
|
|
|
524
524
|
}[] | undefined;
|
|
525
525
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
526
526
|
maxOutputTokens?: number | undefined;
|
|
527
|
+
instructions?: string | undefined;
|
|
527
528
|
temperature?: number | undefined;
|
|
528
529
|
toolChoice?: "none" | "required" | "auto" | {
|
|
529
530
|
type: "function";
|
|
530
531
|
name: string;
|
|
531
532
|
} | undefined;
|
|
532
|
-
instructions?: string | undefined;
|
|
533
533
|
turnDetection?: {
|
|
534
534
|
type: "none";
|
|
535
535
|
} | {
|
|
@@ -559,12 +559,12 @@ export declare const realtimeSessionConfigUpdateSchema: z.ZodEffects<z.ZodObject
|
|
|
559
559
|
}[] | undefined;
|
|
560
560
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
561
561
|
maxOutputTokens?: number | undefined;
|
|
562
|
+
instructions?: string | undefined;
|
|
562
563
|
temperature?: number | undefined;
|
|
563
564
|
toolChoice?: "none" | "required" | "auto" | {
|
|
564
565
|
type: "function";
|
|
565
566
|
name: string;
|
|
566
567
|
} | undefined;
|
|
567
|
-
instructions?: string | undefined;
|
|
568
568
|
turnDetection?: {
|
|
569
569
|
type: "none";
|
|
570
570
|
} | {
|
|
@@ -594,12 +594,12 @@ export declare const realtimeSessionConfigUpdateSchema: z.ZodEffects<z.ZodObject
|
|
|
594
594
|
}[] | undefined;
|
|
595
595
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
596
596
|
maxOutputTokens?: number | undefined;
|
|
597
|
+
instructions?: string | undefined;
|
|
597
598
|
temperature?: number | undefined;
|
|
598
599
|
toolChoice?: "none" | "required" | "auto" | {
|
|
599
600
|
type: "function";
|
|
600
601
|
name: string;
|
|
601
602
|
} | undefined;
|
|
602
|
-
instructions?: string | undefined;
|
|
603
603
|
turnDetection?: {
|
|
604
604
|
type: "none";
|
|
605
605
|
} | {
|
|
@@ -864,13 +864,13 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
864
864
|
} | undefined;
|
|
865
865
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
866
866
|
maxOutputTokens?: number | undefined;
|
|
867
|
+
instructions?: string | undefined;
|
|
867
868
|
temperature?: number | undefined;
|
|
868
869
|
voice?: string | undefined;
|
|
869
870
|
toolChoice?: "none" | "required" | "auto" | {
|
|
870
871
|
type: "function";
|
|
871
872
|
name: string;
|
|
872
873
|
} | undefined;
|
|
873
|
-
instructions?: string | undefined;
|
|
874
874
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
875
875
|
inputAudioTranscription?: {
|
|
876
876
|
language?: string | undefined;
|
|
@@ -905,13 +905,13 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
905
905
|
} | undefined;
|
|
906
906
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
907
907
|
maxOutputTokens?: number | undefined;
|
|
908
|
+
instructions?: string | undefined;
|
|
908
909
|
temperature?: number | undefined;
|
|
909
910
|
voice?: string | undefined;
|
|
910
911
|
toolChoice?: "none" | "required" | "auto" | {
|
|
911
912
|
type: "function";
|
|
912
913
|
name: string;
|
|
913
914
|
} | undefined;
|
|
914
|
-
instructions?: string | undefined;
|
|
915
915
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
916
916
|
inputAudioTranscription?: {
|
|
917
917
|
language?: string | undefined;
|
|
@@ -1218,13 +1218,13 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1218
1218
|
} | undefined;
|
|
1219
1219
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1220
1220
|
maxOutputTokens?: number | undefined;
|
|
1221
|
+
instructions?: string | undefined;
|
|
1221
1222
|
temperature?: number | undefined;
|
|
1222
1223
|
voice?: string | undefined;
|
|
1223
1224
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1224
1225
|
type: "function";
|
|
1225
1226
|
name: string;
|
|
1226
1227
|
} | undefined;
|
|
1227
|
-
instructions?: string | undefined;
|
|
1228
1228
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
1229
1229
|
inputAudioTranscription?: {
|
|
1230
1230
|
language?: string | undefined;
|
|
@@ -1324,13 +1324,13 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1324
1324
|
} | undefined;
|
|
1325
1325
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1326
1326
|
maxOutputTokens?: number | undefined;
|
|
1327
|
+
instructions?: string | undefined;
|
|
1327
1328
|
temperature?: number | undefined;
|
|
1328
1329
|
voice?: string | undefined;
|
|
1329
1330
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1330
1331
|
type: "function";
|
|
1331
1332
|
name: string;
|
|
1332
1333
|
} | undefined;
|
|
1333
|
-
instructions?: string | undefined;
|
|
1334
1334
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
1335
1335
|
inputAudioTranscription?: {
|
|
1336
1336
|
language?: string | undefined;
|
|
@@ -1430,13 +1430,13 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1430
1430
|
} | undefined;
|
|
1431
1431
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1432
1432
|
maxOutputTokens?: number | undefined;
|
|
1433
|
+
instructions?: string | undefined;
|
|
1433
1434
|
temperature?: number | undefined;
|
|
1434
1435
|
voice?: string | undefined;
|
|
1435
1436
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1436
1437
|
type: "function";
|
|
1437
1438
|
name: string;
|
|
1438
1439
|
} | undefined;
|
|
1439
|
-
instructions?: string | undefined;
|
|
1440
1440
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
1441
1441
|
inputAudioTranscription?: {
|
|
1442
1442
|
language?: string | undefined;
|
|
@@ -1536,13 +1536,13 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1536
1536
|
} | undefined;
|
|
1537
1537
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1538
1538
|
maxOutputTokens?: number | undefined;
|
|
1539
|
+
instructions?: string | undefined;
|
|
1539
1540
|
temperature?: number | undefined;
|
|
1540
1541
|
voice?: string | undefined;
|
|
1541
1542
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1542
1543
|
type: "function";
|
|
1543
1544
|
name: string;
|
|
1544
1545
|
} | undefined;
|
|
1545
|
-
instructions?: string | undefined;
|
|
1546
1546
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
1547
1547
|
inputAudioTranscription?: {
|
|
1548
1548
|
language?: string | undefined;
|
|
@@ -1813,19 +1813,19 @@ export declare const realtimeResponseParametersSchema: z.ZodObject<{
|
|
|
1813
1813
|
}, "strict", z.ZodTypeAny, {
|
|
1814
1814
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1815
1815
|
maxOutputTokens?: number | undefined;
|
|
1816
|
+
instructions?: string | undefined;
|
|
1816
1817
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1817
1818
|
type: "function";
|
|
1818
1819
|
name: string;
|
|
1819
1820
|
} | undefined;
|
|
1820
|
-
instructions?: string | undefined;
|
|
1821
1821
|
}, {
|
|
1822
1822
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1823
1823
|
maxOutputTokens?: number | undefined;
|
|
1824
|
+
instructions?: string | undefined;
|
|
1824
1825
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1825
1826
|
type: "function";
|
|
1826
1827
|
name: string;
|
|
1827
1828
|
} | undefined;
|
|
1828
|
-
instructions?: string | undefined;
|
|
1829
1829
|
}>;
|
|
1830
1830
|
export declare const realtimeSessionUpdateCommandSchema: z.ZodObject<{
|
|
1831
1831
|
type: z.ZodLiteral<"session.update">;
|
|
@@ -1927,12 +1927,12 @@ export declare const realtimeSessionUpdateCommandSchema: z.ZodObject<{
|
|
|
1927
1927
|
}[] | undefined;
|
|
1928
1928
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1929
1929
|
maxOutputTokens?: number | undefined;
|
|
1930
|
+
instructions?: string | undefined;
|
|
1930
1931
|
temperature?: number | undefined;
|
|
1931
1932
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1932
1933
|
type: "function";
|
|
1933
1934
|
name: string;
|
|
1934
1935
|
} | undefined;
|
|
1935
|
-
instructions?: string | undefined;
|
|
1936
1936
|
turnDetection?: {
|
|
1937
1937
|
type: "none";
|
|
1938
1938
|
} | {
|
|
@@ -1962,12 +1962,12 @@ export declare const realtimeSessionUpdateCommandSchema: z.ZodObject<{
|
|
|
1962
1962
|
}[] | undefined;
|
|
1963
1963
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1964
1964
|
maxOutputTokens?: number | undefined;
|
|
1965
|
+
instructions?: string | undefined;
|
|
1965
1966
|
temperature?: number | undefined;
|
|
1966
1967
|
toolChoice?: "none" | "required" | "auto" | {
|
|
1967
1968
|
type: "function";
|
|
1968
1969
|
name: string;
|
|
1969
1970
|
} | undefined;
|
|
1970
|
-
instructions?: string | undefined;
|
|
1971
1971
|
turnDetection?: {
|
|
1972
1972
|
type: "none";
|
|
1973
1973
|
} | {
|
|
@@ -1997,12 +1997,12 @@ export declare const realtimeSessionUpdateCommandSchema: z.ZodObject<{
|
|
|
1997
1997
|
}[] | undefined;
|
|
1998
1998
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
1999
1999
|
maxOutputTokens?: number | undefined;
|
|
2000
|
+
instructions?: string | undefined;
|
|
2000
2001
|
temperature?: number | undefined;
|
|
2001
2002
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2002
2003
|
type: "function";
|
|
2003
2004
|
name: string;
|
|
2004
2005
|
} | undefined;
|
|
2005
|
-
instructions?: string | undefined;
|
|
2006
2006
|
turnDetection?: {
|
|
2007
2007
|
type: "none";
|
|
2008
2008
|
} | {
|
|
@@ -2032,12 +2032,12 @@ export declare const realtimeSessionUpdateCommandSchema: z.ZodObject<{
|
|
|
2032
2032
|
}[] | undefined;
|
|
2033
2033
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2034
2034
|
maxOutputTokens?: number | undefined;
|
|
2035
|
+
instructions?: string | undefined;
|
|
2035
2036
|
temperature?: number | undefined;
|
|
2036
2037
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2037
2038
|
type: "function";
|
|
2038
2039
|
name: string;
|
|
2039
2040
|
} | undefined;
|
|
2040
|
-
instructions?: string | undefined;
|
|
2041
2041
|
turnDetection?: {
|
|
2042
2042
|
type: "none";
|
|
2043
2043
|
} | {
|
|
@@ -2076,12 +2076,12 @@ export declare const realtimeSessionUpdateCommandSchema: z.ZodObject<{
|
|
|
2076
2076
|
}[] | undefined;
|
|
2077
2077
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2078
2078
|
maxOutputTokens?: number | undefined;
|
|
2079
|
+
instructions?: string | undefined;
|
|
2079
2080
|
temperature?: number | undefined;
|
|
2080
2081
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2081
2082
|
type: "function";
|
|
2082
2083
|
name: string;
|
|
2083
2084
|
} | undefined;
|
|
2084
|
-
instructions?: string | undefined;
|
|
2085
2085
|
turnDetection?: {
|
|
2086
2086
|
type: "none";
|
|
2087
2087
|
} | {
|
|
@@ -2117,12 +2117,12 @@ export declare const realtimeSessionUpdateCommandSchema: z.ZodObject<{
|
|
|
2117
2117
|
}[] | undefined;
|
|
2118
2118
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2119
2119
|
maxOutputTokens?: number | undefined;
|
|
2120
|
+
instructions?: string | undefined;
|
|
2120
2121
|
temperature?: number | undefined;
|
|
2121
2122
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2122
2123
|
type: "function";
|
|
2123
2124
|
name: string;
|
|
2124
2125
|
} | undefined;
|
|
2125
|
-
instructions?: string | undefined;
|
|
2126
2126
|
turnDetection?: {
|
|
2127
2127
|
type: "none";
|
|
2128
2128
|
} | {
|
|
@@ -2541,19 +2541,19 @@ export declare const realtimeResponseCreateCommandSchema: z.ZodObject<{
|
|
|
2541
2541
|
}, "strict", z.ZodTypeAny, {
|
|
2542
2542
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2543
2543
|
maxOutputTokens?: number | undefined;
|
|
2544
|
+
instructions?: string | undefined;
|
|
2544
2545
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2545
2546
|
type: "function";
|
|
2546
2547
|
name: string;
|
|
2547
2548
|
} | undefined;
|
|
2548
|
-
instructions?: string | undefined;
|
|
2549
2549
|
}, {
|
|
2550
2550
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2551
2551
|
maxOutputTokens?: number | undefined;
|
|
2552
|
+
instructions?: string | undefined;
|
|
2552
2553
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2553
2554
|
type: "function";
|
|
2554
2555
|
name: string;
|
|
2555
2556
|
} | undefined;
|
|
2556
|
-
instructions?: string | undefined;
|
|
2557
2557
|
}>>;
|
|
2558
2558
|
/** See `version.ts`: each command is a whole message on the wire. */
|
|
2559
2559
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -2567,11 +2567,11 @@ export declare const realtimeResponseCreateCommandSchema: z.ZodObject<{
|
|
|
2567
2567
|
response?: {
|
|
2568
2568
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2569
2569
|
maxOutputTokens?: number | undefined;
|
|
2570
|
+
instructions?: string | undefined;
|
|
2570
2571
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2571
2572
|
type: "function";
|
|
2572
2573
|
name: string;
|
|
2573
2574
|
} | undefined;
|
|
2574
|
-
instructions?: string | undefined;
|
|
2575
2575
|
} | undefined;
|
|
2576
2576
|
}, {
|
|
2577
2577
|
type: "response.create";
|
|
@@ -2581,11 +2581,11 @@ export declare const realtimeResponseCreateCommandSchema: z.ZodObject<{
|
|
|
2581
2581
|
response?: {
|
|
2582
2582
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2583
2583
|
maxOutputTokens?: number | undefined;
|
|
2584
|
+
instructions?: string | undefined;
|
|
2584
2585
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2585
2586
|
type: "function";
|
|
2586
2587
|
name: string;
|
|
2587
2588
|
} | undefined;
|
|
2588
|
-
instructions?: string | undefined;
|
|
2589
2589
|
} | undefined;
|
|
2590
2590
|
}>;
|
|
2591
2591
|
export declare const realtimeResponseCancelCommandSchema: z.ZodObject<{
|
|
@@ -2751,12 +2751,12 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
2751
2751
|
}[] | undefined;
|
|
2752
2752
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2753
2753
|
maxOutputTokens?: number | undefined;
|
|
2754
|
+
instructions?: string | undefined;
|
|
2754
2755
|
temperature?: number | undefined;
|
|
2755
2756
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2756
2757
|
type: "function";
|
|
2757
2758
|
name: string;
|
|
2758
2759
|
} | undefined;
|
|
2759
|
-
instructions?: string | undefined;
|
|
2760
2760
|
turnDetection?: {
|
|
2761
2761
|
type: "none";
|
|
2762
2762
|
} | {
|
|
@@ -2786,12 +2786,12 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
2786
2786
|
}[] | undefined;
|
|
2787
2787
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2788
2788
|
maxOutputTokens?: number | undefined;
|
|
2789
|
+
instructions?: string | undefined;
|
|
2789
2790
|
temperature?: number | undefined;
|
|
2790
2791
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2791
2792
|
type: "function";
|
|
2792
2793
|
name: string;
|
|
2793
2794
|
} | undefined;
|
|
2794
|
-
instructions?: string | undefined;
|
|
2795
2795
|
turnDetection?: {
|
|
2796
2796
|
type: "none";
|
|
2797
2797
|
} | {
|
|
@@ -2821,12 +2821,12 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
2821
2821
|
}[] | undefined;
|
|
2822
2822
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2823
2823
|
maxOutputTokens?: number | undefined;
|
|
2824
|
+
instructions?: string | undefined;
|
|
2824
2825
|
temperature?: number | undefined;
|
|
2825
2826
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2826
2827
|
type: "function";
|
|
2827
2828
|
name: string;
|
|
2828
2829
|
} | undefined;
|
|
2829
|
-
instructions?: string | undefined;
|
|
2830
2830
|
turnDetection?: {
|
|
2831
2831
|
type: "none";
|
|
2832
2832
|
} | {
|
|
@@ -2856,12 +2856,12 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
2856
2856
|
}[] | undefined;
|
|
2857
2857
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2858
2858
|
maxOutputTokens?: number | undefined;
|
|
2859
|
+
instructions?: string | undefined;
|
|
2859
2860
|
temperature?: number | undefined;
|
|
2860
2861
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2861
2862
|
type: "function";
|
|
2862
2863
|
name: string;
|
|
2863
2864
|
} | undefined;
|
|
2864
|
-
instructions?: string | undefined;
|
|
2865
2865
|
turnDetection?: {
|
|
2866
2866
|
type: "none";
|
|
2867
2867
|
} | {
|
|
@@ -2900,12 +2900,12 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
2900
2900
|
}[] | undefined;
|
|
2901
2901
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2902
2902
|
maxOutputTokens?: number | undefined;
|
|
2903
|
+
instructions?: string | undefined;
|
|
2903
2904
|
temperature?: number | undefined;
|
|
2904
2905
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2905
2906
|
type: "function";
|
|
2906
2907
|
name: string;
|
|
2907
2908
|
} | undefined;
|
|
2908
|
-
instructions?: string | undefined;
|
|
2909
2909
|
turnDetection?: {
|
|
2910
2910
|
type: "none";
|
|
2911
2911
|
} | {
|
|
@@ -2941,12 +2941,12 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
2941
2941
|
}[] | undefined;
|
|
2942
2942
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
2943
2943
|
maxOutputTokens?: number | undefined;
|
|
2944
|
+
instructions?: string | undefined;
|
|
2944
2945
|
temperature?: number | undefined;
|
|
2945
2946
|
toolChoice?: "none" | "required" | "auto" | {
|
|
2946
2947
|
type: "function";
|
|
2947
2948
|
name: string;
|
|
2948
2949
|
} | undefined;
|
|
2949
|
-
instructions?: string | undefined;
|
|
2950
2950
|
turnDetection?: {
|
|
2951
2951
|
type: "none";
|
|
2952
2952
|
} | {
|
|
@@ -3353,19 +3353,19 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
3353
3353
|
}, "strict", z.ZodTypeAny, {
|
|
3354
3354
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3355
3355
|
maxOutputTokens?: number | undefined;
|
|
3356
|
+
instructions?: string | undefined;
|
|
3356
3357
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3357
3358
|
type: "function";
|
|
3358
3359
|
name: string;
|
|
3359
3360
|
} | undefined;
|
|
3360
|
-
instructions?: string | undefined;
|
|
3361
3361
|
}, {
|
|
3362
3362
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3363
3363
|
maxOutputTokens?: number | undefined;
|
|
3364
|
+
instructions?: string | undefined;
|
|
3364
3365
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3365
3366
|
type: "function";
|
|
3366
3367
|
name: string;
|
|
3367
3368
|
} | undefined;
|
|
3368
|
-
instructions?: string | undefined;
|
|
3369
3369
|
}>>;
|
|
3370
3370
|
/** See `version.ts`: each command is a whole message on the wire. */
|
|
3371
3371
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -3379,11 +3379,11 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
3379
3379
|
response?: {
|
|
3380
3380
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3381
3381
|
maxOutputTokens?: number | undefined;
|
|
3382
|
+
instructions?: string | undefined;
|
|
3382
3383
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3383
3384
|
type: "function";
|
|
3384
3385
|
name: string;
|
|
3385
3386
|
} | undefined;
|
|
3386
|
-
instructions?: string | undefined;
|
|
3387
3387
|
} | undefined;
|
|
3388
3388
|
}, {
|
|
3389
3389
|
type: "response.create";
|
|
@@ -3393,11 +3393,11 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<"type"
|
|
|
3393
3393
|
response?: {
|
|
3394
3394
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3395
3395
|
maxOutputTokens?: number | undefined;
|
|
3396
|
+
instructions?: string | undefined;
|
|
3396
3397
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3397
3398
|
type: "function";
|
|
3398
3399
|
name: string;
|
|
3399
3400
|
} | undefined;
|
|
3400
|
-
instructions?: string | undefined;
|
|
3401
3401
|
} | undefined;
|
|
3402
3402
|
}>, z.ZodObject<{
|
|
3403
3403
|
type: z.ZodLiteral<"response.cancel">;
|
|
@@ -3596,13 +3596,13 @@ export declare const realtimeSessionCreatedEventSchema: z.ZodObject<{
|
|
|
3596
3596
|
} | undefined;
|
|
3597
3597
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3598
3598
|
maxOutputTokens?: number | undefined;
|
|
3599
|
+
instructions?: string | undefined;
|
|
3599
3600
|
temperature?: number | undefined;
|
|
3600
3601
|
voice?: string | undefined;
|
|
3601
3602
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3602
3603
|
type: "function";
|
|
3603
3604
|
name: string;
|
|
3604
3605
|
} | undefined;
|
|
3605
|
-
instructions?: string | undefined;
|
|
3606
3606
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
3607
3607
|
inputAudioTranscription?: {
|
|
3608
3608
|
language?: string | undefined;
|
|
@@ -3637,13 +3637,13 @@ export declare const realtimeSessionCreatedEventSchema: z.ZodObject<{
|
|
|
3637
3637
|
} | undefined;
|
|
3638
3638
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3639
3639
|
maxOutputTokens?: number | undefined;
|
|
3640
|
+
instructions?: string | undefined;
|
|
3640
3641
|
temperature?: number | undefined;
|
|
3641
3642
|
voice?: string | undefined;
|
|
3642
3643
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3643
3644
|
type: "function";
|
|
3644
3645
|
name: string;
|
|
3645
3646
|
} | undefined;
|
|
3646
|
-
instructions?: string | undefined;
|
|
3647
3647
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
3648
3648
|
inputAudioTranscription?: {
|
|
3649
3649
|
language?: string | undefined;
|
|
@@ -3695,8 +3695,8 @@ export declare const realtimeSessionCreatedEventSchema: z.ZodObject<{
|
|
|
3695
3695
|
resolvedModelReference: string;
|
|
3696
3696
|
servingProvider: string;
|
|
3697
3697
|
deploymentId: string;
|
|
3698
|
-
sequence: number;
|
|
3699
3698
|
startedAt: string;
|
|
3699
|
+
sequence: number;
|
|
3700
3700
|
config: {
|
|
3701
3701
|
inputAudioFormat: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
|
|
3702
3702
|
turnDetection: {
|
|
@@ -3726,13 +3726,13 @@ export declare const realtimeSessionCreatedEventSchema: z.ZodObject<{
|
|
|
3726
3726
|
} | undefined;
|
|
3727
3727
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3728
3728
|
maxOutputTokens?: number | undefined;
|
|
3729
|
+
instructions?: string | undefined;
|
|
3729
3730
|
temperature?: number | undefined;
|
|
3730
3731
|
voice?: string | undefined;
|
|
3731
3732
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3732
3733
|
type: "function";
|
|
3733
3734
|
name: string;
|
|
3734
3735
|
} | undefined;
|
|
3735
|
-
instructions?: string | undefined;
|
|
3736
3736
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
3737
3737
|
inputAudioTranscription?: {
|
|
3738
3738
|
language?: string | undefined;
|
|
@@ -3757,8 +3757,8 @@ export declare const realtimeSessionCreatedEventSchema: z.ZodObject<{
|
|
|
3757
3757
|
resolvedModelReference: string;
|
|
3758
3758
|
servingProvider: string;
|
|
3759
3759
|
deploymentId: string;
|
|
3760
|
-
sequence: number;
|
|
3761
3760
|
startedAt: string;
|
|
3761
|
+
sequence: number;
|
|
3762
3762
|
config: {
|
|
3763
3763
|
inputAudioFormat: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
|
|
3764
3764
|
turnDetection: {
|
|
@@ -3788,13 +3788,13 @@ export declare const realtimeSessionCreatedEventSchema: z.ZodObject<{
|
|
|
3788
3788
|
} | undefined;
|
|
3789
3789
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3790
3790
|
maxOutputTokens?: number | undefined;
|
|
3791
|
+
instructions?: string | undefined;
|
|
3791
3792
|
temperature?: number | undefined;
|
|
3792
3793
|
voice?: string | undefined;
|
|
3793
3794
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3794
3795
|
type: "function";
|
|
3795
3796
|
name: string;
|
|
3796
3797
|
} | undefined;
|
|
3797
|
-
instructions?: string | undefined;
|
|
3798
3798
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
3799
3799
|
inputAudioTranscription?: {
|
|
3800
3800
|
language?: string | undefined;
|
|
@@ -3935,13 +3935,13 @@ export declare const realtimeSessionUpdatedEventSchema: z.ZodObject<{
|
|
|
3935
3935
|
} | undefined;
|
|
3936
3936
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3937
3937
|
maxOutputTokens?: number | undefined;
|
|
3938
|
+
instructions?: string | undefined;
|
|
3938
3939
|
temperature?: number | undefined;
|
|
3939
3940
|
voice?: string | undefined;
|
|
3940
3941
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3941
3942
|
type: "function";
|
|
3942
3943
|
name: string;
|
|
3943
3944
|
} | undefined;
|
|
3944
|
-
instructions?: string | undefined;
|
|
3945
3945
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
3946
3946
|
inputAudioTranscription?: {
|
|
3947
3947
|
language?: string | undefined;
|
|
@@ -3976,13 +3976,13 @@ export declare const realtimeSessionUpdatedEventSchema: z.ZodObject<{
|
|
|
3976
3976
|
} | undefined;
|
|
3977
3977
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
3978
3978
|
maxOutputTokens?: number | undefined;
|
|
3979
|
+
instructions?: string | undefined;
|
|
3979
3980
|
temperature?: number | undefined;
|
|
3980
3981
|
voice?: string | undefined;
|
|
3981
3982
|
toolChoice?: "none" | "required" | "auto" | {
|
|
3982
3983
|
type: "function";
|
|
3983
3984
|
name: string;
|
|
3984
3985
|
} | undefined;
|
|
3985
|
-
instructions?: string | undefined;
|
|
3986
3986
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
3987
3987
|
inputAudioTranscription?: {
|
|
3988
3988
|
language?: string | undefined;
|
|
@@ -4030,13 +4030,13 @@ export declare const realtimeSessionUpdatedEventSchema: z.ZodObject<{
|
|
|
4030
4030
|
} | undefined;
|
|
4031
4031
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
4032
4032
|
maxOutputTokens?: number | undefined;
|
|
4033
|
+
instructions?: string | undefined;
|
|
4033
4034
|
temperature?: number | undefined;
|
|
4034
4035
|
voice?: string | undefined;
|
|
4035
4036
|
toolChoice?: "none" | "required" | "auto" | {
|
|
4036
4037
|
type: "function";
|
|
4037
4038
|
name: string;
|
|
4038
4039
|
} | undefined;
|
|
4039
|
-
instructions?: string | undefined;
|
|
4040
4040
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
4041
4041
|
inputAudioTranscription?: {
|
|
4042
4042
|
language?: string | undefined;
|
|
@@ -4078,13 +4078,13 @@ export declare const realtimeSessionUpdatedEventSchema: z.ZodObject<{
|
|
|
4078
4078
|
} | undefined;
|
|
4079
4079
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
4080
4080
|
maxOutputTokens?: number | undefined;
|
|
4081
|
+
instructions?: string | undefined;
|
|
4081
4082
|
temperature?: number | undefined;
|
|
4082
4083
|
voice?: string | undefined;
|
|
4083
4084
|
toolChoice?: "none" | "required" | "auto" | {
|
|
4084
4085
|
type: "function";
|
|
4085
4086
|
name: string;
|
|
4086
4087
|
} | undefined;
|
|
4087
|
-
instructions?: string | undefined;
|
|
4088
4088
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
4089
4089
|
inputAudioTranscription?: {
|
|
4090
4090
|
language?: string | undefined;
|
|
@@ -5150,12 +5150,12 @@ export declare const realtimeResponseDoneEventSchema: z.ZodObject<{
|
|
|
5150
5150
|
schemaVersion: 1;
|
|
5151
5151
|
requestId: string;
|
|
5152
5152
|
deploymentId: string;
|
|
5153
|
-
sequence: number;
|
|
5154
5153
|
units: {
|
|
5155
5154
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
5156
5155
|
quantity: number;
|
|
5157
5156
|
}[];
|
|
5158
5157
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
5158
|
+
sequence: number;
|
|
5159
5159
|
responseId: string;
|
|
5160
5160
|
finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
|
|
5161
5161
|
commandId?: string | undefined;
|
|
@@ -5165,12 +5165,12 @@ export declare const realtimeResponseDoneEventSchema: z.ZodObject<{
|
|
|
5165
5165
|
schemaVersion: 1;
|
|
5166
5166
|
requestId: string;
|
|
5167
5167
|
deploymentId: string;
|
|
5168
|
-
sequence: number;
|
|
5169
5168
|
units: {
|
|
5170
5169
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
5171
5170
|
quantity: number;
|
|
5172
5171
|
}[];
|
|
5173
5172
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
5173
|
+
sequence: number;
|
|
5174
5174
|
responseId: string;
|
|
5175
5175
|
finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
|
|
5176
5176
|
commandId?: string | undefined;
|
|
@@ -5356,12 +5356,12 @@ export declare const realtimeSessionClosedEventSchema: z.ZodObject<{
|
|
|
5356
5356
|
reason: "no_route_available" | "client_closed" | "max_duration" | "idle_timeout" | "limit_exceeded" | "resume_expired" | "upstream_closed" | "upstream_error" | "server_shutdown";
|
|
5357
5357
|
schemaVersion: 1;
|
|
5358
5358
|
requestId: string;
|
|
5359
|
-
sequence: number;
|
|
5360
5359
|
units: {
|
|
5361
5360
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
5362
5361
|
quantity: number;
|
|
5363
5362
|
}[];
|
|
5364
5363
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
5364
|
+
sequence: number;
|
|
5365
5365
|
closedAt: string;
|
|
5366
5366
|
deploymentId?: string | undefined;
|
|
5367
5367
|
commandId?: string | undefined;
|
|
@@ -5370,12 +5370,12 @@ export declare const realtimeSessionClosedEventSchema: z.ZodObject<{
|
|
|
5370
5370
|
reason: "no_route_available" | "client_closed" | "max_duration" | "idle_timeout" | "limit_exceeded" | "resume_expired" | "upstream_closed" | "upstream_error" | "server_shutdown";
|
|
5371
5371
|
schemaVersion: 1;
|
|
5372
5372
|
requestId: string;
|
|
5373
|
-
sequence: number;
|
|
5374
5373
|
units: {
|
|
5375
5374
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
5376
5375
|
quantity: number;
|
|
5377
5376
|
}[];
|
|
5378
5377
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
5378
|
+
sequence: number;
|
|
5379
5379
|
closedAt: string;
|
|
5380
5380
|
deploymentId?: string | undefined;
|
|
5381
5381
|
commandId?: string | undefined;
|
|
@@ -5516,13 +5516,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5516
5516
|
} | undefined;
|
|
5517
5517
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5518
5518
|
maxOutputTokens?: number | undefined;
|
|
5519
|
+
instructions?: string | undefined;
|
|
5519
5520
|
temperature?: number | undefined;
|
|
5520
5521
|
voice?: string | undefined;
|
|
5521
5522
|
toolChoice?: "none" | "required" | "auto" | {
|
|
5522
5523
|
type: "function";
|
|
5523
5524
|
name: string;
|
|
5524
5525
|
} | undefined;
|
|
5525
|
-
instructions?: string | undefined;
|
|
5526
5526
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
5527
5527
|
inputAudioTranscription?: {
|
|
5528
5528
|
language?: string | undefined;
|
|
@@ -5557,13 +5557,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5557
5557
|
} | undefined;
|
|
5558
5558
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5559
5559
|
maxOutputTokens?: number | undefined;
|
|
5560
|
+
instructions?: string | undefined;
|
|
5560
5561
|
temperature?: number | undefined;
|
|
5561
5562
|
voice?: string | undefined;
|
|
5562
5563
|
toolChoice?: "none" | "required" | "auto" | {
|
|
5563
5564
|
type: "function";
|
|
5564
5565
|
name: string;
|
|
5565
5566
|
} | undefined;
|
|
5566
|
-
instructions?: string | undefined;
|
|
5567
5567
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
5568
5568
|
inputAudioTranscription?: {
|
|
5569
5569
|
language?: string | undefined;
|
|
@@ -5615,8 +5615,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5615
5615
|
resolvedModelReference: string;
|
|
5616
5616
|
servingProvider: string;
|
|
5617
5617
|
deploymentId: string;
|
|
5618
|
-
sequence: number;
|
|
5619
5618
|
startedAt: string;
|
|
5619
|
+
sequence: number;
|
|
5620
5620
|
config: {
|
|
5621
5621
|
inputAudioFormat: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
|
|
5622
5622
|
turnDetection: {
|
|
@@ -5646,13 +5646,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5646
5646
|
} | undefined;
|
|
5647
5647
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5648
5648
|
maxOutputTokens?: number | undefined;
|
|
5649
|
+
instructions?: string | undefined;
|
|
5649
5650
|
temperature?: number | undefined;
|
|
5650
5651
|
voice?: string | undefined;
|
|
5651
5652
|
toolChoice?: "none" | "required" | "auto" | {
|
|
5652
5653
|
type: "function";
|
|
5653
5654
|
name: string;
|
|
5654
5655
|
} | undefined;
|
|
5655
|
-
instructions?: string | undefined;
|
|
5656
5656
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
5657
5657
|
inputAudioTranscription?: {
|
|
5658
5658
|
language?: string | undefined;
|
|
@@ -5677,8 +5677,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5677
5677
|
resolvedModelReference: string;
|
|
5678
5678
|
servingProvider: string;
|
|
5679
5679
|
deploymentId: string;
|
|
5680
|
-
sequence: number;
|
|
5681
5680
|
startedAt: string;
|
|
5681
|
+
sequence: number;
|
|
5682
5682
|
config: {
|
|
5683
5683
|
inputAudioFormat: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
|
|
5684
5684
|
turnDetection: {
|
|
@@ -5708,13 +5708,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5708
5708
|
} | undefined;
|
|
5709
5709
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5710
5710
|
maxOutputTokens?: number | undefined;
|
|
5711
|
+
instructions?: string | undefined;
|
|
5711
5712
|
temperature?: number | undefined;
|
|
5712
5713
|
voice?: string | undefined;
|
|
5713
5714
|
toolChoice?: "none" | "required" | "auto" | {
|
|
5714
5715
|
type: "function";
|
|
5715
5716
|
name: string;
|
|
5716
5717
|
} | undefined;
|
|
5717
|
-
instructions?: string | undefined;
|
|
5718
5718
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
5719
5719
|
inputAudioTranscription?: {
|
|
5720
5720
|
language?: string | undefined;
|
|
@@ -5854,13 +5854,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5854
5854
|
} | undefined;
|
|
5855
5855
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5856
5856
|
maxOutputTokens?: number | undefined;
|
|
5857
|
+
instructions?: string | undefined;
|
|
5857
5858
|
temperature?: number | undefined;
|
|
5858
5859
|
voice?: string | undefined;
|
|
5859
5860
|
toolChoice?: "none" | "required" | "auto" | {
|
|
5860
5861
|
type: "function";
|
|
5861
5862
|
name: string;
|
|
5862
5863
|
} | undefined;
|
|
5863
|
-
instructions?: string | undefined;
|
|
5864
5864
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
5865
5865
|
inputAudioTranscription?: {
|
|
5866
5866
|
language?: string | undefined;
|
|
@@ -5895,13 +5895,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5895
5895
|
} | undefined;
|
|
5896
5896
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5897
5897
|
maxOutputTokens?: number | undefined;
|
|
5898
|
+
instructions?: string | undefined;
|
|
5898
5899
|
temperature?: number | undefined;
|
|
5899
5900
|
voice?: string | undefined;
|
|
5900
5901
|
toolChoice?: "none" | "required" | "auto" | {
|
|
5901
5902
|
type: "function";
|
|
5902
5903
|
name: string;
|
|
5903
5904
|
} | undefined;
|
|
5904
|
-
instructions?: string | undefined;
|
|
5905
5905
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
5906
5906
|
inputAudioTranscription?: {
|
|
5907
5907
|
language?: string | undefined;
|
|
@@ -5949,13 +5949,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5949
5949
|
} | undefined;
|
|
5950
5950
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5951
5951
|
maxOutputTokens?: number | undefined;
|
|
5952
|
+
instructions?: string | undefined;
|
|
5952
5953
|
temperature?: number | undefined;
|
|
5953
5954
|
voice?: string | undefined;
|
|
5954
5955
|
toolChoice?: "none" | "required" | "auto" | {
|
|
5955
5956
|
type: "function";
|
|
5956
5957
|
name: string;
|
|
5957
5958
|
} | undefined;
|
|
5958
|
-
instructions?: string | undefined;
|
|
5959
5959
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
5960
5960
|
inputAudioTranscription?: {
|
|
5961
5961
|
language?: string | undefined;
|
|
@@ -5997,13 +5997,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
5997
5997
|
} | undefined;
|
|
5998
5998
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
5999
5999
|
maxOutputTokens?: number | undefined;
|
|
6000
|
+
instructions?: string | undefined;
|
|
6000
6001
|
temperature?: number | undefined;
|
|
6001
6002
|
voice?: string | undefined;
|
|
6002
6003
|
toolChoice?: "none" | "required" | "auto" | {
|
|
6003
6004
|
type: "function";
|
|
6004
6005
|
name: string;
|
|
6005
6006
|
} | undefined;
|
|
6006
|
-
instructions?: string | undefined;
|
|
6007
6007
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
6008
6008
|
inputAudioTranscription?: {
|
|
6009
6009
|
language?: string | undefined;
|
|
@@ -7030,12 +7030,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7030
7030
|
schemaVersion: 1;
|
|
7031
7031
|
requestId: string;
|
|
7032
7032
|
deploymentId: string;
|
|
7033
|
-
sequence: number;
|
|
7034
7033
|
units: {
|
|
7035
7034
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
7036
7035
|
quantity: number;
|
|
7037
7036
|
}[];
|
|
7038
7037
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7038
|
+
sequence: number;
|
|
7039
7039
|
responseId: string;
|
|
7040
7040
|
finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
|
|
7041
7041
|
commandId?: string | undefined;
|
|
@@ -7045,12 +7045,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7045
7045
|
schemaVersion: 1;
|
|
7046
7046
|
requestId: string;
|
|
7047
7047
|
deploymentId: string;
|
|
7048
|
-
sequence: number;
|
|
7049
7048
|
units: {
|
|
7050
7049
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
7051
7050
|
quantity: number;
|
|
7052
7051
|
}[];
|
|
7053
7052
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7053
|
+
sequence: number;
|
|
7054
7054
|
responseId: string;
|
|
7055
7055
|
finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
|
|
7056
7056
|
commandId?: string | undefined;
|
|
@@ -7224,12 +7224,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7224
7224
|
reason: "no_route_available" | "client_closed" | "max_duration" | "idle_timeout" | "limit_exceeded" | "resume_expired" | "upstream_closed" | "upstream_error" | "server_shutdown";
|
|
7225
7225
|
schemaVersion: 1;
|
|
7226
7226
|
requestId: string;
|
|
7227
|
-
sequence: number;
|
|
7228
7227
|
units: {
|
|
7229
7228
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
7230
7229
|
quantity: number;
|
|
7231
7230
|
}[];
|
|
7232
7231
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7232
|
+
sequence: number;
|
|
7233
7233
|
closedAt: string;
|
|
7234
7234
|
deploymentId?: string | undefined;
|
|
7235
7235
|
commandId?: string | undefined;
|
|
@@ -7238,12 +7238,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7238
7238
|
reason: "no_route_available" | "client_closed" | "max_duration" | "idle_timeout" | "limit_exceeded" | "resume_expired" | "upstream_closed" | "upstream_error" | "server_shutdown";
|
|
7239
7239
|
schemaVersion: 1;
|
|
7240
7240
|
requestId: string;
|
|
7241
|
-
sequence: number;
|
|
7242
7241
|
units: {
|
|
7243
7242
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
7244
7243
|
quantity: number;
|
|
7245
7244
|
}[];
|
|
7246
7245
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7246
|
+
sequence: number;
|
|
7247
7247
|
closedAt: string;
|
|
7248
7248
|
deploymentId?: string | undefined;
|
|
7249
7249
|
commandId?: string | undefined;
|
|
@@ -7263,8 +7263,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7263
7263
|
resolvedModelReference: string;
|
|
7264
7264
|
servingProvider: string;
|
|
7265
7265
|
deploymentId: string;
|
|
7266
|
-
sequence: number;
|
|
7267
7266
|
startedAt: string;
|
|
7267
|
+
sequence: number;
|
|
7268
7268
|
config: {
|
|
7269
7269
|
inputAudioFormat: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
|
|
7270
7270
|
turnDetection: {
|
|
@@ -7294,13 +7294,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7294
7294
|
} | undefined;
|
|
7295
7295
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
7296
7296
|
maxOutputTokens?: number | undefined;
|
|
7297
|
+
instructions?: string | undefined;
|
|
7297
7298
|
temperature?: number | undefined;
|
|
7298
7299
|
voice?: string | undefined;
|
|
7299
7300
|
toolChoice?: "none" | "required" | "auto" | {
|
|
7300
7301
|
type: "function";
|
|
7301
7302
|
name: string;
|
|
7302
7303
|
} | undefined;
|
|
7303
|
-
instructions?: string | undefined;
|
|
7304
7304
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
7305
7305
|
inputAudioTranscription?: {
|
|
7306
7306
|
language?: string | undefined;
|
|
@@ -7343,13 +7343,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7343
7343
|
} | undefined;
|
|
7344
7344
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
7345
7345
|
maxOutputTokens?: number | undefined;
|
|
7346
|
+
instructions?: string | undefined;
|
|
7346
7347
|
temperature?: number | undefined;
|
|
7347
7348
|
voice?: string | undefined;
|
|
7348
7349
|
toolChoice?: "none" | "required" | "auto" | {
|
|
7349
7350
|
type: "function";
|
|
7350
7351
|
name: string;
|
|
7351
7352
|
} | undefined;
|
|
7352
|
-
instructions?: string | undefined;
|
|
7353
7353
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
7354
7354
|
inputAudioTranscription?: {
|
|
7355
7355
|
language?: string | undefined;
|
|
@@ -7573,12 +7573,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7573
7573
|
schemaVersion: 1;
|
|
7574
7574
|
requestId: string;
|
|
7575
7575
|
deploymentId: string;
|
|
7576
|
-
sequence: number;
|
|
7577
7576
|
units: {
|
|
7578
7577
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
7579
7578
|
quantity: number;
|
|
7580
7579
|
}[];
|
|
7581
7580
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7581
|
+
sequence: number;
|
|
7582
7582
|
responseId: string;
|
|
7583
7583
|
finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
|
|
7584
7584
|
commandId?: string | undefined;
|
|
@@ -7610,12 +7610,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7610
7610
|
reason: "no_route_available" | "client_closed" | "max_duration" | "idle_timeout" | "limit_exceeded" | "resume_expired" | "upstream_closed" | "upstream_error" | "server_shutdown";
|
|
7611
7611
|
schemaVersion: 1;
|
|
7612
7612
|
requestId: string;
|
|
7613
|
-
sequence: number;
|
|
7614
7613
|
units: {
|
|
7615
7614
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
7616
7615
|
quantity: number;
|
|
7617
7616
|
}[];
|
|
7618
7617
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7618
|
+
sequence: number;
|
|
7619
7619
|
closedAt: string;
|
|
7620
7620
|
deploymentId?: string | undefined;
|
|
7621
7621
|
commandId?: string | undefined;
|
|
@@ -7635,8 +7635,8 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7635
7635
|
resolvedModelReference: string;
|
|
7636
7636
|
servingProvider: string;
|
|
7637
7637
|
deploymentId: string;
|
|
7638
|
-
sequence: number;
|
|
7639
7638
|
startedAt: string;
|
|
7639
|
+
sequence: number;
|
|
7640
7640
|
config: {
|
|
7641
7641
|
inputAudioFormat: "pcm16_24khz" | "g711_ulaw" | "g711_alaw";
|
|
7642
7642
|
turnDetection: {
|
|
@@ -7666,13 +7666,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7666
7666
|
} | undefined;
|
|
7667
7667
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
7668
7668
|
maxOutputTokens?: number | undefined;
|
|
7669
|
+
instructions?: string | undefined;
|
|
7669
7670
|
temperature?: number | undefined;
|
|
7670
7671
|
voice?: string | undefined;
|
|
7671
7672
|
toolChoice?: "none" | "required" | "auto" | {
|
|
7672
7673
|
type: "function";
|
|
7673
7674
|
name: string;
|
|
7674
7675
|
} | undefined;
|
|
7675
|
-
instructions?: string | undefined;
|
|
7676
7676
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
7677
7677
|
inputAudioTranscription?: {
|
|
7678
7678
|
language?: string | undefined;
|
|
@@ -7715,13 +7715,13 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7715
7715
|
} | undefined;
|
|
7716
7716
|
outputModalities?: ("text" | "audio")[] | undefined;
|
|
7717
7717
|
maxOutputTokens?: number | undefined;
|
|
7718
|
+
instructions?: string | undefined;
|
|
7718
7719
|
temperature?: number | undefined;
|
|
7719
7720
|
voice?: string | undefined;
|
|
7720
7721
|
toolChoice?: "none" | "required" | "auto" | {
|
|
7721
7722
|
type: "function";
|
|
7722
7723
|
name: string;
|
|
7723
7724
|
} | undefined;
|
|
7724
|
-
instructions?: string | undefined;
|
|
7725
7725
|
outputAudioFormat?: "pcm16_24khz" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
7726
7726
|
inputAudioTranscription?: {
|
|
7727
7727
|
language?: string | undefined;
|
|
@@ -7945,12 +7945,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7945
7945
|
schemaVersion: 1;
|
|
7946
7946
|
requestId: string;
|
|
7947
7947
|
deploymentId: string;
|
|
7948
|
-
sequence: number;
|
|
7949
7948
|
units: {
|
|
7950
7949
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
7951
7950
|
quantity: number;
|
|
7952
7951
|
}[];
|
|
7953
7952
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7953
|
+
sequence: number;
|
|
7954
7954
|
responseId: string;
|
|
7955
7955
|
finishReason?: "length" | "cancelled" | "content_filter" | "refusal" | "stop" | "tool_calls" | undefined;
|
|
7956
7956
|
commandId?: string | undefined;
|
|
@@ -7982,12 +7982,12 @@ export declare const realtimeServerEventSchema: z.ZodEffects<z.ZodDiscriminatedU
|
|
|
7982
7982
|
reason: "no_route_available" | "client_closed" | "max_duration" | "idle_timeout" | "limit_exceeded" | "resume_expired" | "upstream_closed" | "upstream_error" | "server_shutdown";
|
|
7983
7983
|
schemaVersion: 1;
|
|
7984
7984
|
requestId: string;
|
|
7985
|
-
sequence: number;
|
|
7986
7985
|
units: {
|
|
7987
7986
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
7988
7987
|
quantity: number;
|
|
7989
7988
|
}[];
|
|
7990
7989
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
7990
|
+
sequence: number;
|
|
7991
7991
|
closedAt: string;
|
|
7992
7992
|
deploymentId?: string | undefined;
|
|
7993
7993
|
commandId?: string | undefined;
|