@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,55 +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 RunAgentModelConfigurationVoice = {
|
|
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 RunAgentModelConfigurationVoice = ClosedEnum<
|
|
28
|
-
typeof RunAgentModelConfigurationVoice
|
|
29
|
-
>;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
33
|
-
*/
|
|
34
|
-
export const RunAgentModelConfigurationFormat = {
|
|
35
|
-
Wav: "wav",
|
|
36
|
-
Mp3: "mp3",
|
|
37
|
-
Flac: "flac",
|
|
38
|
-
Opus: "opus",
|
|
39
|
-
Pcm16: "pcm16",
|
|
40
|
-
} as const;
|
|
41
|
-
/**
|
|
42
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
43
|
-
*/
|
|
44
|
-
export type RunAgentModelConfigurationFormat = ClosedEnum<
|
|
45
|
-
typeof RunAgentModelConfigurationFormat
|
|
46
|
-
>;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
50
|
-
*/
|
|
51
|
-
export type RunAgentModelConfigurationAudio = {
|
|
52
|
-
/**
|
|
53
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
54
|
-
*/
|
|
55
|
-
voice: RunAgentModelConfigurationVoice;
|
|
56
|
-
/**
|
|
57
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
58
|
-
*/
|
|
59
|
-
format: RunAgentModelConfigurationFormat;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
13
|
export type RunAgentResponseFormatAgentsJsonSchema = {
|
|
63
14
|
/**
|
|
64
15
|
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
@@ -155,16 +106,6 @@ export type RunAgentModelConfigurationReasoningEffort = ClosedEnum<
|
|
|
155
106
|
*/
|
|
156
107
|
export type RunAgentModelConfigurationStop = string | Array<string>;
|
|
157
108
|
|
|
158
|
-
/**
|
|
159
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
160
|
-
*/
|
|
161
|
-
export type RunAgentModelConfigurationStreamOptions = {
|
|
162
|
-
/**
|
|
163
|
-
* 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.
|
|
164
|
-
*/
|
|
165
|
-
includeUsage?: boolean | undefined;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
109
|
export type RunAgentModelConfigurationThinking =
|
|
169
110
|
| components.ThinkingConfigDisabledSchema
|
|
170
111
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -261,20 +202,6 @@ export type RunAgentModelConfigurationFallbacks = {
|
|
|
261
202
|
model: string;
|
|
262
203
|
};
|
|
263
204
|
|
|
264
|
-
/**
|
|
265
|
-
* Retry configuration for the request
|
|
266
|
-
*/
|
|
267
|
-
export type RunAgentModelConfigurationRetry = {
|
|
268
|
-
/**
|
|
269
|
-
* Number of retry attempts (1-5)
|
|
270
|
-
*/
|
|
271
|
-
count?: number | undefined;
|
|
272
|
-
/**
|
|
273
|
-
* HTTP status codes that trigger retry logic
|
|
274
|
-
*/
|
|
275
|
-
onCodes?: Array<number> | undefined;
|
|
276
|
-
};
|
|
277
|
-
|
|
278
205
|
export const RunAgentModelConfigurationType = {
|
|
279
206
|
ExactMatch: "exact_match",
|
|
280
207
|
} as const;
|
|
@@ -339,10 +266,6 @@ export type RunAgentModelConfigurationParameters = {
|
|
|
339
266
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
340
267
|
*/
|
|
341
268
|
name?: string | undefined;
|
|
342
|
-
/**
|
|
343
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
344
|
-
*/
|
|
345
|
-
audio?: RunAgentModelConfigurationAudio | null | undefined;
|
|
346
269
|
/**
|
|
347
270
|
* 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.
|
|
348
271
|
*/
|
|
@@ -359,18 +282,6 @@ export type RunAgentModelConfigurationParameters = {
|
|
|
359
282
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
360
283
|
*/
|
|
361
284
|
maxCompletionTokens?: number | null | undefined;
|
|
362
|
-
/**
|
|
363
|
-
* 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.
|
|
364
|
-
*/
|
|
365
|
-
logprobs?: boolean | null | undefined;
|
|
366
|
-
/**
|
|
367
|
-
* 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.
|
|
368
|
-
*/
|
|
369
|
-
topLogprobs?: number | null | undefined;
|
|
370
|
-
/**
|
|
371
|
-
* 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.
|
|
372
|
-
*/
|
|
373
|
-
n?: number | null | undefined;
|
|
374
285
|
/**
|
|
375
286
|
* 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.
|
|
376
287
|
*/
|
|
@@ -408,10 +319,6 @@ export type RunAgentModelConfigurationParameters = {
|
|
|
408
319
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
409
320
|
*/
|
|
410
321
|
stop?: string | Array<string> | null | undefined;
|
|
411
|
-
/**
|
|
412
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
413
|
-
*/
|
|
414
|
-
streamOptions?: RunAgentModelConfigurationStreamOptions | null | undefined;
|
|
415
322
|
thinking?:
|
|
416
323
|
| components.ThinkingConfigDisabledSchema
|
|
417
324
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -448,10 +355,6 @@ export type RunAgentModelConfigurationParameters = {
|
|
|
448
355
|
* Array of fallback models to use if primary model fails
|
|
449
356
|
*/
|
|
450
357
|
fallbacks?: Array<RunAgentModelConfigurationFallbacks> | undefined;
|
|
451
|
-
/**
|
|
452
|
-
* Retry configuration for the request
|
|
453
|
-
*/
|
|
454
|
-
retry?: RunAgentModelConfigurationRetry | undefined;
|
|
455
358
|
/**
|
|
456
359
|
* Cache configuration for the request.
|
|
457
360
|
*/
|
|
@@ -469,7 +372,7 @@ export type RunAgentModelConfigurationParameters = {
|
|
|
469
372
|
/**
|
|
470
373
|
* 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.
|
|
471
374
|
*/
|
|
472
|
-
export type
|
|
375
|
+
export type RunAgentModelConfigurationRetry = {
|
|
473
376
|
/**
|
|
474
377
|
* Number of retry attempts (1-5)
|
|
475
378
|
*/
|
|
@@ -497,7 +400,7 @@ export type RunAgentModelConfiguration2 = {
|
|
|
497
400
|
/**
|
|
498
401
|
* 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.
|
|
499
402
|
*/
|
|
500
|
-
retry?:
|
|
403
|
+
retry?: RunAgentModelConfigurationRetry | undefined;
|
|
501
404
|
};
|
|
502
405
|
|
|
503
406
|
/**
|
|
@@ -505,55 +408,6 @@ export type RunAgentModelConfiguration2 = {
|
|
|
505
408
|
*/
|
|
506
409
|
export type RunAgentModelConfiguration = RunAgentModelConfiguration2 | string;
|
|
507
410
|
|
|
508
|
-
/**
|
|
509
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
510
|
-
*/
|
|
511
|
-
export const RunAgentFallbackModelConfigurationVoice = {
|
|
512
|
-
Alloy: "alloy",
|
|
513
|
-
Echo: "echo",
|
|
514
|
-
Fable: "fable",
|
|
515
|
-
Onyx: "onyx",
|
|
516
|
-
Nova: "nova",
|
|
517
|
-
Shimmer: "shimmer",
|
|
518
|
-
} as const;
|
|
519
|
-
/**
|
|
520
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
521
|
-
*/
|
|
522
|
-
export type RunAgentFallbackModelConfigurationVoice = ClosedEnum<
|
|
523
|
-
typeof RunAgentFallbackModelConfigurationVoice
|
|
524
|
-
>;
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
528
|
-
*/
|
|
529
|
-
export const RunAgentFallbackModelConfigurationFormat = {
|
|
530
|
-
Wav: "wav",
|
|
531
|
-
Mp3: "mp3",
|
|
532
|
-
Flac: "flac",
|
|
533
|
-
Opus: "opus",
|
|
534
|
-
Pcm16: "pcm16",
|
|
535
|
-
} as const;
|
|
536
|
-
/**
|
|
537
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
538
|
-
*/
|
|
539
|
-
export type RunAgentFallbackModelConfigurationFormat = ClosedEnum<
|
|
540
|
-
typeof RunAgentFallbackModelConfigurationFormat
|
|
541
|
-
>;
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
545
|
-
*/
|
|
546
|
-
export type RunAgentFallbackModelConfigurationAudio = {
|
|
547
|
-
/**
|
|
548
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
549
|
-
*/
|
|
550
|
-
voice: RunAgentFallbackModelConfigurationVoice;
|
|
551
|
-
/**
|
|
552
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
553
|
-
*/
|
|
554
|
-
format: RunAgentFallbackModelConfigurationFormat;
|
|
555
|
-
};
|
|
556
|
-
|
|
557
411
|
export type RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema = {
|
|
558
412
|
/**
|
|
559
413
|
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
@@ -650,16 +504,6 @@ export type RunAgentFallbackModelConfigurationReasoningEffort = ClosedEnum<
|
|
|
650
504
|
*/
|
|
651
505
|
export type RunAgentFallbackModelConfigurationStop = string | Array<string>;
|
|
652
506
|
|
|
653
|
-
/**
|
|
654
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
655
|
-
*/
|
|
656
|
-
export type RunAgentFallbackModelConfigurationStreamOptions = {
|
|
657
|
-
/**
|
|
658
|
-
* 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.
|
|
659
|
-
*/
|
|
660
|
-
includeUsage?: boolean | undefined;
|
|
661
|
-
};
|
|
662
|
-
|
|
663
507
|
export type RunAgentFallbackModelConfigurationThinking =
|
|
664
508
|
| components.ThinkingConfigDisabledSchema
|
|
665
509
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -760,20 +604,6 @@ export type RunAgentFallbackModelConfigurationFallbacks = {
|
|
|
760
604
|
model: string;
|
|
761
605
|
};
|
|
762
606
|
|
|
763
|
-
/**
|
|
764
|
-
* Retry configuration for the request
|
|
765
|
-
*/
|
|
766
|
-
export type RunAgentFallbackModelConfigurationRetry = {
|
|
767
|
-
/**
|
|
768
|
-
* Number of retry attempts (1-5)
|
|
769
|
-
*/
|
|
770
|
-
count?: number | undefined;
|
|
771
|
-
/**
|
|
772
|
-
* HTTP status codes that trigger retry logic
|
|
773
|
-
*/
|
|
774
|
-
onCodes?: Array<number> | undefined;
|
|
775
|
-
};
|
|
776
|
-
|
|
777
607
|
export const RunAgentFallbackModelConfigurationType = {
|
|
778
608
|
ExactMatch: "exact_match",
|
|
779
609
|
} as const;
|
|
@@ -839,10 +669,6 @@ export type RunAgentFallbackModelConfigurationParameters = {
|
|
|
839
669
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
840
670
|
*/
|
|
841
671
|
name?: string | undefined;
|
|
842
|
-
/**
|
|
843
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
844
|
-
*/
|
|
845
|
-
audio?: RunAgentFallbackModelConfigurationAudio | null | undefined;
|
|
846
672
|
/**
|
|
847
673
|
* 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.
|
|
848
674
|
*/
|
|
@@ -859,18 +685,6 @@ export type RunAgentFallbackModelConfigurationParameters = {
|
|
|
859
685
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
860
686
|
*/
|
|
861
687
|
maxCompletionTokens?: number | null | undefined;
|
|
862
|
-
/**
|
|
863
|
-
* 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.
|
|
864
|
-
*/
|
|
865
|
-
logprobs?: boolean | null | undefined;
|
|
866
|
-
/**
|
|
867
|
-
* 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.
|
|
868
|
-
*/
|
|
869
|
-
topLogprobs?: number | null | undefined;
|
|
870
|
-
/**
|
|
871
|
-
* 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.
|
|
872
|
-
*/
|
|
873
|
-
n?: number | null | undefined;
|
|
874
688
|
/**
|
|
875
689
|
* 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.
|
|
876
690
|
*/
|
|
@@ -910,13 +724,6 @@ export type RunAgentFallbackModelConfigurationParameters = {
|
|
|
910
724
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
911
725
|
*/
|
|
912
726
|
stop?: string | Array<string> | null | undefined;
|
|
913
|
-
/**
|
|
914
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
915
|
-
*/
|
|
916
|
-
streamOptions?:
|
|
917
|
-
| RunAgentFallbackModelConfigurationStreamOptions
|
|
918
|
-
| null
|
|
919
|
-
| undefined;
|
|
920
727
|
thinking?:
|
|
921
728
|
| components.ThinkingConfigDisabledSchema
|
|
922
729
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -959,10 +766,6 @@ export type RunAgentFallbackModelConfigurationParameters = {
|
|
|
959
766
|
* Array of fallback models to use if primary model fails
|
|
960
767
|
*/
|
|
961
768
|
fallbacks?: Array<RunAgentFallbackModelConfigurationFallbacks> | undefined;
|
|
962
|
-
/**
|
|
963
|
-
* Retry configuration for the request
|
|
964
|
-
*/
|
|
965
|
-
retry?: RunAgentFallbackModelConfigurationRetry | undefined;
|
|
966
769
|
/**
|
|
967
770
|
* Cache configuration for the request.
|
|
968
771
|
*/
|
|
@@ -980,7 +783,7 @@ export type RunAgentFallbackModelConfigurationParameters = {
|
|
|
980
783
|
/**
|
|
981
784
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
982
785
|
*/
|
|
983
|
-
export type
|
|
786
|
+
export type RunAgentFallbackModelConfigurationRetry = {
|
|
984
787
|
/**
|
|
985
788
|
* Number of retry attempts (1-5)
|
|
986
789
|
*/
|
|
@@ -1006,7 +809,7 @@ export type RunAgentFallbackModelConfiguration2 = {
|
|
|
1006
809
|
/**
|
|
1007
810
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
1008
811
|
*/
|
|
1009
|
-
retry?:
|
|
812
|
+
retry?: RunAgentFallbackModelConfigurationRetry | undefined;
|
|
1010
813
|
};
|
|
1011
814
|
|
|
1012
815
|
/**
|
|
@@ -2048,42 +1851,6 @@ export type RunAgentA2ATaskResponse = {
|
|
|
2048
1851
|
metadata?: { [k: string]: any } | undefined;
|
|
2049
1852
|
};
|
|
2050
1853
|
|
|
2051
|
-
/** @internal */
|
|
2052
|
-
export const RunAgentModelConfigurationVoice$outboundSchema: z.ZodNativeEnum<
|
|
2053
|
-
typeof RunAgentModelConfigurationVoice
|
|
2054
|
-
> = z.nativeEnum(RunAgentModelConfigurationVoice);
|
|
2055
|
-
|
|
2056
|
-
/** @internal */
|
|
2057
|
-
export const RunAgentModelConfigurationFormat$outboundSchema: z.ZodNativeEnum<
|
|
2058
|
-
typeof RunAgentModelConfigurationFormat
|
|
2059
|
-
> = z.nativeEnum(RunAgentModelConfigurationFormat);
|
|
2060
|
-
|
|
2061
|
-
/** @internal */
|
|
2062
|
-
export type RunAgentModelConfigurationAudio$Outbound = {
|
|
2063
|
-
voice: string;
|
|
2064
|
-
format: string;
|
|
2065
|
-
};
|
|
2066
|
-
|
|
2067
|
-
/** @internal */
|
|
2068
|
-
export const RunAgentModelConfigurationAudio$outboundSchema: z.ZodType<
|
|
2069
|
-
RunAgentModelConfigurationAudio$Outbound,
|
|
2070
|
-
z.ZodTypeDef,
|
|
2071
|
-
RunAgentModelConfigurationAudio
|
|
2072
|
-
> = z.object({
|
|
2073
|
-
voice: RunAgentModelConfigurationVoice$outboundSchema,
|
|
2074
|
-
format: RunAgentModelConfigurationFormat$outboundSchema,
|
|
2075
|
-
});
|
|
2076
|
-
|
|
2077
|
-
export function runAgentModelConfigurationAudioToJSON(
|
|
2078
|
-
runAgentModelConfigurationAudio: RunAgentModelConfigurationAudio,
|
|
2079
|
-
): string {
|
|
2080
|
-
return JSON.stringify(
|
|
2081
|
-
RunAgentModelConfigurationAudio$outboundSchema.parse(
|
|
2082
|
-
runAgentModelConfigurationAudio,
|
|
2083
|
-
),
|
|
2084
|
-
);
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
1854
|
/** @internal */
|
|
2088
1855
|
export type RunAgentResponseFormatAgentsJsonSchema$Outbound = {
|
|
2089
1856
|
description?: string | undefined;
|
|
@@ -2246,35 +2013,6 @@ export function runAgentModelConfigurationStopToJSON(
|
|
|
2246
2013
|
);
|
|
2247
2014
|
}
|
|
2248
2015
|
|
|
2249
|
-
/** @internal */
|
|
2250
|
-
export type RunAgentModelConfigurationStreamOptions$Outbound = {
|
|
2251
|
-
include_usage?: boolean | undefined;
|
|
2252
|
-
};
|
|
2253
|
-
|
|
2254
|
-
/** @internal */
|
|
2255
|
-
export const RunAgentModelConfigurationStreamOptions$outboundSchema: z.ZodType<
|
|
2256
|
-
RunAgentModelConfigurationStreamOptions$Outbound,
|
|
2257
|
-
z.ZodTypeDef,
|
|
2258
|
-
RunAgentModelConfigurationStreamOptions
|
|
2259
|
-
> = z.object({
|
|
2260
|
-
includeUsage: z.boolean().optional(),
|
|
2261
|
-
}).transform((v) => {
|
|
2262
|
-
return remap$(v, {
|
|
2263
|
-
includeUsage: "include_usage",
|
|
2264
|
-
});
|
|
2265
|
-
});
|
|
2266
|
-
|
|
2267
|
-
export function runAgentModelConfigurationStreamOptionsToJSON(
|
|
2268
|
-
runAgentModelConfigurationStreamOptions:
|
|
2269
|
-
RunAgentModelConfigurationStreamOptions,
|
|
2270
|
-
): string {
|
|
2271
|
-
return JSON.stringify(
|
|
2272
|
-
RunAgentModelConfigurationStreamOptions$outboundSchema.parse(
|
|
2273
|
-
runAgentModelConfigurationStreamOptions,
|
|
2274
|
-
),
|
|
2275
|
-
);
|
|
2276
|
-
}
|
|
2277
|
-
|
|
2278
2016
|
/** @internal */
|
|
2279
2017
|
export type RunAgentModelConfigurationThinking$Outbound =
|
|
2280
2018
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
@@ -2471,36 +2209,6 @@ export function runAgentModelConfigurationFallbacksToJSON(
|
|
|
2471
2209
|
);
|
|
2472
2210
|
}
|
|
2473
2211
|
|
|
2474
|
-
/** @internal */
|
|
2475
|
-
export type RunAgentModelConfigurationRetry$Outbound = {
|
|
2476
|
-
count: number;
|
|
2477
|
-
on_codes?: Array<number> | undefined;
|
|
2478
|
-
};
|
|
2479
|
-
|
|
2480
|
-
/** @internal */
|
|
2481
|
-
export const RunAgentModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
2482
|
-
RunAgentModelConfigurationRetry$Outbound,
|
|
2483
|
-
z.ZodTypeDef,
|
|
2484
|
-
RunAgentModelConfigurationRetry
|
|
2485
|
-
> = z.object({
|
|
2486
|
-
count: z.number().default(3),
|
|
2487
|
-
onCodes: z.array(z.number()).optional(),
|
|
2488
|
-
}).transform((v) => {
|
|
2489
|
-
return remap$(v, {
|
|
2490
|
-
onCodes: "on_codes",
|
|
2491
|
-
});
|
|
2492
|
-
});
|
|
2493
|
-
|
|
2494
|
-
export function runAgentModelConfigurationRetryToJSON(
|
|
2495
|
-
runAgentModelConfigurationRetry: RunAgentModelConfigurationRetry,
|
|
2496
|
-
): string {
|
|
2497
|
-
return JSON.stringify(
|
|
2498
|
-
RunAgentModelConfigurationRetry$outboundSchema.parse(
|
|
2499
|
-
runAgentModelConfigurationRetry,
|
|
2500
|
-
),
|
|
2501
|
-
);
|
|
2502
|
-
}
|
|
2503
|
-
|
|
2504
2212
|
/** @internal */
|
|
2505
2213
|
export const RunAgentModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
2506
2214
|
typeof RunAgentModelConfigurationType
|
|
@@ -2638,13 +2346,9 @@ export function runAgentModelConfigurationTimeoutToJSON(
|
|
|
2638
2346
|
/** @internal */
|
|
2639
2347
|
export type RunAgentModelConfigurationParameters$Outbound = {
|
|
2640
2348
|
name?: string | undefined;
|
|
2641
|
-
audio?: RunAgentModelConfigurationAudio$Outbound | null | undefined;
|
|
2642
2349
|
frequency_penalty?: number | null | undefined;
|
|
2643
2350
|
max_tokens?: number | null | undefined;
|
|
2644
2351
|
max_completion_tokens?: number | null | undefined;
|
|
2645
|
-
logprobs?: boolean | null | undefined;
|
|
2646
|
-
top_logprobs?: number | null | undefined;
|
|
2647
|
-
n?: number | null | undefined;
|
|
2648
2352
|
presence_penalty?: number | null | undefined;
|
|
2649
2353
|
response_format?:
|
|
2650
2354
|
| RunAgentResponseFormatText$Outbound
|
|
@@ -2655,10 +2359,6 @@ export type RunAgentModelConfigurationParameters$Outbound = {
|
|
|
2655
2359
|
verbosity?: string | undefined;
|
|
2656
2360
|
seed?: number | null | undefined;
|
|
2657
2361
|
stop?: string | Array<string> | null | undefined;
|
|
2658
|
-
stream_options?:
|
|
2659
|
-
| RunAgentModelConfigurationStreamOptions$Outbound
|
|
2660
|
-
| null
|
|
2661
|
-
| undefined;
|
|
2662
2362
|
thinking?:
|
|
2663
2363
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
2664
2364
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
@@ -2671,7 +2371,6 @@ export type RunAgentModelConfigurationParameters$Outbound = {
|
|
|
2671
2371
|
modalities?: Array<string> | null | undefined;
|
|
2672
2372
|
guardrails?: Array<RunAgentModelConfigurationGuardrails$Outbound> | undefined;
|
|
2673
2373
|
fallbacks?: Array<RunAgentModelConfigurationFallbacks$Outbound> | undefined;
|
|
2674
|
-
retry?: RunAgentModelConfigurationRetry$Outbound | undefined;
|
|
2675
2374
|
cache?: RunAgentModelConfigurationCache$Outbound | undefined;
|
|
2676
2375
|
load_balancer?: RunAgentLoadBalancer1$Outbound | undefined;
|
|
2677
2376
|
timeout?: RunAgentModelConfigurationTimeout$Outbound | undefined;
|
|
@@ -2684,15 +2383,9 @@ export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
2684
2383
|
RunAgentModelConfigurationParameters
|
|
2685
2384
|
> = z.object({
|
|
2686
2385
|
name: z.string().optional(),
|
|
2687
|
-
audio: z.nullable(
|
|
2688
|
-
z.lazy(() => RunAgentModelConfigurationAudio$outboundSchema),
|
|
2689
|
-
).optional(),
|
|
2690
2386
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
2691
2387
|
maxTokens: z.nullable(z.number().int()).optional(),
|
|
2692
2388
|
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
2693
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
2694
|
-
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
2695
|
-
n: z.nullable(z.number().int()).optional(),
|
|
2696
2389
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
2697
2390
|
responseFormat: z.union([
|
|
2698
2391
|
z.lazy(() => RunAgentResponseFormatText$outboundSchema),
|
|
@@ -2704,9 +2397,6 @@ export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
2704
2397
|
verbosity: z.string().optional(),
|
|
2705
2398
|
seed: z.nullable(z.number()).optional(),
|
|
2706
2399
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2707
|
-
streamOptions: z.nullable(
|
|
2708
|
-
z.lazy(() => RunAgentModelConfigurationStreamOptions$outboundSchema),
|
|
2709
|
-
).optional(),
|
|
2710
2400
|
thinking: z.union([
|
|
2711
2401
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2712
2402
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
@@ -2728,8 +2418,6 @@ export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
2728
2418
|
fallbacks: z.array(
|
|
2729
2419
|
z.lazy(() => RunAgentModelConfigurationFallbacks$outboundSchema),
|
|
2730
2420
|
).optional(),
|
|
2731
|
-
retry: z.lazy(() => RunAgentModelConfigurationRetry$outboundSchema)
|
|
2732
|
-
.optional(),
|
|
2733
2421
|
cache: z.lazy(() => RunAgentModelConfigurationCache$outboundSchema)
|
|
2734
2422
|
.optional(),
|
|
2735
2423
|
loadBalancer: z.lazy(() => RunAgentLoadBalancer1$outboundSchema).optional(),
|
|
@@ -2740,11 +2428,9 @@ export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
2740
2428
|
frequencyPenalty: "frequency_penalty",
|
|
2741
2429
|
maxTokens: "max_tokens",
|
|
2742
2430
|
maxCompletionTokens: "max_completion_tokens",
|
|
2743
|
-
topLogprobs: "top_logprobs",
|
|
2744
2431
|
presencePenalty: "presence_penalty",
|
|
2745
2432
|
responseFormat: "response_format",
|
|
2746
2433
|
reasoningEffort: "reasoning_effort",
|
|
2747
|
-
streamOptions: "stream_options",
|
|
2748
2434
|
topP: "top_p",
|
|
2749
2435
|
topK: "top_k",
|
|
2750
2436
|
toolChoice: "tool_choice",
|
|
@@ -2764,16 +2450,16 @@ export function runAgentModelConfigurationParametersToJSON(
|
|
|
2764
2450
|
}
|
|
2765
2451
|
|
|
2766
2452
|
/** @internal */
|
|
2767
|
-
export type
|
|
2453
|
+
export type RunAgentModelConfigurationRetry$Outbound = {
|
|
2768
2454
|
count: number;
|
|
2769
2455
|
on_codes?: Array<number> | undefined;
|
|
2770
2456
|
};
|
|
2771
2457
|
|
|
2772
2458
|
/** @internal */
|
|
2773
|
-
export const
|
|
2774
|
-
|
|
2459
|
+
export const RunAgentModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
2460
|
+
RunAgentModelConfigurationRetry$Outbound,
|
|
2775
2461
|
z.ZodTypeDef,
|
|
2776
|
-
|
|
2462
|
+
RunAgentModelConfigurationRetry
|
|
2777
2463
|
> = z.object({
|
|
2778
2464
|
count: z.number().default(3),
|
|
2779
2465
|
onCodes: z.array(z.number()).optional(),
|
|
@@ -2783,12 +2469,12 @@ export const RunAgentModelConfigurationAgentsRetry$outboundSchema: z.ZodType<
|
|
|
2783
2469
|
});
|
|
2784
2470
|
});
|
|
2785
2471
|
|
|
2786
|
-
export function
|
|
2787
|
-
|
|
2472
|
+
export function runAgentModelConfigurationRetryToJSON(
|
|
2473
|
+
runAgentModelConfigurationRetry: RunAgentModelConfigurationRetry,
|
|
2788
2474
|
): string {
|
|
2789
2475
|
return JSON.stringify(
|
|
2790
|
-
|
|
2791
|
-
|
|
2476
|
+
RunAgentModelConfigurationRetry$outboundSchema.parse(
|
|
2477
|
+
runAgentModelConfigurationRetry,
|
|
2792
2478
|
),
|
|
2793
2479
|
);
|
|
2794
2480
|
}
|
|
@@ -2797,7 +2483,7 @@ export function runAgentModelConfigurationAgentsRetryToJSON(
|
|
|
2797
2483
|
export type RunAgentModelConfiguration2$Outbound = {
|
|
2798
2484
|
id: string;
|
|
2799
2485
|
parameters?: RunAgentModelConfigurationParameters$Outbound | undefined;
|
|
2800
|
-
retry?:
|
|
2486
|
+
retry?: RunAgentModelConfigurationRetry$Outbound | undefined;
|
|
2801
2487
|
};
|
|
2802
2488
|
|
|
2803
2489
|
/** @internal */
|
|
@@ -2809,7 +2495,7 @@ export const RunAgentModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
2809
2495
|
id: z.string(),
|
|
2810
2496
|
parameters: z.lazy(() => RunAgentModelConfigurationParameters$outboundSchema)
|
|
2811
2497
|
.optional(),
|
|
2812
|
-
retry: z.lazy(() =>
|
|
2498
|
+
retry: z.lazy(() => RunAgentModelConfigurationRetry$outboundSchema)
|
|
2813
2499
|
.optional(),
|
|
2814
2500
|
});
|
|
2815
2501
|
|
|
@@ -2846,43 +2532,6 @@ export function runAgentModelConfigurationToJSON(
|
|
|
2846
2532
|
);
|
|
2847
2533
|
}
|
|
2848
2534
|
|
|
2849
|
-
/** @internal */
|
|
2850
|
-
export const RunAgentFallbackModelConfigurationVoice$outboundSchema:
|
|
2851
|
-
z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationVoice> = z
|
|
2852
|
-
.nativeEnum(RunAgentFallbackModelConfigurationVoice);
|
|
2853
|
-
|
|
2854
|
-
/** @internal */
|
|
2855
|
-
export const RunAgentFallbackModelConfigurationFormat$outboundSchema:
|
|
2856
|
-
z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationFormat> = z
|
|
2857
|
-
.nativeEnum(RunAgentFallbackModelConfigurationFormat);
|
|
2858
|
-
|
|
2859
|
-
/** @internal */
|
|
2860
|
-
export type RunAgentFallbackModelConfigurationAudio$Outbound = {
|
|
2861
|
-
voice: string;
|
|
2862
|
-
format: string;
|
|
2863
|
-
};
|
|
2864
|
-
|
|
2865
|
-
/** @internal */
|
|
2866
|
-
export const RunAgentFallbackModelConfigurationAudio$outboundSchema: z.ZodType<
|
|
2867
|
-
RunAgentFallbackModelConfigurationAudio$Outbound,
|
|
2868
|
-
z.ZodTypeDef,
|
|
2869
|
-
RunAgentFallbackModelConfigurationAudio
|
|
2870
|
-
> = z.object({
|
|
2871
|
-
voice: RunAgentFallbackModelConfigurationVoice$outboundSchema,
|
|
2872
|
-
format: RunAgentFallbackModelConfigurationFormat$outboundSchema,
|
|
2873
|
-
});
|
|
2874
|
-
|
|
2875
|
-
export function runAgentFallbackModelConfigurationAudioToJSON(
|
|
2876
|
-
runAgentFallbackModelConfigurationAudio:
|
|
2877
|
-
RunAgentFallbackModelConfigurationAudio,
|
|
2878
|
-
): string {
|
|
2879
|
-
return JSON.stringify(
|
|
2880
|
-
RunAgentFallbackModelConfigurationAudio$outboundSchema.parse(
|
|
2881
|
-
runAgentFallbackModelConfigurationAudio,
|
|
2882
|
-
),
|
|
2883
|
-
);
|
|
2884
|
-
}
|
|
2885
|
-
|
|
2886
2535
|
/** @internal */
|
|
2887
2536
|
export type RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound =
|
|
2888
2537
|
{
|
|
@@ -3056,36 +2705,6 @@ export function runAgentFallbackModelConfigurationStopToJSON(
|
|
|
3056
2705
|
);
|
|
3057
2706
|
}
|
|
3058
2707
|
|
|
3059
|
-
/** @internal */
|
|
3060
|
-
export type RunAgentFallbackModelConfigurationStreamOptions$Outbound = {
|
|
3061
|
-
include_usage?: boolean | undefined;
|
|
3062
|
-
};
|
|
3063
|
-
|
|
3064
|
-
/** @internal */
|
|
3065
|
-
export const RunAgentFallbackModelConfigurationStreamOptions$outboundSchema:
|
|
3066
|
-
z.ZodType<
|
|
3067
|
-
RunAgentFallbackModelConfigurationStreamOptions$Outbound,
|
|
3068
|
-
z.ZodTypeDef,
|
|
3069
|
-
RunAgentFallbackModelConfigurationStreamOptions
|
|
3070
|
-
> = z.object({
|
|
3071
|
-
includeUsage: z.boolean().optional(),
|
|
3072
|
-
}).transform((v) => {
|
|
3073
|
-
return remap$(v, {
|
|
3074
|
-
includeUsage: "include_usage",
|
|
3075
|
-
});
|
|
3076
|
-
});
|
|
3077
|
-
|
|
3078
|
-
export function runAgentFallbackModelConfigurationStreamOptionsToJSON(
|
|
3079
|
-
runAgentFallbackModelConfigurationStreamOptions:
|
|
3080
|
-
RunAgentFallbackModelConfigurationStreamOptions,
|
|
3081
|
-
): string {
|
|
3082
|
-
return JSON.stringify(
|
|
3083
|
-
RunAgentFallbackModelConfigurationStreamOptions$outboundSchema.parse(
|
|
3084
|
-
runAgentFallbackModelConfigurationStreamOptions,
|
|
3085
|
-
),
|
|
3086
|
-
);
|
|
3087
|
-
}
|
|
3088
|
-
|
|
3089
2708
|
/** @internal */
|
|
3090
2709
|
export type RunAgentFallbackModelConfigurationThinking$Outbound =
|
|
3091
2710
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
@@ -3291,37 +2910,6 @@ export function runAgentFallbackModelConfigurationFallbacksToJSON(
|
|
|
3291
2910
|
);
|
|
3292
2911
|
}
|
|
3293
2912
|
|
|
3294
|
-
/** @internal */
|
|
3295
|
-
export type RunAgentFallbackModelConfigurationRetry$Outbound = {
|
|
3296
|
-
count: number;
|
|
3297
|
-
on_codes?: Array<number> | undefined;
|
|
3298
|
-
};
|
|
3299
|
-
|
|
3300
|
-
/** @internal */
|
|
3301
|
-
export const RunAgentFallbackModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
3302
|
-
RunAgentFallbackModelConfigurationRetry$Outbound,
|
|
3303
|
-
z.ZodTypeDef,
|
|
3304
|
-
RunAgentFallbackModelConfigurationRetry
|
|
3305
|
-
> = z.object({
|
|
3306
|
-
count: z.number().default(3),
|
|
3307
|
-
onCodes: z.array(z.number()).optional(),
|
|
3308
|
-
}).transform((v) => {
|
|
3309
|
-
return remap$(v, {
|
|
3310
|
-
onCodes: "on_codes",
|
|
3311
|
-
});
|
|
3312
|
-
});
|
|
3313
|
-
|
|
3314
|
-
export function runAgentFallbackModelConfigurationRetryToJSON(
|
|
3315
|
-
runAgentFallbackModelConfigurationRetry:
|
|
3316
|
-
RunAgentFallbackModelConfigurationRetry,
|
|
3317
|
-
): string {
|
|
3318
|
-
return JSON.stringify(
|
|
3319
|
-
RunAgentFallbackModelConfigurationRetry$outboundSchema.parse(
|
|
3320
|
-
runAgentFallbackModelConfigurationRetry,
|
|
3321
|
-
),
|
|
3322
|
-
);
|
|
3323
|
-
}
|
|
3324
|
-
|
|
3325
2913
|
/** @internal */
|
|
3326
2914
|
export const RunAgentFallbackModelConfigurationType$outboundSchema:
|
|
3327
2915
|
z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationType> = z.nativeEnum(
|
|
@@ -3470,13 +3058,9 @@ export function runAgentFallbackModelConfigurationTimeoutToJSON(
|
|
|
3470
3058
|
/** @internal */
|
|
3471
3059
|
export type RunAgentFallbackModelConfigurationParameters$Outbound = {
|
|
3472
3060
|
name?: string | undefined;
|
|
3473
|
-
audio?: RunAgentFallbackModelConfigurationAudio$Outbound | null | undefined;
|
|
3474
3061
|
frequency_penalty?: number | null | undefined;
|
|
3475
3062
|
max_tokens?: number | null | undefined;
|
|
3476
3063
|
max_completion_tokens?: number | null | undefined;
|
|
3477
|
-
logprobs?: boolean | null | undefined;
|
|
3478
|
-
top_logprobs?: number | null | undefined;
|
|
3479
|
-
n?: number | null | undefined;
|
|
3480
3064
|
presence_penalty?: number | null | undefined;
|
|
3481
3065
|
response_format?:
|
|
3482
3066
|
| RunAgentResponseFormatAgentsText$Outbound
|
|
@@ -3487,10 +3071,6 @@ export type RunAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3487
3071
|
verbosity?: string | undefined;
|
|
3488
3072
|
seed?: number | null | undefined;
|
|
3489
3073
|
stop?: string | Array<string> | null | undefined;
|
|
3490
|
-
stream_options?:
|
|
3491
|
-
| RunAgentFallbackModelConfigurationStreamOptions$Outbound
|
|
3492
|
-
| null
|
|
3493
|
-
| undefined;
|
|
3494
3074
|
thinking?:
|
|
3495
3075
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3496
3076
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
@@ -3507,7 +3087,6 @@ export type RunAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3507
3087
|
fallbacks?:
|
|
3508
3088
|
| Array<RunAgentFallbackModelConfigurationFallbacks$Outbound>
|
|
3509
3089
|
| undefined;
|
|
3510
|
-
retry?: RunAgentFallbackModelConfigurationRetry$Outbound | undefined;
|
|
3511
3090
|
cache?: RunAgentFallbackModelConfigurationCache$Outbound | undefined;
|
|
3512
3091
|
load_balancer?: RunAgentLoadBalancerAgents1$Outbound | undefined;
|
|
3513
3092
|
timeout?: RunAgentFallbackModelConfigurationTimeout$Outbound | undefined;
|
|
@@ -3521,15 +3100,9 @@ export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3521
3100
|
RunAgentFallbackModelConfigurationParameters
|
|
3522
3101
|
> = z.object({
|
|
3523
3102
|
name: z.string().optional(),
|
|
3524
|
-
audio: z.nullable(
|
|
3525
|
-
z.lazy(() => RunAgentFallbackModelConfigurationAudio$outboundSchema),
|
|
3526
|
-
).optional(),
|
|
3527
3103
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
3528
3104
|
maxTokens: z.nullable(z.number().int()).optional(),
|
|
3529
3105
|
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
3530
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
3531
|
-
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
3532
|
-
n: z.nullable(z.number().int()).optional(),
|
|
3533
3106
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
3534
3107
|
responseFormat: z.union([
|
|
3535
3108
|
z.lazy(() => RunAgentResponseFormatAgentsText$outboundSchema),
|
|
@@ -3544,11 +3117,6 @@ export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3544
3117
|
verbosity: z.string().optional(),
|
|
3545
3118
|
seed: z.nullable(z.number()).optional(),
|
|
3546
3119
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
3547
|
-
streamOptions: z.nullable(
|
|
3548
|
-
z.lazy(() =>
|
|
3549
|
-
RunAgentFallbackModelConfigurationStreamOptions$outboundSchema
|
|
3550
|
-
),
|
|
3551
|
-
).optional(),
|
|
3552
3120
|
thinking: z.union([
|
|
3553
3121
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3554
3122
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
@@ -3570,8 +3138,6 @@ export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3570
3138
|
fallbacks: z.array(
|
|
3571
3139
|
z.lazy(() => RunAgentFallbackModelConfigurationFallbacks$outboundSchema),
|
|
3572
3140
|
).optional(),
|
|
3573
|
-
retry: z.lazy(() => RunAgentFallbackModelConfigurationRetry$outboundSchema)
|
|
3574
|
-
.optional(),
|
|
3575
3141
|
cache: z.lazy(() => RunAgentFallbackModelConfigurationCache$outboundSchema)
|
|
3576
3142
|
.optional(),
|
|
3577
3143
|
loadBalancer: z.lazy(() => RunAgentLoadBalancerAgents1$outboundSchema)
|
|
@@ -3584,11 +3150,9 @@ export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3584
3150
|
frequencyPenalty: "frequency_penalty",
|
|
3585
3151
|
maxTokens: "max_tokens",
|
|
3586
3152
|
maxCompletionTokens: "max_completion_tokens",
|
|
3587
|
-
topLogprobs: "top_logprobs",
|
|
3588
3153
|
presencePenalty: "presence_penalty",
|
|
3589
3154
|
responseFormat: "response_format",
|
|
3590
3155
|
reasoningEffort: "reasoning_effort",
|
|
3591
|
-
streamOptions: "stream_options",
|
|
3592
3156
|
topP: "top_p",
|
|
3593
3157
|
topK: "top_k",
|
|
3594
3158
|
toolChoice: "tool_choice",
|
|
@@ -3609,33 +3173,32 @@ export function runAgentFallbackModelConfigurationParametersToJSON(
|
|
|
3609
3173
|
}
|
|
3610
3174
|
|
|
3611
3175
|
/** @internal */
|
|
3612
|
-
export type
|
|
3176
|
+
export type RunAgentFallbackModelConfigurationRetry$Outbound = {
|
|
3613
3177
|
count: number;
|
|
3614
3178
|
on_codes?: Array<number> | undefined;
|
|
3615
3179
|
};
|
|
3616
3180
|
|
|
3617
3181
|
/** @internal */
|
|
3618
|
-
export const
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
onCodes: "on_codes",
|
|
3629
|
-
});
|
|
3182
|
+
export const RunAgentFallbackModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
3183
|
+
RunAgentFallbackModelConfigurationRetry$Outbound,
|
|
3184
|
+
z.ZodTypeDef,
|
|
3185
|
+
RunAgentFallbackModelConfigurationRetry
|
|
3186
|
+
> = z.object({
|
|
3187
|
+
count: z.number().default(3),
|
|
3188
|
+
onCodes: z.array(z.number()).optional(),
|
|
3189
|
+
}).transform((v) => {
|
|
3190
|
+
return remap$(v, {
|
|
3191
|
+
onCodes: "on_codes",
|
|
3630
3192
|
});
|
|
3193
|
+
});
|
|
3631
3194
|
|
|
3632
|
-
export function
|
|
3633
|
-
|
|
3634
|
-
|
|
3195
|
+
export function runAgentFallbackModelConfigurationRetryToJSON(
|
|
3196
|
+
runAgentFallbackModelConfigurationRetry:
|
|
3197
|
+
RunAgentFallbackModelConfigurationRetry,
|
|
3635
3198
|
): string {
|
|
3636
3199
|
return JSON.stringify(
|
|
3637
|
-
|
|
3638
|
-
|
|
3200
|
+
RunAgentFallbackModelConfigurationRetry$outboundSchema.parse(
|
|
3201
|
+
runAgentFallbackModelConfigurationRetry,
|
|
3639
3202
|
),
|
|
3640
3203
|
);
|
|
3641
3204
|
}
|
|
@@ -3646,7 +3209,7 @@ export type RunAgentFallbackModelConfiguration2$Outbound = {
|
|
|
3646
3209
|
parameters?:
|
|
3647
3210
|
| RunAgentFallbackModelConfigurationParameters$Outbound
|
|
3648
3211
|
| undefined;
|
|
3649
|
-
retry?:
|
|
3212
|
+
retry?: RunAgentFallbackModelConfigurationRetry$Outbound | undefined;
|
|
3650
3213
|
};
|
|
3651
3214
|
|
|
3652
3215
|
/** @internal */
|
|
@@ -3659,9 +3222,8 @@ export const RunAgentFallbackModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
3659
3222
|
parameters: z.lazy(() =>
|
|
3660
3223
|
RunAgentFallbackModelConfigurationParameters$outboundSchema
|
|
3661
3224
|
).optional(),
|
|
3662
|
-
retry: z.lazy(() =>
|
|
3663
|
-
|
|
3664
|
-
).optional(),
|
|
3225
|
+
retry: z.lazy(() => RunAgentFallbackModelConfigurationRetry$outboundSchema)
|
|
3226
|
+
.optional(),
|
|
3665
3227
|
});
|
|
3666
3228
|
|
|
3667
3229
|
export function runAgentFallbackModelConfiguration2ToJSON(
|
|
@@ -4031,7 +3593,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
4031
3593
|
z.ZodTypeDef,
|
|
4032
3594
|
Tools
|
|
4033
3595
|
> = z.object({
|
|
4034
|
-
id: z.string().default("
|
|
3596
|
+
id: z.string().default("01KJWE7V4YJZ66B8VGS9TY5CC2"),
|
|
4035
3597
|
name: z.string(),
|
|
4036
3598
|
description: z.string().optional(),
|
|
4037
3599
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|