@orq-ai/node 4.5.0-rc.24 → 4.5.0-rc.26
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/createagentresponse.d.ts +5 -0
- package/models/components/createagentresponse.d.ts.map +1 -1
- package/models/components/createagentresponse.js +2 -0
- package/models/components/createagentresponse.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsedoneevent.d.ts +5 -0
- package/models/components/responsedoneevent.d.ts.map +1 -1
- package/models/components/responsedoneevent.js +2 -0
- package/models/components/responsedoneevent.js.map +1 -1
- package/models/components/responsestartedevent.d.ts +5 -0
- package/models/components/responsestartedevent.d.ts.map +1 -1
- package/models/components/responsestartedevent.js +2 -0
- package/models/components/responsestartedevent.js.map +1 -1
- package/models/components/telemetry.d.ts +20 -0
- package/models/components/telemetry.d.ts.map +1 -0
- package/models/components/telemetry.js +57 -0
- package/models/components/telemetry.js.map +1 -0
- package/models/operations/createagentrequest.d.ts +16 -460
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +21 -299
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createprompt.d.ts +30 -30
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +31 -29
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/listagents.d.ts +0 -202
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +2 -139
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/retrieveagentrequest.d.ts +0 -202
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +2 -140
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +12 -254
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +16 -153
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +12 -254
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +15 -152
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +16 -460
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +21 -298
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/createagentresponse.ts +6 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsedoneevent.ts +6 -0
- package/src/models/components/responsestartedevent.ts +6 -0
- package/src/models/components/telemetry.ts +48 -0
- package/src/models/operations/createagentrequest.ts +49 -860
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createprompt.ts +55 -66
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listagents.ts +0 -393
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/retrieveagentrequest.ts +0 -402
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +35 -473
- package/src/models/operations/streamrunagent.ts +35 -492
- package/src/models/operations/updateagent.ts +36 -874
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -10,51 +10,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import * as components from "../components/index.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
15
|
-
*/
|
|
16
|
-
export const Voice = {
|
|
17
|
-
Alloy: "alloy",
|
|
18
|
-
Echo: "echo",
|
|
19
|
-
Fable: "fable",
|
|
20
|
-
Onyx: "onyx",
|
|
21
|
-
Nova: "nova",
|
|
22
|
-
Shimmer: "shimmer",
|
|
23
|
-
} as const;
|
|
24
|
-
/**
|
|
25
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
26
|
-
*/
|
|
27
|
-
export type Voice = ClosedEnum<typeof Voice>;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
31
|
-
*/
|
|
32
|
-
export const Format = {
|
|
33
|
-
Wav: "wav",
|
|
34
|
-
Mp3: "mp3",
|
|
35
|
-
Flac: "flac",
|
|
36
|
-
Opus: "opus",
|
|
37
|
-
Pcm16: "pcm16",
|
|
38
|
-
} as const;
|
|
39
|
-
/**
|
|
40
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
41
|
-
*/
|
|
42
|
-
export type Format = ClosedEnum<typeof Format>;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
46
|
-
*/
|
|
47
|
-
export type ModelConfigurationAudio = {
|
|
48
|
-
/**
|
|
49
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
50
|
-
*/
|
|
51
|
-
voice: Voice;
|
|
52
|
-
/**
|
|
53
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
54
|
-
*/
|
|
55
|
-
format: Format;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
13
|
export type ResponseFormatJsonSchema = {
|
|
59
14
|
/**
|
|
60
15
|
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
@@ -146,16 +101,6 @@ export type ReasoningEffort = ClosedEnum<typeof ReasoningEffort>;
|
|
|
146
101
|
*/
|
|
147
102
|
export type Stop = string | Array<string>;
|
|
148
103
|
|
|
149
|
-
/**
|
|
150
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
151
|
-
*/
|
|
152
|
-
export type StreamOptions = {
|
|
153
|
-
/**
|
|
154
|
-
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
155
|
-
*/
|
|
156
|
-
includeUsage?: boolean | undefined;
|
|
157
|
-
};
|
|
158
|
-
|
|
159
104
|
export type Thinking =
|
|
160
105
|
| components.ThinkingConfigDisabledSchema
|
|
161
106
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -246,20 +191,6 @@ export type Fallbacks = {
|
|
|
246
191
|
model: string;
|
|
247
192
|
};
|
|
248
193
|
|
|
249
|
-
/**
|
|
250
|
-
* Retry configuration for the request
|
|
251
|
-
*/
|
|
252
|
-
export type Retry = {
|
|
253
|
-
/**
|
|
254
|
-
* Number of retry attempts (1-5)
|
|
255
|
-
*/
|
|
256
|
-
count?: number | undefined;
|
|
257
|
-
/**
|
|
258
|
-
* HTTP status codes that trigger retry logic
|
|
259
|
-
*/
|
|
260
|
-
onCodes?: Array<number> | undefined;
|
|
261
|
-
};
|
|
262
|
-
|
|
263
194
|
export const ModelConfigurationType = {
|
|
264
195
|
ExactMatch: "exact_match",
|
|
265
196
|
} as const;
|
|
@@ -320,10 +251,6 @@ export type ParametersT = {
|
|
|
320
251
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
321
252
|
*/
|
|
322
253
|
name?: string | undefined;
|
|
323
|
-
/**
|
|
324
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
325
|
-
*/
|
|
326
|
-
audio?: ModelConfigurationAudio | null | undefined;
|
|
327
254
|
/**
|
|
328
255
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
329
256
|
*/
|
|
@@ -340,18 +267,6 @@ export type ParametersT = {
|
|
|
340
267
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
341
268
|
*/
|
|
342
269
|
maxCompletionTokens?: number | null | undefined;
|
|
343
|
-
/**
|
|
344
|
-
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
|
|
345
|
-
*/
|
|
346
|
-
logprobs?: boolean | null | undefined;
|
|
347
|
-
/**
|
|
348
|
-
* An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
|
|
349
|
-
*/
|
|
350
|
-
topLogprobs?: number | null | undefined;
|
|
351
|
-
/**
|
|
352
|
-
* How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
|
|
353
|
-
*/
|
|
354
|
-
n?: number | null | undefined;
|
|
355
270
|
/**
|
|
356
271
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
357
272
|
*/
|
|
@@ -385,10 +300,6 @@ export type ParametersT = {
|
|
|
385
300
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
386
301
|
*/
|
|
387
302
|
stop?: string | Array<string> | null | undefined;
|
|
388
|
-
/**
|
|
389
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
390
|
-
*/
|
|
391
|
-
streamOptions?: StreamOptions | null | undefined;
|
|
392
303
|
thinking?:
|
|
393
304
|
| components.ThinkingConfigDisabledSchema
|
|
394
305
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -425,10 +336,6 @@ export type ParametersT = {
|
|
|
425
336
|
* Array of fallback models to use if primary model fails
|
|
426
337
|
*/
|
|
427
338
|
fallbacks?: Array<Fallbacks> | undefined;
|
|
428
|
-
/**
|
|
429
|
-
* Retry configuration for the request
|
|
430
|
-
*/
|
|
431
|
-
retry?: Retry | undefined;
|
|
432
339
|
/**
|
|
433
340
|
* Cache configuration for the request.
|
|
434
341
|
*/
|
|
@@ -446,7 +353,7 @@ export type ParametersT = {
|
|
|
446
353
|
/**
|
|
447
354
|
* Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
|
|
448
355
|
*/
|
|
449
|
-
export type
|
|
356
|
+
export type Retry = {
|
|
450
357
|
/**
|
|
451
358
|
* Number of retry attempts (1-5)
|
|
452
359
|
*/
|
|
@@ -474,7 +381,7 @@ export type ModelConfiguration2 = {
|
|
|
474
381
|
/**
|
|
475
382
|
* Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
|
|
476
383
|
*/
|
|
477
|
-
retry?:
|
|
384
|
+
retry?: Retry | undefined;
|
|
478
385
|
};
|
|
479
386
|
|
|
480
387
|
/**
|
|
@@ -482,55 +389,6 @@ export type ModelConfiguration2 = {
|
|
|
482
389
|
*/
|
|
483
390
|
export type ModelConfiguration = ModelConfiguration2 | string;
|
|
484
391
|
|
|
485
|
-
/**
|
|
486
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
487
|
-
*/
|
|
488
|
-
export const FallbackModelConfigurationVoice = {
|
|
489
|
-
Alloy: "alloy",
|
|
490
|
-
Echo: "echo",
|
|
491
|
-
Fable: "fable",
|
|
492
|
-
Onyx: "onyx",
|
|
493
|
-
Nova: "nova",
|
|
494
|
-
Shimmer: "shimmer",
|
|
495
|
-
} as const;
|
|
496
|
-
/**
|
|
497
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
498
|
-
*/
|
|
499
|
-
export type FallbackModelConfigurationVoice = ClosedEnum<
|
|
500
|
-
typeof FallbackModelConfigurationVoice
|
|
501
|
-
>;
|
|
502
|
-
|
|
503
|
-
/**
|
|
504
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
505
|
-
*/
|
|
506
|
-
export const FallbackModelConfigurationFormat = {
|
|
507
|
-
Wav: "wav",
|
|
508
|
-
Mp3: "mp3",
|
|
509
|
-
Flac: "flac",
|
|
510
|
-
Opus: "opus",
|
|
511
|
-
Pcm16: "pcm16",
|
|
512
|
-
} as const;
|
|
513
|
-
/**
|
|
514
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
515
|
-
*/
|
|
516
|
-
export type FallbackModelConfigurationFormat = ClosedEnum<
|
|
517
|
-
typeof FallbackModelConfigurationFormat
|
|
518
|
-
>;
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
522
|
-
*/
|
|
523
|
-
export type FallbackModelConfigurationAudio = {
|
|
524
|
-
/**
|
|
525
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
526
|
-
*/
|
|
527
|
-
voice: FallbackModelConfigurationVoice;
|
|
528
|
-
/**
|
|
529
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
530
|
-
*/
|
|
531
|
-
format: FallbackModelConfigurationFormat;
|
|
532
|
-
};
|
|
533
|
-
|
|
534
392
|
export type CreateAgentRequestResponseFormatAgentsJsonSchema = {
|
|
535
393
|
/**
|
|
536
394
|
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
@@ -627,16 +485,6 @@ export type FallbackModelConfigurationReasoningEffort = ClosedEnum<
|
|
|
627
485
|
*/
|
|
628
486
|
export type FallbackModelConfigurationStop = string | Array<string>;
|
|
629
487
|
|
|
630
|
-
/**
|
|
631
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
632
|
-
*/
|
|
633
|
-
export type FallbackModelConfigurationStreamOptions = {
|
|
634
|
-
/**
|
|
635
|
-
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
636
|
-
*/
|
|
637
|
-
includeUsage?: boolean | undefined;
|
|
638
|
-
};
|
|
639
|
-
|
|
640
488
|
export type FallbackModelConfigurationThinking =
|
|
641
489
|
| components.ThinkingConfigDisabledSchema
|
|
642
490
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -737,20 +585,6 @@ export type FallbackModelConfigurationFallbacks = {
|
|
|
737
585
|
model: string;
|
|
738
586
|
};
|
|
739
587
|
|
|
740
|
-
/**
|
|
741
|
-
* Retry configuration for the request
|
|
742
|
-
*/
|
|
743
|
-
export type FallbackModelConfigurationRetry = {
|
|
744
|
-
/**
|
|
745
|
-
* Number of retry attempts (1-5)
|
|
746
|
-
*/
|
|
747
|
-
count?: number | undefined;
|
|
748
|
-
/**
|
|
749
|
-
* HTTP status codes that trigger retry logic
|
|
750
|
-
*/
|
|
751
|
-
onCodes?: Array<number> | undefined;
|
|
752
|
-
};
|
|
753
|
-
|
|
754
588
|
export const FallbackModelConfigurationType = {
|
|
755
589
|
ExactMatch: "exact_match",
|
|
756
590
|
} as const;
|
|
@@ -816,10 +650,6 @@ export type FallbackModelConfigurationParameters = {
|
|
|
816
650
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
817
651
|
*/
|
|
818
652
|
name?: string | undefined;
|
|
819
|
-
/**
|
|
820
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
821
|
-
*/
|
|
822
|
-
audio?: FallbackModelConfigurationAudio | null | undefined;
|
|
823
653
|
/**
|
|
824
654
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
825
655
|
*/
|
|
@@ -836,18 +666,6 @@ export type FallbackModelConfigurationParameters = {
|
|
|
836
666
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
837
667
|
*/
|
|
838
668
|
maxCompletionTokens?: number | null | undefined;
|
|
839
|
-
/**
|
|
840
|
-
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
|
|
841
|
-
*/
|
|
842
|
-
logprobs?: boolean | null | undefined;
|
|
843
|
-
/**
|
|
844
|
-
* An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
|
|
845
|
-
*/
|
|
846
|
-
topLogprobs?: number | null | undefined;
|
|
847
|
-
/**
|
|
848
|
-
* How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
|
|
849
|
-
*/
|
|
850
|
-
n?: number | null | undefined;
|
|
851
669
|
/**
|
|
852
670
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
853
671
|
*/
|
|
@@ -885,10 +703,6 @@ export type FallbackModelConfigurationParameters = {
|
|
|
885
703
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
886
704
|
*/
|
|
887
705
|
stop?: string | Array<string> | null | undefined;
|
|
888
|
-
/**
|
|
889
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
890
|
-
*/
|
|
891
|
-
streamOptions?: FallbackModelConfigurationStreamOptions | null | undefined;
|
|
892
706
|
thinking?:
|
|
893
707
|
| components.ThinkingConfigDisabledSchema
|
|
894
708
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -928,10 +742,6 @@ export type FallbackModelConfigurationParameters = {
|
|
|
928
742
|
* Array of fallback models to use if primary model fails
|
|
929
743
|
*/
|
|
930
744
|
fallbacks?: Array<FallbackModelConfigurationFallbacks> | undefined;
|
|
931
|
-
/**
|
|
932
|
-
* Retry configuration for the request
|
|
933
|
-
*/
|
|
934
|
-
retry?: FallbackModelConfigurationRetry | undefined;
|
|
935
745
|
/**
|
|
936
746
|
* Cache configuration for the request.
|
|
937
747
|
*/
|
|
@@ -949,7 +759,7 @@ export type FallbackModelConfigurationParameters = {
|
|
|
949
759
|
/**
|
|
950
760
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
951
761
|
*/
|
|
952
|
-
export type
|
|
762
|
+
export type FallbackModelConfigurationRetry = {
|
|
953
763
|
/**
|
|
954
764
|
* Number of retry attempts (1-5)
|
|
955
765
|
*/
|
|
@@ -975,7 +785,7 @@ export type FallbackModelConfiguration2 = {
|
|
|
975
785
|
/**
|
|
976
786
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
977
787
|
*/
|
|
978
|
-
retry?:
|
|
788
|
+
retry?: FallbackModelConfigurationRetry | undefined;
|
|
979
789
|
};
|
|
980
790
|
|
|
981
791
|
/**
|
|
@@ -1804,55 +1614,6 @@ export type CreateAgentRequestSettings = {
|
|
|
1804
1614
|
guardrails?: Array<CreateAgentRequestAgentsGuardrails> | undefined;
|
|
1805
1615
|
};
|
|
1806
1616
|
|
|
1807
|
-
/**
|
|
1808
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
1809
|
-
*/
|
|
1810
|
-
export const CreateAgentRequestVoice = {
|
|
1811
|
-
Alloy: "alloy",
|
|
1812
|
-
Echo: "echo",
|
|
1813
|
-
Fable: "fable",
|
|
1814
|
-
Onyx: "onyx",
|
|
1815
|
-
Nova: "nova",
|
|
1816
|
-
Shimmer: "shimmer",
|
|
1817
|
-
} as const;
|
|
1818
|
-
/**
|
|
1819
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
1820
|
-
*/
|
|
1821
|
-
export type CreateAgentRequestVoice = ClosedEnum<
|
|
1822
|
-
typeof CreateAgentRequestVoice
|
|
1823
|
-
>;
|
|
1824
|
-
|
|
1825
|
-
/**
|
|
1826
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
1827
|
-
*/
|
|
1828
|
-
export const CreateAgentRequestFormat = {
|
|
1829
|
-
Wav: "wav",
|
|
1830
|
-
Mp3: "mp3",
|
|
1831
|
-
Flac: "flac",
|
|
1832
|
-
Opus: "opus",
|
|
1833
|
-
Pcm16: "pcm16",
|
|
1834
|
-
} as const;
|
|
1835
|
-
/**
|
|
1836
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
1837
|
-
*/
|
|
1838
|
-
export type CreateAgentRequestFormat = ClosedEnum<
|
|
1839
|
-
typeof CreateAgentRequestFormat
|
|
1840
|
-
>;
|
|
1841
|
-
|
|
1842
|
-
/**
|
|
1843
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
1844
|
-
*/
|
|
1845
|
-
export type CreateAgentRequestAudio = {
|
|
1846
|
-
/**
|
|
1847
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
1848
|
-
*/
|
|
1849
|
-
voice: CreateAgentRequestVoice;
|
|
1850
|
-
/**
|
|
1851
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
1852
|
-
*/
|
|
1853
|
-
format: CreateAgentRequestFormat;
|
|
1854
|
-
};
|
|
1855
|
-
|
|
1856
1617
|
export type CreateAgentRequestResponseFormatAgentsResponseJsonSchema = {
|
|
1857
1618
|
/**
|
|
1858
1619
|
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
@@ -1949,16 +1710,6 @@ export type CreateAgentRequestReasoningEffort = ClosedEnum<
|
|
|
1949
1710
|
*/
|
|
1950
1711
|
export type CreateAgentRequestStop = string | Array<string>;
|
|
1951
1712
|
|
|
1952
|
-
/**
|
|
1953
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
1954
|
-
*/
|
|
1955
|
-
export type CreateAgentRequestStreamOptions = {
|
|
1956
|
-
/**
|
|
1957
|
-
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
1958
|
-
*/
|
|
1959
|
-
includeUsage?: boolean | undefined;
|
|
1960
|
-
};
|
|
1961
|
-
|
|
1962
1713
|
export type CreateAgentRequestThinking =
|
|
1963
1714
|
| components.ThinkingConfigDisabledSchema
|
|
1964
1715
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -2062,20 +1813,6 @@ export type CreateAgentRequestFallbacks = {
|
|
|
2062
1813
|
model: string;
|
|
2063
1814
|
};
|
|
2064
1815
|
|
|
2065
|
-
/**
|
|
2066
|
-
* Retry configuration for the request
|
|
2067
|
-
*/
|
|
2068
|
-
export type CreateAgentRequestAgentsRetry = {
|
|
2069
|
-
/**
|
|
2070
|
-
* Number of retry attempts (1-5)
|
|
2071
|
-
*/
|
|
2072
|
-
count: number;
|
|
2073
|
-
/**
|
|
2074
|
-
* HTTP status codes that trigger retry logic
|
|
2075
|
-
*/
|
|
2076
|
-
onCodes?: Array<number> | undefined;
|
|
2077
|
-
};
|
|
2078
|
-
|
|
2079
1816
|
export const CreateAgentRequestType = {
|
|
2080
1817
|
ExactMatch: "exact_match",
|
|
2081
1818
|
} as const;
|
|
@@ -2139,10 +1876,6 @@ export type CreateAgentRequestParameters = {
|
|
|
2139
1876
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
2140
1877
|
*/
|
|
2141
1878
|
name?: string | undefined;
|
|
2142
|
-
/**
|
|
2143
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
2144
|
-
*/
|
|
2145
|
-
audio?: CreateAgentRequestAudio | null | undefined;
|
|
2146
1879
|
/**
|
|
2147
1880
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
2148
1881
|
*/
|
|
@@ -2159,18 +1892,6 @@ export type CreateAgentRequestParameters = {
|
|
|
2159
1892
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
2160
1893
|
*/
|
|
2161
1894
|
maxCompletionTokens?: number | null | undefined;
|
|
2162
|
-
/**
|
|
2163
|
-
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
|
|
2164
|
-
*/
|
|
2165
|
-
logprobs?: boolean | null | undefined;
|
|
2166
|
-
/**
|
|
2167
|
-
* An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
|
|
2168
|
-
*/
|
|
2169
|
-
topLogprobs?: number | null | undefined;
|
|
2170
|
-
/**
|
|
2171
|
-
* How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
|
|
2172
|
-
*/
|
|
2173
|
-
n?: number | null | undefined;
|
|
2174
1895
|
/**
|
|
2175
1896
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
2176
1897
|
*/
|
|
@@ -2208,10 +1929,6 @@ export type CreateAgentRequestParameters = {
|
|
|
2208
1929
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
2209
1930
|
*/
|
|
2210
1931
|
stop?: string | Array<string> | null | undefined;
|
|
2211
|
-
/**
|
|
2212
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
2213
|
-
*/
|
|
2214
|
-
streamOptions?: CreateAgentRequestStreamOptions | null | undefined;
|
|
2215
1932
|
thinking?:
|
|
2216
1933
|
| components.ThinkingConfigDisabledSchema
|
|
2217
1934
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -2251,10 +1968,6 @@ export type CreateAgentRequestParameters = {
|
|
|
2251
1968
|
* Array of fallback models to use if primary model fails
|
|
2252
1969
|
*/
|
|
2253
1970
|
fallbacks?: Array<CreateAgentRequestFallbacks> | undefined;
|
|
2254
|
-
/**
|
|
2255
|
-
* Retry configuration for the request
|
|
2256
|
-
*/
|
|
2257
|
-
retry?: CreateAgentRequestAgentsRetry | undefined;
|
|
2258
1971
|
/**
|
|
2259
1972
|
* Cache configuration for the request.
|
|
2260
1973
|
*/
|
|
@@ -2283,55 +1996,6 @@ export type CreateAgentRequestRetry = {
|
|
|
2283
1996
|
onCodes?: Array<number> | undefined;
|
|
2284
1997
|
};
|
|
2285
1998
|
|
|
2286
|
-
/**
|
|
2287
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
2288
|
-
*/
|
|
2289
|
-
export const CreateAgentRequestFallbackModelConfigurationVoice = {
|
|
2290
|
-
Alloy: "alloy",
|
|
2291
|
-
Echo: "echo",
|
|
2292
|
-
Fable: "fable",
|
|
2293
|
-
Onyx: "onyx",
|
|
2294
|
-
Nova: "nova",
|
|
2295
|
-
Shimmer: "shimmer",
|
|
2296
|
-
} as const;
|
|
2297
|
-
/**
|
|
2298
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
2299
|
-
*/
|
|
2300
|
-
export type CreateAgentRequestFallbackModelConfigurationVoice = ClosedEnum<
|
|
2301
|
-
typeof CreateAgentRequestFallbackModelConfigurationVoice
|
|
2302
|
-
>;
|
|
2303
|
-
|
|
2304
|
-
/**
|
|
2305
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
2306
|
-
*/
|
|
2307
|
-
export const CreateAgentRequestFallbackModelConfigurationFormat = {
|
|
2308
|
-
Wav: "wav",
|
|
2309
|
-
Mp3: "mp3",
|
|
2310
|
-
Flac: "flac",
|
|
2311
|
-
Opus: "opus",
|
|
2312
|
-
Pcm16: "pcm16",
|
|
2313
|
-
} as const;
|
|
2314
|
-
/**
|
|
2315
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
2316
|
-
*/
|
|
2317
|
-
export type CreateAgentRequestFallbackModelConfigurationFormat = ClosedEnum<
|
|
2318
|
-
typeof CreateAgentRequestFallbackModelConfigurationFormat
|
|
2319
|
-
>;
|
|
2320
|
-
|
|
2321
|
-
/**
|
|
2322
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
2323
|
-
*/
|
|
2324
|
-
export type CreateAgentRequestFallbackModelConfigurationAudio = {
|
|
2325
|
-
/**
|
|
2326
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
2327
|
-
*/
|
|
2328
|
-
voice: CreateAgentRequestFallbackModelConfigurationVoice;
|
|
2329
|
-
/**
|
|
2330
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
2331
|
-
*/
|
|
2332
|
-
format: CreateAgentRequestFallbackModelConfigurationFormat;
|
|
2333
|
-
};
|
|
2334
|
-
|
|
2335
1999
|
export type CreateAgentRequestResponseFormatAgentsResponse201ApplicationJSONJSONSchema =
|
|
2336
2000
|
{
|
|
2337
2001
|
/**
|
|
@@ -2434,16 +2098,6 @@ export type CreateAgentRequestFallbackModelConfigurationStop =
|
|
|
2434
2098
|
| string
|
|
2435
2099
|
| Array<string>;
|
|
2436
2100
|
|
|
2437
|
-
/**
|
|
2438
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
2439
|
-
*/
|
|
2440
|
-
export type CreateAgentRequestFallbackModelConfigurationStreamOptions = {
|
|
2441
|
-
/**
|
|
2442
|
-
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
2443
|
-
*/
|
|
2444
|
-
includeUsage?: boolean | undefined;
|
|
2445
|
-
};
|
|
2446
|
-
|
|
2447
2101
|
export type CreateAgentRequestFallbackModelConfigurationThinking =
|
|
2448
2102
|
| components.ThinkingConfigDisabledSchema
|
|
2449
2103
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -2548,20 +2202,6 @@ export type CreateAgentRequestFallbackModelConfigurationFallbacks = {
|
|
|
2548
2202
|
model: string;
|
|
2549
2203
|
};
|
|
2550
2204
|
|
|
2551
|
-
/**
|
|
2552
|
-
* Retry configuration for the request
|
|
2553
|
-
*/
|
|
2554
|
-
export type CreateAgentRequestFallbackModelConfigurationAgentsResponseRetry = {
|
|
2555
|
-
/**
|
|
2556
|
-
* Number of retry attempts (1-5)
|
|
2557
|
-
*/
|
|
2558
|
-
count: number;
|
|
2559
|
-
/**
|
|
2560
|
-
* HTTP status codes that trigger retry logic
|
|
2561
|
-
*/
|
|
2562
|
-
onCodes?: Array<number> | undefined;
|
|
2563
|
-
};
|
|
2564
|
-
|
|
2565
2205
|
export const CreateAgentRequestFallbackModelConfigurationType = {
|
|
2566
2206
|
ExactMatch: "exact_match",
|
|
2567
2207
|
} as const;
|
|
@@ -2627,10 +2267,6 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2627
2267
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
2628
2268
|
*/
|
|
2629
2269
|
name?: string | undefined;
|
|
2630
|
-
/**
|
|
2631
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
2632
|
-
*/
|
|
2633
|
-
audio?: CreateAgentRequestFallbackModelConfigurationAudio | null | undefined;
|
|
2634
2270
|
/**
|
|
2635
2271
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
2636
2272
|
*/
|
|
@@ -2647,18 +2283,6 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2647
2283
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
2648
2284
|
*/
|
|
2649
2285
|
maxCompletionTokens?: number | null | undefined;
|
|
2650
|
-
/**
|
|
2651
|
-
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
|
|
2652
|
-
*/
|
|
2653
|
-
logprobs?: boolean | null | undefined;
|
|
2654
|
-
/**
|
|
2655
|
-
* An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
|
|
2656
|
-
*/
|
|
2657
|
-
topLogprobs?: number | null | undefined;
|
|
2658
|
-
/**
|
|
2659
|
-
* How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
|
|
2660
|
-
*/
|
|
2661
|
-
n?: number | null | undefined;
|
|
2662
2286
|
/**
|
|
2663
2287
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
2664
2288
|
*/
|
|
@@ -2698,13 +2322,6 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2698
2322
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
2699
2323
|
*/
|
|
2700
2324
|
stop?: string | Array<string> | null | undefined;
|
|
2701
|
-
/**
|
|
2702
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
2703
|
-
*/
|
|
2704
|
-
streamOptions?:
|
|
2705
|
-
| CreateAgentRequestFallbackModelConfigurationStreamOptions
|
|
2706
|
-
| null
|
|
2707
|
-
| undefined;
|
|
2708
2325
|
thinking?:
|
|
2709
2326
|
| components.ThinkingConfigDisabledSchema
|
|
2710
2327
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -2751,12 +2368,6 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2751
2368
|
fallbacks?:
|
|
2752
2369
|
| Array<CreateAgentRequestFallbackModelConfigurationFallbacks>
|
|
2753
2370
|
| undefined;
|
|
2754
|
-
/**
|
|
2755
|
-
* Retry configuration for the request
|
|
2756
|
-
*/
|
|
2757
|
-
retry?:
|
|
2758
|
-
| CreateAgentRequestFallbackModelConfigurationAgentsResponseRetry
|
|
2759
|
-
| undefined;
|
|
2760
2371
|
/**
|
|
2761
2372
|
* Cache configuration for the request.
|
|
2762
2373
|
*/
|
|
@@ -2774,7 +2385,7 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2774
2385
|
/**
|
|
2775
2386
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
2776
2387
|
*/
|
|
2777
|
-
export type
|
|
2388
|
+
export type CreateAgentRequestFallbackModelConfigurationRetry = {
|
|
2778
2389
|
/**
|
|
2779
2390
|
* Number of retry attempts (1-5)
|
|
2780
2391
|
*/
|
|
@@ -2802,7 +2413,7 @@ export type CreateAgentRequestFallbackModelConfiguration2 = {
|
|
|
2802
2413
|
/**
|
|
2803
2414
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
2804
2415
|
*/
|
|
2805
|
-
retry?:
|
|
2416
|
+
retry?: CreateAgentRequestFallbackModelConfigurationRetry | undefined;
|
|
2806
2417
|
};
|
|
2807
2418
|
|
|
2808
2419
|
/**
|
|
@@ -2925,39 +2536,6 @@ export type CreateAgentRequestResponseBody = {
|
|
|
2925
2536
|
source?: CreateAgentRequestSource | undefined;
|
|
2926
2537
|
};
|
|
2927
2538
|
|
|
2928
|
-
/** @internal */
|
|
2929
|
-
export const Voice$outboundSchema: z.ZodNativeEnum<typeof Voice> = z.nativeEnum(
|
|
2930
|
-
Voice,
|
|
2931
|
-
);
|
|
2932
|
-
|
|
2933
|
-
/** @internal */
|
|
2934
|
-
export const Format$outboundSchema: z.ZodNativeEnum<typeof Format> = z
|
|
2935
|
-
.nativeEnum(Format);
|
|
2936
|
-
|
|
2937
|
-
/** @internal */
|
|
2938
|
-
export type ModelConfigurationAudio$Outbound = {
|
|
2939
|
-
voice: string;
|
|
2940
|
-
format: string;
|
|
2941
|
-
};
|
|
2942
|
-
|
|
2943
|
-
/** @internal */
|
|
2944
|
-
export const ModelConfigurationAudio$outboundSchema: z.ZodType<
|
|
2945
|
-
ModelConfigurationAudio$Outbound,
|
|
2946
|
-
z.ZodTypeDef,
|
|
2947
|
-
ModelConfigurationAudio
|
|
2948
|
-
> = z.object({
|
|
2949
|
-
voice: Voice$outboundSchema,
|
|
2950
|
-
format: Format$outboundSchema,
|
|
2951
|
-
});
|
|
2952
|
-
|
|
2953
|
-
export function modelConfigurationAudioToJSON(
|
|
2954
|
-
modelConfigurationAudio: ModelConfigurationAudio,
|
|
2955
|
-
): string {
|
|
2956
|
-
return JSON.stringify(
|
|
2957
|
-
ModelConfigurationAudio$outboundSchema.parse(modelConfigurationAudio),
|
|
2958
|
-
);
|
|
2959
|
-
}
|
|
2960
|
-
|
|
2961
2539
|
/** @internal */
|
|
2962
2540
|
export type ResponseFormatJsonSchema$Outbound = {
|
|
2963
2541
|
description?: string | undefined;
|
|
@@ -3080,28 +2658,6 @@ export function stopToJSON(stop: Stop): string {
|
|
|
3080
2658
|
return JSON.stringify(Stop$outboundSchema.parse(stop));
|
|
3081
2659
|
}
|
|
3082
2660
|
|
|
3083
|
-
/** @internal */
|
|
3084
|
-
export type StreamOptions$Outbound = {
|
|
3085
|
-
include_usage?: boolean | undefined;
|
|
3086
|
-
};
|
|
3087
|
-
|
|
3088
|
-
/** @internal */
|
|
3089
|
-
export const StreamOptions$outboundSchema: z.ZodType<
|
|
3090
|
-
StreamOptions$Outbound,
|
|
3091
|
-
z.ZodTypeDef,
|
|
3092
|
-
StreamOptions
|
|
3093
|
-
> = z.object({
|
|
3094
|
-
includeUsage: z.boolean().optional(),
|
|
3095
|
-
}).transform((v) => {
|
|
3096
|
-
return remap$(v, {
|
|
3097
|
-
includeUsage: "include_usage",
|
|
3098
|
-
});
|
|
3099
|
-
});
|
|
3100
|
-
|
|
3101
|
-
export function streamOptionsToJSON(streamOptions: StreamOptions): string {
|
|
3102
|
-
return JSON.stringify(StreamOptions$outboundSchema.parse(streamOptions));
|
|
3103
|
-
}
|
|
3104
|
-
|
|
3105
2661
|
/** @internal */
|
|
3106
2662
|
export type Thinking$Outbound =
|
|
3107
2663
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
@@ -3244,39 +2800,15 @@ export type Fallbacks$Outbound = {
|
|
|
3244
2800
|
|
|
3245
2801
|
/** @internal */
|
|
3246
2802
|
export const Fallbacks$outboundSchema: z.ZodType<
|
|
3247
|
-
Fallbacks$Outbound,
|
|
3248
|
-
z.ZodTypeDef,
|
|
3249
|
-
Fallbacks
|
|
3250
|
-
> = z.object({
|
|
3251
|
-
model: z.string(),
|
|
3252
|
-
});
|
|
3253
|
-
|
|
3254
|
-
export function fallbacksToJSON(fallbacks: Fallbacks): string {
|
|
3255
|
-
return JSON.stringify(Fallbacks$outboundSchema.parse(fallbacks));
|
|
3256
|
-
}
|
|
3257
|
-
|
|
3258
|
-
/** @internal */
|
|
3259
|
-
export type Retry$Outbound = {
|
|
3260
|
-
count: number;
|
|
3261
|
-
on_codes?: Array<number> | undefined;
|
|
3262
|
-
};
|
|
3263
|
-
|
|
3264
|
-
/** @internal */
|
|
3265
|
-
export const Retry$outboundSchema: z.ZodType<
|
|
3266
|
-
Retry$Outbound,
|
|
3267
|
-
z.ZodTypeDef,
|
|
3268
|
-
Retry
|
|
3269
|
-
> = z.object({
|
|
3270
|
-
count: z.number().default(3),
|
|
3271
|
-
onCodes: z.array(z.number()).optional(),
|
|
3272
|
-
}).transform((v) => {
|
|
3273
|
-
return remap$(v, {
|
|
3274
|
-
onCodes: "on_codes",
|
|
3275
|
-
});
|
|
2803
|
+
Fallbacks$Outbound,
|
|
2804
|
+
z.ZodTypeDef,
|
|
2805
|
+
Fallbacks
|
|
2806
|
+
> = z.object({
|
|
2807
|
+
model: z.string(),
|
|
3276
2808
|
});
|
|
3277
2809
|
|
|
3278
|
-
export function
|
|
3279
|
-
return JSON.stringify(
|
|
2810
|
+
export function fallbacksToJSON(fallbacks: Fallbacks): string {
|
|
2811
|
+
return JSON.stringify(Fallbacks$outboundSchema.parse(fallbacks));
|
|
3280
2812
|
}
|
|
3281
2813
|
|
|
3282
2814
|
/** @internal */
|
|
@@ -3388,13 +2920,9 @@ export function timeoutToJSON(timeout: Timeout): string {
|
|
|
3388
2920
|
/** @internal */
|
|
3389
2921
|
export type ParametersT$Outbound = {
|
|
3390
2922
|
name?: string | undefined;
|
|
3391
|
-
audio?: ModelConfigurationAudio$Outbound | null | undefined;
|
|
3392
2923
|
frequency_penalty?: number | null | undefined;
|
|
3393
2924
|
max_tokens?: number | null | undefined;
|
|
3394
2925
|
max_completion_tokens?: number | null | undefined;
|
|
3395
|
-
logprobs?: boolean | null | undefined;
|
|
3396
|
-
top_logprobs?: number | null | undefined;
|
|
3397
|
-
n?: number | null | undefined;
|
|
3398
2926
|
presence_penalty?: number | null | undefined;
|
|
3399
2927
|
response_format?:
|
|
3400
2928
|
| Text$Outbound
|
|
@@ -3405,7 +2933,6 @@ export type ParametersT$Outbound = {
|
|
|
3405
2933
|
verbosity?: string | undefined;
|
|
3406
2934
|
seed?: number | null | undefined;
|
|
3407
2935
|
stop?: string | Array<string> | null | undefined;
|
|
3408
|
-
stream_options?: StreamOptions$Outbound | null | undefined;
|
|
3409
2936
|
thinking?:
|
|
3410
2937
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3411
2938
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
@@ -3418,7 +2945,6 @@ export type ParametersT$Outbound = {
|
|
|
3418
2945
|
modalities?: Array<string> | null | undefined;
|
|
3419
2946
|
guardrails?: Array<Guardrails$Outbound> | undefined;
|
|
3420
2947
|
fallbacks?: Array<Fallbacks$Outbound> | undefined;
|
|
3421
|
-
retry?: Retry$Outbound | undefined;
|
|
3422
2948
|
cache?: Cache$Outbound | undefined;
|
|
3423
2949
|
load_balancer?: LoadBalancer1$Outbound | undefined;
|
|
3424
2950
|
timeout?: Timeout$Outbound | undefined;
|
|
@@ -3431,14 +2957,9 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
3431
2957
|
ParametersT
|
|
3432
2958
|
> = z.object({
|
|
3433
2959
|
name: z.string().optional(),
|
|
3434
|
-
audio: z.nullable(z.lazy(() => ModelConfigurationAudio$outboundSchema))
|
|
3435
|
-
.optional(),
|
|
3436
2960
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
3437
2961
|
maxTokens: z.nullable(z.number().int()).optional(),
|
|
3438
2962
|
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
3439
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
3440
|
-
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
3441
|
-
n: z.nullable(z.number().int()).optional(),
|
|
3442
2963
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
3443
2964
|
responseFormat: z.union([
|
|
3444
2965
|
z.lazy(() => Text$outboundSchema),
|
|
@@ -3449,8 +2970,6 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
3449
2970
|
verbosity: z.string().optional(),
|
|
3450
2971
|
seed: z.nullable(z.number()).optional(),
|
|
3451
2972
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
3452
|
-
streamOptions: z.nullable(z.lazy(() => StreamOptions$outboundSchema))
|
|
3453
|
-
.optional(),
|
|
3454
2973
|
thinking: z.union([
|
|
3455
2974
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3456
2975
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
@@ -3466,7 +2985,6 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
3466
2985
|
modalities: z.nullable(z.array(Modalities$outboundSchema)).optional(),
|
|
3467
2986
|
guardrails: z.array(z.lazy(() => Guardrails$outboundSchema)).optional(),
|
|
3468
2987
|
fallbacks: z.array(z.lazy(() => Fallbacks$outboundSchema)).optional(),
|
|
3469
|
-
retry: z.lazy(() => Retry$outboundSchema).optional(),
|
|
3470
2988
|
cache: z.lazy(() => Cache$outboundSchema).optional(),
|
|
3471
2989
|
loadBalancer: z.lazy(() => LoadBalancer1$outboundSchema).optional(),
|
|
3472
2990
|
timeout: z.lazy(() => Timeout$outboundSchema).optional(),
|
|
@@ -3475,11 +2993,9 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
3475
2993
|
frequencyPenalty: "frequency_penalty",
|
|
3476
2994
|
maxTokens: "max_tokens",
|
|
3477
2995
|
maxCompletionTokens: "max_completion_tokens",
|
|
3478
|
-
topLogprobs: "top_logprobs",
|
|
3479
2996
|
presencePenalty: "presence_penalty",
|
|
3480
2997
|
responseFormat: "response_format",
|
|
3481
2998
|
reasoningEffort: "reasoning_effort",
|
|
3482
|
-
streamOptions: "stream_options",
|
|
3483
2999
|
topP: "top_p",
|
|
3484
3000
|
topK: "top_k",
|
|
3485
3001
|
toolChoice: "tool_choice",
|
|
@@ -3493,16 +3009,16 @@ export function parametersToJSON(parametersT: ParametersT): string {
|
|
|
3493
3009
|
}
|
|
3494
3010
|
|
|
3495
3011
|
/** @internal */
|
|
3496
|
-
export type
|
|
3012
|
+
export type Retry$Outbound = {
|
|
3497
3013
|
count: number;
|
|
3498
3014
|
on_codes?: Array<number> | undefined;
|
|
3499
3015
|
};
|
|
3500
3016
|
|
|
3501
3017
|
/** @internal */
|
|
3502
|
-
export const
|
|
3503
|
-
|
|
3018
|
+
export const Retry$outboundSchema: z.ZodType<
|
|
3019
|
+
Retry$Outbound,
|
|
3504
3020
|
z.ZodTypeDef,
|
|
3505
|
-
|
|
3021
|
+
Retry
|
|
3506
3022
|
> = z.object({
|
|
3507
3023
|
count: z.number().default(3),
|
|
3508
3024
|
onCodes: z.array(z.number()).optional(),
|
|
@@ -3512,19 +3028,15 @@ export const ModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
|
3512
3028
|
});
|
|
3513
3029
|
});
|
|
3514
3030
|
|
|
3515
|
-
export function
|
|
3516
|
-
|
|
3517
|
-
): string {
|
|
3518
|
-
return JSON.stringify(
|
|
3519
|
-
ModelConfigurationRetry$outboundSchema.parse(modelConfigurationRetry),
|
|
3520
|
-
);
|
|
3031
|
+
export function retryToJSON(retry: Retry): string {
|
|
3032
|
+
return JSON.stringify(Retry$outboundSchema.parse(retry));
|
|
3521
3033
|
}
|
|
3522
3034
|
|
|
3523
3035
|
/** @internal */
|
|
3524
3036
|
export type ModelConfiguration2$Outbound = {
|
|
3525
3037
|
id: string;
|
|
3526
3038
|
parameters?: ParametersT$Outbound | undefined;
|
|
3527
|
-
retry?:
|
|
3039
|
+
retry?: Retry$Outbound | undefined;
|
|
3528
3040
|
};
|
|
3529
3041
|
|
|
3530
3042
|
/** @internal */
|
|
@@ -3535,7 +3047,7 @@ export const ModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
3535
3047
|
> = z.object({
|
|
3536
3048
|
id: z.string(),
|
|
3537
3049
|
parameters: z.lazy(() => ParametersT$outboundSchema).optional(),
|
|
3538
|
-
retry: z.lazy(() =>
|
|
3050
|
+
retry: z.lazy(() => Retry$outboundSchema).optional(),
|
|
3539
3051
|
});
|
|
3540
3052
|
|
|
3541
3053
|
export function modelConfiguration2ToJSON(
|
|
@@ -3564,42 +3076,6 @@ export function modelConfigurationToJSON(
|
|
|
3564
3076
|
);
|
|
3565
3077
|
}
|
|
3566
3078
|
|
|
3567
|
-
/** @internal */
|
|
3568
|
-
export const FallbackModelConfigurationVoice$outboundSchema: z.ZodNativeEnum<
|
|
3569
|
-
typeof FallbackModelConfigurationVoice
|
|
3570
|
-
> = z.nativeEnum(FallbackModelConfigurationVoice);
|
|
3571
|
-
|
|
3572
|
-
/** @internal */
|
|
3573
|
-
export const FallbackModelConfigurationFormat$outboundSchema: z.ZodNativeEnum<
|
|
3574
|
-
typeof FallbackModelConfigurationFormat
|
|
3575
|
-
> = z.nativeEnum(FallbackModelConfigurationFormat);
|
|
3576
|
-
|
|
3577
|
-
/** @internal */
|
|
3578
|
-
export type FallbackModelConfigurationAudio$Outbound = {
|
|
3579
|
-
voice: string;
|
|
3580
|
-
format: string;
|
|
3581
|
-
};
|
|
3582
|
-
|
|
3583
|
-
/** @internal */
|
|
3584
|
-
export const FallbackModelConfigurationAudio$outboundSchema: z.ZodType<
|
|
3585
|
-
FallbackModelConfigurationAudio$Outbound,
|
|
3586
|
-
z.ZodTypeDef,
|
|
3587
|
-
FallbackModelConfigurationAudio
|
|
3588
|
-
> = z.object({
|
|
3589
|
-
voice: FallbackModelConfigurationVoice$outboundSchema,
|
|
3590
|
-
format: FallbackModelConfigurationFormat$outboundSchema,
|
|
3591
|
-
});
|
|
3592
|
-
|
|
3593
|
-
export function fallbackModelConfigurationAudioToJSON(
|
|
3594
|
-
fallbackModelConfigurationAudio: FallbackModelConfigurationAudio,
|
|
3595
|
-
): string {
|
|
3596
|
-
return JSON.stringify(
|
|
3597
|
-
FallbackModelConfigurationAudio$outboundSchema.parse(
|
|
3598
|
-
fallbackModelConfigurationAudio,
|
|
3599
|
-
),
|
|
3600
|
-
);
|
|
3601
|
-
}
|
|
3602
|
-
|
|
3603
3079
|
/** @internal */
|
|
3604
3080
|
export type CreateAgentRequestResponseFormatAgentsJsonSchema$Outbound = {
|
|
3605
3081
|
description?: string | undefined;
|
|
@@ -3763,35 +3239,6 @@ export function fallbackModelConfigurationStopToJSON(
|
|
|
3763
3239
|
);
|
|
3764
3240
|
}
|
|
3765
3241
|
|
|
3766
|
-
/** @internal */
|
|
3767
|
-
export type FallbackModelConfigurationStreamOptions$Outbound = {
|
|
3768
|
-
include_usage?: boolean | undefined;
|
|
3769
|
-
};
|
|
3770
|
-
|
|
3771
|
-
/** @internal */
|
|
3772
|
-
export const FallbackModelConfigurationStreamOptions$outboundSchema: z.ZodType<
|
|
3773
|
-
FallbackModelConfigurationStreamOptions$Outbound,
|
|
3774
|
-
z.ZodTypeDef,
|
|
3775
|
-
FallbackModelConfigurationStreamOptions
|
|
3776
|
-
> = z.object({
|
|
3777
|
-
includeUsage: z.boolean().optional(),
|
|
3778
|
-
}).transform((v) => {
|
|
3779
|
-
return remap$(v, {
|
|
3780
|
-
includeUsage: "include_usage",
|
|
3781
|
-
});
|
|
3782
|
-
});
|
|
3783
|
-
|
|
3784
|
-
export function fallbackModelConfigurationStreamOptionsToJSON(
|
|
3785
|
-
fallbackModelConfigurationStreamOptions:
|
|
3786
|
-
FallbackModelConfigurationStreamOptions,
|
|
3787
|
-
): string {
|
|
3788
|
-
return JSON.stringify(
|
|
3789
|
-
FallbackModelConfigurationStreamOptions$outboundSchema.parse(
|
|
3790
|
-
fallbackModelConfigurationStreamOptions,
|
|
3791
|
-
),
|
|
3792
|
-
);
|
|
3793
|
-
}
|
|
3794
|
-
|
|
3795
3242
|
/** @internal */
|
|
3796
3243
|
export type FallbackModelConfigurationThinking$Outbound =
|
|
3797
3244
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
@@ -3993,36 +3440,6 @@ export function fallbackModelConfigurationFallbacksToJSON(
|
|
|
3993
3440
|
);
|
|
3994
3441
|
}
|
|
3995
3442
|
|
|
3996
|
-
/** @internal */
|
|
3997
|
-
export type FallbackModelConfigurationRetry$Outbound = {
|
|
3998
|
-
count: number;
|
|
3999
|
-
on_codes?: Array<number> | undefined;
|
|
4000
|
-
};
|
|
4001
|
-
|
|
4002
|
-
/** @internal */
|
|
4003
|
-
export const FallbackModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
4004
|
-
FallbackModelConfigurationRetry$Outbound,
|
|
4005
|
-
z.ZodTypeDef,
|
|
4006
|
-
FallbackModelConfigurationRetry
|
|
4007
|
-
> = z.object({
|
|
4008
|
-
count: z.number().default(3),
|
|
4009
|
-
onCodes: z.array(z.number()).optional(),
|
|
4010
|
-
}).transform((v) => {
|
|
4011
|
-
return remap$(v, {
|
|
4012
|
-
onCodes: "on_codes",
|
|
4013
|
-
});
|
|
4014
|
-
});
|
|
4015
|
-
|
|
4016
|
-
export function fallbackModelConfigurationRetryToJSON(
|
|
4017
|
-
fallbackModelConfigurationRetry: FallbackModelConfigurationRetry,
|
|
4018
|
-
): string {
|
|
4019
|
-
return JSON.stringify(
|
|
4020
|
-
FallbackModelConfigurationRetry$outboundSchema.parse(
|
|
4021
|
-
fallbackModelConfigurationRetry,
|
|
4022
|
-
),
|
|
4023
|
-
);
|
|
4024
|
-
}
|
|
4025
|
-
|
|
4026
3443
|
/** @internal */
|
|
4027
3444
|
export const FallbackModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
4028
3445
|
typeof FallbackModelConfigurationType
|
|
@@ -4162,13 +3579,9 @@ export function fallbackModelConfigurationTimeoutToJSON(
|
|
|
4162
3579
|
/** @internal */
|
|
4163
3580
|
export type FallbackModelConfigurationParameters$Outbound = {
|
|
4164
3581
|
name?: string | undefined;
|
|
4165
|
-
audio?: FallbackModelConfigurationAudio$Outbound | null | undefined;
|
|
4166
3582
|
frequency_penalty?: number | null | undefined;
|
|
4167
3583
|
max_tokens?: number | null | undefined;
|
|
4168
3584
|
max_completion_tokens?: number | null | undefined;
|
|
4169
|
-
logprobs?: boolean | null | undefined;
|
|
4170
|
-
top_logprobs?: number | null | undefined;
|
|
4171
|
-
n?: number | null | undefined;
|
|
4172
3585
|
presence_penalty?: number | null | undefined;
|
|
4173
3586
|
response_format?:
|
|
4174
3587
|
| ResponseFormatText$Outbound
|
|
@@ -4179,10 +3592,6 @@ export type FallbackModelConfigurationParameters$Outbound = {
|
|
|
4179
3592
|
verbosity?: string | undefined;
|
|
4180
3593
|
seed?: number | null | undefined;
|
|
4181
3594
|
stop?: string | Array<string> | null | undefined;
|
|
4182
|
-
stream_options?:
|
|
4183
|
-
| FallbackModelConfigurationStreamOptions$Outbound
|
|
4184
|
-
| null
|
|
4185
|
-
| undefined;
|
|
4186
3595
|
thinking?:
|
|
4187
3596
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
4188
3597
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
@@ -4195,7 +3604,6 @@ export type FallbackModelConfigurationParameters$Outbound = {
|
|
|
4195
3604
|
modalities?: Array<string> | null | undefined;
|
|
4196
3605
|
guardrails?: Array<FallbackModelConfigurationGuardrails$Outbound> | undefined;
|
|
4197
3606
|
fallbacks?: Array<FallbackModelConfigurationFallbacks$Outbound> | undefined;
|
|
4198
|
-
retry?: FallbackModelConfigurationRetry$Outbound | undefined;
|
|
4199
3607
|
cache?: FallbackModelConfigurationCache$Outbound | undefined;
|
|
4200
3608
|
load_balancer?: CreateAgentRequestLoadBalancer1$Outbound | undefined;
|
|
4201
3609
|
timeout?: FallbackModelConfigurationTimeout$Outbound | undefined;
|
|
@@ -4208,15 +3616,9 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
4208
3616
|
FallbackModelConfigurationParameters
|
|
4209
3617
|
> = z.object({
|
|
4210
3618
|
name: z.string().optional(),
|
|
4211
|
-
audio: z.nullable(
|
|
4212
|
-
z.lazy(() => FallbackModelConfigurationAudio$outboundSchema),
|
|
4213
|
-
).optional(),
|
|
4214
3619
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
4215
3620
|
maxTokens: z.nullable(z.number().int()).optional(),
|
|
4216
3621
|
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
4217
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
4218
|
-
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
4219
|
-
n: z.nullable(z.number().int()).optional(),
|
|
4220
3622
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
4221
3623
|
responseFormat: z.union([
|
|
4222
3624
|
z.lazy(() => ResponseFormatText$outboundSchema),
|
|
@@ -4228,9 +3630,6 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
4228
3630
|
verbosity: z.string().optional(),
|
|
4229
3631
|
seed: z.nullable(z.number()).optional(),
|
|
4230
3632
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
4231
|
-
streamOptions: z.nullable(
|
|
4232
|
-
z.lazy(() => FallbackModelConfigurationStreamOptions$outboundSchema),
|
|
4233
|
-
).optional(),
|
|
4234
3633
|
thinking: z.union([
|
|
4235
3634
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
4236
3635
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
@@ -4252,8 +3651,6 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
4252
3651
|
fallbacks: z.array(
|
|
4253
3652
|
z.lazy(() => FallbackModelConfigurationFallbacks$outboundSchema),
|
|
4254
3653
|
).optional(),
|
|
4255
|
-
retry: z.lazy(() => FallbackModelConfigurationRetry$outboundSchema)
|
|
4256
|
-
.optional(),
|
|
4257
3654
|
cache: z.lazy(() => FallbackModelConfigurationCache$outboundSchema)
|
|
4258
3655
|
.optional(),
|
|
4259
3656
|
loadBalancer: z.lazy(() => CreateAgentRequestLoadBalancer1$outboundSchema)
|
|
@@ -4265,11 +3662,9 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
4265
3662
|
frequencyPenalty: "frequency_penalty",
|
|
4266
3663
|
maxTokens: "max_tokens",
|
|
4267
3664
|
maxCompletionTokens: "max_completion_tokens",
|
|
4268
|
-
topLogprobs: "top_logprobs",
|
|
4269
3665
|
presencePenalty: "presence_penalty",
|
|
4270
3666
|
responseFormat: "response_format",
|
|
4271
3667
|
reasoningEffort: "reasoning_effort",
|
|
4272
|
-
streamOptions: "stream_options",
|
|
4273
3668
|
topP: "top_p",
|
|
4274
3669
|
topK: "top_k",
|
|
4275
3670
|
toolChoice: "tool_choice",
|
|
@@ -4289,33 +3684,31 @@ export function fallbackModelConfigurationParametersToJSON(
|
|
|
4289
3684
|
}
|
|
4290
3685
|
|
|
4291
3686
|
/** @internal */
|
|
4292
|
-
export type
|
|
3687
|
+
export type FallbackModelConfigurationRetry$Outbound = {
|
|
4293
3688
|
count: number;
|
|
4294
3689
|
on_codes?: Array<number> | undefined;
|
|
4295
3690
|
};
|
|
4296
3691
|
|
|
4297
3692
|
/** @internal */
|
|
4298
|
-
export const
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
onCodes: "on_codes",
|
|
4309
|
-
});
|
|
3693
|
+
export const FallbackModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
3694
|
+
FallbackModelConfigurationRetry$Outbound,
|
|
3695
|
+
z.ZodTypeDef,
|
|
3696
|
+
FallbackModelConfigurationRetry
|
|
3697
|
+
> = z.object({
|
|
3698
|
+
count: z.number().default(3),
|
|
3699
|
+
onCodes: z.array(z.number()).optional(),
|
|
3700
|
+
}).transform((v) => {
|
|
3701
|
+
return remap$(v, {
|
|
3702
|
+
onCodes: "on_codes",
|
|
4310
3703
|
});
|
|
3704
|
+
});
|
|
4311
3705
|
|
|
4312
|
-
export function
|
|
4313
|
-
|
|
4314
|
-
CreateAgentRequestFallbackModelConfigurationRetry,
|
|
3706
|
+
export function fallbackModelConfigurationRetryToJSON(
|
|
3707
|
+
fallbackModelConfigurationRetry: FallbackModelConfigurationRetry,
|
|
4315
3708
|
): string {
|
|
4316
3709
|
return JSON.stringify(
|
|
4317
|
-
|
|
4318
|
-
|
|
3710
|
+
FallbackModelConfigurationRetry$outboundSchema.parse(
|
|
3711
|
+
fallbackModelConfigurationRetry,
|
|
4319
3712
|
),
|
|
4320
3713
|
);
|
|
4321
3714
|
}
|
|
@@ -4324,9 +3717,7 @@ export function createAgentRequestFallbackModelConfigurationRetryToJSON(
|
|
|
4324
3717
|
export type FallbackModelConfiguration2$Outbound = {
|
|
4325
3718
|
id: string;
|
|
4326
3719
|
parameters?: FallbackModelConfigurationParameters$Outbound | undefined;
|
|
4327
|
-
retry?:
|
|
4328
|
-
| CreateAgentRequestFallbackModelConfigurationRetry$Outbound
|
|
4329
|
-
| undefined;
|
|
3720
|
+
retry?: FallbackModelConfigurationRetry$Outbound | undefined;
|
|
4330
3721
|
};
|
|
4331
3722
|
|
|
4332
3723
|
/** @internal */
|
|
@@ -4338,9 +3729,8 @@ export const FallbackModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
4338
3729
|
id: z.string(),
|
|
4339
3730
|
parameters: z.lazy(() => FallbackModelConfigurationParameters$outboundSchema)
|
|
4340
3731
|
.optional(),
|
|
4341
|
-
retry: z.lazy(() =>
|
|
4342
|
-
|
|
4343
|
-
).optional(),
|
|
3732
|
+
retry: z.lazy(() => FallbackModelConfigurationRetry$outboundSchema)
|
|
3733
|
+
.optional(),
|
|
4344
3734
|
});
|
|
4345
3735
|
|
|
4346
3736
|
export function fallbackModelConfiguration2ToJSON(
|
|
@@ -5479,36 +4869,6 @@ export function createAgentRequestSettingsFromJSON(
|
|
|
5479
4869
|
);
|
|
5480
4870
|
}
|
|
5481
4871
|
|
|
5482
|
-
/** @internal */
|
|
5483
|
-
export const CreateAgentRequestVoice$inboundSchema: z.ZodNativeEnum<
|
|
5484
|
-
typeof CreateAgentRequestVoice
|
|
5485
|
-
> = z.nativeEnum(CreateAgentRequestVoice);
|
|
5486
|
-
|
|
5487
|
-
/** @internal */
|
|
5488
|
-
export const CreateAgentRequestFormat$inboundSchema: z.ZodNativeEnum<
|
|
5489
|
-
typeof CreateAgentRequestFormat
|
|
5490
|
-
> = z.nativeEnum(CreateAgentRequestFormat);
|
|
5491
|
-
|
|
5492
|
-
/** @internal */
|
|
5493
|
-
export const CreateAgentRequestAudio$inboundSchema: z.ZodType<
|
|
5494
|
-
CreateAgentRequestAudio,
|
|
5495
|
-
z.ZodTypeDef,
|
|
5496
|
-
unknown
|
|
5497
|
-
> = z.object({
|
|
5498
|
-
voice: CreateAgentRequestVoice$inboundSchema,
|
|
5499
|
-
format: CreateAgentRequestFormat$inboundSchema,
|
|
5500
|
-
});
|
|
5501
|
-
|
|
5502
|
-
export function createAgentRequestAudioFromJSON(
|
|
5503
|
-
jsonString: string,
|
|
5504
|
-
): SafeParseResult<CreateAgentRequestAudio, SDKValidationError> {
|
|
5505
|
-
return safeParse(
|
|
5506
|
-
jsonString,
|
|
5507
|
-
(x) => CreateAgentRequestAudio$inboundSchema.parse(JSON.parse(x)),
|
|
5508
|
-
`Failed to parse 'CreateAgentRequestAudio' from JSON`,
|
|
5509
|
-
);
|
|
5510
|
-
}
|
|
5511
|
-
|
|
5512
4872
|
/** @internal */
|
|
5513
4873
|
export const CreateAgentRequestResponseFormatAgentsResponseJsonSchema$inboundSchema:
|
|
5514
4874
|
z.ZodType<
|
|
@@ -5657,29 +5017,6 @@ export function createAgentRequestStopFromJSON(
|
|
|
5657
5017
|
);
|
|
5658
5018
|
}
|
|
5659
5019
|
|
|
5660
|
-
/** @internal */
|
|
5661
|
-
export const CreateAgentRequestStreamOptions$inboundSchema: z.ZodType<
|
|
5662
|
-
CreateAgentRequestStreamOptions,
|
|
5663
|
-
z.ZodTypeDef,
|
|
5664
|
-
unknown
|
|
5665
|
-
> = z.object({
|
|
5666
|
-
include_usage: z.boolean().optional(),
|
|
5667
|
-
}).transform((v) => {
|
|
5668
|
-
return remap$(v, {
|
|
5669
|
-
"include_usage": "includeUsage",
|
|
5670
|
-
});
|
|
5671
|
-
});
|
|
5672
|
-
|
|
5673
|
-
export function createAgentRequestStreamOptionsFromJSON(
|
|
5674
|
-
jsonString: string,
|
|
5675
|
-
): SafeParseResult<CreateAgentRequestStreamOptions, SDKValidationError> {
|
|
5676
|
-
return safeParse(
|
|
5677
|
-
jsonString,
|
|
5678
|
-
(x) => CreateAgentRequestStreamOptions$inboundSchema.parse(JSON.parse(x)),
|
|
5679
|
-
`Failed to parse 'CreateAgentRequestStreamOptions' from JSON`,
|
|
5680
|
-
);
|
|
5681
|
-
}
|
|
5682
|
-
|
|
5683
5020
|
/** @internal */
|
|
5684
5021
|
export const CreateAgentRequestThinking$inboundSchema: z.ZodType<
|
|
5685
5022
|
CreateAgentRequestThinking,
|
|
@@ -5858,30 +5195,6 @@ export function createAgentRequestFallbacksFromJSON(
|
|
|
5858
5195
|
);
|
|
5859
5196
|
}
|
|
5860
5197
|
|
|
5861
|
-
/** @internal */
|
|
5862
|
-
export const CreateAgentRequestAgentsRetry$inboundSchema: z.ZodType<
|
|
5863
|
-
CreateAgentRequestAgentsRetry,
|
|
5864
|
-
z.ZodTypeDef,
|
|
5865
|
-
unknown
|
|
5866
|
-
> = z.object({
|
|
5867
|
-
count: z.number().default(3),
|
|
5868
|
-
on_codes: z.array(z.number()).optional(),
|
|
5869
|
-
}).transform((v) => {
|
|
5870
|
-
return remap$(v, {
|
|
5871
|
-
"on_codes": "onCodes",
|
|
5872
|
-
});
|
|
5873
|
-
});
|
|
5874
|
-
|
|
5875
|
-
export function createAgentRequestAgentsRetryFromJSON(
|
|
5876
|
-
jsonString: string,
|
|
5877
|
-
): SafeParseResult<CreateAgentRequestAgentsRetry, SDKValidationError> {
|
|
5878
|
-
return safeParse(
|
|
5879
|
-
jsonString,
|
|
5880
|
-
(x) => CreateAgentRequestAgentsRetry$inboundSchema.parse(JSON.parse(x)),
|
|
5881
|
-
`Failed to parse 'CreateAgentRequestAgentsRetry' from JSON`,
|
|
5882
|
-
);
|
|
5883
|
-
}
|
|
5884
|
-
|
|
5885
5198
|
/** @internal */
|
|
5886
5199
|
export const CreateAgentRequestType$inboundSchema: z.ZodNativeEnum<
|
|
5887
5200
|
typeof CreateAgentRequestType
|
|
@@ -6003,14 +5316,9 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
6003
5316
|
unknown
|
|
6004
5317
|
> = z.object({
|
|
6005
5318
|
name: z.string().optional(),
|
|
6006
|
-
audio: z.nullable(z.lazy(() => CreateAgentRequestAudio$inboundSchema))
|
|
6007
|
-
.optional(),
|
|
6008
5319
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
6009
5320
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
6010
5321
|
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
6011
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
6012
|
-
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
6013
|
-
n: z.nullable(z.number().int()).optional(),
|
|
6014
5322
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
6015
5323
|
response_format: z.union([
|
|
6016
5324
|
z.lazy(() => CreateAgentRequestResponseFormatText$inboundSchema),
|
|
@@ -6023,9 +5331,6 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
6023
5331
|
verbosity: z.string().optional(),
|
|
6024
5332
|
seed: z.nullable(z.number()).optional(),
|
|
6025
5333
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
6026
|
-
stream_options: z.nullable(
|
|
6027
|
-
z.lazy(() => CreateAgentRequestStreamOptions$inboundSchema),
|
|
6028
|
-
).optional(),
|
|
6029
5334
|
thinking: z.union([
|
|
6030
5335
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
6031
5336
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -6045,7 +5350,6 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
6045
5350
|
).optional(),
|
|
6046
5351
|
fallbacks: z.array(z.lazy(() => CreateAgentRequestFallbacks$inboundSchema))
|
|
6047
5352
|
.optional(),
|
|
6048
|
-
retry: z.lazy(() => CreateAgentRequestAgentsRetry$inboundSchema).optional(),
|
|
6049
5353
|
cache: z.lazy(() => CreateAgentRequestCache$inboundSchema).optional(),
|
|
6050
5354
|
load_balancer: z.lazy(() =>
|
|
6051
5355
|
CreateAgentRequestLoadBalancerAgents1$inboundSchema
|
|
@@ -6056,11 +5360,9 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
6056
5360
|
"frequency_penalty": "frequencyPenalty",
|
|
6057
5361
|
"max_tokens": "maxTokens",
|
|
6058
5362
|
"max_completion_tokens": "maxCompletionTokens",
|
|
6059
|
-
"top_logprobs": "topLogprobs",
|
|
6060
5363
|
"presence_penalty": "presencePenalty",
|
|
6061
5364
|
"response_format": "responseFormat",
|
|
6062
5365
|
"reasoning_effort": "reasoningEffort",
|
|
6063
|
-
"stream_options": "streamOptions",
|
|
6064
5366
|
"top_p": "topP",
|
|
6065
5367
|
"top_k": "topK",
|
|
6066
5368
|
"tool_choice": "toolChoice",
|
|
@@ -6103,43 +5405,6 @@ export function createAgentRequestRetryFromJSON(
|
|
|
6103
5405
|
);
|
|
6104
5406
|
}
|
|
6105
5407
|
|
|
6106
|
-
/** @internal */
|
|
6107
|
-
export const CreateAgentRequestFallbackModelConfigurationVoice$inboundSchema:
|
|
6108
|
-
z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationVoice> = z
|
|
6109
|
-
.nativeEnum(CreateAgentRequestFallbackModelConfigurationVoice);
|
|
6110
|
-
|
|
6111
|
-
/** @internal */
|
|
6112
|
-
export const CreateAgentRequestFallbackModelConfigurationFormat$inboundSchema:
|
|
6113
|
-
z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationFormat> = z
|
|
6114
|
-
.nativeEnum(CreateAgentRequestFallbackModelConfigurationFormat);
|
|
6115
|
-
|
|
6116
|
-
/** @internal */
|
|
6117
|
-
export const CreateAgentRequestFallbackModelConfigurationAudio$inboundSchema:
|
|
6118
|
-
z.ZodType<
|
|
6119
|
-
CreateAgentRequestFallbackModelConfigurationAudio,
|
|
6120
|
-
z.ZodTypeDef,
|
|
6121
|
-
unknown
|
|
6122
|
-
> = z.object({
|
|
6123
|
-
voice: CreateAgentRequestFallbackModelConfigurationVoice$inboundSchema,
|
|
6124
|
-
format: CreateAgentRequestFallbackModelConfigurationFormat$inboundSchema,
|
|
6125
|
-
});
|
|
6126
|
-
|
|
6127
|
-
export function createAgentRequestFallbackModelConfigurationAudioFromJSON(
|
|
6128
|
-
jsonString: string,
|
|
6129
|
-
): SafeParseResult<
|
|
6130
|
-
CreateAgentRequestFallbackModelConfigurationAudio,
|
|
6131
|
-
SDKValidationError
|
|
6132
|
-
> {
|
|
6133
|
-
return safeParse(
|
|
6134
|
-
jsonString,
|
|
6135
|
-
(x) =>
|
|
6136
|
-
CreateAgentRequestFallbackModelConfigurationAudio$inboundSchema.parse(
|
|
6137
|
-
JSON.parse(x),
|
|
6138
|
-
),
|
|
6139
|
-
`Failed to parse 'CreateAgentRequestFallbackModelConfigurationAudio' from JSON`,
|
|
6140
|
-
);
|
|
6141
|
-
}
|
|
6142
|
-
|
|
6143
5408
|
/** @internal */
|
|
6144
5409
|
export const CreateAgentRequestResponseFormatAgentsResponse201ApplicationJSONJSONSchema$inboundSchema:
|
|
6145
5410
|
z.ZodType<
|
|
@@ -6310,35 +5575,6 @@ export function createAgentRequestFallbackModelConfigurationStopFromJSON(
|
|
|
6310
5575
|
);
|
|
6311
5576
|
}
|
|
6312
5577
|
|
|
6313
|
-
/** @internal */
|
|
6314
|
-
export const CreateAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema:
|
|
6315
|
-
z.ZodType<
|
|
6316
|
-
CreateAgentRequestFallbackModelConfigurationStreamOptions,
|
|
6317
|
-
z.ZodTypeDef,
|
|
6318
|
-
unknown
|
|
6319
|
-
> = z.object({
|
|
6320
|
-
include_usage: z.boolean().optional(),
|
|
6321
|
-
}).transform((v) => {
|
|
6322
|
-
return remap$(v, {
|
|
6323
|
-
"include_usage": "includeUsage",
|
|
6324
|
-
});
|
|
6325
|
-
});
|
|
6326
|
-
|
|
6327
|
-
export function createAgentRequestFallbackModelConfigurationStreamOptionsFromJSON(
|
|
6328
|
-
jsonString: string,
|
|
6329
|
-
): SafeParseResult<
|
|
6330
|
-
CreateAgentRequestFallbackModelConfigurationStreamOptions,
|
|
6331
|
-
SDKValidationError
|
|
6332
|
-
> {
|
|
6333
|
-
return safeParse(
|
|
6334
|
-
jsonString,
|
|
6335
|
-
(x) =>
|
|
6336
|
-
CreateAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema
|
|
6337
|
-
.parse(JSON.parse(x)),
|
|
6338
|
-
`Failed to parse 'CreateAgentRequestFallbackModelConfigurationStreamOptions' from JSON`,
|
|
6339
|
-
);
|
|
6340
|
-
}
|
|
6341
|
-
|
|
6342
5578
|
/** @internal */
|
|
6343
5579
|
export const CreateAgentRequestFallbackModelConfigurationThinking$inboundSchema:
|
|
6344
5580
|
z.ZodType<
|
|
@@ -6559,36 +5795,6 @@ export function createAgentRequestFallbackModelConfigurationFallbacksFromJSON(
|
|
|
6559
5795
|
);
|
|
6560
5796
|
}
|
|
6561
5797
|
|
|
6562
|
-
/** @internal */
|
|
6563
|
-
export const CreateAgentRequestFallbackModelConfigurationAgentsResponseRetry$inboundSchema:
|
|
6564
|
-
z.ZodType<
|
|
6565
|
-
CreateAgentRequestFallbackModelConfigurationAgentsResponseRetry,
|
|
6566
|
-
z.ZodTypeDef,
|
|
6567
|
-
unknown
|
|
6568
|
-
> = z.object({
|
|
6569
|
-
count: z.number().default(3),
|
|
6570
|
-
on_codes: z.array(z.number()).optional(),
|
|
6571
|
-
}).transform((v) => {
|
|
6572
|
-
return remap$(v, {
|
|
6573
|
-
"on_codes": "onCodes",
|
|
6574
|
-
});
|
|
6575
|
-
});
|
|
6576
|
-
|
|
6577
|
-
export function createAgentRequestFallbackModelConfigurationAgentsResponseRetryFromJSON(
|
|
6578
|
-
jsonString: string,
|
|
6579
|
-
): SafeParseResult<
|
|
6580
|
-
CreateAgentRequestFallbackModelConfigurationAgentsResponseRetry,
|
|
6581
|
-
SDKValidationError
|
|
6582
|
-
> {
|
|
6583
|
-
return safeParse(
|
|
6584
|
-
jsonString,
|
|
6585
|
-
(x) =>
|
|
6586
|
-
CreateAgentRequestFallbackModelConfigurationAgentsResponseRetry$inboundSchema
|
|
6587
|
-
.parse(JSON.parse(x)),
|
|
6588
|
-
`Failed to parse 'CreateAgentRequestFallbackModelConfigurationAgentsResponseRetry' from JSON`,
|
|
6589
|
-
);
|
|
6590
|
-
}
|
|
6591
|
-
|
|
6592
5798
|
/** @internal */
|
|
6593
5799
|
export const CreateAgentRequestFallbackModelConfigurationType$inboundSchema:
|
|
6594
5800
|
z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationType> = z
|
|
@@ -6740,17 +5946,9 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6740
5946
|
unknown
|
|
6741
5947
|
> = z.object({
|
|
6742
5948
|
name: z.string().optional(),
|
|
6743
|
-
audio: z.nullable(
|
|
6744
|
-
z.lazy(() =>
|
|
6745
|
-
CreateAgentRequestFallbackModelConfigurationAudio$inboundSchema
|
|
6746
|
-
),
|
|
6747
|
-
).optional(),
|
|
6748
5949
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
6749
5950
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
6750
5951
|
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
6751
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
6752
|
-
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
6753
|
-
n: z.nullable(z.number().int()).optional(),
|
|
6754
5952
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
6755
5953
|
response_format: z.union([
|
|
6756
5954
|
z.lazy(() => CreateAgentRequestResponseFormatAgentsText$inboundSchema),
|
|
@@ -6767,11 +5965,6 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6767
5965
|
verbosity: z.string().optional(),
|
|
6768
5966
|
seed: z.nullable(z.number()).optional(),
|
|
6769
5967
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
6770
|
-
stream_options: z.nullable(
|
|
6771
|
-
z.lazy(() =>
|
|
6772
|
-
CreateAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema
|
|
6773
|
-
),
|
|
6774
|
-
).optional(),
|
|
6775
5968
|
thinking: z.union([
|
|
6776
5969
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
6777
5970
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -6799,9 +5992,6 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6799
5992
|
CreateAgentRequestFallbackModelConfigurationFallbacks$inboundSchema
|
|
6800
5993
|
),
|
|
6801
5994
|
).optional(),
|
|
6802
|
-
retry: z.lazy(() =>
|
|
6803
|
-
CreateAgentRequestFallbackModelConfigurationAgentsResponseRetry$inboundSchema
|
|
6804
|
-
).optional(),
|
|
6805
5995
|
cache: z.lazy(() =>
|
|
6806
5996
|
CreateAgentRequestFallbackModelConfigurationCache$inboundSchema
|
|
6807
5997
|
).optional(),
|
|
@@ -6816,11 +6006,9 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6816
6006
|
"frequency_penalty": "frequencyPenalty",
|
|
6817
6007
|
"max_tokens": "maxTokens",
|
|
6818
6008
|
"max_completion_tokens": "maxCompletionTokens",
|
|
6819
|
-
"top_logprobs": "topLogprobs",
|
|
6820
6009
|
"presence_penalty": "presencePenalty",
|
|
6821
6010
|
"response_format": "responseFormat",
|
|
6822
6011
|
"reasoning_effort": "reasoningEffort",
|
|
6823
|
-
"stream_options": "streamOptions",
|
|
6824
6012
|
"top_p": "topP",
|
|
6825
6013
|
"top_k": "topK",
|
|
6826
6014
|
"tool_choice": "toolChoice",
|
|
@@ -6845,9 +6033,9 @@ export function createAgentRequestFallbackModelConfigurationParametersFromJSON(
|
|
|
6845
6033
|
}
|
|
6846
6034
|
|
|
6847
6035
|
/** @internal */
|
|
6848
|
-
export const
|
|
6036
|
+
export const CreateAgentRequestFallbackModelConfigurationRetry$inboundSchema:
|
|
6849
6037
|
z.ZodType<
|
|
6850
|
-
|
|
6038
|
+
CreateAgentRequestFallbackModelConfigurationRetry,
|
|
6851
6039
|
z.ZodTypeDef,
|
|
6852
6040
|
unknown
|
|
6853
6041
|
> = z.object({
|
|
@@ -6859,18 +6047,19 @@ export const CreateAgentRequestFallbackModelConfigurationAgentsRetry$inboundSche
|
|
|
6859
6047
|
});
|
|
6860
6048
|
});
|
|
6861
6049
|
|
|
6862
|
-
export function
|
|
6050
|
+
export function createAgentRequestFallbackModelConfigurationRetryFromJSON(
|
|
6863
6051
|
jsonString: string,
|
|
6864
6052
|
): SafeParseResult<
|
|
6865
|
-
|
|
6053
|
+
CreateAgentRequestFallbackModelConfigurationRetry,
|
|
6866
6054
|
SDKValidationError
|
|
6867
6055
|
> {
|
|
6868
6056
|
return safeParse(
|
|
6869
6057
|
jsonString,
|
|
6870
6058
|
(x) =>
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6059
|
+
CreateAgentRequestFallbackModelConfigurationRetry$inboundSchema.parse(
|
|
6060
|
+
JSON.parse(x),
|
|
6061
|
+
),
|
|
6062
|
+
`Failed to parse 'CreateAgentRequestFallbackModelConfigurationRetry' from JSON`,
|
|
6874
6063
|
);
|
|
6875
6064
|
}
|
|
6876
6065
|
|
|
@@ -6886,7 +6075,7 @@ export const CreateAgentRequestFallbackModelConfiguration2$inboundSchema:
|
|
|
6886
6075
|
CreateAgentRequestFallbackModelConfigurationParameters$inboundSchema
|
|
6887
6076
|
).optional(),
|
|
6888
6077
|
retry: z.lazy(() =>
|
|
6889
|
-
|
|
6078
|
+
CreateAgentRequestFallbackModelConfigurationRetry$inboundSchema
|
|
6890
6079
|
).optional(),
|
|
6891
6080
|
});
|
|
6892
6081
|
|