@orq-ai/node 4.4.12 → 4.4.16
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 +3 -3
- package/lib/config.js +3 -3
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +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/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/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/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.js +1 -1
- package/models/operations/streamrunagent.js +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/packages/orq-rc/src/funcs/agentsList.ts +5 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
- package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +182 -0
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +2 -2
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/createagentresponse.ts +6 -0
- package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
- package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
- package/packages/orq-rc/src/models/components/index.ts +3 -0
- package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +6 -0
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +6 -0
- package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
- package/packages/orq-rc/src/models/errors/index.ts +2 -0
- package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
- package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +755 -1212
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +35 -1
- package/packages/orq-rc/src/models/operations/createannotation.ts +5 -1
- package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createknowledge.ts +19 -17
- package/packages/orq-rc/src/models/operations/createprompt.ts +55 -66
- package/packages/orq-rc/src/models/operations/createtool.ts +103 -91
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +38 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +38 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
- package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
- package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
- package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +93 -87
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/index.ts +3 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +45 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +751 -787
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +72 -64
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
- package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +962 -857
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +69 -493
- package/packages/orq-rc/src/models/operations/streamagent.ts +40 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +36 -493
- package/packages/orq-rc/src/models/operations/updateagent.ts +966 -1313
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +97 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +74 -49
- package/packages/orq-rc/src/sdk/agents.ts +39 -1
- package/packages/orq-rc/src/sdk/responses.ts +19 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- 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/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/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/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 +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- 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
|
/**
|
|
@@ -1648,7 +1458,152 @@ export type CreateAgentRequestRequestBody = {
|
|
|
1648
1458
|
/**
|
|
1649
1459
|
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
1650
1460
|
*/
|
|
1651
|
-
export const
|
|
1461
|
+
export const ResponseBodyStatus = {
|
|
1462
|
+
Live: "live",
|
|
1463
|
+
Draft: "draft",
|
|
1464
|
+
Pending: "pending",
|
|
1465
|
+
Published: "published",
|
|
1466
|
+
} as const;
|
|
1467
|
+
/**
|
|
1468
|
+
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
1469
|
+
*/
|
|
1470
|
+
export type ResponseBodyStatus = ClosedEnum<typeof ResponseBodyStatus>;
|
|
1471
|
+
|
|
1472
|
+
export type CreateAgentRequestResponseBodyTeamOfAgents = {
|
|
1473
|
+
/**
|
|
1474
|
+
* The unique key of the agent within the workspace
|
|
1475
|
+
*/
|
|
1476
|
+
key: string;
|
|
1477
|
+
/**
|
|
1478
|
+
* The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
|
|
1479
|
+
*/
|
|
1480
|
+
role?: string | undefined;
|
|
1481
|
+
};
|
|
1482
|
+
|
|
1483
|
+
export type CreateAgentRequestResponseBodyMetrics = {
|
|
1484
|
+
totalCost: number;
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1487
|
+
export type CreateAgentRequestResponseBodyKnowledgeBases = {
|
|
1488
|
+
/**
|
|
1489
|
+
* Unique identifier of the knowledge base to search
|
|
1490
|
+
*/
|
|
1491
|
+
knowledgeId: string;
|
|
1492
|
+
};
|
|
1493
|
+
|
|
1494
|
+
export const CreateAgentRequestResponseBodySource = {
|
|
1495
|
+
Internal: "internal",
|
|
1496
|
+
External: "external",
|
|
1497
|
+
Experiment: "experiment",
|
|
1498
|
+
} as const;
|
|
1499
|
+
export type CreateAgentRequestResponseBodySource = ClosedEnum<
|
|
1500
|
+
typeof CreateAgentRequestResponseBodySource
|
|
1501
|
+
>;
|
|
1502
|
+
|
|
1503
|
+
export type ResponseBodyHeaders = {
|
|
1504
|
+
/**
|
|
1505
|
+
* Header value. **Update behavior**: Provide empty string ("") to preserve existing encrypted value without re-entering credentials. Provide new value to rotate. Omit header entirely to remove.
|
|
1506
|
+
*/
|
|
1507
|
+
value: string;
|
|
1508
|
+
encrypted: boolean;
|
|
1509
|
+
};
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
|
|
1513
|
+
*/
|
|
1514
|
+
export type A2AAgentConfiguration = {
|
|
1515
|
+
/**
|
|
1516
|
+
* The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
|
|
1517
|
+
*/
|
|
1518
|
+
agentUrl: string;
|
|
1519
|
+
/**
|
|
1520
|
+
* Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
|
|
1521
|
+
*/
|
|
1522
|
+
cardUrl?: string | undefined;
|
|
1523
|
+
/**
|
|
1524
|
+
* HTTP headers for A2A agent requests with encryption support (max 20 headers). **Update behavior**: Empty string values preserve existing encrypted headers, allowing partial updates without credential re-entry.
|
|
1525
|
+
*/
|
|
1526
|
+
headers?: { [k: string]: ResponseBodyHeaders } | undefined;
|
|
1527
|
+
/**
|
|
1528
|
+
* Cached agent card from discovery. Refreshed periodically.
|
|
1529
|
+
*/
|
|
1530
|
+
cachedCard?: any | undefined;
|
|
1531
|
+
};
|
|
1532
|
+
|
|
1533
|
+
export type ResponseBody2 = {
|
|
1534
|
+
id: string;
|
|
1535
|
+
/**
|
|
1536
|
+
* Unique identifier for the agent within the workspace
|
|
1537
|
+
*/
|
|
1538
|
+
key: string;
|
|
1539
|
+
displayName?: string | undefined;
|
|
1540
|
+
projectId: string;
|
|
1541
|
+
createdById?: string | null | undefined;
|
|
1542
|
+
updatedById?: string | null | undefined;
|
|
1543
|
+
created?: string | undefined;
|
|
1544
|
+
updated?: string | undefined;
|
|
1545
|
+
/**
|
|
1546
|
+
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
1547
|
+
*/
|
|
1548
|
+
status: ResponseBodyStatus;
|
|
1549
|
+
versionHash?: string | undefined;
|
|
1550
|
+
/**
|
|
1551
|
+
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
1552
|
+
*
|
|
1553
|
+
* @remarks
|
|
1554
|
+
*
|
|
1555
|
+
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
1556
|
+
*
|
|
1557
|
+
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
1558
|
+
*/
|
|
1559
|
+
path: string;
|
|
1560
|
+
/**
|
|
1561
|
+
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
1562
|
+
*/
|
|
1563
|
+
memoryStores?: Array<string> | undefined;
|
|
1564
|
+
/**
|
|
1565
|
+
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
1566
|
+
*/
|
|
1567
|
+
teamOfAgents?: Array<CreateAgentRequestResponseBodyTeamOfAgents> | undefined;
|
|
1568
|
+
metrics?: CreateAgentRequestResponseBodyMetrics | undefined;
|
|
1569
|
+
/**
|
|
1570
|
+
* Extracted variables from agent instructions
|
|
1571
|
+
*/
|
|
1572
|
+
variables?: { [k: string]: any } | undefined;
|
|
1573
|
+
/**
|
|
1574
|
+
* Agent knowledge bases reference
|
|
1575
|
+
*/
|
|
1576
|
+
knowledgeBases?:
|
|
1577
|
+
| Array<CreateAgentRequestResponseBodyKnowledgeBases>
|
|
1578
|
+
| undefined;
|
|
1579
|
+
source?: CreateAgentRequestResponseBodySource | undefined;
|
|
1580
|
+
/**
|
|
1581
|
+
* External A2A-compliant agent
|
|
1582
|
+
*/
|
|
1583
|
+
type: "a2a";
|
|
1584
|
+
/**
|
|
1585
|
+
* Role fetched from agent card name or user-provided
|
|
1586
|
+
*/
|
|
1587
|
+
role: string;
|
|
1588
|
+
/**
|
|
1589
|
+
* Description fetched from agent card or user-provided
|
|
1590
|
+
*/
|
|
1591
|
+
description: string;
|
|
1592
|
+
systemPrompt?: string | undefined;
|
|
1593
|
+
/**
|
|
1594
|
+
* Instructions from agent card description or user-provided
|
|
1595
|
+
*/
|
|
1596
|
+
instructions: string;
|
|
1597
|
+
/**
|
|
1598
|
+
* A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
|
|
1599
|
+
*/
|
|
1600
|
+
a2a: A2AAgentConfiguration;
|
|
1601
|
+
};
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
1605
|
+
*/
|
|
1606
|
+
export const CreateAgentRequestResponseBodyStatus = {
|
|
1652
1607
|
Live: "live",
|
|
1653
1608
|
Draft: "draft",
|
|
1654
1609
|
Pending: "pending",
|
|
@@ -1657,14 +1612,43 @@ export const CreateAgentRequestStatus = {
|
|
|
1657
1612
|
/**
|
|
1658
1613
|
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
1659
1614
|
*/
|
|
1660
|
-
export type
|
|
1661
|
-
typeof
|
|
1615
|
+
export type CreateAgentRequestResponseBodyStatus = ClosedEnum<
|
|
1616
|
+
typeof CreateAgentRequestResponseBodyStatus
|
|
1662
1617
|
>;
|
|
1663
1618
|
|
|
1619
|
+
export type ResponseBodyTeamOfAgents = {
|
|
1620
|
+
/**
|
|
1621
|
+
* The unique key of the agent within the workspace
|
|
1622
|
+
*/
|
|
1623
|
+
key: string;
|
|
1624
|
+
/**
|
|
1625
|
+
* The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
|
|
1626
|
+
*/
|
|
1627
|
+
role?: string | undefined;
|
|
1628
|
+
};
|
|
1629
|
+
|
|
1630
|
+
export type ResponseBodyMetrics = {
|
|
1631
|
+
totalCost: number;
|
|
1632
|
+
};
|
|
1633
|
+
|
|
1634
|
+
export type ResponseBodyKnowledgeBases = {
|
|
1635
|
+
/**
|
|
1636
|
+
* Unique identifier of the knowledge base to search
|
|
1637
|
+
*/
|
|
1638
|
+
knowledgeId: string;
|
|
1639
|
+
};
|
|
1640
|
+
|
|
1641
|
+
export const ResponseBodySource = {
|
|
1642
|
+
Internal: "internal",
|
|
1643
|
+
External: "external",
|
|
1644
|
+
Experiment: "experiment",
|
|
1645
|
+
} as const;
|
|
1646
|
+
export type ResponseBodySource = ClosedEnum<typeof ResponseBodySource>;
|
|
1647
|
+
|
|
1664
1648
|
/**
|
|
1665
1649
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
1666
1650
|
*/
|
|
1667
|
-
export const
|
|
1651
|
+
export const ResponseBodyToolApprovalRequired = {
|
|
1668
1652
|
All: "all",
|
|
1669
1653
|
RespectTool: "respect_tool",
|
|
1670
1654
|
None: "none",
|
|
@@ -1672,8 +1656,8 @@ export const CreateAgentRequestToolApprovalRequired = {
|
|
|
1672
1656
|
/**
|
|
1673
1657
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
1674
1658
|
*/
|
|
1675
|
-
export type
|
|
1676
|
-
typeof
|
|
1659
|
+
export type ResponseBodyToolApprovalRequired = ClosedEnum<
|
|
1660
|
+
typeof ResponseBodyToolApprovalRequired
|
|
1677
1661
|
>;
|
|
1678
1662
|
|
|
1679
1663
|
export type Conditions = {
|
|
@@ -1691,7 +1675,7 @@ export type Conditions = {
|
|
|
1691
1675
|
value: string;
|
|
1692
1676
|
};
|
|
1693
1677
|
|
|
1694
|
-
export type
|
|
1678
|
+
export type ResponseBodyTools = {
|
|
1695
1679
|
/**
|
|
1696
1680
|
* The id of the resource
|
|
1697
1681
|
*/
|
|
@@ -1721,18 +1705,16 @@ export type CreateAgentRequestTools = {
|
|
|
1721
1705
|
/**
|
|
1722
1706
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1723
1707
|
*/
|
|
1724
|
-
export const
|
|
1708
|
+
export const ResponseBodyExecuteOn = {
|
|
1725
1709
|
Input: "input",
|
|
1726
1710
|
Output: "output",
|
|
1727
1711
|
} as const;
|
|
1728
1712
|
/**
|
|
1729
1713
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1730
1714
|
*/
|
|
1731
|
-
export type
|
|
1732
|
-
typeof CreateAgentRequestAgentsResponseExecuteOn
|
|
1733
|
-
>;
|
|
1715
|
+
export type ResponseBodyExecuteOn = ClosedEnum<typeof ResponseBodyExecuteOn>;
|
|
1734
1716
|
|
|
1735
|
-
export type
|
|
1717
|
+
export type ResponseBodyEvaluators = {
|
|
1736
1718
|
/**
|
|
1737
1719
|
* Unique key or identifier of the evaluator
|
|
1738
1720
|
*/
|
|
@@ -1744,24 +1726,24 @@ export type CreateAgentRequestEvaluators = {
|
|
|
1744
1726
|
/**
|
|
1745
1727
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1746
1728
|
*/
|
|
1747
|
-
executeOn:
|
|
1729
|
+
executeOn: ResponseBodyExecuteOn;
|
|
1748
1730
|
};
|
|
1749
1731
|
|
|
1750
1732
|
/**
|
|
1751
1733
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1752
1734
|
*/
|
|
1753
|
-
export const
|
|
1735
|
+
export const CreateAgentRequestResponseBodyExecuteOn = {
|
|
1754
1736
|
Input: "input",
|
|
1755
1737
|
Output: "output",
|
|
1756
1738
|
} as const;
|
|
1757
1739
|
/**
|
|
1758
1740
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1759
1741
|
*/
|
|
1760
|
-
export type
|
|
1761
|
-
typeof
|
|
1742
|
+
export type CreateAgentRequestResponseBodyExecuteOn = ClosedEnum<
|
|
1743
|
+
typeof CreateAgentRequestResponseBodyExecuteOn
|
|
1762
1744
|
>;
|
|
1763
1745
|
|
|
1764
|
-
export type
|
|
1746
|
+
export type ResponseBodyGuardrails = {
|
|
1765
1747
|
/**
|
|
1766
1748
|
* Unique key or identifier of the evaluator
|
|
1767
1749
|
*/
|
|
@@ -1773,10 +1755,10 @@ export type CreateAgentRequestAgentsGuardrails = {
|
|
|
1773
1755
|
/**
|
|
1774
1756
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1775
1757
|
*/
|
|
1776
|
-
executeOn:
|
|
1758
|
+
executeOn: CreateAgentRequestResponseBodyExecuteOn;
|
|
1777
1759
|
};
|
|
1778
1760
|
|
|
1779
|
-
export type
|
|
1761
|
+
export type ResponseBodySettings = {
|
|
1780
1762
|
/**
|
|
1781
1763
|
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
1782
1764
|
*/
|
|
@@ -1792,65 +1774,16 @@ export type CreateAgentRequestSettings = {
|
|
|
1792
1774
|
/**
|
|
1793
1775
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
1794
1776
|
*/
|
|
1795
|
-
toolApprovalRequired:
|
|
1796
|
-
tools?: Array<
|
|
1777
|
+
toolApprovalRequired: ResponseBodyToolApprovalRequired;
|
|
1778
|
+
tools?: Array<ResponseBodyTools> | undefined;
|
|
1797
1779
|
/**
|
|
1798
1780
|
* Configuration for an evaluator applied to the agent
|
|
1799
1781
|
*/
|
|
1800
|
-
evaluators?: Array<
|
|
1782
|
+
evaluators?: Array<ResponseBodyEvaluators> | undefined;
|
|
1801
1783
|
/**
|
|
1802
1784
|
* Configuration for a guardrail applied to the agent
|
|
1803
1785
|
*/
|
|
1804
|
-
guardrails?: Array<
|
|
1805
|
-
};
|
|
1806
|
-
|
|
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;
|
|
1786
|
+
guardrails?: Array<ResponseBodyGuardrails> | undefined;
|
|
1854
1787
|
};
|
|
1855
1788
|
|
|
1856
1789
|
export type CreateAgentRequestResponseFormatAgentsResponseJsonSchema = {
|
|
@@ -1903,7 +1836,7 @@ export type CreateAgentRequestResponseFormatText = {
|
|
|
1903
1836
|
/**
|
|
1904
1837
|
* An object specifying the format that the model must output
|
|
1905
1838
|
*/
|
|
1906
|
-
export type
|
|
1839
|
+
export type ResponseBodyResponseFormat =
|
|
1907
1840
|
| CreateAgentRequestResponseFormatText
|
|
1908
1841
|
| CreateAgentRequestResponseFormatJSONObject
|
|
1909
1842
|
| CreateAgentRequestResponseFormatAgentsResponse201JSONSchema;
|
|
@@ -1920,7 +1853,7 @@ export type CreateAgentRequestResponseFormat =
|
|
|
1920
1853
|
*
|
|
1921
1854
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
1922
1855
|
*/
|
|
1923
|
-
export const
|
|
1856
|
+
export const ResponseBodyReasoningEffort = {
|
|
1924
1857
|
None: "none",
|
|
1925
1858
|
Minimal: "minimal",
|
|
1926
1859
|
Low: "low",
|
|
@@ -1940,26 +1873,16 @@ export const CreateAgentRequestReasoningEffort = {
|
|
|
1940
1873
|
*
|
|
1941
1874
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
1942
1875
|
*/
|
|
1943
|
-
export type
|
|
1944
|
-
typeof
|
|
1876
|
+
export type ResponseBodyReasoningEffort = ClosedEnum<
|
|
1877
|
+
typeof ResponseBodyReasoningEffort
|
|
1945
1878
|
>;
|
|
1946
1879
|
|
|
1947
1880
|
/**
|
|
1948
1881
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
1949
1882
|
*/
|
|
1950
|
-
export type
|
|
1951
|
-
|
|
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
|
-
};
|
|
1883
|
+
export type ResponseBodyStop = string | Array<string>;
|
|
1961
1884
|
|
|
1962
|
-
export type
|
|
1885
|
+
export type ResponseBodyThinking =
|
|
1963
1886
|
| components.ThinkingConfigDisabledSchema
|
|
1964
1887
|
| components.ThinkingConfigEnabledSchema;
|
|
1965
1888
|
|
|
@@ -2003,17 +1926,15 @@ export type CreateAgentRequestToolChoiceAgents1 = ClosedEnum<
|
|
|
2003
1926
|
/**
|
|
2004
1927
|
* Controls which (if any) tool is called by the model.
|
|
2005
1928
|
*/
|
|
2006
|
-
export type
|
|
1929
|
+
export type ResponseBodyToolChoice =
|
|
2007
1930
|
| CreateAgentRequestToolChoiceAgents2
|
|
2008
1931
|
| CreateAgentRequestToolChoiceAgents1;
|
|
2009
1932
|
|
|
2010
|
-
export const
|
|
1933
|
+
export const ResponseBodyModalities = {
|
|
2011
1934
|
Text: "text",
|
|
2012
1935
|
Audio: "audio",
|
|
2013
1936
|
} as const;
|
|
2014
|
-
export type
|
|
2015
|
-
typeof CreateAgentRequestModalities
|
|
2016
|
-
>;
|
|
1937
|
+
export type ResponseBodyModalities = ClosedEnum<typeof ResponseBodyModalities>;
|
|
2017
1938
|
|
|
2018
1939
|
/**
|
|
2019
1940
|
* The key of the guardrail.
|
|
@@ -2030,66 +1951,53 @@ export type CreateAgentRequestIdAgents1 = ClosedEnum<
|
|
|
2030
1951
|
typeof CreateAgentRequestIdAgents1
|
|
2031
1952
|
>;
|
|
2032
1953
|
|
|
2033
|
-
export type
|
|
1954
|
+
export type ResponseBodyId = CreateAgentRequestIdAgents1 | string;
|
|
2034
1955
|
|
|
2035
1956
|
/**
|
|
2036
1957
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2037
1958
|
*/
|
|
2038
|
-
export const
|
|
1959
|
+
export const CreateAgentRequestResponseBodyAgentsExecuteOn = {
|
|
2039
1960
|
Input: "input",
|
|
2040
1961
|
Output: "output",
|
|
2041
1962
|
} as const;
|
|
2042
1963
|
/**
|
|
2043
1964
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2044
1965
|
*/
|
|
2045
|
-
export type
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
>;
|
|
1966
|
+
export type CreateAgentRequestResponseBodyAgentsExecuteOn = ClosedEnum<
|
|
1967
|
+
typeof CreateAgentRequestResponseBodyAgentsExecuteOn
|
|
1968
|
+
>;
|
|
2049
1969
|
|
|
2050
|
-
export type
|
|
1970
|
+
export type CreateAgentRequestResponseBodyGuardrails = {
|
|
2051
1971
|
id: CreateAgentRequestIdAgents1 | string;
|
|
2052
1972
|
/**
|
|
2053
1973
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2054
1974
|
*/
|
|
2055
|
-
executeOn:
|
|
1975
|
+
executeOn: CreateAgentRequestResponseBodyAgentsExecuteOn;
|
|
2056
1976
|
};
|
|
2057
1977
|
|
|
2058
|
-
export type
|
|
1978
|
+
export type ResponseBodyFallbacks = {
|
|
2059
1979
|
/**
|
|
2060
1980
|
* Fallback model identifier
|
|
2061
1981
|
*/
|
|
2062
1982
|
model: string;
|
|
2063
1983
|
};
|
|
2064
1984
|
|
|
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
|
-
export const CreateAgentRequestType = {
|
|
1985
|
+
export const CreateAgentRequestResponseBodyAgentsResponseType = {
|
|
2080
1986
|
ExactMatch: "exact_match",
|
|
2081
1987
|
} as const;
|
|
2082
|
-
export type
|
|
1988
|
+
export type CreateAgentRequestResponseBodyAgentsResponseType = ClosedEnum<
|
|
1989
|
+
typeof CreateAgentRequestResponseBodyAgentsResponseType
|
|
1990
|
+
>;
|
|
2083
1991
|
|
|
2084
1992
|
/**
|
|
2085
1993
|
* Cache configuration for the request.
|
|
2086
1994
|
*/
|
|
2087
|
-
export type
|
|
1995
|
+
export type ResponseBodyCache = {
|
|
2088
1996
|
/**
|
|
2089
1997
|
* Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
|
|
2090
1998
|
*/
|
|
2091
1999
|
ttl: number;
|
|
2092
|
-
type:
|
|
2000
|
+
type: CreateAgentRequestResponseBodyAgentsResponseType;
|
|
2093
2001
|
};
|
|
2094
2002
|
|
|
2095
2003
|
export const CreateAgentRequestLoadBalancerAgentsType = {
|
|
@@ -2118,13 +2026,12 @@ export type CreateAgentRequestLoadBalancerAgents1 = {
|
|
|
2118
2026
|
/**
|
|
2119
2027
|
* Load balancer configuration for the request.
|
|
2120
2028
|
*/
|
|
2121
|
-
export type
|
|
2122
|
-
CreateAgentRequestLoadBalancerAgents1;
|
|
2029
|
+
export type ResponseBodyLoadBalancer = CreateAgentRequestLoadBalancerAgents1;
|
|
2123
2030
|
|
|
2124
2031
|
/**
|
|
2125
2032
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
2126
2033
|
*/
|
|
2127
|
-
export type
|
|
2034
|
+
export type ResponseBodyTimeout = {
|
|
2128
2035
|
/**
|
|
2129
2036
|
* Timeout value in milliseconds
|
|
2130
2037
|
*/
|
|
@@ -2134,15 +2041,11 @@ export type CreateAgentRequestTimeout = {
|
|
|
2134
2041
|
/**
|
|
2135
2042
|
* Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
|
|
2136
2043
|
*/
|
|
2137
|
-
export type
|
|
2044
|
+
export type ResponseBodyParameters = {
|
|
2138
2045
|
/**
|
|
2139
2046
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
2140
2047
|
*/
|
|
2141
2048
|
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
2049
|
/**
|
|
2147
2050
|
* 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
2051
|
*/
|
|
@@ -2159,18 +2062,6 @@ export type CreateAgentRequestParameters = {
|
|
|
2159
2062
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
2160
2063
|
*/
|
|
2161
2064
|
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
2065
|
/**
|
|
2175
2066
|
* 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
2067
|
*/
|
|
@@ -2195,7 +2086,7 @@ export type CreateAgentRequestParameters = {
|
|
|
2195
2086
|
*
|
|
2196
2087
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
2197
2088
|
*/
|
|
2198
|
-
reasoningEffort?:
|
|
2089
|
+
reasoningEffort?: ResponseBodyReasoningEffort | undefined;
|
|
2199
2090
|
/**
|
|
2200
2091
|
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
2201
2092
|
*/
|
|
@@ -2208,10 +2099,6 @@ export type CreateAgentRequestParameters = {
|
|
|
2208
2099
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
2209
2100
|
*/
|
|
2210
2101
|
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
2102
|
thinking?:
|
|
2216
2103
|
| components.ThinkingConfigDisabledSchema
|
|
2217
2104
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -2242,23 +2129,19 @@ export type CreateAgentRequestParameters = {
|
|
|
2242
2129
|
/**
|
|
2243
2130
|
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
2244
2131
|
*/
|
|
2245
|
-
modalities?: Array<
|
|
2132
|
+
modalities?: Array<ResponseBodyModalities> | null | undefined;
|
|
2246
2133
|
/**
|
|
2247
2134
|
* A list of guardrails to apply to the request.
|
|
2248
2135
|
*/
|
|
2249
|
-
guardrails?: Array<
|
|
2136
|
+
guardrails?: Array<CreateAgentRequestResponseBodyGuardrails> | undefined;
|
|
2250
2137
|
/**
|
|
2251
2138
|
* Array of fallback models to use if primary model fails
|
|
2252
2139
|
*/
|
|
2253
|
-
fallbacks?: Array<
|
|
2254
|
-
/**
|
|
2255
|
-
* Retry configuration for the request
|
|
2256
|
-
*/
|
|
2257
|
-
retry?: CreateAgentRequestAgentsRetry | undefined;
|
|
2140
|
+
fallbacks?: Array<ResponseBodyFallbacks> | undefined;
|
|
2258
2141
|
/**
|
|
2259
2142
|
* Cache configuration for the request.
|
|
2260
2143
|
*/
|
|
2261
|
-
cache?:
|
|
2144
|
+
cache?: ResponseBodyCache | undefined;
|
|
2262
2145
|
/**
|
|
2263
2146
|
* Load balancer configuration for the request.
|
|
2264
2147
|
*/
|
|
@@ -2266,13 +2149,13 @@ export type CreateAgentRequestParameters = {
|
|
|
2266
2149
|
/**
|
|
2267
2150
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
2268
2151
|
*/
|
|
2269
|
-
timeout?:
|
|
2152
|
+
timeout?: ResponseBodyTimeout | undefined;
|
|
2270
2153
|
};
|
|
2271
2154
|
|
|
2272
2155
|
/**
|
|
2273
2156
|
* Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
|
|
2274
2157
|
*/
|
|
2275
|
-
export type
|
|
2158
|
+
export type ResponseBodyRetry = {
|
|
2276
2159
|
/**
|
|
2277
2160
|
* Number of retry attempts (1-5)
|
|
2278
2161
|
*/
|
|
@@ -2283,55 +2166,6 @@ export type CreateAgentRequestRetry = {
|
|
|
2283
2166
|
onCodes?: Array<number> | undefined;
|
|
2284
2167
|
};
|
|
2285
2168
|
|
|
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
2169
|
export type CreateAgentRequestResponseFormatAgentsResponse201ApplicationJSONJSONSchema =
|
|
2336
2170
|
{
|
|
2337
2171
|
/**
|
|
@@ -2434,16 +2268,6 @@ export type CreateAgentRequestFallbackModelConfigurationStop =
|
|
|
2434
2268
|
| string
|
|
2435
2269
|
| Array<string>;
|
|
2436
2270
|
|
|
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
2271
|
export type CreateAgentRequestFallbackModelConfigurationThinking =
|
|
2448
2272
|
| components.ThinkingConfigDisabledSchema
|
|
2449
2273
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -2548,20 +2372,6 @@ export type CreateAgentRequestFallbackModelConfigurationFallbacks = {
|
|
|
2548
2372
|
model: string;
|
|
2549
2373
|
};
|
|
2550
2374
|
|
|
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
2375
|
export const CreateAgentRequestFallbackModelConfigurationType = {
|
|
2566
2376
|
ExactMatch: "exact_match",
|
|
2567
2377
|
} as const;
|
|
@@ -2627,10 +2437,6 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2627
2437
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
2628
2438
|
*/
|
|
2629
2439
|
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
2440
|
/**
|
|
2635
2441
|
* 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
2442
|
*/
|
|
@@ -2647,18 +2453,6 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2647
2453
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
2648
2454
|
*/
|
|
2649
2455
|
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
2456
|
/**
|
|
2663
2457
|
* 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
2458
|
*/
|
|
@@ -2698,13 +2492,6 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2698
2492
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
2699
2493
|
*/
|
|
2700
2494
|
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
2495
|
thinking?:
|
|
2709
2496
|
| components.ThinkingConfigDisabledSchema
|
|
2710
2497
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -2751,12 +2538,6 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2751
2538
|
fallbacks?:
|
|
2752
2539
|
| Array<CreateAgentRequestFallbackModelConfigurationFallbacks>
|
|
2753
2540
|
| undefined;
|
|
2754
|
-
/**
|
|
2755
|
-
* Retry configuration for the request
|
|
2756
|
-
*/
|
|
2757
|
-
retry?:
|
|
2758
|
-
| CreateAgentRequestFallbackModelConfigurationAgentsResponseRetry
|
|
2759
|
-
| undefined;
|
|
2760
2541
|
/**
|
|
2761
2542
|
* Cache configuration for the request.
|
|
2762
2543
|
*/
|
|
@@ -2774,7 +2555,7 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2774
2555
|
/**
|
|
2775
2556
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
2776
2557
|
*/
|
|
2777
|
-
export type
|
|
2558
|
+
export type CreateAgentRequestFallbackModelConfigurationRetry = {
|
|
2778
2559
|
/**
|
|
2779
2560
|
* Number of retry attempts (1-5)
|
|
2780
2561
|
*/
|
|
@@ -2802,13 +2583,13 @@ export type CreateAgentRequestFallbackModelConfiguration2 = {
|
|
|
2802
2583
|
/**
|
|
2803
2584
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
2804
2585
|
*/
|
|
2805
|
-
retry?:
|
|
2586
|
+
retry?: CreateAgentRequestFallbackModelConfigurationRetry | undefined;
|
|
2806
2587
|
};
|
|
2807
2588
|
|
|
2808
2589
|
/**
|
|
2809
2590
|
* Fallback model for automatic failover when primary model request fails. Supports optional parameter overrides. Can be a simple model ID string or a configuration object with model-specific parameters. Fallbacks are tried in order.
|
|
2810
2591
|
*/
|
|
2811
|
-
export type
|
|
2592
|
+
export type ResponseBodyFallbackModelConfiguration =
|
|
2812
2593
|
| CreateAgentRequestFallbackModelConfiguration2
|
|
2813
2594
|
| string;
|
|
2814
2595
|
|
|
@@ -2824,11 +2605,11 @@ export type Model = {
|
|
|
2824
2605
|
/**
|
|
2825
2606
|
* Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
|
|
2826
2607
|
*/
|
|
2827
|
-
parameters?:
|
|
2608
|
+
parameters?: ResponseBodyParameters | undefined;
|
|
2828
2609
|
/**
|
|
2829
2610
|
* Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
|
|
2830
2611
|
*/
|
|
2831
|
-
retry?:
|
|
2612
|
+
retry?: ResponseBodyRetry | undefined;
|
|
2832
2613
|
/**
|
|
2833
2614
|
* Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
|
|
2834
2615
|
*/
|
|
@@ -2838,41 +2619,7 @@ export type Model = {
|
|
|
2838
2619
|
| undefined;
|
|
2839
2620
|
};
|
|
2840
2621
|
|
|
2841
|
-
export type
|
|
2842
|
-
/**
|
|
2843
|
-
* The unique key of the agent within the workspace
|
|
2844
|
-
*/
|
|
2845
|
-
key: string;
|
|
2846
|
-
/**
|
|
2847
|
-
* The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
|
|
2848
|
-
*/
|
|
2849
|
-
role?: string | undefined;
|
|
2850
|
-
};
|
|
2851
|
-
|
|
2852
|
-
export type Metrics = {
|
|
2853
|
-
totalCost: number;
|
|
2854
|
-
};
|
|
2855
|
-
|
|
2856
|
-
export type CreateAgentRequestKnowledgeBases = {
|
|
2857
|
-
/**
|
|
2858
|
-
* Unique identifier of the knowledge base to search
|
|
2859
|
-
*/
|
|
2860
|
-
knowledgeId: string;
|
|
2861
|
-
};
|
|
2862
|
-
|
|
2863
|
-
export const CreateAgentRequestSource = {
|
|
2864
|
-
Internal: "internal",
|
|
2865
|
-
External: "external",
|
|
2866
|
-
Experiment: "experiment",
|
|
2867
|
-
} as const;
|
|
2868
|
-
export type CreateAgentRequestSource = ClosedEnum<
|
|
2869
|
-
typeof CreateAgentRequestSource
|
|
2870
|
-
>;
|
|
2871
|
-
|
|
2872
|
-
/**
|
|
2873
|
-
* Agent successfully created and ready for use. Returns the complete agent manifest including the generated ID, configuration, and all settings.
|
|
2874
|
-
*/
|
|
2875
|
-
export type CreateAgentRequestResponseBody = {
|
|
2622
|
+
export type ResponseBody1 = {
|
|
2876
2623
|
id: string;
|
|
2877
2624
|
/**
|
|
2878
2625
|
* Unique identifier for the agent within the workspace
|
|
@@ -2884,16 +2631,10 @@ export type CreateAgentRequestResponseBody = {
|
|
|
2884
2631
|
updatedById?: string | null | undefined;
|
|
2885
2632
|
created?: string | undefined;
|
|
2886
2633
|
updated?: string | undefined;
|
|
2887
|
-
role: string;
|
|
2888
|
-
description: string;
|
|
2889
|
-
systemPrompt?: string | undefined;
|
|
2890
|
-
instructions: string;
|
|
2891
2634
|
/**
|
|
2892
2635
|
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
2893
2636
|
*/
|
|
2894
|
-
status:
|
|
2895
|
-
settings?: CreateAgentRequestSettings | undefined;
|
|
2896
|
-
model: Model;
|
|
2637
|
+
status: CreateAgentRequestResponseBodyStatus;
|
|
2897
2638
|
versionHash?: string | undefined;
|
|
2898
2639
|
/**
|
|
2899
2640
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -2908,12 +2649,12 @@ export type CreateAgentRequestResponseBody = {
|
|
|
2908
2649
|
/**
|
|
2909
2650
|
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
2910
2651
|
*/
|
|
2911
|
-
memoryStores
|
|
2652
|
+
memoryStores?: Array<string> | undefined;
|
|
2912
2653
|
/**
|
|
2913
2654
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
2914
2655
|
*/
|
|
2915
|
-
teamOfAgents
|
|
2916
|
-
metrics?:
|
|
2656
|
+
teamOfAgents?: Array<ResponseBodyTeamOfAgents> | undefined;
|
|
2657
|
+
metrics?: ResponseBodyMetrics | undefined;
|
|
2917
2658
|
/**
|
|
2918
2659
|
* Extracted variables from agent instructions
|
|
2919
2660
|
*/
|
|
@@ -2921,42 +2662,24 @@ export type CreateAgentRequestResponseBody = {
|
|
|
2921
2662
|
/**
|
|
2922
2663
|
* Agent knowledge bases reference
|
|
2923
2664
|
*/
|
|
2924
|
-
knowledgeBases?: Array<
|
|
2925
|
-
source?:
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
/** @internal */
|
|
2938
|
-
export type ModelConfigurationAudio$Outbound = {
|
|
2939
|
-
voice: string;
|
|
2940
|
-
format: string;
|
|
2665
|
+
knowledgeBases?: Array<ResponseBodyKnowledgeBases> | undefined;
|
|
2666
|
+
source?: ResponseBodySource | undefined;
|
|
2667
|
+
/**
|
|
2668
|
+
* Orquesta-managed agent
|
|
2669
|
+
*/
|
|
2670
|
+
type: "internal";
|
|
2671
|
+
role: string;
|
|
2672
|
+
description: string;
|
|
2673
|
+
systemPrompt?: string | undefined;
|
|
2674
|
+
instructions: string;
|
|
2675
|
+
settings?: ResponseBodySettings | undefined;
|
|
2676
|
+
model: Model;
|
|
2941
2677
|
};
|
|
2942
2678
|
|
|
2943
|
-
/**
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
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
|
-
}
|
|
2679
|
+
/**
|
|
2680
|
+
* Agent successfully created and ready for use. Returns the complete agent manifest including the generated ID, configuration, and all settings.
|
|
2681
|
+
*/
|
|
2682
|
+
export type CreateAgentRequestResponseBody = ResponseBody1 | ResponseBody2;
|
|
2960
2683
|
|
|
2961
2684
|
/** @internal */
|
|
2962
2685
|
export type ResponseFormatJsonSchema$Outbound = {
|
|
@@ -3080,28 +2803,6 @@ export function stopToJSON(stop: Stop): string {
|
|
|
3080
2803
|
return JSON.stringify(Stop$outboundSchema.parse(stop));
|
|
3081
2804
|
}
|
|
3082
2805
|
|
|
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
2806
|
/** @internal */
|
|
3106
2807
|
export type Thinking$Outbound =
|
|
3107
2808
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
@@ -3255,30 +2956,6 @@ export function fallbacksToJSON(fallbacks: Fallbacks): string {
|
|
|
3255
2956
|
return JSON.stringify(Fallbacks$outboundSchema.parse(fallbacks));
|
|
3256
2957
|
}
|
|
3257
2958
|
|
|
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
|
-
});
|
|
3276
|
-
});
|
|
3277
|
-
|
|
3278
|
-
export function retryToJSON(retry: Retry): string {
|
|
3279
|
-
return JSON.stringify(Retry$outboundSchema.parse(retry));
|
|
3280
|
-
}
|
|
3281
|
-
|
|
3282
2959
|
/** @internal */
|
|
3283
2960
|
export const ModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
3284
2961
|
typeof ModelConfigurationType
|
|
@@ -3388,13 +3065,9 @@ export function timeoutToJSON(timeout: Timeout): string {
|
|
|
3388
3065
|
/** @internal */
|
|
3389
3066
|
export type ParametersT$Outbound = {
|
|
3390
3067
|
name?: string | undefined;
|
|
3391
|
-
audio?: ModelConfigurationAudio$Outbound | null | undefined;
|
|
3392
3068
|
frequency_penalty?: number | null | undefined;
|
|
3393
3069
|
max_tokens?: number | null | undefined;
|
|
3394
3070
|
max_completion_tokens?: number | null | undefined;
|
|
3395
|
-
logprobs?: boolean | null | undefined;
|
|
3396
|
-
top_logprobs?: number | null | undefined;
|
|
3397
|
-
n?: number | null | undefined;
|
|
3398
3071
|
presence_penalty?: number | null | undefined;
|
|
3399
3072
|
response_format?:
|
|
3400
3073
|
| Text$Outbound
|
|
@@ -3405,7 +3078,6 @@ export type ParametersT$Outbound = {
|
|
|
3405
3078
|
verbosity?: string | undefined;
|
|
3406
3079
|
seed?: number | null | undefined;
|
|
3407
3080
|
stop?: string | Array<string> | null | undefined;
|
|
3408
|
-
stream_options?: StreamOptions$Outbound | null | undefined;
|
|
3409
3081
|
thinking?:
|
|
3410
3082
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3411
3083
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
@@ -3418,7 +3090,6 @@ export type ParametersT$Outbound = {
|
|
|
3418
3090
|
modalities?: Array<string> | null | undefined;
|
|
3419
3091
|
guardrails?: Array<Guardrails$Outbound> | undefined;
|
|
3420
3092
|
fallbacks?: Array<Fallbacks$Outbound> | undefined;
|
|
3421
|
-
retry?: Retry$Outbound | undefined;
|
|
3422
3093
|
cache?: Cache$Outbound | undefined;
|
|
3423
3094
|
load_balancer?: LoadBalancer1$Outbound | undefined;
|
|
3424
3095
|
timeout?: Timeout$Outbound | undefined;
|
|
@@ -3431,14 +3102,9 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
3431
3102
|
ParametersT
|
|
3432
3103
|
> = z.object({
|
|
3433
3104
|
name: z.string().optional(),
|
|
3434
|
-
audio: z.nullable(z.lazy(() => ModelConfigurationAudio$outboundSchema))
|
|
3435
|
-
.optional(),
|
|
3436
3105
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
3437
3106
|
maxTokens: z.nullable(z.number().int()).optional(),
|
|
3438
3107
|
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
3108
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
3443
3109
|
responseFormat: z.union([
|
|
3444
3110
|
z.lazy(() => Text$outboundSchema),
|
|
@@ -3449,8 +3115,6 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
3449
3115
|
verbosity: z.string().optional(),
|
|
3450
3116
|
seed: z.nullable(z.number()).optional(),
|
|
3451
3117
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
3452
|
-
streamOptions: z.nullable(z.lazy(() => StreamOptions$outboundSchema))
|
|
3453
|
-
.optional(),
|
|
3454
3118
|
thinking: z.union([
|
|
3455
3119
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3456
3120
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
@@ -3466,7 +3130,6 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
3466
3130
|
modalities: z.nullable(z.array(Modalities$outboundSchema)).optional(),
|
|
3467
3131
|
guardrails: z.array(z.lazy(() => Guardrails$outboundSchema)).optional(),
|
|
3468
3132
|
fallbacks: z.array(z.lazy(() => Fallbacks$outboundSchema)).optional(),
|
|
3469
|
-
retry: z.lazy(() => Retry$outboundSchema).optional(),
|
|
3470
3133
|
cache: z.lazy(() => Cache$outboundSchema).optional(),
|
|
3471
3134
|
loadBalancer: z.lazy(() => LoadBalancer1$outboundSchema).optional(),
|
|
3472
3135
|
timeout: z.lazy(() => Timeout$outboundSchema).optional(),
|
|
@@ -3475,11 +3138,9 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
3475
3138
|
frequencyPenalty: "frequency_penalty",
|
|
3476
3139
|
maxTokens: "max_tokens",
|
|
3477
3140
|
maxCompletionTokens: "max_completion_tokens",
|
|
3478
|
-
topLogprobs: "top_logprobs",
|
|
3479
3141
|
presencePenalty: "presence_penalty",
|
|
3480
3142
|
responseFormat: "response_format",
|
|
3481
3143
|
reasoningEffort: "reasoning_effort",
|
|
3482
|
-
streamOptions: "stream_options",
|
|
3483
3144
|
topP: "top_p",
|
|
3484
3145
|
topK: "top_k",
|
|
3485
3146
|
toolChoice: "tool_choice",
|
|
@@ -3493,16 +3154,16 @@ export function parametersToJSON(parametersT: ParametersT): string {
|
|
|
3493
3154
|
}
|
|
3494
3155
|
|
|
3495
3156
|
/** @internal */
|
|
3496
|
-
export type
|
|
3157
|
+
export type Retry$Outbound = {
|
|
3497
3158
|
count: number;
|
|
3498
3159
|
on_codes?: Array<number> | undefined;
|
|
3499
3160
|
};
|
|
3500
3161
|
|
|
3501
3162
|
/** @internal */
|
|
3502
|
-
export const
|
|
3503
|
-
|
|
3163
|
+
export const Retry$outboundSchema: z.ZodType<
|
|
3164
|
+
Retry$Outbound,
|
|
3504
3165
|
z.ZodTypeDef,
|
|
3505
|
-
|
|
3166
|
+
Retry
|
|
3506
3167
|
> = z.object({
|
|
3507
3168
|
count: z.number().default(3),
|
|
3508
3169
|
onCodes: z.array(z.number()).optional(),
|
|
@@ -3512,19 +3173,15 @@ export const ModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
|
3512
3173
|
});
|
|
3513
3174
|
});
|
|
3514
3175
|
|
|
3515
|
-
export function
|
|
3516
|
-
|
|
3517
|
-
): string {
|
|
3518
|
-
return JSON.stringify(
|
|
3519
|
-
ModelConfigurationRetry$outboundSchema.parse(modelConfigurationRetry),
|
|
3520
|
-
);
|
|
3176
|
+
export function retryToJSON(retry: Retry): string {
|
|
3177
|
+
return JSON.stringify(Retry$outboundSchema.parse(retry));
|
|
3521
3178
|
}
|
|
3522
3179
|
|
|
3523
3180
|
/** @internal */
|
|
3524
3181
|
export type ModelConfiguration2$Outbound = {
|
|
3525
3182
|
id: string;
|
|
3526
3183
|
parameters?: ParametersT$Outbound | undefined;
|
|
3527
|
-
retry?:
|
|
3184
|
+
retry?: Retry$Outbound | undefined;
|
|
3528
3185
|
};
|
|
3529
3186
|
|
|
3530
3187
|
/** @internal */
|
|
@@ -3535,7 +3192,7 @@ export const ModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
3535
3192
|
> = z.object({
|
|
3536
3193
|
id: z.string(),
|
|
3537
3194
|
parameters: z.lazy(() => ParametersT$outboundSchema).optional(),
|
|
3538
|
-
retry: z.lazy(() =>
|
|
3195
|
+
retry: z.lazy(() => Retry$outboundSchema).optional(),
|
|
3539
3196
|
});
|
|
3540
3197
|
|
|
3541
3198
|
export function modelConfiguration2ToJSON(
|
|
@@ -3564,42 +3221,6 @@ export function modelConfigurationToJSON(
|
|
|
3564
3221
|
);
|
|
3565
3222
|
}
|
|
3566
3223
|
|
|
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
3224
|
/** @internal */
|
|
3604
3225
|
export type CreateAgentRequestResponseFormatAgentsJsonSchema$Outbound = {
|
|
3605
3226
|
description?: string | undefined;
|
|
@@ -3763,35 +3384,6 @@ export function fallbackModelConfigurationStopToJSON(
|
|
|
3763
3384
|
);
|
|
3764
3385
|
}
|
|
3765
3386
|
|
|
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
3387
|
/** @internal */
|
|
3796
3388
|
export type FallbackModelConfigurationThinking$Outbound =
|
|
3797
3389
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
@@ -3993,36 +3585,6 @@ export function fallbackModelConfigurationFallbacksToJSON(
|
|
|
3993
3585
|
);
|
|
3994
3586
|
}
|
|
3995
3587
|
|
|
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
3588
|
/** @internal */
|
|
4027
3589
|
export const FallbackModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
4028
3590
|
typeof FallbackModelConfigurationType
|
|
@@ -4162,13 +3724,9 @@ export function fallbackModelConfigurationTimeoutToJSON(
|
|
|
4162
3724
|
/** @internal */
|
|
4163
3725
|
export type FallbackModelConfigurationParameters$Outbound = {
|
|
4164
3726
|
name?: string | undefined;
|
|
4165
|
-
audio?: FallbackModelConfigurationAudio$Outbound | null | undefined;
|
|
4166
3727
|
frequency_penalty?: number | null | undefined;
|
|
4167
3728
|
max_tokens?: number | null | undefined;
|
|
4168
3729
|
max_completion_tokens?: number | null | undefined;
|
|
4169
|
-
logprobs?: boolean | null | undefined;
|
|
4170
|
-
top_logprobs?: number | null | undefined;
|
|
4171
|
-
n?: number | null | undefined;
|
|
4172
3730
|
presence_penalty?: number | null | undefined;
|
|
4173
3731
|
response_format?:
|
|
4174
3732
|
| ResponseFormatText$Outbound
|
|
@@ -4179,10 +3737,6 @@ export type FallbackModelConfigurationParameters$Outbound = {
|
|
|
4179
3737
|
verbosity?: string | undefined;
|
|
4180
3738
|
seed?: number | null | undefined;
|
|
4181
3739
|
stop?: string | Array<string> | null | undefined;
|
|
4182
|
-
stream_options?:
|
|
4183
|
-
| FallbackModelConfigurationStreamOptions$Outbound
|
|
4184
|
-
| null
|
|
4185
|
-
| undefined;
|
|
4186
3740
|
thinking?:
|
|
4187
3741
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
4188
3742
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
@@ -4195,7 +3749,6 @@ export type FallbackModelConfigurationParameters$Outbound = {
|
|
|
4195
3749
|
modalities?: Array<string> | null | undefined;
|
|
4196
3750
|
guardrails?: Array<FallbackModelConfigurationGuardrails$Outbound> | undefined;
|
|
4197
3751
|
fallbacks?: Array<FallbackModelConfigurationFallbacks$Outbound> | undefined;
|
|
4198
|
-
retry?: FallbackModelConfigurationRetry$Outbound | undefined;
|
|
4199
3752
|
cache?: FallbackModelConfigurationCache$Outbound | undefined;
|
|
4200
3753
|
load_balancer?: CreateAgentRequestLoadBalancer1$Outbound | undefined;
|
|
4201
3754
|
timeout?: FallbackModelConfigurationTimeout$Outbound | undefined;
|
|
@@ -4208,15 +3761,9 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
4208
3761
|
FallbackModelConfigurationParameters
|
|
4209
3762
|
> = z.object({
|
|
4210
3763
|
name: z.string().optional(),
|
|
4211
|
-
audio: z.nullable(
|
|
4212
|
-
z.lazy(() => FallbackModelConfigurationAudio$outboundSchema),
|
|
4213
|
-
).optional(),
|
|
4214
3764
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
4215
3765
|
maxTokens: z.nullable(z.number().int()).optional(),
|
|
4216
3766
|
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
3767
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
4221
3768
|
responseFormat: z.union([
|
|
4222
3769
|
z.lazy(() => ResponseFormatText$outboundSchema),
|
|
@@ -4228,9 +3775,6 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
4228
3775
|
verbosity: z.string().optional(),
|
|
4229
3776
|
seed: z.nullable(z.number()).optional(),
|
|
4230
3777
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
4231
|
-
streamOptions: z.nullable(
|
|
4232
|
-
z.lazy(() => FallbackModelConfigurationStreamOptions$outboundSchema),
|
|
4233
|
-
).optional(),
|
|
4234
3778
|
thinking: z.union([
|
|
4235
3779
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
4236
3780
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
@@ -4252,8 +3796,6 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
4252
3796
|
fallbacks: z.array(
|
|
4253
3797
|
z.lazy(() => FallbackModelConfigurationFallbacks$outboundSchema),
|
|
4254
3798
|
).optional(),
|
|
4255
|
-
retry: z.lazy(() => FallbackModelConfigurationRetry$outboundSchema)
|
|
4256
|
-
.optional(),
|
|
4257
3799
|
cache: z.lazy(() => FallbackModelConfigurationCache$outboundSchema)
|
|
4258
3800
|
.optional(),
|
|
4259
3801
|
loadBalancer: z.lazy(() => CreateAgentRequestLoadBalancer1$outboundSchema)
|
|
@@ -4265,11 +3807,9 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
4265
3807
|
frequencyPenalty: "frequency_penalty",
|
|
4266
3808
|
maxTokens: "max_tokens",
|
|
4267
3809
|
maxCompletionTokens: "max_completion_tokens",
|
|
4268
|
-
topLogprobs: "top_logprobs",
|
|
4269
3810
|
presencePenalty: "presence_penalty",
|
|
4270
3811
|
responseFormat: "response_format",
|
|
4271
3812
|
reasoningEffort: "reasoning_effort",
|
|
4272
|
-
streamOptions: "stream_options",
|
|
4273
3813
|
topP: "top_p",
|
|
4274
3814
|
topK: "top_k",
|
|
4275
3815
|
toolChoice: "tool_choice",
|
|
@@ -4289,33 +3829,31 @@ export function fallbackModelConfigurationParametersToJSON(
|
|
|
4289
3829
|
}
|
|
4290
3830
|
|
|
4291
3831
|
/** @internal */
|
|
4292
|
-
export type
|
|
3832
|
+
export type FallbackModelConfigurationRetry$Outbound = {
|
|
4293
3833
|
count: number;
|
|
4294
3834
|
on_codes?: Array<number> | undefined;
|
|
4295
3835
|
};
|
|
4296
3836
|
|
|
4297
3837
|
/** @internal */
|
|
4298
|
-
export const
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
onCodes: "on_codes",
|
|
4309
|
-
});
|
|
3838
|
+
export const FallbackModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
3839
|
+
FallbackModelConfigurationRetry$Outbound,
|
|
3840
|
+
z.ZodTypeDef,
|
|
3841
|
+
FallbackModelConfigurationRetry
|
|
3842
|
+
> = z.object({
|
|
3843
|
+
count: z.number().default(3),
|
|
3844
|
+
onCodes: z.array(z.number()).optional(),
|
|
3845
|
+
}).transform((v) => {
|
|
3846
|
+
return remap$(v, {
|
|
3847
|
+
onCodes: "on_codes",
|
|
4310
3848
|
});
|
|
3849
|
+
});
|
|
4311
3850
|
|
|
4312
|
-
export function
|
|
4313
|
-
|
|
4314
|
-
CreateAgentRequestFallbackModelConfigurationRetry,
|
|
3851
|
+
export function fallbackModelConfigurationRetryToJSON(
|
|
3852
|
+
fallbackModelConfigurationRetry: FallbackModelConfigurationRetry,
|
|
4315
3853
|
): string {
|
|
4316
3854
|
return JSON.stringify(
|
|
4317
|
-
|
|
4318
|
-
|
|
3855
|
+
FallbackModelConfigurationRetry$outboundSchema.parse(
|
|
3856
|
+
fallbackModelConfigurationRetry,
|
|
4319
3857
|
),
|
|
4320
3858
|
);
|
|
4321
3859
|
}
|
|
@@ -4324,9 +3862,7 @@ export function createAgentRequestFallbackModelConfigurationRetryToJSON(
|
|
|
4324
3862
|
export type FallbackModelConfiguration2$Outbound = {
|
|
4325
3863
|
id: string;
|
|
4326
3864
|
parameters?: FallbackModelConfigurationParameters$Outbound | undefined;
|
|
4327
|
-
retry?:
|
|
4328
|
-
| CreateAgentRequestFallbackModelConfigurationRetry$Outbound
|
|
4329
|
-
| undefined;
|
|
3865
|
+
retry?: FallbackModelConfigurationRetry$Outbound | undefined;
|
|
4330
3866
|
};
|
|
4331
3867
|
|
|
4332
3868
|
/** @internal */
|
|
@@ -4338,9 +3874,8 @@ export const FallbackModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
4338
3874
|
id: z.string(),
|
|
4339
3875
|
parameters: z.lazy(() => FallbackModelConfigurationParameters$outboundSchema)
|
|
4340
3876
|
.optional(),
|
|
4341
|
-
retry: z.lazy(() =>
|
|
4342
|
-
|
|
4343
|
-
).optional(),
|
|
3877
|
+
retry: z.lazy(() => FallbackModelConfigurationRetry$outboundSchema)
|
|
3878
|
+
.optional(),
|
|
4344
3879
|
});
|
|
4345
3880
|
|
|
4346
3881
|
export function fallbackModelConfiguration2ToJSON(
|
|
@@ -5314,16 +4849,283 @@ export function createAgentRequestRequestBodyToJSON(
|
|
|
5314
4849
|
}
|
|
5315
4850
|
|
|
5316
4851
|
/** @internal */
|
|
5317
|
-
export const
|
|
5318
|
-
typeof
|
|
5319
|
-
> = z.nativeEnum(
|
|
4852
|
+
export const ResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
|
|
4853
|
+
typeof ResponseBodyStatus
|
|
4854
|
+
> = z.nativeEnum(ResponseBodyStatus);
|
|
4855
|
+
|
|
4856
|
+
/** @internal */
|
|
4857
|
+
export const CreateAgentRequestResponseBodyTeamOfAgents$inboundSchema:
|
|
4858
|
+
z.ZodType<CreateAgentRequestResponseBodyTeamOfAgents, z.ZodTypeDef, unknown> =
|
|
4859
|
+
z.object({
|
|
4860
|
+
key: z.string(),
|
|
4861
|
+
role: z.string().optional(),
|
|
4862
|
+
});
|
|
4863
|
+
|
|
4864
|
+
export function createAgentRequestResponseBodyTeamOfAgentsFromJSON(
|
|
4865
|
+
jsonString: string,
|
|
4866
|
+
): SafeParseResult<
|
|
4867
|
+
CreateAgentRequestResponseBodyTeamOfAgents,
|
|
4868
|
+
SDKValidationError
|
|
4869
|
+
> {
|
|
4870
|
+
return safeParse(
|
|
4871
|
+
jsonString,
|
|
4872
|
+
(x) =>
|
|
4873
|
+
CreateAgentRequestResponseBodyTeamOfAgents$inboundSchema.parse(
|
|
4874
|
+
JSON.parse(x),
|
|
4875
|
+
),
|
|
4876
|
+
`Failed to parse 'CreateAgentRequestResponseBodyTeamOfAgents' from JSON`,
|
|
4877
|
+
);
|
|
4878
|
+
}
|
|
4879
|
+
|
|
4880
|
+
/** @internal */
|
|
4881
|
+
export const CreateAgentRequestResponseBodyMetrics$inboundSchema: z.ZodType<
|
|
4882
|
+
CreateAgentRequestResponseBodyMetrics,
|
|
4883
|
+
z.ZodTypeDef,
|
|
4884
|
+
unknown
|
|
4885
|
+
> = z.object({
|
|
4886
|
+
total_cost: z.number().default(0),
|
|
4887
|
+
}).transform((v) => {
|
|
4888
|
+
return remap$(v, {
|
|
4889
|
+
"total_cost": "totalCost",
|
|
4890
|
+
});
|
|
4891
|
+
});
|
|
4892
|
+
|
|
4893
|
+
export function createAgentRequestResponseBodyMetricsFromJSON(
|
|
4894
|
+
jsonString: string,
|
|
4895
|
+
): SafeParseResult<CreateAgentRequestResponseBodyMetrics, SDKValidationError> {
|
|
4896
|
+
return safeParse(
|
|
4897
|
+
jsonString,
|
|
4898
|
+
(x) =>
|
|
4899
|
+
CreateAgentRequestResponseBodyMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
4900
|
+
`Failed to parse 'CreateAgentRequestResponseBodyMetrics' from JSON`,
|
|
4901
|
+
);
|
|
4902
|
+
}
|
|
4903
|
+
|
|
4904
|
+
/** @internal */
|
|
4905
|
+
export const CreateAgentRequestResponseBodyKnowledgeBases$inboundSchema:
|
|
4906
|
+
z.ZodType<
|
|
4907
|
+
CreateAgentRequestResponseBodyKnowledgeBases,
|
|
4908
|
+
z.ZodTypeDef,
|
|
4909
|
+
unknown
|
|
4910
|
+
> = z.object({
|
|
4911
|
+
knowledge_id: z.string(),
|
|
4912
|
+
}).transform((v) => {
|
|
4913
|
+
return remap$(v, {
|
|
4914
|
+
"knowledge_id": "knowledgeId",
|
|
4915
|
+
});
|
|
4916
|
+
});
|
|
4917
|
+
|
|
4918
|
+
export function createAgentRequestResponseBodyKnowledgeBasesFromJSON(
|
|
4919
|
+
jsonString: string,
|
|
4920
|
+
): SafeParseResult<
|
|
4921
|
+
CreateAgentRequestResponseBodyKnowledgeBases,
|
|
4922
|
+
SDKValidationError
|
|
4923
|
+
> {
|
|
4924
|
+
return safeParse(
|
|
4925
|
+
jsonString,
|
|
4926
|
+
(x) =>
|
|
4927
|
+
CreateAgentRequestResponseBodyKnowledgeBases$inboundSchema.parse(
|
|
4928
|
+
JSON.parse(x),
|
|
4929
|
+
),
|
|
4930
|
+
`Failed to parse 'CreateAgentRequestResponseBodyKnowledgeBases' from JSON`,
|
|
4931
|
+
);
|
|
4932
|
+
}
|
|
5320
4933
|
|
|
5321
4934
|
/** @internal */
|
|
5322
|
-
export const
|
|
5323
|
-
z.ZodNativeEnum<typeof
|
|
5324
|
-
|
|
4935
|
+
export const CreateAgentRequestResponseBodySource$inboundSchema:
|
|
4936
|
+
z.ZodNativeEnum<typeof CreateAgentRequestResponseBodySource> = z.nativeEnum(
|
|
4937
|
+
CreateAgentRequestResponseBodySource,
|
|
5325
4938
|
);
|
|
5326
4939
|
|
|
4940
|
+
/** @internal */
|
|
4941
|
+
export const ResponseBodyHeaders$inboundSchema: z.ZodType<
|
|
4942
|
+
ResponseBodyHeaders,
|
|
4943
|
+
z.ZodTypeDef,
|
|
4944
|
+
unknown
|
|
4945
|
+
> = z.object({
|
|
4946
|
+
value: z.string(),
|
|
4947
|
+
encrypted: z.boolean().default(false),
|
|
4948
|
+
});
|
|
4949
|
+
|
|
4950
|
+
export function responseBodyHeadersFromJSON(
|
|
4951
|
+
jsonString: string,
|
|
4952
|
+
): SafeParseResult<ResponseBodyHeaders, SDKValidationError> {
|
|
4953
|
+
return safeParse(
|
|
4954
|
+
jsonString,
|
|
4955
|
+
(x) => ResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
4956
|
+
`Failed to parse 'ResponseBodyHeaders' from JSON`,
|
|
4957
|
+
);
|
|
4958
|
+
}
|
|
4959
|
+
|
|
4960
|
+
/** @internal */
|
|
4961
|
+
export const A2AAgentConfiguration$inboundSchema: z.ZodType<
|
|
4962
|
+
A2AAgentConfiguration,
|
|
4963
|
+
z.ZodTypeDef,
|
|
4964
|
+
unknown
|
|
4965
|
+
> = z.object({
|
|
4966
|
+
agent_url: z.string(),
|
|
4967
|
+
card_url: z.string().optional(),
|
|
4968
|
+
headers: z.record(z.lazy(() => ResponseBodyHeaders$inboundSchema)).optional(),
|
|
4969
|
+
cached_card: z.any().optional(),
|
|
4970
|
+
}).transform((v) => {
|
|
4971
|
+
return remap$(v, {
|
|
4972
|
+
"agent_url": "agentUrl",
|
|
4973
|
+
"card_url": "cardUrl",
|
|
4974
|
+
"cached_card": "cachedCard",
|
|
4975
|
+
});
|
|
4976
|
+
});
|
|
4977
|
+
|
|
4978
|
+
export function a2AAgentConfigurationFromJSON(
|
|
4979
|
+
jsonString: string,
|
|
4980
|
+
): SafeParseResult<A2AAgentConfiguration, SDKValidationError> {
|
|
4981
|
+
return safeParse(
|
|
4982
|
+
jsonString,
|
|
4983
|
+
(x) => A2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
4984
|
+
`Failed to parse 'A2AAgentConfiguration' from JSON`,
|
|
4985
|
+
);
|
|
4986
|
+
}
|
|
4987
|
+
|
|
4988
|
+
/** @internal */
|
|
4989
|
+
export const ResponseBody2$inboundSchema: z.ZodType<
|
|
4990
|
+
ResponseBody2,
|
|
4991
|
+
z.ZodTypeDef,
|
|
4992
|
+
unknown
|
|
4993
|
+
> = z.object({
|
|
4994
|
+
_id: z.string(),
|
|
4995
|
+
key: z.string(),
|
|
4996
|
+
display_name: z.string().optional(),
|
|
4997
|
+
project_id: z.string(),
|
|
4998
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
4999
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
5000
|
+
created: z.string().optional(),
|
|
5001
|
+
updated: z.string().optional(),
|
|
5002
|
+
status: ResponseBodyStatus$inboundSchema,
|
|
5003
|
+
version_hash: z.string().optional(),
|
|
5004
|
+
path: z.string(),
|
|
5005
|
+
memory_stores: z.array(z.string()).optional(),
|
|
5006
|
+
team_of_agents: z.array(
|
|
5007
|
+
z.lazy(() => CreateAgentRequestResponseBodyTeamOfAgents$inboundSchema),
|
|
5008
|
+
).optional(),
|
|
5009
|
+
metrics: z.lazy(() => CreateAgentRequestResponseBodyMetrics$inboundSchema)
|
|
5010
|
+
.optional(),
|
|
5011
|
+
variables: z.record(z.any()).optional(),
|
|
5012
|
+
knowledge_bases: z.array(
|
|
5013
|
+
z.lazy(() => CreateAgentRequestResponseBodyKnowledgeBases$inboundSchema),
|
|
5014
|
+
).optional(),
|
|
5015
|
+
source: CreateAgentRequestResponseBodySource$inboundSchema.optional(),
|
|
5016
|
+
type: z.literal("a2a"),
|
|
5017
|
+
role: z.string(),
|
|
5018
|
+
description: z.string(),
|
|
5019
|
+
system_prompt: z.string().optional(),
|
|
5020
|
+
instructions: z.string(),
|
|
5021
|
+
a2a: z.lazy(() => A2AAgentConfiguration$inboundSchema),
|
|
5022
|
+
}).transform((v) => {
|
|
5023
|
+
return remap$(v, {
|
|
5024
|
+
"_id": "id",
|
|
5025
|
+
"display_name": "displayName",
|
|
5026
|
+
"project_id": "projectId",
|
|
5027
|
+
"created_by_id": "createdById",
|
|
5028
|
+
"updated_by_id": "updatedById",
|
|
5029
|
+
"version_hash": "versionHash",
|
|
5030
|
+
"memory_stores": "memoryStores",
|
|
5031
|
+
"team_of_agents": "teamOfAgents",
|
|
5032
|
+
"knowledge_bases": "knowledgeBases",
|
|
5033
|
+
"system_prompt": "systemPrompt",
|
|
5034
|
+
});
|
|
5035
|
+
});
|
|
5036
|
+
|
|
5037
|
+
export function responseBody2FromJSON(
|
|
5038
|
+
jsonString: string,
|
|
5039
|
+
): SafeParseResult<ResponseBody2, SDKValidationError> {
|
|
5040
|
+
return safeParse(
|
|
5041
|
+
jsonString,
|
|
5042
|
+
(x) => ResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
5043
|
+
`Failed to parse 'ResponseBody2' from JSON`,
|
|
5044
|
+
);
|
|
5045
|
+
}
|
|
5046
|
+
|
|
5047
|
+
/** @internal */
|
|
5048
|
+
export const CreateAgentRequestResponseBodyStatus$inboundSchema:
|
|
5049
|
+
z.ZodNativeEnum<typeof CreateAgentRequestResponseBodyStatus> = z.nativeEnum(
|
|
5050
|
+
CreateAgentRequestResponseBodyStatus,
|
|
5051
|
+
);
|
|
5052
|
+
|
|
5053
|
+
/** @internal */
|
|
5054
|
+
export const ResponseBodyTeamOfAgents$inboundSchema: z.ZodType<
|
|
5055
|
+
ResponseBodyTeamOfAgents,
|
|
5056
|
+
z.ZodTypeDef,
|
|
5057
|
+
unknown
|
|
5058
|
+
> = z.object({
|
|
5059
|
+
key: z.string(),
|
|
5060
|
+
role: z.string().optional(),
|
|
5061
|
+
});
|
|
5062
|
+
|
|
5063
|
+
export function responseBodyTeamOfAgentsFromJSON(
|
|
5064
|
+
jsonString: string,
|
|
5065
|
+
): SafeParseResult<ResponseBodyTeamOfAgents, SDKValidationError> {
|
|
5066
|
+
return safeParse(
|
|
5067
|
+
jsonString,
|
|
5068
|
+
(x) => ResponseBodyTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
5069
|
+
`Failed to parse 'ResponseBodyTeamOfAgents' from JSON`,
|
|
5070
|
+
);
|
|
5071
|
+
}
|
|
5072
|
+
|
|
5073
|
+
/** @internal */
|
|
5074
|
+
export const ResponseBodyMetrics$inboundSchema: z.ZodType<
|
|
5075
|
+
ResponseBodyMetrics,
|
|
5076
|
+
z.ZodTypeDef,
|
|
5077
|
+
unknown
|
|
5078
|
+
> = z.object({
|
|
5079
|
+
total_cost: z.number().default(0),
|
|
5080
|
+
}).transform((v) => {
|
|
5081
|
+
return remap$(v, {
|
|
5082
|
+
"total_cost": "totalCost",
|
|
5083
|
+
});
|
|
5084
|
+
});
|
|
5085
|
+
|
|
5086
|
+
export function responseBodyMetricsFromJSON(
|
|
5087
|
+
jsonString: string,
|
|
5088
|
+
): SafeParseResult<ResponseBodyMetrics, SDKValidationError> {
|
|
5089
|
+
return safeParse(
|
|
5090
|
+
jsonString,
|
|
5091
|
+
(x) => ResponseBodyMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
5092
|
+
`Failed to parse 'ResponseBodyMetrics' from JSON`,
|
|
5093
|
+
);
|
|
5094
|
+
}
|
|
5095
|
+
|
|
5096
|
+
/** @internal */
|
|
5097
|
+
export const ResponseBodyKnowledgeBases$inboundSchema: z.ZodType<
|
|
5098
|
+
ResponseBodyKnowledgeBases,
|
|
5099
|
+
z.ZodTypeDef,
|
|
5100
|
+
unknown
|
|
5101
|
+
> = z.object({
|
|
5102
|
+
knowledge_id: z.string(),
|
|
5103
|
+
}).transform((v) => {
|
|
5104
|
+
return remap$(v, {
|
|
5105
|
+
"knowledge_id": "knowledgeId",
|
|
5106
|
+
});
|
|
5107
|
+
});
|
|
5108
|
+
|
|
5109
|
+
export function responseBodyKnowledgeBasesFromJSON(
|
|
5110
|
+
jsonString: string,
|
|
5111
|
+
): SafeParseResult<ResponseBodyKnowledgeBases, SDKValidationError> {
|
|
5112
|
+
return safeParse(
|
|
5113
|
+
jsonString,
|
|
5114
|
+
(x) => ResponseBodyKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
5115
|
+
`Failed to parse 'ResponseBodyKnowledgeBases' from JSON`,
|
|
5116
|
+
);
|
|
5117
|
+
}
|
|
5118
|
+
|
|
5119
|
+
/** @internal */
|
|
5120
|
+
export const ResponseBodySource$inboundSchema: z.ZodNativeEnum<
|
|
5121
|
+
typeof ResponseBodySource
|
|
5122
|
+
> = z.nativeEnum(ResponseBodySource);
|
|
5123
|
+
|
|
5124
|
+
/** @internal */
|
|
5125
|
+
export const ResponseBodyToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
|
|
5126
|
+
typeof ResponseBodyToolApprovalRequired
|
|
5127
|
+
> = z.nativeEnum(ResponseBodyToolApprovalRequired);
|
|
5128
|
+
|
|
5327
5129
|
/** @internal */
|
|
5328
5130
|
export const Conditions$inboundSchema: z.ZodType<
|
|
5329
5131
|
Conditions,
|
|
@@ -5346,8 +5148,8 @@ export function conditionsFromJSON(
|
|
|
5346
5148
|
}
|
|
5347
5149
|
|
|
5348
5150
|
/** @internal */
|
|
5349
|
-
export const
|
|
5350
|
-
|
|
5151
|
+
export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
5152
|
+
ResponseBodyTools,
|
|
5351
5153
|
z.ZodTypeDef,
|
|
5352
5154
|
unknown
|
|
5353
5155
|
> = z.object({
|
|
@@ -5369,30 +5171,30 @@ export const CreateAgentRequestTools$inboundSchema: z.ZodType<
|
|
|
5369
5171
|
});
|
|
5370
5172
|
});
|
|
5371
5173
|
|
|
5372
|
-
export function
|
|
5174
|
+
export function responseBodyToolsFromJSON(
|
|
5373
5175
|
jsonString: string,
|
|
5374
|
-
): SafeParseResult<
|
|
5176
|
+
): SafeParseResult<ResponseBodyTools, SDKValidationError> {
|
|
5375
5177
|
return safeParse(
|
|
5376
5178
|
jsonString,
|
|
5377
|
-
(x) =>
|
|
5378
|
-
`Failed to parse '
|
|
5179
|
+
(x) => ResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
|
|
5180
|
+
`Failed to parse 'ResponseBodyTools' from JSON`,
|
|
5379
5181
|
);
|
|
5380
5182
|
}
|
|
5381
5183
|
|
|
5382
5184
|
/** @internal */
|
|
5383
|
-
export const
|
|
5384
|
-
|
|
5385
|
-
|
|
5185
|
+
export const ResponseBodyExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
5186
|
+
typeof ResponseBodyExecuteOn
|
|
5187
|
+
> = z.nativeEnum(ResponseBodyExecuteOn);
|
|
5386
5188
|
|
|
5387
5189
|
/** @internal */
|
|
5388
|
-
export const
|
|
5389
|
-
|
|
5190
|
+
export const ResponseBodyEvaluators$inboundSchema: z.ZodType<
|
|
5191
|
+
ResponseBodyEvaluators,
|
|
5390
5192
|
z.ZodTypeDef,
|
|
5391
5193
|
unknown
|
|
5392
5194
|
> = z.object({
|
|
5393
5195
|
id: z.string(),
|
|
5394
5196
|
sample_rate: z.number().default(50),
|
|
5395
|
-
execute_on:
|
|
5197
|
+
execute_on: ResponseBodyExecuteOn$inboundSchema,
|
|
5396
5198
|
}).transform((v) => {
|
|
5397
5199
|
return remap$(v, {
|
|
5398
5200
|
"sample_rate": "sampleRate",
|
|
@@ -5400,30 +5202,30 @@ export const CreateAgentRequestEvaluators$inboundSchema: z.ZodType<
|
|
|
5400
5202
|
});
|
|
5401
5203
|
});
|
|
5402
5204
|
|
|
5403
|
-
export function
|
|
5205
|
+
export function responseBodyEvaluatorsFromJSON(
|
|
5404
5206
|
jsonString: string,
|
|
5405
|
-
): SafeParseResult<
|
|
5207
|
+
): SafeParseResult<ResponseBodyEvaluators, SDKValidationError> {
|
|
5406
5208
|
return safeParse(
|
|
5407
5209
|
jsonString,
|
|
5408
|
-
(x) =>
|
|
5409
|
-
`Failed to parse '
|
|
5210
|
+
(x) => ResponseBodyEvaluators$inboundSchema.parse(JSON.parse(x)),
|
|
5211
|
+
`Failed to parse 'ResponseBodyEvaluators' from JSON`,
|
|
5410
5212
|
);
|
|
5411
5213
|
}
|
|
5412
5214
|
|
|
5413
5215
|
/** @internal */
|
|
5414
|
-
export const
|
|
5415
|
-
z.ZodNativeEnum<typeof
|
|
5416
|
-
.nativeEnum(
|
|
5216
|
+
export const CreateAgentRequestResponseBodyExecuteOn$inboundSchema:
|
|
5217
|
+
z.ZodNativeEnum<typeof CreateAgentRequestResponseBodyExecuteOn> = z
|
|
5218
|
+
.nativeEnum(CreateAgentRequestResponseBodyExecuteOn);
|
|
5417
5219
|
|
|
5418
5220
|
/** @internal */
|
|
5419
|
-
export const
|
|
5420
|
-
|
|
5221
|
+
export const ResponseBodyGuardrails$inboundSchema: z.ZodType<
|
|
5222
|
+
ResponseBodyGuardrails,
|
|
5421
5223
|
z.ZodTypeDef,
|
|
5422
5224
|
unknown
|
|
5423
5225
|
> = z.object({
|
|
5424
5226
|
id: z.string(),
|
|
5425
5227
|
sample_rate: z.number().default(50),
|
|
5426
|
-
execute_on:
|
|
5228
|
+
execute_on: CreateAgentRequestResponseBodyExecuteOn$inboundSchema,
|
|
5427
5229
|
}).transform((v) => {
|
|
5428
5230
|
return remap$(v, {
|
|
5429
5231
|
"sample_rate": "sampleRate",
|
|
@@ -5431,35 +5233,32 @@ export const CreateAgentRequestAgentsGuardrails$inboundSchema: z.ZodType<
|
|
|
5431
5233
|
});
|
|
5432
5234
|
});
|
|
5433
5235
|
|
|
5434
|
-
export function
|
|
5236
|
+
export function responseBodyGuardrailsFromJSON(
|
|
5435
5237
|
jsonString: string,
|
|
5436
|
-
): SafeParseResult<
|
|
5238
|
+
): SafeParseResult<ResponseBodyGuardrails, SDKValidationError> {
|
|
5437
5239
|
return safeParse(
|
|
5438
5240
|
jsonString,
|
|
5439
|
-
(x) =>
|
|
5440
|
-
|
|
5441
|
-
`Failed to parse 'CreateAgentRequestAgentsGuardrails' from JSON`,
|
|
5241
|
+
(x) => ResponseBodyGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
5242
|
+
`Failed to parse 'ResponseBodyGuardrails' from JSON`,
|
|
5442
5243
|
);
|
|
5443
5244
|
}
|
|
5444
5245
|
|
|
5445
5246
|
/** @internal */
|
|
5446
|
-
export const
|
|
5447
|
-
|
|
5247
|
+
export const ResponseBodySettings$inboundSchema: z.ZodType<
|
|
5248
|
+
ResponseBodySettings,
|
|
5448
5249
|
z.ZodTypeDef,
|
|
5449
5250
|
unknown
|
|
5450
5251
|
> = z.object({
|
|
5451
5252
|
max_iterations: z.number().int().default(100),
|
|
5452
5253
|
max_execution_time: z.number().int().default(600),
|
|
5453
5254
|
max_cost: z.number().default(0),
|
|
5454
|
-
tool_approval_required:
|
|
5255
|
+
tool_approval_required: ResponseBodyToolApprovalRequired$inboundSchema
|
|
5455
5256
|
.default("respect_tool"),
|
|
5456
|
-
tools: z.array(z.lazy(() =>
|
|
5257
|
+
tools: z.array(z.lazy(() => ResponseBodyTools$inboundSchema)).optional(),
|
|
5258
|
+
evaluators: z.array(z.lazy(() => ResponseBodyEvaluators$inboundSchema))
|
|
5457
5259
|
.optional(),
|
|
5458
|
-
|
|
5260
|
+
guardrails: z.array(z.lazy(() => ResponseBodyGuardrails$inboundSchema))
|
|
5459
5261
|
.optional(),
|
|
5460
|
-
guardrails: z.array(
|
|
5461
|
-
z.lazy(() => CreateAgentRequestAgentsGuardrails$inboundSchema),
|
|
5462
|
-
).optional(),
|
|
5463
5262
|
}).transform((v) => {
|
|
5464
5263
|
return remap$(v, {
|
|
5465
5264
|
"max_iterations": "maxIterations",
|
|
@@ -5469,43 +5268,13 @@ export const CreateAgentRequestSettings$inboundSchema: z.ZodType<
|
|
|
5469
5268
|
});
|
|
5470
5269
|
});
|
|
5471
5270
|
|
|
5472
|
-
export function
|
|
5271
|
+
export function responseBodySettingsFromJSON(
|
|
5473
5272
|
jsonString: string,
|
|
5474
|
-
): SafeParseResult<
|
|
5273
|
+
): SafeParseResult<ResponseBodySettings, SDKValidationError> {
|
|
5475
5274
|
return safeParse(
|
|
5476
5275
|
jsonString,
|
|
5477
|
-
(x) =>
|
|
5478
|
-
`Failed to parse '
|
|
5479
|
-
);
|
|
5480
|
-
}
|
|
5481
|
-
|
|
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`,
|
|
5276
|
+
(x) => ResponseBodySettings$inboundSchema.parse(JSON.parse(x)),
|
|
5277
|
+
`Failed to parse 'ResponseBodySettings' from JSON`,
|
|
5509
5278
|
);
|
|
5510
5279
|
}
|
|
5511
5280
|
|
|
@@ -5613,8 +5382,8 @@ export function createAgentRequestResponseFormatTextFromJSON(
|
|
|
5613
5382
|
}
|
|
5614
5383
|
|
|
5615
5384
|
/** @internal */
|
|
5616
|
-
export const
|
|
5617
|
-
|
|
5385
|
+
export const ResponseBodyResponseFormat$inboundSchema: z.ZodType<
|
|
5386
|
+
ResponseBodyResponseFormat,
|
|
5618
5387
|
z.ZodTypeDef,
|
|
5619
5388
|
unknown
|
|
5620
5389
|
> = z.union([
|
|
@@ -5625,64 +5394,41 @@ export const CreateAgentRequestResponseFormat$inboundSchema: z.ZodType<
|
|
|
5625
5394
|
),
|
|
5626
5395
|
]);
|
|
5627
5396
|
|
|
5628
|
-
export function
|
|
5397
|
+
export function responseBodyResponseFormatFromJSON(
|
|
5629
5398
|
jsonString: string,
|
|
5630
|
-
): SafeParseResult<
|
|
5399
|
+
): SafeParseResult<ResponseBodyResponseFormat, SDKValidationError> {
|
|
5631
5400
|
return safeParse(
|
|
5632
5401
|
jsonString,
|
|
5633
|
-
(x) =>
|
|
5634
|
-
`Failed to parse '
|
|
5402
|
+
(x) => ResponseBodyResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
5403
|
+
`Failed to parse 'ResponseBodyResponseFormat' from JSON`,
|
|
5635
5404
|
);
|
|
5636
5405
|
}
|
|
5637
5406
|
|
|
5638
5407
|
/** @internal */
|
|
5639
|
-
export const
|
|
5640
|
-
typeof
|
|
5641
|
-
> = z.nativeEnum(
|
|
5408
|
+
export const ResponseBodyReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
5409
|
+
typeof ResponseBodyReasoningEffort
|
|
5410
|
+
> = z.nativeEnum(ResponseBodyReasoningEffort);
|
|
5642
5411
|
|
|
5643
5412
|
/** @internal */
|
|
5644
|
-
export const
|
|
5645
|
-
|
|
5413
|
+
export const ResponseBodyStop$inboundSchema: z.ZodType<
|
|
5414
|
+
ResponseBodyStop,
|
|
5646
5415
|
z.ZodTypeDef,
|
|
5647
5416
|
unknown
|
|
5648
5417
|
> = z.union([z.string(), z.array(z.string())]);
|
|
5649
5418
|
|
|
5650
|
-
export function
|
|
5419
|
+
export function responseBodyStopFromJSON(
|
|
5651
5420
|
jsonString: string,
|
|
5652
|
-
): SafeParseResult<
|
|
5421
|
+
): SafeParseResult<ResponseBodyStop, SDKValidationError> {
|
|
5653
5422
|
return safeParse(
|
|
5654
5423
|
jsonString,
|
|
5655
|
-
(x) =>
|
|
5656
|
-
`Failed to parse '
|
|
5424
|
+
(x) => ResponseBodyStop$inboundSchema.parse(JSON.parse(x)),
|
|
5425
|
+
`Failed to parse 'ResponseBodyStop' from JSON`,
|
|
5657
5426
|
);
|
|
5658
5427
|
}
|
|
5659
5428
|
|
|
5660
5429
|
/** @internal */
|
|
5661
|
-
export const
|
|
5662
|
-
|
|
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
|
-
/** @internal */
|
|
5684
|
-
export const CreateAgentRequestThinking$inboundSchema: z.ZodType<
|
|
5685
|
-
CreateAgentRequestThinking,
|
|
5430
|
+
export const ResponseBodyThinking$inboundSchema: z.ZodType<
|
|
5431
|
+
ResponseBodyThinking,
|
|
5686
5432
|
z.ZodTypeDef,
|
|
5687
5433
|
unknown
|
|
5688
5434
|
> = z.union([
|
|
@@ -5690,13 +5436,13 @@ export const CreateAgentRequestThinking$inboundSchema: z.ZodType<
|
|
|
5690
5436
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
5691
5437
|
]);
|
|
5692
5438
|
|
|
5693
|
-
export function
|
|
5439
|
+
export function responseBodyThinkingFromJSON(
|
|
5694
5440
|
jsonString: string,
|
|
5695
|
-
): SafeParseResult<
|
|
5441
|
+
): SafeParseResult<ResponseBodyThinking, SDKValidationError> {
|
|
5696
5442
|
return safeParse(
|
|
5697
5443
|
jsonString,
|
|
5698
|
-
(x) =>
|
|
5699
|
-
`Failed to parse '
|
|
5444
|
+
(x) => ResponseBodyThinking$inboundSchema.parse(JSON.parse(x)),
|
|
5445
|
+
`Failed to parse 'ResponseBodyThinking' from JSON`,
|
|
5700
5446
|
);
|
|
5701
5447
|
}
|
|
5702
5448
|
|
|
@@ -5758,8 +5504,8 @@ export const CreateAgentRequestToolChoiceAgents1$inboundSchema: z.ZodNativeEnum<
|
|
|
5758
5504
|
> = z.nativeEnum(CreateAgentRequestToolChoiceAgents1);
|
|
5759
5505
|
|
|
5760
5506
|
/** @internal */
|
|
5761
|
-
export const
|
|
5762
|
-
|
|
5507
|
+
export const ResponseBodyToolChoice$inboundSchema: z.ZodType<
|
|
5508
|
+
ResponseBodyToolChoice,
|
|
5763
5509
|
z.ZodTypeDef,
|
|
5764
5510
|
unknown
|
|
5765
5511
|
> = z.union([
|
|
@@ -5767,20 +5513,20 @@ export const CreateAgentRequestToolChoice$inboundSchema: z.ZodType<
|
|
|
5767
5513
|
CreateAgentRequestToolChoiceAgents1$inboundSchema,
|
|
5768
5514
|
]);
|
|
5769
5515
|
|
|
5770
|
-
export function
|
|
5516
|
+
export function responseBodyToolChoiceFromJSON(
|
|
5771
5517
|
jsonString: string,
|
|
5772
|
-
): SafeParseResult<
|
|
5518
|
+
): SafeParseResult<ResponseBodyToolChoice, SDKValidationError> {
|
|
5773
5519
|
return safeParse(
|
|
5774
5520
|
jsonString,
|
|
5775
|
-
(x) =>
|
|
5776
|
-
`Failed to parse '
|
|
5521
|
+
(x) => ResponseBodyToolChoice$inboundSchema.parse(JSON.parse(x)),
|
|
5522
|
+
`Failed to parse 'ResponseBodyToolChoice' from JSON`,
|
|
5777
5523
|
);
|
|
5778
5524
|
}
|
|
5779
5525
|
|
|
5780
5526
|
/** @internal */
|
|
5781
|
-
export const
|
|
5782
|
-
typeof
|
|
5783
|
-
> = z.nativeEnum(
|
|
5527
|
+
export const ResponseBodyModalities$inboundSchema: z.ZodNativeEnum<
|
|
5528
|
+
typeof ResponseBodyModalities
|
|
5529
|
+
> = z.nativeEnum(ResponseBodyModalities);
|
|
5784
5530
|
|
|
5785
5531
|
/** @internal */
|
|
5786
5532
|
export const CreateAgentRequestIdAgents1$inboundSchema: z.ZodNativeEnum<
|
|
@@ -5788,122 +5534,98 @@ export const CreateAgentRequestIdAgents1$inboundSchema: z.ZodNativeEnum<
|
|
|
5788
5534
|
> = z.nativeEnum(CreateAgentRequestIdAgents1);
|
|
5789
5535
|
|
|
5790
5536
|
/** @internal */
|
|
5791
|
-
export const
|
|
5792
|
-
|
|
5537
|
+
export const ResponseBodyId$inboundSchema: z.ZodType<
|
|
5538
|
+
ResponseBodyId,
|
|
5793
5539
|
z.ZodTypeDef,
|
|
5794
5540
|
unknown
|
|
5795
5541
|
> = z.union([CreateAgentRequestIdAgents1$inboundSchema, z.string()]);
|
|
5796
5542
|
|
|
5797
|
-
export function
|
|
5543
|
+
export function responseBodyIdFromJSON(
|
|
5798
5544
|
jsonString: string,
|
|
5799
|
-
): SafeParseResult<
|
|
5545
|
+
): SafeParseResult<ResponseBodyId, SDKValidationError> {
|
|
5800
5546
|
return safeParse(
|
|
5801
5547
|
jsonString,
|
|
5802
|
-
(x) =>
|
|
5803
|
-
`Failed to parse '
|
|
5548
|
+
(x) => ResponseBodyId$inboundSchema.parse(JSON.parse(x)),
|
|
5549
|
+
`Failed to parse 'ResponseBodyId' from JSON`,
|
|
5804
5550
|
);
|
|
5805
5551
|
}
|
|
5806
5552
|
|
|
5807
5553
|
/** @internal */
|
|
5808
|
-
export const
|
|
5809
|
-
z.ZodNativeEnum<
|
|
5810
|
-
|
|
5811
|
-
> = z.nativeEnum(CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn);
|
|
5554
|
+
export const CreateAgentRequestResponseBodyAgentsExecuteOn$inboundSchema:
|
|
5555
|
+
z.ZodNativeEnum<typeof CreateAgentRequestResponseBodyAgentsExecuteOn> = z
|
|
5556
|
+
.nativeEnum(CreateAgentRequestResponseBodyAgentsExecuteOn);
|
|
5812
5557
|
|
|
5813
5558
|
/** @internal */
|
|
5814
|
-
export const
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5559
|
+
export const CreateAgentRequestResponseBodyGuardrails$inboundSchema: z.ZodType<
|
|
5560
|
+
CreateAgentRequestResponseBodyGuardrails,
|
|
5561
|
+
z.ZodTypeDef,
|
|
5562
|
+
unknown
|
|
5563
|
+
> = z.object({
|
|
5564
|
+
id: z.union([CreateAgentRequestIdAgents1$inboundSchema, z.string()]),
|
|
5565
|
+
execute_on: CreateAgentRequestResponseBodyAgentsExecuteOn$inboundSchema,
|
|
5566
|
+
}).transform((v) => {
|
|
5567
|
+
return remap$(v, {
|
|
5568
|
+
"execute_on": "executeOn",
|
|
5569
|
+
});
|
|
5570
|
+
});
|
|
5825
5571
|
|
|
5826
|
-
export function
|
|
5572
|
+
export function createAgentRequestResponseBodyGuardrailsFromJSON(
|
|
5827
5573
|
jsonString: string,
|
|
5828
5574
|
): SafeParseResult<
|
|
5829
|
-
|
|
5575
|
+
CreateAgentRequestResponseBodyGuardrails,
|
|
5830
5576
|
SDKValidationError
|
|
5831
5577
|
> {
|
|
5832
5578
|
return safeParse(
|
|
5833
5579
|
jsonString,
|
|
5834
5580
|
(x) =>
|
|
5835
|
-
|
|
5581
|
+
CreateAgentRequestResponseBodyGuardrails$inboundSchema.parse(
|
|
5836
5582
|
JSON.parse(x),
|
|
5837
5583
|
),
|
|
5838
|
-
`Failed to parse '
|
|
5584
|
+
`Failed to parse 'CreateAgentRequestResponseBodyGuardrails' from JSON`,
|
|
5839
5585
|
);
|
|
5840
5586
|
}
|
|
5841
5587
|
|
|
5842
5588
|
/** @internal */
|
|
5843
|
-
export const
|
|
5844
|
-
|
|
5589
|
+
export const ResponseBodyFallbacks$inboundSchema: z.ZodType<
|
|
5590
|
+
ResponseBodyFallbacks,
|
|
5845
5591
|
z.ZodTypeDef,
|
|
5846
5592
|
unknown
|
|
5847
5593
|
> = z.object({
|
|
5848
5594
|
model: z.string(),
|
|
5849
5595
|
});
|
|
5850
5596
|
|
|
5851
|
-
export function
|
|
5597
|
+
export function responseBodyFallbacksFromJSON(
|
|
5852
5598
|
jsonString: string,
|
|
5853
|
-
): SafeParseResult<
|
|
5599
|
+
): SafeParseResult<ResponseBodyFallbacks, SDKValidationError> {
|
|
5854
5600
|
return safeParse(
|
|
5855
5601
|
jsonString,
|
|
5856
|
-
(x) =>
|
|
5857
|
-
`Failed to parse '
|
|
5602
|
+
(x) => ResponseBodyFallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
5603
|
+
`Failed to parse 'ResponseBodyFallbacks' from JSON`,
|
|
5858
5604
|
);
|
|
5859
5605
|
}
|
|
5860
5606
|
|
|
5861
5607
|
/** @internal */
|
|
5862
|
-
export const
|
|
5863
|
-
|
|
5864
|
-
|
|
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
|
-
/** @internal */
|
|
5886
|
-
export const CreateAgentRequestType$inboundSchema: z.ZodNativeEnum<
|
|
5887
|
-
typeof CreateAgentRequestType
|
|
5888
|
-
> = z.nativeEnum(CreateAgentRequestType);
|
|
5608
|
+
export const CreateAgentRequestResponseBodyAgentsResponseType$inboundSchema:
|
|
5609
|
+
z.ZodNativeEnum<typeof CreateAgentRequestResponseBodyAgentsResponseType> = z
|
|
5610
|
+
.nativeEnum(CreateAgentRequestResponseBodyAgentsResponseType);
|
|
5889
5611
|
|
|
5890
5612
|
/** @internal */
|
|
5891
|
-
export const
|
|
5892
|
-
|
|
5613
|
+
export const ResponseBodyCache$inboundSchema: z.ZodType<
|
|
5614
|
+
ResponseBodyCache,
|
|
5893
5615
|
z.ZodTypeDef,
|
|
5894
5616
|
unknown
|
|
5895
5617
|
> = z.object({
|
|
5896
5618
|
ttl: z.number().default(1800),
|
|
5897
|
-
type:
|
|
5619
|
+
type: CreateAgentRequestResponseBodyAgentsResponseType$inboundSchema,
|
|
5898
5620
|
});
|
|
5899
5621
|
|
|
5900
|
-
export function
|
|
5622
|
+
export function responseBodyCacheFromJSON(
|
|
5901
5623
|
jsonString: string,
|
|
5902
|
-
): SafeParseResult<
|
|
5624
|
+
): SafeParseResult<ResponseBodyCache, SDKValidationError> {
|
|
5903
5625
|
return safeParse(
|
|
5904
5626
|
jsonString,
|
|
5905
|
-
(x) =>
|
|
5906
|
-
`Failed to parse '
|
|
5627
|
+
(x) => ResponseBodyCache$inboundSchema.parse(JSON.parse(x)),
|
|
5628
|
+
`Failed to parse 'ResponseBodyCache' from JSON`,
|
|
5907
5629
|
);
|
|
5908
5630
|
}
|
|
5909
5631
|
|
|
@@ -5957,25 +5679,25 @@ export function createAgentRequestLoadBalancerAgents1FromJSON(
|
|
|
5957
5679
|
}
|
|
5958
5680
|
|
|
5959
5681
|
/** @internal */
|
|
5960
|
-
export const
|
|
5961
|
-
|
|
5682
|
+
export const ResponseBodyLoadBalancer$inboundSchema: z.ZodType<
|
|
5683
|
+
ResponseBodyLoadBalancer,
|
|
5962
5684
|
z.ZodTypeDef,
|
|
5963
5685
|
unknown
|
|
5964
5686
|
> = z.lazy(() => CreateAgentRequestLoadBalancerAgents1$inboundSchema);
|
|
5965
5687
|
|
|
5966
|
-
export function
|
|
5688
|
+
export function responseBodyLoadBalancerFromJSON(
|
|
5967
5689
|
jsonString: string,
|
|
5968
|
-
): SafeParseResult<
|
|
5690
|
+
): SafeParseResult<ResponseBodyLoadBalancer, SDKValidationError> {
|
|
5969
5691
|
return safeParse(
|
|
5970
5692
|
jsonString,
|
|
5971
|
-
(x) =>
|
|
5972
|
-
`Failed to parse '
|
|
5693
|
+
(x) => ResponseBodyLoadBalancer$inboundSchema.parse(JSON.parse(x)),
|
|
5694
|
+
`Failed to parse 'ResponseBodyLoadBalancer' from JSON`,
|
|
5973
5695
|
);
|
|
5974
5696
|
}
|
|
5975
5697
|
|
|
5976
5698
|
/** @internal */
|
|
5977
|
-
export const
|
|
5978
|
-
|
|
5699
|
+
export const ResponseBodyTimeout$inboundSchema: z.ZodType<
|
|
5700
|
+
ResponseBodyTimeout,
|
|
5979
5701
|
z.ZodTypeDef,
|
|
5980
5702
|
unknown
|
|
5981
5703
|
> = z.object({
|
|
@@ -5986,31 +5708,26 @@ export const CreateAgentRequestTimeout$inboundSchema: z.ZodType<
|
|
|
5986
5708
|
});
|
|
5987
5709
|
});
|
|
5988
5710
|
|
|
5989
|
-
export function
|
|
5711
|
+
export function responseBodyTimeoutFromJSON(
|
|
5990
5712
|
jsonString: string,
|
|
5991
|
-
): SafeParseResult<
|
|
5713
|
+
): SafeParseResult<ResponseBodyTimeout, SDKValidationError> {
|
|
5992
5714
|
return safeParse(
|
|
5993
5715
|
jsonString,
|
|
5994
|
-
(x) =>
|
|
5995
|
-
`Failed to parse '
|
|
5716
|
+
(x) => ResponseBodyTimeout$inboundSchema.parse(JSON.parse(x)),
|
|
5717
|
+
`Failed to parse 'ResponseBodyTimeout' from JSON`,
|
|
5996
5718
|
);
|
|
5997
5719
|
}
|
|
5998
5720
|
|
|
5999
5721
|
/** @internal */
|
|
6000
|
-
export const
|
|
6001
|
-
|
|
5722
|
+
export const ResponseBodyParameters$inboundSchema: z.ZodType<
|
|
5723
|
+
ResponseBodyParameters,
|
|
6002
5724
|
z.ZodTypeDef,
|
|
6003
5725
|
unknown
|
|
6004
5726
|
> = z.object({
|
|
6005
5727
|
name: z.string().optional(),
|
|
6006
|
-
audio: z.nullable(z.lazy(() => CreateAgentRequestAudio$inboundSchema))
|
|
6007
|
-
.optional(),
|
|
6008
5728
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
6009
5729
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
6010
5730
|
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
5731
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
6015
5732
|
response_format: z.union([
|
|
6016
5733
|
z.lazy(() => CreateAgentRequestResponseFormatText$inboundSchema),
|
|
@@ -6019,13 +5736,10 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
6019
5736
|
CreateAgentRequestResponseFormatAgentsResponse201JSONSchema$inboundSchema
|
|
6020
5737
|
),
|
|
6021
5738
|
]).optional(),
|
|
6022
|
-
reasoning_effort:
|
|
5739
|
+
reasoning_effort: ResponseBodyReasoningEffort$inboundSchema.optional(),
|
|
6023
5740
|
verbosity: z.string().optional(),
|
|
6024
5741
|
seed: z.nullable(z.number()).optional(),
|
|
6025
5742
|
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
5743
|
thinking: z.union([
|
|
6030
5744
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
6031
5745
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -6038,29 +5752,26 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
6038
5752
|
CreateAgentRequestToolChoiceAgents1$inboundSchema,
|
|
6039
5753
|
]).optional(),
|
|
6040
5754
|
parallel_tool_calls: z.boolean().optional(),
|
|
6041
|
-
modalities: z.nullable(z.array(
|
|
5755
|
+
modalities: z.nullable(z.array(ResponseBodyModalities$inboundSchema))
|
|
6042
5756
|
.optional(),
|
|
6043
5757
|
guardrails: z.array(
|
|
6044
|
-
z.lazy(() =>
|
|
5758
|
+
z.lazy(() => CreateAgentRequestResponseBodyGuardrails$inboundSchema),
|
|
6045
5759
|
).optional(),
|
|
6046
|
-
fallbacks: z.array(z.lazy(() =>
|
|
5760
|
+
fallbacks: z.array(z.lazy(() => ResponseBodyFallbacks$inboundSchema))
|
|
6047
5761
|
.optional(),
|
|
6048
|
-
|
|
6049
|
-
cache: z.lazy(() => CreateAgentRequestCache$inboundSchema).optional(),
|
|
5762
|
+
cache: z.lazy(() => ResponseBodyCache$inboundSchema).optional(),
|
|
6050
5763
|
load_balancer: z.lazy(() =>
|
|
6051
5764
|
CreateAgentRequestLoadBalancerAgents1$inboundSchema
|
|
6052
5765
|
).optional(),
|
|
6053
|
-
timeout: z.lazy(() =>
|
|
5766
|
+
timeout: z.lazy(() => ResponseBodyTimeout$inboundSchema).optional(),
|
|
6054
5767
|
}).transform((v) => {
|
|
6055
5768
|
return remap$(v, {
|
|
6056
5769
|
"frequency_penalty": "frequencyPenalty",
|
|
6057
5770
|
"max_tokens": "maxTokens",
|
|
6058
5771
|
"max_completion_tokens": "maxCompletionTokens",
|
|
6059
|
-
"top_logprobs": "topLogprobs",
|
|
6060
5772
|
"presence_penalty": "presencePenalty",
|
|
6061
5773
|
"response_format": "responseFormat",
|
|
6062
5774
|
"reasoning_effort": "reasoningEffort",
|
|
6063
|
-
"stream_options": "streamOptions",
|
|
6064
5775
|
"top_p": "topP",
|
|
6065
5776
|
"top_k": "topK",
|
|
6066
5777
|
"tool_choice": "toolChoice",
|
|
@@ -6069,19 +5780,19 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
6069
5780
|
});
|
|
6070
5781
|
});
|
|
6071
5782
|
|
|
6072
|
-
export function
|
|
5783
|
+
export function responseBodyParametersFromJSON(
|
|
6073
5784
|
jsonString: string,
|
|
6074
|
-
): SafeParseResult<
|
|
5785
|
+
): SafeParseResult<ResponseBodyParameters, SDKValidationError> {
|
|
6075
5786
|
return safeParse(
|
|
6076
5787
|
jsonString,
|
|
6077
|
-
(x) =>
|
|
6078
|
-
`Failed to parse '
|
|
5788
|
+
(x) => ResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
|
|
5789
|
+
`Failed to parse 'ResponseBodyParameters' from JSON`,
|
|
6079
5790
|
);
|
|
6080
5791
|
}
|
|
6081
5792
|
|
|
6082
5793
|
/** @internal */
|
|
6083
|
-
export const
|
|
6084
|
-
|
|
5794
|
+
export const ResponseBodyRetry$inboundSchema: z.ZodType<
|
|
5795
|
+
ResponseBodyRetry,
|
|
6085
5796
|
z.ZodTypeDef,
|
|
6086
5797
|
unknown
|
|
6087
5798
|
> = z.object({
|
|
@@ -6093,50 +5804,13 @@ export const CreateAgentRequestRetry$inboundSchema: z.ZodType<
|
|
|
6093
5804
|
});
|
|
6094
5805
|
});
|
|
6095
5806
|
|
|
6096
|
-
export function
|
|
6097
|
-
jsonString: string,
|
|
6098
|
-
): SafeParseResult<CreateAgentRequestRetry, SDKValidationError> {
|
|
6099
|
-
return safeParse(
|
|
6100
|
-
jsonString,
|
|
6101
|
-
(x) => CreateAgentRequestRetry$inboundSchema.parse(JSON.parse(x)),
|
|
6102
|
-
`Failed to parse 'CreateAgentRequestRetry' from JSON`,
|
|
6103
|
-
);
|
|
6104
|
-
}
|
|
6105
|
-
|
|
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(
|
|
5807
|
+
export function responseBodyRetryFromJSON(
|
|
6128
5808
|
jsonString: string,
|
|
6129
|
-
): SafeParseResult<
|
|
6130
|
-
CreateAgentRequestFallbackModelConfigurationAudio,
|
|
6131
|
-
SDKValidationError
|
|
6132
|
-
> {
|
|
5809
|
+
): SafeParseResult<ResponseBodyRetry, SDKValidationError> {
|
|
6133
5810
|
return safeParse(
|
|
6134
5811
|
jsonString,
|
|
6135
|
-
(x) =>
|
|
6136
|
-
|
|
6137
|
-
JSON.parse(x),
|
|
6138
|
-
),
|
|
6139
|
-
`Failed to parse 'CreateAgentRequestFallbackModelConfigurationAudio' from JSON`,
|
|
5812
|
+
(x) => ResponseBodyRetry$inboundSchema.parse(JSON.parse(x)),
|
|
5813
|
+
`Failed to parse 'ResponseBodyRetry' from JSON`,
|
|
6140
5814
|
);
|
|
6141
5815
|
}
|
|
6142
5816
|
|
|
@@ -6310,35 +5984,6 @@ export function createAgentRequestFallbackModelConfigurationStopFromJSON(
|
|
|
6310
5984
|
);
|
|
6311
5985
|
}
|
|
6312
5986
|
|
|
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
5987
|
/** @internal */
|
|
6343
5988
|
export const CreateAgentRequestFallbackModelConfigurationThinking$inboundSchema:
|
|
6344
5989
|
z.ZodType<
|
|
@@ -6559,36 +6204,6 @@ export function createAgentRequestFallbackModelConfigurationFallbacksFromJSON(
|
|
|
6559
6204
|
);
|
|
6560
6205
|
}
|
|
6561
6206
|
|
|
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
6207
|
/** @internal */
|
|
6593
6208
|
export const CreateAgentRequestFallbackModelConfigurationType$inboundSchema:
|
|
6594
6209
|
z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationType> = z
|
|
@@ -6740,17 +6355,9 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6740
6355
|
unknown
|
|
6741
6356
|
> = z.object({
|
|
6742
6357
|
name: z.string().optional(),
|
|
6743
|
-
audio: z.nullable(
|
|
6744
|
-
z.lazy(() =>
|
|
6745
|
-
CreateAgentRequestFallbackModelConfigurationAudio$inboundSchema
|
|
6746
|
-
),
|
|
6747
|
-
).optional(),
|
|
6748
6358
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
6749
6359
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
6750
6360
|
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
6361
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
6755
6362
|
response_format: z.union([
|
|
6756
6363
|
z.lazy(() => CreateAgentRequestResponseFormatAgentsText$inboundSchema),
|
|
@@ -6767,11 +6374,6 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6767
6374
|
verbosity: z.string().optional(),
|
|
6768
6375
|
seed: z.nullable(z.number()).optional(),
|
|
6769
6376
|
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
6377
|
thinking: z.union([
|
|
6776
6378
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
6777
6379
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -6799,9 +6401,6 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6799
6401
|
CreateAgentRequestFallbackModelConfigurationFallbacks$inboundSchema
|
|
6800
6402
|
),
|
|
6801
6403
|
).optional(),
|
|
6802
|
-
retry: z.lazy(() =>
|
|
6803
|
-
CreateAgentRequestFallbackModelConfigurationAgentsResponseRetry$inboundSchema
|
|
6804
|
-
).optional(),
|
|
6805
6404
|
cache: z.lazy(() =>
|
|
6806
6405
|
CreateAgentRequestFallbackModelConfigurationCache$inboundSchema
|
|
6807
6406
|
).optional(),
|
|
@@ -6816,11 +6415,9 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6816
6415
|
"frequency_penalty": "frequencyPenalty",
|
|
6817
6416
|
"max_tokens": "maxTokens",
|
|
6818
6417
|
"max_completion_tokens": "maxCompletionTokens",
|
|
6819
|
-
"top_logprobs": "topLogprobs",
|
|
6820
6418
|
"presence_penalty": "presencePenalty",
|
|
6821
6419
|
"response_format": "responseFormat",
|
|
6822
6420
|
"reasoning_effort": "reasoningEffort",
|
|
6823
|
-
"stream_options": "streamOptions",
|
|
6824
6421
|
"top_p": "topP",
|
|
6825
6422
|
"top_k": "topK",
|
|
6826
6423
|
"tool_choice": "toolChoice",
|
|
@@ -6845,9 +6442,9 @@ export function createAgentRequestFallbackModelConfigurationParametersFromJSON(
|
|
|
6845
6442
|
}
|
|
6846
6443
|
|
|
6847
6444
|
/** @internal */
|
|
6848
|
-
export const
|
|
6445
|
+
export const CreateAgentRequestFallbackModelConfigurationRetry$inboundSchema:
|
|
6849
6446
|
z.ZodType<
|
|
6850
|
-
|
|
6447
|
+
CreateAgentRequestFallbackModelConfigurationRetry,
|
|
6851
6448
|
z.ZodTypeDef,
|
|
6852
6449
|
unknown
|
|
6853
6450
|
> = z.object({
|
|
@@ -6859,18 +6456,19 @@ export const CreateAgentRequestFallbackModelConfigurationAgentsRetry$inboundSche
|
|
|
6859
6456
|
});
|
|
6860
6457
|
});
|
|
6861
6458
|
|
|
6862
|
-
export function
|
|
6459
|
+
export function createAgentRequestFallbackModelConfigurationRetryFromJSON(
|
|
6863
6460
|
jsonString: string,
|
|
6864
6461
|
): SafeParseResult<
|
|
6865
|
-
|
|
6462
|
+
CreateAgentRequestFallbackModelConfigurationRetry,
|
|
6866
6463
|
SDKValidationError
|
|
6867
6464
|
> {
|
|
6868
6465
|
return safeParse(
|
|
6869
6466
|
jsonString,
|
|
6870
6467
|
(x) =>
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6468
|
+
CreateAgentRequestFallbackModelConfigurationRetry$inboundSchema.parse(
|
|
6469
|
+
JSON.parse(x),
|
|
6470
|
+
),
|
|
6471
|
+
`Failed to parse 'CreateAgentRequestFallbackModelConfigurationRetry' from JSON`,
|
|
6874
6472
|
);
|
|
6875
6473
|
}
|
|
6876
6474
|
|
|
@@ -6886,7 +6484,7 @@ export const CreateAgentRequestFallbackModelConfiguration2$inboundSchema:
|
|
|
6886
6484
|
CreateAgentRequestFallbackModelConfigurationParameters$inboundSchema
|
|
6887
6485
|
).optional(),
|
|
6888
6486
|
retry: z.lazy(() =>
|
|
6889
|
-
|
|
6487
|
+
CreateAgentRequestFallbackModelConfigurationRetry$inboundSchema
|
|
6890
6488
|
).optional(),
|
|
6891
6489
|
});
|
|
6892
6490
|
|
|
@@ -6907,29 +6505,23 @@ export function createAgentRequestFallbackModelConfiguration2FromJSON(
|
|
|
6907
6505
|
}
|
|
6908
6506
|
|
|
6909
6507
|
/** @internal */
|
|
6910
|
-
export const
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
]);
|
|
6508
|
+
export const ResponseBodyFallbackModelConfiguration$inboundSchema: z.ZodType<
|
|
6509
|
+
ResponseBodyFallbackModelConfiguration,
|
|
6510
|
+
z.ZodTypeDef,
|
|
6511
|
+
unknown
|
|
6512
|
+
> = z.union([
|
|
6513
|
+
z.lazy(() => CreateAgentRequestFallbackModelConfiguration2$inboundSchema),
|
|
6514
|
+
z.string(),
|
|
6515
|
+
]);
|
|
6919
6516
|
|
|
6920
|
-
export function
|
|
6517
|
+
export function responseBodyFallbackModelConfigurationFromJSON(
|
|
6921
6518
|
jsonString: string,
|
|
6922
|
-
): SafeParseResult<
|
|
6923
|
-
CreateAgentRequestFallbackModelConfiguration,
|
|
6924
|
-
SDKValidationError
|
|
6925
|
-
> {
|
|
6519
|
+
): SafeParseResult<ResponseBodyFallbackModelConfiguration, SDKValidationError> {
|
|
6926
6520
|
return safeParse(
|
|
6927
6521
|
jsonString,
|
|
6928
6522
|
(x) =>
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
),
|
|
6932
|
-
`Failed to parse 'CreateAgentRequestFallbackModelConfiguration' from JSON`,
|
|
6523
|
+
ResponseBodyFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
6524
|
+
`Failed to parse 'ResponseBodyFallbackModelConfiguration' from JSON`,
|
|
6933
6525
|
);
|
|
6934
6526
|
}
|
|
6935
6527
|
|
|
@@ -6938,9 +6530,8 @@ export const Model$inboundSchema: z.ZodType<Model, z.ZodTypeDef, unknown> = z
|
|
|
6938
6530
|
.object({
|
|
6939
6531
|
id: z.string(),
|
|
6940
6532
|
integration_id: z.nullable(z.string()).optional(),
|
|
6941
|
-
parameters: z.lazy(() =>
|
|
6942
|
-
|
|
6943
|
-
retry: z.lazy(() => CreateAgentRequestRetry$inboundSchema).optional(),
|
|
6533
|
+
parameters: z.lazy(() => ResponseBodyParameters$inboundSchema).optional(),
|
|
6534
|
+
retry: z.lazy(() => ResponseBodyRetry$inboundSchema).optional(),
|
|
6944
6535
|
fallback_models: z.nullable(
|
|
6945
6536
|
z.array(z.union([
|
|
6946
6537
|
z.lazy(() =>
|
|
@@ -6967,76 +6558,8 @@ export function modelFromJSON(
|
|
|
6967
6558
|
}
|
|
6968
6559
|
|
|
6969
6560
|
/** @internal */
|
|
6970
|
-
export const
|
|
6971
|
-
|
|
6972
|
-
z.ZodTypeDef,
|
|
6973
|
-
unknown
|
|
6974
|
-
> = z.object({
|
|
6975
|
-
key: z.string(),
|
|
6976
|
-
role: z.string().optional(),
|
|
6977
|
-
});
|
|
6978
|
-
|
|
6979
|
-
export function createAgentRequestTeamOfAgentsFromJSON(
|
|
6980
|
-
jsonString: string,
|
|
6981
|
-
): SafeParseResult<CreateAgentRequestTeamOfAgents, SDKValidationError> {
|
|
6982
|
-
return safeParse(
|
|
6983
|
-
jsonString,
|
|
6984
|
-
(x) => CreateAgentRequestTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
6985
|
-
`Failed to parse 'CreateAgentRequestTeamOfAgents' from JSON`,
|
|
6986
|
-
);
|
|
6987
|
-
}
|
|
6988
|
-
|
|
6989
|
-
/** @internal */
|
|
6990
|
-
export const Metrics$inboundSchema: z.ZodType<Metrics, z.ZodTypeDef, unknown> =
|
|
6991
|
-
z.object({
|
|
6992
|
-
total_cost: z.number().default(0),
|
|
6993
|
-
}).transform((v) => {
|
|
6994
|
-
return remap$(v, {
|
|
6995
|
-
"total_cost": "totalCost",
|
|
6996
|
-
});
|
|
6997
|
-
});
|
|
6998
|
-
|
|
6999
|
-
export function metricsFromJSON(
|
|
7000
|
-
jsonString: string,
|
|
7001
|
-
): SafeParseResult<Metrics, SDKValidationError> {
|
|
7002
|
-
return safeParse(
|
|
7003
|
-
jsonString,
|
|
7004
|
-
(x) => Metrics$inboundSchema.parse(JSON.parse(x)),
|
|
7005
|
-
`Failed to parse 'Metrics' from JSON`,
|
|
7006
|
-
);
|
|
7007
|
-
}
|
|
7008
|
-
|
|
7009
|
-
/** @internal */
|
|
7010
|
-
export const CreateAgentRequestKnowledgeBases$inboundSchema: z.ZodType<
|
|
7011
|
-
CreateAgentRequestKnowledgeBases,
|
|
7012
|
-
z.ZodTypeDef,
|
|
7013
|
-
unknown
|
|
7014
|
-
> = z.object({
|
|
7015
|
-
knowledge_id: z.string(),
|
|
7016
|
-
}).transform((v) => {
|
|
7017
|
-
return remap$(v, {
|
|
7018
|
-
"knowledge_id": "knowledgeId",
|
|
7019
|
-
});
|
|
7020
|
-
});
|
|
7021
|
-
|
|
7022
|
-
export function createAgentRequestKnowledgeBasesFromJSON(
|
|
7023
|
-
jsonString: string,
|
|
7024
|
-
): SafeParseResult<CreateAgentRequestKnowledgeBases, SDKValidationError> {
|
|
7025
|
-
return safeParse(
|
|
7026
|
-
jsonString,
|
|
7027
|
-
(x) => CreateAgentRequestKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
7028
|
-
`Failed to parse 'CreateAgentRequestKnowledgeBases' from JSON`,
|
|
7029
|
-
);
|
|
7030
|
-
}
|
|
7031
|
-
|
|
7032
|
-
/** @internal */
|
|
7033
|
-
export const CreateAgentRequestSource$inboundSchema: z.ZodNativeEnum<
|
|
7034
|
-
typeof CreateAgentRequestSource
|
|
7035
|
-
> = z.nativeEnum(CreateAgentRequestSource);
|
|
7036
|
-
|
|
7037
|
-
/** @internal */
|
|
7038
|
-
export const CreateAgentRequestResponseBody$inboundSchema: z.ZodType<
|
|
7039
|
-
CreateAgentRequestResponseBody,
|
|
6561
|
+
export const ResponseBody1$inboundSchema: z.ZodType<
|
|
6562
|
+
ResponseBody1,
|
|
7040
6563
|
z.ZodTypeDef,
|
|
7041
6564
|
unknown
|
|
7042
6565
|
> = z.object({
|
|
@@ -7048,25 +6571,25 @@ export const CreateAgentRequestResponseBody$inboundSchema: z.ZodType<
|
|
|
7048
6571
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
7049
6572
|
created: z.string().optional(),
|
|
7050
6573
|
updated: z.string().optional(),
|
|
7051
|
-
|
|
7052
|
-
description: z.string(),
|
|
7053
|
-
system_prompt: z.string().optional(),
|
|
7054
|
-
instructions: z.string(),
|
|
7055
|
-
status: CreateAgentRequestStatus$inboundSchema,
|
|
7056
|
-
settings: z.lazy(() => CreateAgentRequestSettings$inboundSchema).optional(),
|
|
7057
|
-
model: z.lazy(() => Model$inboundSchema),
|
|
6574
|
+
status: CreateAgentRequestResponseBodyStatus$inboundSchema,
|
|
7058
6575
|
version_hash: z.string().optional(),
|
|
7059
6576
|
path: z.string(),
|
|
7060
|
-
memory_stores: z.array(z.string()),
|
|
7061
|
-
team_of_agents: z.array(
|
|
7062
|
-
|
|
7063
|
-
),
|
|
7064
|
-
metrics: z.lazy(() => Metrics$inboundSchema).optional(),
|
|
6577
|
+
memory_stores: z.array(z.string()).optional(),
|
|
6578
|
+
team_of_agents: z.array(z.lazy(() => ResponseBodyTeamOfAgents$inboundSchema))
|
|
6579
|
+
.optional(),
|
|
6580
|
+
metrics: z.lazy(() => ResponseBodyMetrics$inboundSchema).optional(),
|
|
7065
6581
|
variables: z.record(z.any()).optional(),
|
|
7066
6582
|
knowledge_bases: z.array(
|
|
7067
|
-
z.lazy(() =>
|
|
6583
|
+
z.lazy(() => ResponseBodyKnowledgeBases$inboundSchema),
|
|
7068
6584
|
).optional(),
|
|
7069
|
-
source:
|
|
6585
|
+
source: ResponseBodySource$inboundSchema.optional(),
|
|
6586
|
+
type: z.literal("internal"),
|
|
6587
|
+
role: z.string(),
|
|
6588
|
+
description: z.string(),
|
|
6589
|
+
system_prompt: z.string().optional(),
|
|
6590
|
+
instructions: z.string(),
|
|
6591
|
+
settings: z.lazy(() => ResponseBodySettings$inboundSchema).optional(),
|
|
6592
|
+
model: z.lazy(() => Model$inboundSchema),
|
|
7070
6593
|
}).transform((v) => {
|
|
7071
6594
|
return remap$(v, {
|
|
7072
6595
|
"_id": "id",
|
|
@@ -7074,14 +6597,34 @@ export const CreateAgentRequestResponseBody$inboundSchema: z.ZodType<
|
|
|
7074
6597
|
"project_id": "projectId",
|
|
7075
6598
|
"created_by_id": "createdById",
|
|
7076
6599
|
"updated_by_id": "updatedById",
|
|
7077
|
-
"system_prompt": "systemPrompt",
|
|
7078
6600
|
"version_hash": "versionHash",
|
|
7079
6601
|
"memory_stores": "memoryStores",
|
|
7080
6602
|
"team_of_agents": "teamOfAgents",
|
|
7081
6603
|
"knowledge_bases": "knowledgeBases",
|
|
6604
|
+
"system_prompt": "systemPrompt",
|
|
7082
6605
|
});
|
|
7083
6606
|
});
|
|
7084
6607
|
|
|
6608
|
+
export function responseBody1FromJSON(
|
|
6609
|
+
jsonString: string,
|
|
6610
|
+
): SafeParseResult<ResponseBody1, SDKValidationError> {
|
|
6611
|
+
return safeParse(
|
|
6612
|
+
jsonString,
|
|
6613
|
+
(x) => ResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
6614
|
+
`Failed to parse 'ResponseBody1' from JSON`,
|
|
6615
|
+
);
|
|
6616
|
+
}
|
|
6617
|
+
|
|
6618
|
+
/** @internal */
|
|
6619
|
+
export const CreateAgentRequestResponseBody$inboundSchema: z.ZodType<
|
|
6620
|
+
CreateAgentRequestResponseBody,
|
|
6621
|
+
z.ZodTypeDef,
|
|
6622
|
+
unknown
|
|
6623
|
+
> = z.union([
|
|
6624
|
+
z.lazy(() => ResponseBody1$inboundSchema),
|
|
6625
|
+
z.lazy(() => ResponseBody2$inboundSchema),
|
|
6626
|
+
]);
|
|
6627
|
+
|
|
7085
6628
|
export function createAgentRequestResponseBodyFromJSON(
|
|
7086
6629
|
jsonString: string,
|
|
7087
6630
|
): SafeParseResult<CreateAgentRequestResponseBody, SDKValidationError> {
|