@orq-ai/node 4.4.12 → 4.4.14
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 +16 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- 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,55 +10,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import * as components from "../components/index.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
15
|
-
*/
|
|
16
|
-
export const ModelConfigurationVoice = {
|
|
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 ModelConfigurationVoice = ClosedEnum<
|
|
28
|
-
typeof ModelConfigurationVoice
|
|
29
|
-
>;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
33
|
-
*/
|
|
34
|
-
export const ModelConfigurationFormat = {
|
|
35
|
-
Wav: "wav",
|
|
36
|
-
Mp3: "mp3",
|
|
37
|
-
Flac: "flac",
|
|
38
|
-
Opus: "opus",
|
|
39
|
-
Pcm16: "pcm16",
|
|
40
|
-
} as const;
|
|
41
|
-
/**
|
|
42
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
43
|
-
*/
|
|
44
|
-
export type ModelConfigurationFormat = ClosedEnum<
|
|
45
|
-
typeof ModelConfigurationFormat
|
|
46
|
-
>;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
50
|
-
*/
|
|
51
|
-
export type UpdateAgentModelConfigurationAudio = {
|
|
52
|
-
/**
|
|
53
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
54
|
-
*/
|
|
55
|
-
voice: ModelConfigurationVoice;
|
|
56
|
-
/**
|
|
57
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
58
|
-
*/
|
|
59
|
-
format: ModelConfigurationFormat;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
13
|
export type UpdateAgentResponseFormatAgentsJsonSchema = {
|
|
63
14
|
/**
|
|
64
15
|
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
@@ -155,16 +106,6 @@ export type ModelConfigurationReasoningEffort = ClosedEnum<
|
|
|
155
106
|
*/
|
|
156
107
|
export type ModelConfigurationStop = string | Array<string>;
|
|
157
108
|
|
|
158
|
-
/**
|
|
159
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
160
|
-
*/
|
|
161
|
-
export type ModelConfigurationStreamOptions = {
|
|
162
|
-
/**
|
|
163
|
-
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
164
|
-
*/
|
|
165
|
-
includeUsage?: boolean | undefined;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
109
|
export type ModelConfigurationThinking =
|
|
169
110
|
| components.ThinkingConfigDisabledSchema
|
|
170
111
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -263,20 +204,6 @@ export type ModelConfigurationFallbacks = {
|
|
|
263
204
|
model: string;
|
|
264
205
|
};
|
|
265
206
|
|
|
266
|
-
/**
|
|
267
|
-
* Retry configuration for the request
|
|
268
|
-
*/
|
|
269
|
-
export type UpdateAgentModelConfigurationRetry = {
|
|
270
|
-
/**
|
|
271
|
-
* Number of retry attempts (1-5)
|
|
272
|
-
*/
|
|
273
|
-
count?: number | undefined;
|
|
274
|
-
/**
|
|
275
|
-
* HTTP status codes that trigger retry logic
|
|
276
|
-
*/
|
|
277
|
-
onCodes?: Array<number> | undefined;
|
|
278
|
-
};
|
|
279
|
-
|
|
280
207
|
export const UpdateAgentModelConfigurationType = {
|
|
281
208
|
ExactMatch: "exact_match",
|
|
282
209
|
} as const;
|
|
@@ -341,10 +268,6 @@ export type ModelConfigurationParameters = {
|
|
|
341
268
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
342
269
|
*/
|
|
343
270
|
name?: string | undefined;
|
|
344
|
-
/**
|
|
345
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
346
|
-
*/
|
|
347
|
-
audio?: UpdateAgentModelConfigurationAudio | null | undefined;
|
|
348
271
|
/**
|
|
349
272
|
* 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.
|
|
350
273
|
*/
|
|
@@ -361,18 +284,6 @@ export type ModelConfigurationParameters = {
|
|
|
361
284
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
362
285
|
*/
|
|
363
286
|
maxCompletionTokens?: number | null | undefined;
|
|
364
|
-
/**
|
|
365
|
-
* 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.
|
|
366
|
-
*/
|
|
367
|
-
logprobs?: boolean | null | undefined;
|
|
368
|
-
/**
|
|
369
|
-
* 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.
|
|
370
|
-
*/
|
|
371
|
-
topLogprobs?: number | null | undefined;
|
|
372
|
-
/**
|
|
373
|
-
* 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.
|
|
374
|
-
*/
|
|
375
|
-
n?: number | null | undefined;
|
|
376
287
|
/**
|
|
377
288
|
* 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.
|
|
378
289
|
*/
|
|
@@ -410,10 +321,6 @@ export type ModelConfigurationParameters = {
|
|
|
410
321
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
411
322
|
*/
|
|
412
323
|
stop?: string | Array<string> | null | undefined;
|
|
413
|
-
/**
|
|
414
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
415
|
-
*/
|
|
416
|
-
streamOptions?: ModelConfigurationStreamOptions | null | undefined;
|
|
417
324
|
thinking?:
|
|
418
325
|
| components.ThinkingConfigDisabledSchema
|
|
419
326
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -450,10 +357,6 @@ export type ModelConfigurationParameters = {
|
|
|
450
357
|
* Array of fallback models to use if primary model fails
|
|
451
358
|
*/
|
|
452
359
|
fallbacks?: Array<ModelConfigurationFallbacks> | undefined;
|
|
453
|
-
/**
|
|
454
|
-
* Retry configuration for the request
|
|
455
|
-
*/
|
|
456
|
-
retry?: UpdateAgentModelConfigurationRetry | undefined;
|
|
457
360
|
/**
|
|
458
361
|
* Cache configuration for the request.
|
|
459
362
|
*/
|
|
@@ -471,7 +374,7 @@ export type ModelConfigurationParameters = {
|
|
|
471
374
|
/**
|
|
472
375
|
* 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.
|
|
473
376
|
*/
|
|
474
|
-
export type
|
|
377
|
+
export type ModelConfigurationRetry = {
|
|
475
378
|
/**
|
|
476
379
|
* Number of retry attempts (1-5)
|
|
477
380
|
*/
|
|
@@ -499,7 +402,7 @@ export type UpdateAgentModelConfiguration2 = {
|
|
|
499
402
|
/**
|
|
500
403
|
* 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.
|
|
501
404
|
*/
|
|
502
|
-
retry?:
|
|
405
|
+
retry?: ModelConfigurationRetry | undefined;
|
|
503
406
|
};
|
|
504
407
|
|
|
505
408
|
/**
|
|
@@ -509,55 +412,6 @@ export type UpdateAgentModelConfiguration =
|
|
|
509
412
|
| UpdateAgentModelConfiguration2
|
|
510
413
|
| string;
|
|
511
414
|
|
|
512
|
-
/**
|
|
513
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
514
|
-
*/
|
|
515
|
-
export const UpdateAgentFallbackModelConfigurationVoice = {
|
|
516
|
-
Alloy: "alloy",
|
|
517
|
-
Echo: "echo",
|
|
518
|
-
Fable: "fable",
|
|
519
|
-
Onyx: "onyx",
|
|
520
|
-
Nova: "nova",
|
|
521
|
-
Shimmer: "shimmer",
|
|
522
|
-
} as const;
|
|
523
|
-
/**
|
|
524
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
525
|
-
*/
|
|
526
|
-
export type UpdateAgentFallbackModelConfigurationVoice = ClosedEnum<
|
|
527
|
-
typeof UpdateAgentFallbackModelConfigurationVoice
|
|
528
|
-
>;
|
|
529
|
-
|
|
530
|
-
/**
|
|
531
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
532
|
-
*/
|
|
533
|
-
export const UpdateAgentFallbackModelConfigurationFormat = {
|
|
534
|
-
Wav: "wav",
|
|
535
|
-
Mp3: "mp3",
|
|
536
|
-
Flac: "flac",
|
|
537
|
-
Opus: "opus",
|
|
538
|
-
Pcm16: "pcm16",
|
|
539
|
-
} as const;
|
|
540
|
-
/**
|
|
541
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
542
|
-
*/
|
|
543
|
-
export type UpdateAgentFallbackModelConfigurationFormat = ClosedEnum<
|
|
544
|
-
typeof UpdateAgentFallbackModelConfigurationFormat
|
|
545
|
-
>;
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
549
|
-
*/
|
|
550
|
-
export type UpdateAgentFallbackModelConfigurationAudio = {
|
|
551
|
-
/**
|
|
552
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
553
|
-
*/
|
|
554
|
-
voice: UpdateAgentFallbackModelConfigurationVoice;
|
|
555
|
-
/**
|
|
556
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
557
|
-
*/
|
|
558
|
-
format: UpdateAgentFallbackModelConfigurationFormat;
|
|
559
|
-
};
|
|
560
|
-
|
|
561
415
|
export type UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema = {
|
|
562
416
|
/**
|
|
563
417
|
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
@@ -654,16 +508,6 @@ export type UpdateAgentFallbackModelConfigurationReasoningEffort = ClosedEnum<
|
|
|
654
508
|
*/
|
|
655
509
|
export type UpdateAgentFallbackModelConfigurationStop = string | Array<string>;
|
|
656
510
|
|
|
657
|
-
/**
|
|
658
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
659
|
-
*/
|
|
660
|
-
export type UpdateAgentFallbackModelConfigurationStreamOptions = {
|
|
661
|
-
/**
|
|
662
|
-
* 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.
|
|
663
|
-
*/
|
|
664
|
-
includeUsage?: boolean | undefined;
|
|
665
|
-
};
|
|
666
|
-
|
|
667
511
|
export type UpdateAgentFallbackModelConfigurationThinking =
|
|
668
512
|
| components.ThinkingConfigDisabledSchema
|
|
669
513
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -766,20 +610,6 @@ export type UpdateAgentFallbackModelConfigurationFallbacks = {
|
|
|
766
610
|
model: string;
|
|
767
611
|
};
|
|
768
612
|
|
|
769
|
-
/**
|
|
770
|
-
* Retry configuration for the request
|
|
771
|
-
*/
|
|
772
|
-
export type UpdateAgentFallbackModelConfigurationRetry = {
|
|
773
|
-
/**
|
|
774
|
-
* Number of retry attempts (1-5)
|
|
775
|
-
*/
|
|
776
|
-
count?: number | undefined;
|
|
777
|
-
/**
|
|
778
|
-
* HTTP status codes that trigger retry logic
|
|
779
|
-
*/
|
|
780
|
-
onCodes?: Array<number> | undefined;
|
|
781
|
-
};
|
|
782
|
-
|
|
783
613
|
export const UpdateAgentFallbackModelConfigurationType = {
|
|
784
614
|
ExactMatch: "exact_match",
|
|
785
615
|
} as const;
|
|
@@ -845,10 +675,6 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
|
|
|
845
675
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
846
676
|
*/
|
|
847
677
|
name?: string | undefined;
|
|
848
|
-
/**
|
|
849
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
850
|
-
*/
|
|
851
|
-
audio?: UpdateAgentFallbackModelConfigurationAudio | null | undefined;
|
|
852
678
|
/**
|
|
853
679
|
* 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.
|
|
854
680
|
*/
|
|
@@ -865,18 +691,6 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
|
|
|
865
691
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
866
692
|
*/
|
|
867
693
|
maxCompletionTokens?: number | null | undefined;
|
|
868
|
-
/**
|
|
869
|
-
* 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.
|
|
870
|
-
*/
|
|
871
|
-
logprobs?: boolean | null | undefined;
|
|
872
|
-
/**
|
|
873
|
-
* 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.
|
|
874
|
-
*/
|
|
875
|
-
topLogprobs?: number | null | undefined;
|
|
876
|
-
/**
|
|
877
|
-
* 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.
|
|
878
|
-
*/
|
|
879
|
-
n?: number | null | undefined;
|
|
880
694
|
/**
|
|
881
695
|
* 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.
|
|
882
696
|
*/
|
|
@@ -916,13 +730,6 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
|
|
|
916
730
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
917
731
|
*/
|
|
918
732
|
stop?: string | Array<string> | null | undefined;
|
|
919
|
-
/**
|
|
920
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
921
|
-
*/
|
|
922
|
-
streamOptions?:
|
|
923
|
-
| UpdateAgentFallbackModelConfigurationStreamOptions
|
|
924
|
-
| null
|
|
925
|
-
| undefined;
|
|
926
733
|
thinking?:
|
|
927
734
|
| components.ThinkingConfigDisabledSchema
|
|
928
735
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -967,10 +774,6 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
|
|
|
967
774
|
* Array of fallback models to use if primary model fails
|
|
968
775
|
*/
|
|
969
776
|
fallbacks?: Array<UpdateAgentFallbackModelConfigurationFallbacks> | undefined;
|
|
970
|
-
/**
|
|
971
|
-
* Retry configuration for the request
|
|
972
|
-
*/
|
|
973
|
-
retry?: UpdateAgentFallbackModelConfigurationRetry | undefined;
|
|
974
777
|
/**
|
|
975
778
|
* Cache configuration for the request.
|
|
976
779
|
*/
|
|
@@ -988,7 +791,7 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
|
|
|
988
791
|
/**
|
|
989
792
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
990
793
|
*/
|
|
991
|
-
export type
|
|
794
|
+
export type UpdateAgentFallbackModelConfigurationRetry = {
|
|
992
795
|
/**
|
|
993
796
|
* Number of retry attempts (1-5)
|
|
994
797
|
*/
|
|
@@ -1014,7 +817,7 @@ export type UpdateAgentFallbackModelConfiguration2 = {
|
|
|
1014
817
|
/**
|
|
1015
818
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
1016
819
|
*/
|
|
1017
|
-
retry?:
|
|
820
|
+
retry?: UpdateAgentFallbackModelConfigurationRetry | undefined;
|
|
1018
821
|
};
|
|
1019
822
|
|
|
1020
823
|
/**
|
|
@@ -1612,10 +1415,33 @@ export type UpdateAgentTeamOfAgents = {
|
|
|
1612
1415
|
role?: string | undefined;
|
|
1613
1416
|
};
|
|
1614
1417
|
|
|
1418
|
+
export type UpdateAgentHeaders = {
|
|
1419
|
+
/**
|
|
1420
|
+
* 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.
|
|
1421
|
+
*/
|
|
1422
|
+
value: string;
|
|
1423
|
+
encrypted?: boolean | undefined;
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1615
1426
|
/**
|
|
1616
|
-
*
|
|
1427
|
+
* Update A2A agent configuration (only applicable to A2A agents)
|
|
1617
1428
|
*/
|
|
1618
|
-
export type
|
|
1429
|
+
export type UpdateA2AConfiguration = {
|
|
1430
|
+
/**
|
|
1431
|
+
* Update the A2A agent endpoint URL
|
|
1432
|
+
*/
|
|
1433
|
+
agentUrl?: string | undefined;
|
|
1434
|
+
/**
|
|
1435
|
+
* Update the explicit agent card URL
|
|
1436
|
+
*/
|
|
1437
|
+
cardUrl?: string | undefined;
|
|
1438
|
+
/**
|
|
1439
|
+
* Update HTTP headers for authentication. **Credential preservation**: Use empty string ("") for encrypted header values to keep existing credentials without re-entry. Provide new values to rotate credentials. Omit headers entirely to remove them.
|
|
1440
|
+
*/
|
|
1441
|
+
headers?: { [k: string]: UpdateAgentHeaders } | undefined;
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1444
|
+
export type UpdateAgentRequestBody = {
|
|
1619
1445
|
key?: string | undefined;
|
|
1620
1446
|
displayName?: string | undefined;
|
|
1621
1447
|
projectId?: string | undefined;
|
|
@@ -1663,6 +1489,10 @@ export type UpdateAgentUpdateAgentRequest = {
|
|
|
1663
1489
|
* Extracted variables from agent instructions
|
|
1664
1490
|
*/
|
|
1665
1491
|
variables?: { [k: string]: any } | undefined;
|
|
1492
|
+
/**
|
|
1493
|
+
* Update A2A agent configuration (only applicable to A2A agents)
|
|
1494
|
+
*/
|
|
1495
|
+
a2a?: UpdateA2AConfiguration | undefined;
|
|
1666
1496
|
};
|
|
1667
1497
|
|
|
1668
1498
|
export type UpdateAgentRequest = {
|
|
@@ -1670,13 +1500,13 @@ export type UpdateAgentRequest = {
|
|
|
1670
1500
|
* The unique key of the agent to update
|
|
1671
1501
|
*/
|
|
1672
1502
|
agentKey: string;
|
|
1673
|
-
requestBody:
|
|
1503
|
+
requestBody: UpdateAgentRequestBody;
|
|
1674
1504
|
};
|
|
1675
1505
|
|
|
1676
1506
|
/**
|
|
1677
1507
|
* 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.
|
|
1678
1508
|
*/
|
|
1679
|
-
export const
|
|
1509
|
+
export const UpdateAgentResponseBodyAgentsStatus = {
|
|
1680
1510
|
Live: "live",
|
|
1681
1511
|
Draft: "draft",
|
|
1682
1512
|
Pending: "pending",
|
|
@@ -1685,194 +1515,329 @@ export const UpdateAgentStatus = {
|
|
|
1685
1515
|
/**
|
|
1686
1516
|
* 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.
|
|
1687
1517
|
*/
|
|
1688
|
-
export type
|
|
1689
|
-
|
|
1690
|
-
/**
|
|
1691
|
-
* 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.
|
|
1692
|
-
*/
|
|
1693
|
-
export const UpdateAgentAgentsToolApprovalRequired = {
|
|
1694
|
-
All: "all",
|
|
1695
|
-
RespectTool: "respect_tool",
|
|
1696
|
-
None: "none",
|
|
1697
|
-
} as const;
|
|
1698
|
-
/**
|
|
1699
|
-
* 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.
|
|
1700
|
-
*/
|
|
1701
|
-
export type UpdateAgentAgentsToolApprovalRequired = ClosedEnum<
|
|
1702
|
-
typeof UpdateAgentAgentsToolApprovalRequired
|
|
1518
|
+
export type UpdateAgentResponseBodyAgentsStatus = ClosedEnum<
|
|
1519
|
+
typeof UpdateAgentResponseBodyAgentsStatus
|
|
1703
1520
|
>;
|
|
1704
1521
|
|
|
1705
|
-
export type
|
|
1522
|
+
export type UpdateAgentResponseBodyAgentsTeamOfAgents = {
|
|
1706
1523
|
/**
|
|
1707
|
-
* The
|
|
1524
|
+
* The unique key of the agent within the workspace
|
|
1708
1525
|
*/
|
|
1709
|
-
|
|
1526
|
+
key: string;
|
|
1710
1527
|
/**
|
|
1711
|
-
* The
|
|
1528
|
+
* 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.
|
|
1712
1529
|
*/
|
|
1713
|
-
|
|
1530
|
+
role?: string | undefined;
|
|
1531
|
+
};
|
|
1532
|
+
|
|
1533
|
+
export type UpdateAgentResponseBodyAgentsMetrics = {
|
|
1534
|
+
totalCost: number;
|
|
1535
|
+
};
|
|
1536
|
+
|
|
1537
|
+
export type UpdateAgentResponseBodyAgentsKnowledgeBases = {
|
|
1714
1538
|
/**
|
|
1715
|
-
*
|
|
1539
|
+
* Unique identifier of the knowledge base to search
|
|
1716
1540
|
*/
|
|
1717
|
-
|
|
1541
|
+
knowledgeId: string;
|
|
1718
1542
|
};
|
|
1719
1543
|
|
|
1720
|
-
export
|
|
1544
|
+
export const UpdateAgentResponseBodyAgentsSource = {
|
|
1545
|
+
Internal: "internal",
|
|
1546
|
+
External: "external",
|
|
1547
|
+
Experiment: "experiment",
|
|
1548
|
+
} as const;
|
|
1549
|
+
export type UpdateAgentResponseBodyAgentsSource = ClosedEnum<
|
|
1550
|
+
typeof UpdateAgentResponseBodyAgentsSource
|
|
1551
|
+
>;
|
|
1552
|
+
|
|
1553
|
+
export type UpdateAgentResponseBodyHeaders = {
|
|
1721
1554
|
/**
|
|
1722
|
-
*
|
|
1555
|
+
* 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.
|
|
1723
1556
|
*/
|
|
1724
|
-
|
|
1557
|
+
value: string;
|
|
1558
|
+
encrypted: boolean;
|
|
1559
|
+
};
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
|
|
1563
|
+
*/
|
|
1564
|
+
export type UpdateAgentResponseBodyA2AAgentConfiguration = {
|
|
1725
1565
|
/**
|
|
1726
|
-
*
|
|
1566
|
+
* The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
|
|
1727
1567
|
*/
|
|
1728
|
-
|
|
1729
|
-
actionType: string;
|
|
1730
|
-
displayName?: string | undefined;
|
|
1568
|
+
agentUrl: string;
|
|
1731
1569
|
/**
|
|
1732
|
-
* Optional
|
|
1570
|
+
* Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
|
|
1733
1571
|
*/
|
|
1734
|
-
|
|
1735
|
-
requiresApproval: boolean;
|
|
1572
|
+
cardUrl?: string | undefined;
|
|
1736
1573
|
/**
|
|
1737
|
-
*
|
|
1574
|
+
* 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.
|
|
1738
1575
|
*/
|
|
1739
|
-
|
|
1740
|
-
conditions?: Array<UpdateAgentConditions> | undefined;
|
|
1576
|
+
headers?: { [k: string]: UpdateAgentResponseBodyHeaders } | undefined;
|
|
1741
1577
|
/**
|
|
1742
|
-
*
|
|
1578
|
+
* Cached agent card from discovery. Refreshed periodically.
|
|
1743
1579
|
*/
|
|
1744
|
-
|
|
1580
|
+
cachedCard?: any | undefined;
|
|
1745
1581
|
};
|
|
1746
1582
|
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
*/
|
|
1750
|
-
export const UpdateAgentAgentsResponseExecuteOn = {
|
|
1751
|
-
Input: "input",
|
|
1752
|
-
Output: "output",
|
|
1753
|
-
} as const;
|
|
1754
|
-
/**
|
|
1755
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1756
|
-
*/
|
|
1757
|
-
export type UpdateAgentAgentsResponseExecuteOn = ClosedEnum<
|
|
1758
|
-
typeof UpdateAgentAgentsResponseExecuteOn
|
|
1759
|
-
>;
|
|
1760
|
-
|
|
1761
|
-
export type UpdateAgentAgentsEvaluators = {
|
|
1583
|
+
export type UpdateAgentResponseBody2 = {
|
|
1584
|
+
id: string;
|
|
1762
1585
|
/**
|
|
1763
|
-
* Unique
|
|
1586
|
+
* Unique identifier for the agent within the workspace
|
|
1764
1587
|
*/
|
|
1765
|
-
|
|
1588
|
+
key: string;
|
|
1589
|
+
displayName?: string | undefined;
|
|
1590
|
+
projectId: string;
|
|
1591
|
+
createdById?: string | null | undefined;
|
|
1592
|
+
updatedById?: string | null | undefined;
|
|
1593
|
+
created?: string | undefined;
|
|
1594
|
+
updated?: string | undefined;
|
|
1766
1595
|
/**
|
|
1767
|
-
* The
|
|
1596
|
+
* 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.
|
|
1768
1597
|
*/
|
|
1769
|
-
|
|
1598
|
+
status: UpdateAgentResponseBodyAgentsStatus;
|
|
1599
|
+
versionHash?: string | undefined;
|
|
1770
1600
|
/**
|
|
1771
|
-
*
|
|
1601
|
+
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
1602
|
+
*
|
|
1603
|
+
* @remarks
|
|
1604
|
+
*
|
|
1605
|
+
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
1606
|
+
*
|
|
1607
|
+
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
1772
1608
|
*/
|
|
1773
|
-
|
|
1774
|
-
};
|
|
1775
|
-
|
|
1776
|
-
/**
|
|
1777
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1778
|
-
*/
|
|
1779
|
-
export const UpdateAgentAgentsResponse200ExecuteOn = {
|
|
1780
|
-
Input: "input",
|
|
1781
|
-
Output: "output",
|
|
1782
|
-
} as const;
|
|
1783
|
-
/**
|
|
1784
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1785
|
-
*/
|
|
1786
|
-
export type UpdateAgentAgentsResponse200ExecuteOn = ClosedEnum<
|
|
1787
|
-
typeof UpdateAgentAgentsResponse200ExecuteOn
|
|
1788
|
-
>;
|
|
1789
|
-
|
|
1790
|
-
export type UpdateAgentAgentsGuardrails = {
|
|
1609
|
+
path: string;
|
|
1791
1610
|
/**
|
|
1792
|
-
*
|
|
1611
|
+
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
1793
1612
|
*/
|
|
1794
|
-
|
|
1613
|
+
memoryStores?: Array<string> | undefined;
|
|
1795
1614
|
/**
|
|
1796
|
-
* The
|
|
1615
|
+
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
1797
1616
|
*/
|
|
1798
|
-
|
|
1617
|
+
teamOfAgents?: Array<UpdateAgentResponseBodyAgentsTeamOfAgents> | undefined;
|
|
1618
|
+
metrics?: UpdateAgentResponseBodyAgentsMetrics | undefined;
|
|
1799
1619
|
/**
|
|
1800
|
-
*
|
|
1620
|
+
* Extracted variables from agent instructions
|
|
1801
1621
|
*/
|
|
1802
|
-
|
|
1803
|
-
};
|
|
1804
|
-
|
|
1805
|
-
export type UpdateAgentAgentsSettings = {
|
|
1622
|
+
variables?: { [k: string]: any } | undefined;
|
|
1806
1623
|
/**
|
|
1807
|
-
*
|
|
1624
|
+
* Agent knowledge bases reference
|
|
1808
1625
|
*/
|
|
1809
|
-
|
|
1626
|
+
knowledgeBases?:
|
|
1627
|
+
| Array<UpdateAgentResponseBodyAgentsKnowledgeBases>
|
|
1628
|
+
| undefined;
|
|
1629
|
+
source?: UpdateAgentResponseBodyAgentsSource | undefined;
|
|
1810
1630
|
/**
|
|
1811
|
-
*
|
|
1631
|
+
* External A2A-compliant agent
|
|
1812
1632
|
*/
|
|
1813
|
-
|
|
1633
|
+
type: "a2a";
|
|
1814
1634
|
/**
|
|
1815
|
-
*
|
|
1635
|
+
* Role fetched from agent card name or user-provided
|
|
1816
1636
|
*/
|
|
1817
|
-
|
|
1637
|
+
role: string;
|
|
1818
1638
|
/**
|
|
1819
|
-
*
|
|
1639
|
+
* Description fetched from agent card or user-provided
|
|
1820
1640
|
*/
|
|
1821
|
-
|
|
1822
|
-
|
|
1641
|
+
description: string;
|
|
1642
|
+
systemPrompt?: string | undefined;
|
|
1823
1643
|
/**
|
|
1824
|
-
*
|
|
1644
|
+
* Instructions from agent card description or user-provided
|
|
1825
1645
|
*/
|
|
1826
|
-
|
|
1646
|
+
instructions: string;
|
|
1827
1647
|
/**
|
|
1828
|
-
*
|
|
1648
|
+
* A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
|
|
1829
1649
|
*/
|
|
1830
|
-
|
|
1650
|
+
a2a: UpdateAgentResponseBodyA2AAgentConfiguration;
|
|
1831
1651
|
};
|
|
1832
1652
|
|
|
1833
1653
|
/**
|
|
1834
|
-
* The
|
|
1654
|
+
* 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.
|
|
1835
1655
|
*/
|
|
1836
|
-
export const
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
Shimmer: "shimmer",
|
|
1843
|
-
} as const;
|
|
1656
|
+
export const UpdateAgentResponseBodyStatus = {
|
|
1657
|
+
Live: "live",
|
|
1658
|
+
Draft: "draft",
|
|
1659
|
+
Pending: "pending",
|
|
1660
|
+
Published: "published",
|
|
1661
|
+
} as const;
|
|
1844
1662
|
/**
|
|
1845
|
-
* The
|
|
1663
|
+
* 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.
|
|
1846
1664
|
*/
|
|
1847
|
-
export type
|
|
1665
|
+
export type UpdateAgentResponseBodyStatus = ClosedEnum<
|
|
1666
|
+
typeof UpdateAgentResponseBodyStatus
|
|
1667
|
+
>;
|
|
1668
|
+
|
|
1669
|
+
export type UpdateAgentResponseBodyTeamOfAgents = {
|
|
1670
|
+
/**
|
|
1671
|
+
* The unique key of the agent within the workspace
|
|
1672
|
+
*/
|
|
1673
|
+
key: string;
|
|
1674
|
+
/**
|
|
1675
|
+
* 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.
|
|
1676
|
+
*/
|
|
1677
|
+
role?: string | undefined;
|
|
1678
|
+
};
|
|
1679
|
+
|
|
1680
|
+
export type UpdateAgentResponseBodyMetrics = {
|
|
1681
|
+
totalCost: number;
|
|
1682
|
+
};
|
|
1683
|
+
|
|
1684
|
+
export type UpdateAgentResponseBodyKnowledgeBases = {
|
|
1685
|
+
/**
|
|
1686
|
+
* Unique identifier of the knowledge base to search
|
|
1687
|
+
*/
|
|
1688
|
+
knowledgeId: string;
|
|
1689
|
+
};
|
|
1690
|
+
|
|
1691
|
+
export const UpdateAgentResponseBodySource = {
|
|
1692
|
+
Internal: "internal",
|
|
1693
|
+
External: "external",
|
|
1694
|
+
Experiment: "experiment",
|
|
1695
|
+
} as const;
|
|
1696
|
+
export type UpdateAgentResponseBodySource = ClosedEnum<
|
|
1697
|
+
typeof UpdateAgentResponseBodySource
|
|
1698
|
+
>;
|
|
1848
1699
|
|
|
1849
1700
|
/**
|
|
1850
|
-
*
|
|
1701
|
+
* 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.
|
|
1851
1702
|
*/
|
|
1852
|
-
export const
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
Opus: "opus",
|
|
1857
|
-
Pcm16: "pcm16",
|
|
1703
|
+
export const UpdateAgentResponseBodyToolApprovalRequired = {
|
|
1704
|
+
All: "all",
|
|
1705
|
+
RespectTool: "respect_tool",
|
|
1706
|
+
None: "none",
|
|
1858
1707
|
} as const;
|
|
1859
1708
|
/**
|
|
1860
|
-
*
|
|
1709
|
+
* 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.
|
|
1861
1710
|
*/
|
|
1862
|
-
export type
|
|
1711
|
+
export type UpdateAgentResponseBodyToolApprovalRequired = ClosedEnum<
|
|
1712
|
+
typeof UpdateAgentResponseBodyToolApprovalRequired
|
|
1713
|
+
>;
|
|
1714
|
+
|
|
1715
|
+
export type UpdateAgentResponseBodyConditions = {
|
|
1716
|
+
/**
|
|
1717
|
+
* The argument of the tool call to evaluate
|
|
1718
|
+
*/
|
|
1719
|
+
condition: string;
|
|
1720
|
+
/**
|
|
1721
|
+
* The operator to use
|
|
1722
|
+
*/
|
|
1723
|
+
operator: string;
|
|
1724
|
+
/**
|
|
1725
|
+
* The value to compare against
|
|
1726
|
+
*/
|
|
1727
|
+
value: string;
|
|
1728
|
+
};
|
|
1729
|
+
|
|
1730
|
+
export type UpdateAgentResponseBodyTools = {
|
|
1731
|
+
/**
|
|
1732
|
+
* The id of the resource
|
|
1733
|
+
*/
|
|
1734
|
+
id: string;
|
|
1735
|
+
/**
|
|
1736
|
+
* Optional tool key for custom tools
|
|
1737
|
+
*/
|
|
1738
|
+
key?: string | undefined;
|
|
1739
|
+
actionType: string;
|
|
1740
|
+
displayName?: string | undefined;
|
|
1741
|
+
/**
|
|
1742
|
+
* Optional tool description
|
|
1743
|
+
*/
|
|
1744
|
+
description?: string | undefined;
|
|
1745
|
+
requiresApproval: boolean;
|
|
1746
|
+
/**
|
|
1747
|
+
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
1748
|
+
*/
|
|
1749
|
+
toolId?: string | undefined;
|
|
1750
|
+
conditions?: Array<UpdateAgentResponseBodyConditions> | undefined;
|
|
1751
|
+
/**
|
|
1752
|
+
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
1753
|
+
*/
|
|
1754
|
+
timeout: number;
|
|
1755
|
+
};
|
|
1863
1756
|
|
|
1864
1757
|
/**
|
|
1865
|
-
*
|
|
1758
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1759
|
+
*/
|
|
1760
|
+
export const UpdateAgentResponseBodyExecuteOn = {
|
|
1761
|
+
Input: "input",
|
|
1762
|
+
Output: "output",
|
|
1763
|
+
} as const;
|
|
1764
|
+
/**
|
|
1765
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1866
1766
|
*/
|
|
1867
|
-
export type
|
|
1767
|
+
export type UpdateAgentResponseBodyExecuteOn = ClosedEnum<
|
|
1768
|
+
typeof UpdateAgentResponseBodyExecuteOn
|
|
1769
|
+
>;
|
|
1770
|
+
|
|
1771
|
+
export type UpdateAgentResponseBodyEvaluators = {
|
|
1868
1772
|
/**
|
|
1869
|
-
*
|
|
1773
|
+
* Unique key or identifier of the evaluator
|
|
1870
1774
|
*/
|
|
1871
|
-
|
|
1775
|
+
id: string;
|
|
1872
1776
|
/**
|
|
1873
|
-
*
|
|
1777
|
+
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
1874
1778
|
*/
|
|
1875
|
-
|
|
1779
|
+
sampleRate: number;
|
|
1780
|
+
/**
|
|
1781
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1782
|
+
*/
|
|
1783
|
+
executeOn: UpdateAgentResponseBodyExecuteOn;
|
|
1784
|
+
};
|
|
1785
|
+
|
|
1786
|
+
/**
|
|
1787
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1788
|
+
*/
|
|
1789
|
+
export const UpdateAgentResponseBodyAgentsExecuteOn = {
|
|
1790
|
+
Input: "input",
|
|
1791
|
+
Output: "output",
|
|
1792
|
+
} as const;
|
|
1793
|
+
/**
|
|
1794
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1795
|
+
*/
|
|
1796
|
+
export type UpdateAgentResponseBodyAgentsExecuteOn = ClosedEnum<
|
|
1797
|
+
typeof UpdateAgentResponseBodyAgentsExecuteOn
|
|
1798
|
+
>;
|
|
1799
|
+
|
|
1800
|
+
export type UpdateAgentResponseBodyGuardrails = {
|
|
1801
|
+
/**
|
|
1802
|
+
* Unique key or identifier of the evaluator
|
|
1803
|
+
*/
|
|
1804
|
+
id: string;
|
|
1805
|
+
/**
|
|
1806
|
+
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
1807
|
+
*/
|
|
1808
|
+
sampleRate: number;
|
|
1809
|
+
/**
|
|
1810
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1811
|
+
*/
|
|
1812
|
+
executeOn: UpdateAgentResponseBodyAgentsExecuteOn;
|
|
1813
|
+
};
|
|
1814
|
+
|
|
1815
|
+
export type UpdateAgentResponseBodySettings = {
|
|
1816
|
+
/**
|
|
1817
|
+
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
1818
|
+
*/
|
|
1819
|
+
maxIterations: number;
|
|
1820
|
+
/**
|
|
1821
|
+
* Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
|
|
1822
|
+
*/
|
|
1823
|
+
maxExecutionTime: number;
|
|
1824
|
+
/**
|
|
1825
|
+
* Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
|
|
1826
|
+
*/
|
|
1827
|
+
maxCost: number;
|
|
1828
|
+
/**
|
|
1829
|
+
* 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.
|
|
1830
|
+
*/
|
|
1831
|
+
toolApprovalRequired: UpdateAgentResponseBodyToolApprovalRequired;
|
|
1832
|
+
tools?: Array<UpdateAgentResponseBodyTools> | undefined;
|
|
1833
|
+
/**
|
|
1834
|
+
* Configuration for an evaluator applied to the agent
|
|
1835
|
+
*/
|
|
1836
|
+
evaluators?: Array<UpdateAgentResponseBodyEvaluators> | undefined;
|
|
1837
|
+
/**
|
|
1838
|
+
* Configuration for a guardrail applied to the agent
|
|
1839
|
+
*/
|
|
1840
|
+
guardrails?: Array<UpdateAgentResponseBodyGuardrails> | undefined;
|
|
1876
1841
|
};
|
|
1877
1842
|
|
|
1878
1843
|
export type UpdateAgentResponseFormatAgentsResponseJsonSchema = {
|
|
@@ -1925,7 +1890,7 @@ export type UpdateAgentResponseFormatAgentsResponseText = {
|
|
|
1925
1890
|
/**
|
|
1926
1891
|
* An object specifying the format that the model must output
|
|
1927
1892
|
*/
|
|
1928
|
-
export type
|
|
1893
|
+
export type UpdateAgentResponseBodyResponseFormat =
|
|
1929
1894
|
| UpdateAgentResponseFormatAgentsResponseText
|
|
1930
1895
|
| UpdateAgentResponseFormatAgentsResponseJSONObject
|
|
1931
1896
|
| UpdateAgentResponseFormatAgentsResponse200JSONSchema;
|
|
@@ -1942,7 +1907,7 @@ export type UpdateAgentResponseFormat =
|
|
|
1942
1907
|
*
|
|
1943
1908
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
1944
1909
|
*/
|
|
1945
|
-
export const
|
|
1910
|
+
export const UpdateAgentResponseBodyReasoningEffort = {
|
|
1946
1911
|
None: "none",
|
|
1947
1912
|
Minimal: "minimal",
|
|
1948
1913
|
Low: "low",
|
|
@@ -1962,26 +1927,16 @@ export const UpdateAgentReasoningEffort = {
|
|
|
1962
1927
|
*
|
|
1963
1928
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
1964
1929
|
*/
|
|
1965
|
-
export type
|
|
1966
|
-
typeof
|
|
1930
|
+
export type UpdateAgentResponseBodyReasoningEffort = ClosedEnum<
|
|
1931
|
+
typeof UpdateAgentResponseBodyReasoningEffort
|
|
1967
1932
|
>;
|
|
1968
1933
|
|
|
1969
1934
|
/**
|
|
1970
1935
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
1971
1936
|
*/
|
|
1972
|
-
export type
|
|
1937
|
+
export type UpdateAgentResponseBodyStop = string | Array<string>;
|
|
1973
1938
|
|
|
1974
|
-
|
|
1975
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
1976
|
-
*/
|
|
1977
|
-
export type UpdateAgentStreamOptions = {
|
|
1978
|
-
/**
|
|
1979
|
-
* 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.
|
|
1980
|
-
*/
|
|
1981
|
-
includeUsage?: boolean | undefined;
|
|
1982
|
-
};
|
|
1983
|
-
|
|
1984
|
-
export type UpdateAgentThinking =
|
|
1939
|
+
export type UpdateAgentResponseBodyThinking =
|
|
1985
1940
|
| components.ThinkingConfigDisabledSchema
|
|
1986
1941
|
| components.ThinkingConfigEnabledSchema;
|
|
1987
1942
|
|
|
@@ -2025,15 +1980,17 @@ export type UpdateAgentToolChoiceAgentsResponse1 = ClosedEnum<
|
|
|
2025
1980
|
/**
|
|
2026
1981
|
* Controls which (if any) tool is called by the model.
|
|
2027
1982
|
*/
|
|
2028
|
-
export type
|
|
1983
|
+
export type UpdateAgentResponseBodyToolChoice =
|
|
2029
1984
|
| UpdateAgentToolChoiceAgentsResponse2
|
|
2030
1985
|
| UpdateAgentToolChoiceAgentsResponse1;
|
|
2031
1986
|
|
|
2032
|
-
export const
|
|
1987
|
+
export const UpdateAgentResponseBodyModalities = {
|
|
2033
1988
|
Text: "text",
|
|
2034
1989
|
Audio: "audio",
|
|
2035
1990
|
} as const;
|
|
2036
|
-
export type
|
|
1991
|
+
export type UpdateAgentResponseBodyModalities = ClosedEnum<
|
|
1992
|
+
typeof UpdateAgentResponseBodyModalities
|
|
1993
|
+
>;
|
|
2037
1994
|
|
|
2038
1995
|
/**
|
|
2039
1996
|
* The key of the guardrail.
|
|
@@ -2050,65 +2007,53 @@ export type UpdateAgentIdAgentsResponse1 = ClosedEnum<
|
|
|
2050
2007
|
typeof UpdateAgentIdAgentsResponse1
|
|
2051
2008
|
>;
|
|
2052
2009
|
|
|
2053
|
-
export type
|
|
2010
|
+
export type UpdateAgentResponseBodyId = UpdateAgentIdAgentsResponse1 | string;
|
|
2054
2011
|
|
|
2055
2012
|
/**
|
|
2056
2013
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2057
2014
|
*/
|
|
2058
|
-
export const
|
|
2015
|
+
export const UpdateAgentResponseBodyAgentsResponseExecuteOn = {
|
|
2059
2016
|
Input: "input",
|
|
2060
2017
|
Output: "output",
|
|
2061
2018
|
} as const;
|
|
2062
2019
|
/**
|
|
2063
2020
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2064
2021
|
*/
|
|
2065
|
-
export type
|
|
2066
|
-
typeof
|
|
2022
|
+
export type UpdateAgentResponseBodyAgentsResponseExecuteOn = ClosedEnum<
|
|
2023
|
+
typeof UpdateAgentResponseBodyAgentsResponseExecuteOn
|
|
2067
2024
|
>;
|
|
2068
2025
|
|
|
2069
|
-
export type
|
|
2026
|
+
export type UpdateAgentResponseBodyAgentsGuardrails = {
|
|
2070
2027
|
id: UpdateAgentIdAgentsResponse1 | string;
|
|
2071
2028
|
/**
|
|
2072
2029
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2073
2030
|
*/
|
|
2074
|
-
executeOn:
|
|
2031
|
+
executeOn: UpdateAgentResponseBodyAgentsResponseExecuteOn;
|
|
2075
2032
|
};
|
|
2076
2033
|
|
|
2077
|
-
export type
|
|
2034
|
+
export type UpdateAgentResponseBodyFallbacks = {
|
|
2078
2035
|
/**
|
|
2079
2036
|
* Fallback model identifier
|
|
2080
2037
|
*/
|
|
2081
2038
|
model: string;
|
|
2082
2039
|
};
|
|
2083
2040
|
|
|
2084
|
-
|
|
2085
|
-
* Retry configuration for the request
|
|
2086
|
-
*/
|
|
2087
|
-
export type UpdateAgentAgentsRetry = {
|
|
2088
|
-
/**
|
|
2089
|
-
* Number of retry attempts (1-5)
|
|
2090
|
-
*/
|
|
2091
|
-
count: number;
|
|
2092
|
-
/**
|
|
2093
|
-
* HTTP status codes that trigger retry logic
|
|
2094
|
-
*/
|
|
2095
|
-
onCodes?: Array<number> | undefined;
|
|
2096
|
-
};
|
|
2097
|
-
|
|
2098
|
-
export const UpdateAgentType = {
|
|
2041
|
+
export const UpdateAgentResponseBodyAgentsResponseType = {
|
|
2099
2042
|
ExactMatch: "exact_match",
|
|
2100
2043
|
} as const;
|
|
2101
|
-
export type
|
|
2044
|
+
export type UpdateAgentResponseBodyAgentsResponseType = ClosedEnum<
|
|
2045
|
+
typeof UpdateAgentResponseBodyAgentsResponseType
|
|
2046
|
+
>;
|
|
2102
2047
|
|
|
2103
2048
|
/**
|
|
2104
2049
|
* Cache configuration for the request.
|
|
2105
2050
|
*/
|
|
2106
|
-
export type
|
|
2051
|
+
export type UpdateAgentResponseBodyCache = {
|
|
2107
2052
|
/**
|
|
2108
2053
|
* Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
|
|
2109
2054
|
*/
|
|
2110
2055
|
ttl: number;
|
|
2111
|
-
type:
|
|
2056
|
+
type: UpdateAgentResponseBodyAgentsResponseType;
|
|
2112
2057
|
};
|
|
2113
2058
|
|
|
2114
2059
|
export const UpdateAgentLoadBalancerAgentsResponseType = {
|
|
@@ -2137,12 +2082,13 @@ export type UpdateAgentLoadBalancerAgentsResponse1 = {
|
|
|
2137
2082
|
/**
|
|
2138
2083
|
* Load balancer configuration for the request.
|
|
2139
2084
|
*/
|
|
2140
|
-
export type
|
|
2085
|
+
export type UpdateAgentResponseBodyLoadBalancer =
|
|
2086
|
+
UpdateAgentLoadBalancerAgentsResponse1;
|
|
2141
2087
|
|
|
2142
2088
|
/**
|
|
2143
2089
|
* 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.
|
|
2144
2090
|
*/
|
|
2145
|
-
export type
|
|
2091
|
+
export type UpdateAgentResponseBodyTimeout = {
|
|
2146
2092
|
/**
|
|
2147
2093
|
* Timeout value in milliseconds
|
|
2148
2094
|
*/
|
|
@@ -2152,15 +2098,11 @@ export type UpdateAgentTimeout = {
|
|
|
2152
2098
|
/**
|
|
2153
2099
|
* 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.
|
|
2154
2100
|
*/
|
|
2155
|
-
export type
|
|
2101
|
+
export type UpdateAgentResponseBodyParameters = {
|
|
2156
2102
|
/**
|
|
2157
2103
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
2158
2104
|
*/
|
|
2159
2105
|
name?: string | undefined;
|
|
2160
|
-
/**
|
|
2161
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
2162
|
-
*/
|
|
2163
|
-
audio?: UpdateAgentAudio | null | undefined;
|
|
2164
2106
|
/**
|
|
2165
2107
|
* 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.
|
|
2166
2108
|
*/
|
|
@@ -2177,18 +2119,6 @@ export type UpdateAgentParameters = {
|
|
|
2177
2119
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
2178
2120
|
*/
|
|
2179
2121
|
maxCompletionTokens?: number | null | undefined;
|
|
2180
|
-
/**
|
|
2181
|
-
* 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.
|
|
2182
|
-
*/
|
|
2183
|
-
logprobs?: boolean | null | undefined;
|
|
2184
|
-
/**
|
|
2185
|
-
* 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.
|
|
2186
|
-
*/
|
|
2187
|
-
topLogprobs?: number | null | undefined;
|
|
2188
|
-
/**
|
|
2189
|
-
* 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.
|
|
2190
|
-
*/
|
|
2191
|
-
n?: number | null | undefined;
|
|
2192
2122
|
/**
|
|
2193
2123
|
* 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.
|
|
2194
2124
|
*/
|
|
@@ -2213,7 +2143,7 @@ export type UpdateAgentParameters = {
|
|
|
2213
2143
|
*
|
|
2214
2144
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
2215
2145
|
*/
|
|
2216
|
-
reasoningEffort?:
|
|
2146
|
+
reasoningEffort?: UpdateAgentResponseBodyReasoningEffort | undefined;
|
|
2217
2147
|
/**
|
|
2218
2148
|
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
2219
2149
|
*/
|
|
@@ -2226,10 +2156,6 @@ export type UpdateAgentParameters = {
|
|
|
2226
2156
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
2227
2157
|
*/
|
|
2228
2158
|
stop?: string | Array<string> | null | undefined;
|
|
2229
|
-
/**
|
|
2230
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
2231
|
-
*/
|
|
2232
|
-
streamOptions?: UpdateAgentStreamOptions | null | undefined;
|
|
2233
2159
|
thinking?:
|
|
2234
2160
|
| components.ThinkingConfigDisabledSchema
|
|
2235
2161
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -2260,23 +2186,19 @@ export type UpdateAgentParameters = {
|
|
|
2260
2186
|
/**
|
|
2261
2187
|
* 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"].
|
|
2262
2188
|
*/
|
|
2263
|
-
modalities?: Array<
|
|
2189
|
+
modalities?: Array<UpdateAgentResponseBodyModalities> | null | undefined;
|
|
2264
2190
|
/**
|
|
2265
2191
|
* A list of guardrails to apply to the request.
|
|
2266
2192
|
*/
|
|
2267
|
-
guardrails?: Array<
|
|
2193
|
+
guardrails?: Array<UpdateAgentResponseBodyAgentsGuardrails> | undefined;
|
|
2268
2194
|
/**
|
|
2269
2195
|
* Array of fallback models to use if primary model fails
|
|
2270
2196
|
*/
|
|
2271
|
-
fallbacks?: Array<
|
|
2272
|
-
/**
|
|
2273
|
-
* Retry configuration for the request
|
|
2274
|
-
*/
|
|
2275
|
-
retry?: UpdateAgentAgentsRetry | undefined;
|
|
2197
|
+
fallbacks?: Array<UpdateAgentResponseBodyFallbacks> | undefined;
|
|
2276
2198
|
/**
|
|
2277
2199
|
* Cache configuration for the request.
|
|
2278
2200
|
*/
|
|
2279
|
-
cache?:
|
|
2201
|
+
cache?: UpdateAgentResponseBodyCache | undefined;
|
|
2280
2202
|
/**
|
|
2281
2203
|
* Load balancer configuration for the request.
|
|
2282
2204
|
*/
|
|
@@ -2284,13 +2206,13 @@ export type UpdateAgentParameters = {
|
|
|
2284
2206
|
/**
|
|
2285
2207
|
* 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.
|
|
2286
2208
|
*/
|
|
2287
|
-
timeout?:
|
|
2209
|
+
timeout?: UpdateAgentResponseBodyTimeout | undefined;
|
|
2288
2210
|
};
|
|
2289
2211
|
|
|
2290
2212
|
/**
|
|
2291
2213
|
* 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).
|
|
2292
2214
|
*/
|
|
2293
|
-
export type
|
|
2215
|
+
export type UpdateAgentResponseBodyRetry = {
|
|
2294
2216
|
/**
|
|
2295
2217
|
* Number of retry attempts (1-5)
|
|
2296
2218
|
*/
|
|
@@ -2301,55 +2223,6 @@ export type UpdateAgentRetry = {
|
|
|
2301
2223
|
onCodes?: Array<number> | undefined;
|
|
2302
2224
|
};
|
|
2303
2225
|
|
|
2304
|
-
/**
|
|
2305
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
2306
|
-
*/
|
|
2307
|
-
export const UpdateAgentFallbackModelConfigurationAgentsVoice = {
|
|
2308
|
-
Alloy: "alloy",
|
|
2309
|
-
Echo: "echo",
|
|
2310
|
-
Fable: "fable",
|
|
2311
|
-
Onyx: "onyx",
|
|
2312
|
-
Nova: "nova",
|
|
2313
|
-
Shimmer: "shimmer",
|
|
2314
|
-
} as const;
|
|
2315
|
-
/**
|
|
2316
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
2317
|
-
*/
|
|
2318
|
-
export type UpdateAgentFallbackModelConfigurationAgentsVoice = ClosedEnum<
|
|
2319
|
-
typeof UpdateAgentFallbackModelConfigurationAgentsVoice
|
|
2320
|
-
>;
|
|
2321
|
-
|
|
2322
|
-
/**
|
|
2323
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
2324
|
-
*/
|
|
2325
|
-
export const UpdateAgentFallbackModelConfigurationAgentsFormat = {
|
|
2326
|
-
Wav: "wav",
|
|
2327
|
-
Mp3: "mp3",
|
|
2328
|
-
Flac: "flac",
|
|
2329
|
-
Opus: "opus",
|
|
2330
|
-
Pcm16: "pcm16",
|
|
2331
|
-
} as const;
|
|
2332
|
-
/**
|
|
2333
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
2334
|
-
*/
|
|
2335
|
-
export type UpdateAgentFallbackModelConfigurationAgentsFormat = ClosedEnum<
|
|
2336
|
-
typeof UpdateAgentFallbackModelConfigurationAgentsFormat
|
|
2337
|
-
>;
|
|
2338
|
-
|
|
2339
|
-
/**
|
|
2340
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
2341
|
-
*/
|
|
2342
|
-
export type UpdateAgentFallbackModelConfigurationAgentsAudio = {
|
|
2343
|
-
/**
|
|
2344
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
2345
|
-
*/
|
|
2346
|
-
voice: UpdateAgentFallbackModelConfigurationAgentsVoice;
|
|
2347
|
-
/**
|
|
2348
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
2349
|
-
*/
|
|
2350
|
-
format: UpdateAgentFallbackModelConfigurationAgentsFormat;
|
|
2351
|
-
};
|
|
2352
|
-
|
|
2353
2226
|
export type UpdateAgentResponseFormatAgentsResponse200ApplicationJSONJSONSchema =
|
|
2354
2227
|
{
|
|
2355
2228
|
/**
|
|
@@ -2450,16 +2323,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsStop =
|
|
|
2450
2323
|
| string
|
|
2451
2324
|
| Array<string>;
|
|
2452
2325
|
|
|
2453
|
-
/**
|
|
2454
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
2455
|
-
*/
|
|
2456
|
-
export type UpdateAgentFallbackModelConfigurationAgentsStreamOptions = {
|
|
2457
|
-
/**
|
|
2458
|
-
* 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.
|
|
2459
|
-
*/
|
|
2460
|
-
includeUsage?: boolean | undefined;
|
|
2461
|
-
};
|
|
2462
|
-
|
|
2463
2326
|
export type UpdateAgentFallbackModelConfigurationAgentsThinking =
|
|
2464
2327
|
| components.ThinkingConfigDisabledSchema
|
|
2465
2328
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -2564,20 +2427,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsFallbacks = {
|
|
|
2564
2427
|
model: string;
|
|
2565
2428
|
};
|
|
2566
2429
|
|
|
2567
|
-
/**
|
|
2568
|
-
* Retry configuration for the request
|
|
2569
|
-
*/
|
|
2570
|
-
export type UpdateAgentFallbackModelConfigurationAgentsResponse200Retry = {
|
|
2571
|
-
/**
|
|
2572
|
-
* Number of retry attempts (1-5)
|
|
2573
|
-
*/
|
|
2574
|
-
count: number;
|
|
2575
|
-
/**
|
|
2576
|
-
* HTTP status codes that trigger retry logic
|
|
2577
|
-
*/
|
|
2578
|
-
onCodes?: Array<number> | undefined;
|
|
2579
|
-
};
|
|
2580
|
-
|
|
2581
2430
|
export const UpdateAgentFallbackModelConfigurationAgentsType = {
|
|
2582
2431
|
ExactMatch: "exact_match",
|
|
2583
2432
|
} as const;
|
|
@@ -2643,10 +2492,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2643
2492
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
2644
2493
|
*/
|
|
2645
2494
|
name?: string | undefined;
|
|
2646
|
-
/**
|
|
2647
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
2648
|
-
*/
|
|
2649
|
-
audio?: UpdateAgentFallbackModelConfigurationAgentsAudio | null | undefined;
|
|
2650
2495
|
/**
|
|
2651
2496
|
* 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.
|
|
2652
2497
|
*/
|
|
@@ -2663,18 +2508,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2663
2508
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
2664
2509
|
*/
|
|
2665
2510
|
maxCompletionTokens?: number | null | undefined;
|
|
2666
|
-
/**
|
|
2667
|
-
* 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.
|
|
2668
|
-
*/
|
|
2669
|
-
logprobs?: boolean | null | undefined;
|
|
2670
|
-
/**
|
|
2671
|
-
* 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.
|
|
2672
|
-
*/
|
|
2673
|
-
topLogprobs?: number | null | undefined;
|
|
2674
|
-
/**
|
|
2675
|
-
* 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.
|
|
2676
|
-
*/
|
|
2677
|
-
n?: number | null | undefined;
|
|
2678
2511
|
/**
|
|
2679
2512
|
* 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.
|
|
2680
2513
|
*/
|
|
@@ -2714,13 +2547,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2714
2547
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
2715
2548
|
*/
|
|
2716
2549
|
stop?: string | Array<string> | null | undefined;
|
|
2717
|
-
/**
|
|
2718
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
2719
|
-
*/
|
|
2720
|
-
streamOptions?:
|
|
2721
|
-
| UpdateAgentFallbackModelConfigurationAgentsStreamOptions
|
|
2722
|
-
| null
|
|
2723
|
-
| undefined;
|
|
2724
2550
|
thinking?:
|
|
2725
2551
|
| components.ThinkingConfigDisabledSchema
|
|
2726
2552
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -2767,12 +2593,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2767
2593
|
fallbacks?:
|
|
2768
2594
|
| Array<UpdateAgentFallbackModelConfigurationAgentsFallbacks>
|
|
2769
2595
|
| undefined;
|
|
2770
|
-
/**
|
|
2771
|
-
* Retry configuration for the request
|
|
2772
|
-
*/
|
|
2773
|
-
retry?:
|
|
2774
|
-
| UpdateAgentFallbackModelConfigurationAgentsResponse200Retry
|
|
2775
|
-
| undefined;
|
|
2776
2596
|
/**
|
|
2777
2597
|
* Cache configuration for the request.
|
|
2778
2598
|
*/
|
|
@@ -2790,7 +2610,7 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2790
2610
|
/**
|
|
2791
2611
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
2792
2612
|
*/
|
|
2793
|
-
export type
|
|
2613
|
+
export type UpdateAgentFallbackModelConfigurationAgentsRetry = {
|
|
2794
2614
|
/**
|
|
2795
2615
|
* Number of retry attempts (1-5)
|
|
2796
2616
|
*/
|
|
@@ -2818,17 +2638,17 @@ export type UpdateAgentFallbackModelConfigurationAgents2 = {
|
|
|
2818
2638
|
/**
|
|
2819
2639
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
2820
2640
|
*/
|
|
2821
|
-
retry?:
|
|
2641
|
+
retry?: UpdateAgentFallbackModelConfigurationAgentsRetry | undefined;
|
|
2822
2642
|
};
|
|
2823
2643
|
|
|
2824
2644
|
/**
|
|
2825
2645
|
* 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.
|
|
2826
2646
|
*/
|
|
2827
|
-
export type
|
|
2647
|
+
export type UpdateAgentResponseBodyFallbackModelConfiguration =
|
|
2828
2648
|
| UpdateAgentFallbackModelConfigurationAgents2
|
|
2829
2649
|
| string;
|
|
2830
2650
|
|
|
2831
|
-
export type
|
|
2651
|
+
export type UpdateAgentResponseBodyModel = {
|
|
2832
2652
|
/**
|
|
2833
2653
|
* The database ID of the primary model
|
|
2834
2654
|
*/
|
|
@@ -2840,11 +2660,11 @@ export type UpdateAgentModel = {
|
|
|
2840
2660
|
/**
|
|
2841
2661
|
* 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.
|
|
2842
2662
|
*/
|
|
2843
|
-
parameters?:
|
|
2663
|
+
parameters?: UpdateAgentResponseBodyParameters | undefined;
|
|
2844
2664
|
/**
|
|
2845
2665
|
* 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).
|
|
2846
2666
|
*/
|
|
2847
|
-
retry?:
|
|
2667
|
+
retry?: UpdateAgentResponseBodyRetry | undefined;
|
|
2848
2668
|
/**
|
|
2849
2669
|
* Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
|
|
2850
2670
|
*/
|
|
@@ -2854,61 +2674,22 @@ export type UpdateAgentModel = {
|
|
|
2854
2674
|
| undefined;
|
|
2855
2675
|
};
|
|
2856
2676
|
|
|
2857
|
-
export type
|
|
2858
|
-
/**
|
|
2859
|
-
* The unique key of the agent within the workspace
|
|
2860
|
-
*/
|
|
2861
|
-
key: string;
|
|
2862
|
-
/**
|
|
2863
|
-
* 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.
|
|
2864
|
-
*/
|
|
2865
|
-
role?: string | undefined;
|
|
2866
|
-
};
|
|
2867
|
-
|
|
2868
|
-
export type UpdateAgentMetrics = {
|
|
2869
|
-
totalCost: number;
|
|
2870
|
-
};
|
|
2871
|
-
|
|
2872
|
-
export type UpdateAgentAgentsKnowledgeBases = {
|
|
2873
|
-
/**
|
|
2874
|
-
* Unique identifier of the knowledge base to search
|
|
2875
|
-
*/
|
|
2876
|
-
knowledgeId: string;
|
|
2877
|
-
};
|
|
2878
|
-
|
|
2879
|
-
export const UpdateAgentSource = {
|
|
2880
|
-
Internal: "internal",
|
|
2881
|
-
External: "external",
|
|
2882
|
-
Experiment: "experiment",
|
|
2883
|
-
} as const;
|
|
2884
|
-
export type UpdateAgentSource = ClosedEnum<typeof UpdateAgentSource>;
|
|
2885
|
-
|
|
2886
|
-
/**
|
|
2887
|
-
* Agent configuration successfully updated. Returns the complete updated agent manifest reflecting all changes made.
|
|
2888
|
-
*/
|
|
2889
|
-
export type UpdateAgentResponseBody = {
|
|
2677
|
+
export type UpdateAgentResponseBody1 = {
|
|
2890
2678
|
id: string;
|
|
2891
2679
|
/**
|
|
2892
2680
|
* Unique identifier for the agent within the workspace
|
|
2893
2681
|
*/
|
|
2894
2682
|
key: string;
|
|
2895
2683
|
displayName?: string | undefined;
|
|
2896
|
-
workspaceId: string;
|
|
2897
2684
|
projectId: string;
|
|
2898
2685
|
createdById?: string | null | undefined;
|
|
2899
2686
|
updatedById?: string | null | undefined;
|
|
2900
2687
|
created?: string | undefined;
|
|
2901
2688
|
updated?: string | undefined;
|
|
2902
|
-
role: string;
|
|
2903
|
-
description: string;
|
|
2904
|
-
systemPrompt?: string | undefined;
|
|
2905
|
-
instructions: string;
|
|
2906
2689
|
/**
|
|
2907
2690
|
* 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.
|
|
2908
2691
|
*/
|
|
2909
|
-
status:
|
|
2910
|
-
settings?: UpdateAgentAgentsSettings | undefined;
|
|
2911
|
-
model: UpdateAgentModel;
|
|
2692
|
+
status: UpdateAgentResponseBodyStatus;
|
|
2912
2693
|
versionHash?: string | undefined;
|
|
2913
2694
|
/**
|
|
2914
2695
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -2923,12 +2704,12 @@ export type UpdateAgentResponseBody = {
|
|
|
2923
2704
|
/**
|
|
2924
2705
|
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
2925
2706
|
*/
|
|
2926
|
-
memoryStores
|
|
2707
|
+
memoryStores?: Array<string> | undefined;
|
|
2927
2708
|
/**
|
|
2928
2709
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
2929
2710
|
*/
|
|
2930
|
-
teamOfAgents
|
|
2931
|
-
metrics?:
|
|
2711
|
+
teamOfAgents?: Array<UpdateAgentResponseBodyTeamOfAgents> | undefined;
|
|
2712
|
+
metrics?: UpdateAgentResponseBodyMetrics | undefined;
|
|
2932
2713
|
/**
|
|
2933
2714
|
* Extracted variables from agent instructions
|
|
2934
2715
|
*/
|
|
@@ -2936,45 +2717,26 @@ export type UpdateAgentResponseBody = {
|
|
|
2936
2717
|
/**
|
|
2937
2718
|
* Agent knowledge bases reference
|
|
2938
2719
|
*/
|
|
2939
|
-
knowledgeBases?: Array<
|
|
2940
|
-
source?:
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
> = z.nativeEnum(ModelConfigurationFormat);
|
|
2952
|
-
|
|
2953
|
-
/** @internal */
|
|
2954
|
-
export type UpdateAgentModelConfigurationAudio$Outbound = {
|
|
2955
|
-
voice: string;
|
|
2956
|
-
format: string;
|
|
2720
|
+
knowledgeBases?: Array<UpdateAgentResponseBodyKnowledgeBases> | undefined;
|
|
2721
|
+
source?: UpdateAgentResponseBodySource | undefined;
|
|
2722
|
+
/**
|
|
2723
|
+
* Orquesta-managed agent
|
|
2724
|
+
*/
|
|
2725
|
+
type: "internal";
|
|
2726
|
+
role: string;
|
|
2727
|
+
description: string;
|
|
2728
|
+
systemPrompt?: string | undefined;
|
|
2729
|
+
instructions: string;
|
|
2730
|
+
settings?: UpdateAgentResponseBodySettings | undefined;
|
|
2731
|
+
model: UpdateAgentResponseBodyModel;
|
|
2957
2732
|
};
|
|
2958
2733
|
|
|
2959
|
-
/**
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
voice: ModelConfigurationVoice$outboundSchema,
|
|
2966
|
-
format: ModelConfigurationFormat$outboundSchema,
|
|
2967
|
-
});
|
|
2968
|
-
|
|
2969
|
-
export function updateAgentModelConfigurationAudioToJSON(
|
|
2970
|
-
updateAgentModelConfigurationAudio: UpdateAgentModelConfigurationAudio,
|
|
2971
|
-
): string {
|
|
2972
|
-
return JSON.stringify(
|
|
2973
|
-
UpdateAgentModelConfigurationAudio$outboundSchema.parse(
|
|
2974
|
-
updateAgentModelConfigurationAudio,
|
|
2975
|
-
),
|
|
2976
|
-
);
|
|
2977
|
-
}
|
|
2734
|
+
/**
|
|
2735
|
+
* Agent configuration successfully updated. Returns the complete updated agent manifest reflecting all changes made.
|
|
2736
|
+
*/
|
|
2737
|
+
export type UpdateAgentResponseBody =
|
|
2738
|
+
| UpdateAgentResponseBody1
|
|
2739
|
+
| UpdateAgentResponseBody2;
|
|
2978
2740
|
|
|
2979
2741
|
/** @internal */
|
|
2980
2742
|
export type UpdateAgentResponseFormatAgentsJsonSchema$Outbound = {
|
|
@@ -3138,34 +2900,6 @@ export function modelConfigurationStopToJSON(
|
|
|
3138
2900
|
);
|
|
3139
2901
|
}
|
|
3140
2902
|
|
|
3141
|
-
/** @internal */
|
|
3142
|
-
export type ModelConfigurationStreamOptions$Outbound = {
|
|
3143
|
-
include_usage?: boolean | undefined;
|
|
3144
|
-
};
|
|
3145
|
-
|
|
3146
|
-
/** @internal */
|
|
3147
|
-
export const ModelConfigurationStreamOptions$outboundSchema: z.ZodType<
|
|
3148
|
-
ModelConfigurationStreamOptions$Outbound,
|
|
3149
|
-
z.ZodTypeDef,
|
|
3150
|
-
ModelConfigurationStreamOptions
|
|
3151
|
-
> = z.object({
|
|
3152
|
-
includeUsage: z.boolean().optional(),
|
|
3153
|
-
}).transform((v) => {
|
|
3154
|
-
return remap$(v, {
|
|
3155
|
-
includeUsage: "include_usage",
|
|
3156
|
-
});
|
|
3157
|
-
});
|
|
3158
|
-
|
|
3159
|
-
export function modelConfigurationStreamOptionsToJSON(
|
|
3160
|
-
modelConfigurationStreamOptions: ModelConfigurationStreamOptions,
|
|
3161
|
-
): string {
|
|
3162
|
-
return JSON.stringify(
|
|
3163
|
-
ModelConfigurationStreamOptions$outboundSchema.parse(
|
|
3164
|
-
modelConfigurationStreamOptions,
|
|
3165
|
-
),
|
|
3166
|
-
);
|
|
3167
|
-
}
|
|
3168
|
-
|
|
3169
2903
|
/** @internal */
|
|
3170
2904
|
export type ModelConfigurationThinking$Outbound =
|
|
3171
2905
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
@@ -3359,36 +3093,6 @@ export function modelConfigurationFallbacksToJSON(
|
|
|
3359
3093
|
);
|
|
3360
3094
|
}
|
|
3361
3095
|
|
|
3362
|
-
/** @internal */
|
|
3363
|
-
export type UpdateAgentModelConfigurationRetry$Outbound = {
|
|
3364
|
-
count: number;
|
|
3365
|
-
on_codes?: Array<number> | undefined;
|
|
3366
|
-
};
|
|
3367
|
-
|
|
3368
|
-
/** @internal */
|
|
3369
|
-
export const UpdateAgentModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
3370
|
-
UpdateAgentModelConfigurationRetry$Outbound,
|
|
3371
|
-
z.ZodTypeDef,
|
|
3372
|
-
UpdateAgentModelConfigurationRetry
|
|
3373
|
-
> = z.object({
|
|
3374
|
-
count: z.number().default(3),
|
|
3375
|
-
onCodes: z.array(z.number()).optional(),
|
|
3376
|
-
}).transform((v) => {
|
|
3377
|
-
return remap$(v, {
|
|
3378
|
-
onCodes: "on_codes",
|
|
3379
|
-
});
|
|
3380
|
-
});
|
|
3381
|
-
|
|
3382
|
-
export function updateAgentModelConfigurationRetryToJSON(
|
|
3383
|
-
updateAgentModelConfigurationRetry: UpdateAgentModelConfigurationRetry,
|
|
3384
|
-
): string {
|
|
3385
|
-
return JSON.stringify(
|
|
3386
|
-
UpdateAgentModelConfigurationRetry$outboundSchema.parse(
|
|
3387
|
-
updateAgentModelConfigurationRetry,
|
|
3388
|
-
),
|
|
3389
|
-
);
|
|
3390
|
-
}
|
|
3391
|
-
|
|
3392
3096
|
/** @internal */
|
|
3393
3097
|
export const UpdateAgentModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
3394
3098
|
typeof UpdateAgentModelConfigurationType
|
|
@@ -3523,13 +3227,9 @@ export function modelConfigurationTimeoutToJSON(
|
|
|
3523
3227
|
/** @internal */
|
|
3524
3228
|
export type ModelConfigurationParameters$Outbound = {
|
|
3525
3229
|
name?: string | undefined;
|
|
3526
|
-
audio?: UpdateAgentModelConfigurationAudio$Outbound | null | undefined;
|
|
3527
3230
|
frequency_penalty?: number | null | undefined;
|
|
3528
3231
|
max_tokens?: number | null | undefined;
|
|
3529
3232
|
max_completion_tokens?: number | null | undefined;
|
|
3530
|
-
logprobs?: boolean | null | undefined;
|
|
3531
|
-
top_logprobs?: number | null | undefined;
|
|
3532
|
-
n?: number | null | undefined;
|
|
3533
3233
|
presence_penalty?: number | null | undefined;
|
|
3534
3234
|
response_format?:
|
|
3535
3235
|
| UpdateAgentResponseFormatText$Outbound
|
|
@@ -3540,7 +3240,6 @@ export type ModelConfigurationParameters$Outbound = {
|
|
|
3540
3240
|
verbosity?: string | undefined;
|
|
3541
3241
|
seed?: number | null | undefined;
|
|
3542
3242
|
stop?: string | Array<string> | null | undefined;
|
|
3543
|
-
stream_options?: ModelConfigurationStreamOptions$Outbound | null | undefined;
|
|
3544
3243
|
thinking?:
|
|
3545
3244
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3546
3245
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
@@ -3553,7 +3252,6 @@ export type ModelConfigurationParameters$Outbound = {
|
|
|
3553
3252
|
modalities?: Array<string> | null | undefined;
|
|
3554
3253
|
guardrails?: Array<ModelConfigurationGuardrails$Outbound> | undefined;
|
|
3555
3254
|
fallbacks?: Array<ModelConfigurationFallbacks$Outbound> | undefined;
|
|
3556
|
-
retry?: UpdateAgentModelConfigurationRetry$Outbound | undefined;
|
|
3557
3255
|
cache?: ModelConfigurationCache$Outbound | undefined;
|
|
3558
3256
|
load_balancer?: UpdateAgentLoadBalancer1$Outbound | undefined;
|
|
3559
3257
|
timeout?: ModelConfigurationTimeout$Outbound | undefined;
|
|
@@ -3566,15 +3264,9 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3566
3264
|
ModelConfigurationParameters
|
|
3567
3265
|
> = z.object({
|
|
3568
3266
|
name: z.string().optional(),
|
|
3569
|
-
audio: z.nullable(
|
|
3570
|
-
z.lazy(() => UpdateAgentModelConfigurationAudio$outboundSchema),
|
|
3571
|
-
).optional(),
|
|
3572
3267
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
3573
3268
|
maxTokens: z.nullable(z.number().int()).optional(),
|
|
3574
3269
|
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
3575
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
3576
|
-
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
3577
|
-
n: z.nullable(z.number().int()).optional(),
|
|
3578
3270
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
3579
3271
|
responseFormat: z.union([
|
|
3580
3272
|
z.lazy(() => UpdateAgentResponseFormatText$outboundSchema),
|
|
@@ -3585,9 +3277,6 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3585
3277
|
verbosity: z.string().optional(),
|
|
3586
3278
|
seed: z.nullable(z.number()).optional(),
|
|
3587
3279
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
3588
|
-
streamOptions: z.nullable(
|
|
3589
|
-
z.lazy(() => ModelConfigurationStreamOptions$outboundSchema),
|
|
3590
|
-
).optional(),
|
|
3591
3280
|
thinking: z.union([
|
|
3592
3281
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3593
3282
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
@@ -3606,8 +3295,6 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3606
3295
|
.optional(),
|
|
3607
3296
|
fallbacks: z.array(z.lazy(() => ModelConfigurationFallbacks$outboundSchema))
|
|
3608
3297
|
.optional(),
|
|
3609
|
-
retry: z.lazy(() => UpdateAgentModelConfigurationRetry$outboundSchema)
|
|
3610
|
-
.optional(),
|
|
3611
3298
|
cache: z.lazy(() => ModelConfigurationCache$outboundSchema).optional(),
|
|
3612
3299
|
loadBalancer: z.lazy(() => UpdateAgentLoadBalancer1$outboundSchema)
|
|
3613
3300
|
.optional(),
|
|
@@ -3617,11 +3304,9 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3617
3304
|
frequencyPenalty: "frequency_penalty",
|
|
3618
3305
|
maxTokens: "max_tokens",
|
|
3619
3306
|
maxCompletionTokens: "max_completion_tokens",
|
|
3620
|
-
topLogprobs: "top_logprobs",
|
|
3621
3307
|
presencePenalty: "presence_penalty",
|
|
3622
3308
|
responseFormat: "response_format",
|
|
3623
3309
|
reasoningEffort: "reasoning_effort",
|
|
3624
|
-
streamOptions: "stream_options",
|
|
3625
3310
|
topP: "top_p",
|
|
3626
3311
|
topK: "top_k",
|
|
3627
3312
|
toolChoice: "tool_choice",
|
|
@@ -3641,16 +3326,16 @@ export function modelConfigurationParametersToJSON(
|
|
|
3641
3326
|
}
|
|
3642
3327
|
|
|
3643
3328
|
/** @internal */
|
|
3644
|
-
export type
|
|
3329
|
+
export type ModelConfigurationRetry$Outbound = {
|
|
3645
3330
|
count: number;
|
|
3646
3331
|
on_codes?: Array<number> | undefined;
|
|
3647
3332
|
};
|
|
3648
3333
|
|
|
3649
3334
|
/** @internal */
|
|
3650
|
-
export const
|
|
3651
|
-
|
|
3335
|
+
export const ModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
3336
|
+
ModelConfigurationRetry$Outbound,
|
|
3652
3337
|
z.ZodTypeDef,
|
|
3653
|
-
|
|
3338
|
+
ModelConfigurationRetry
|
|
3654
3339
|
> = z.object({
|
|
3655
3340
|
count: z.number().default(3),
|
|
3656
3341
|
onCodes: z.array(z.number()).optional(),
|
|
@@ -3660,14 +3345,11 @@ export const UpdateAgentModelConfigurationAgentsRetry$outboundSchema: z.ZodType<
|
|
|
3660
3345
|
});
|
|
3661
3346
|
});
|
|
3662
3347
|
|
|
3663
|
-
export function
|
|
3664
|
-
|
|
3665
|
-
UpdateAgentModelConfigurationAgentsRetry,
|
|
3348
|
+
export function modelConfigurationRetryToJSON(
|
|
3349
|
+
modelConfigurationRetry: ModelConfigurationRetry,
|
|
3666
3350
|
): string {
|
|
3667
3351
|
return JSON.stringify(
|
|
3668
|
-
|
|
3669
|
-
updateAgentModelConfigurationAgentsRetry,
|
|
3670
|
-
),
|
|
3352
|
+
ModelConfigurationRetry$outboundSchema.parse(modelConfigurationRetry),
|
|
3671
3353
|
);
|
|
3672
3354
|
}
|
|
3673
3355
|
|
|
@@ -3675,7 +3357,7 @@ export function updateAgentModelConfigurationAgentsRetryToJSON(
|
|
|
3675
3357
|
export type UpdateAgentModelConfiguration2$Outbound = {
|
|
3676
3358
|
id: string;
|
|
3677
3359
|
parameters?: ModelConfigurationParameters$Outbound | undefined;
|
|
3678
|
-
retry?:
|
|
3360
|
+
retry?: ModelConfigurationRetry$Outbound | undefined;
|
|
3679
3361
|
};
|
|
3680
3362
|
|
|
3681
3363
|
/** @internal */
|
|
@@ -3687,8 +3369,7 @@ export const UpdateAgentModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
3687
3369
|
id: z.string(),
|
|
3688
3370
|
parameters: z.lazy(() => ModelConfigurationParameters$outboundSchema)
|
|
3689
3371
|
.optional(),
|
|
3690
|
-
retry: z.lazy(() =>
|
|
3691
|
-
.optional(),
|
|
3372
|
+
retry: z.lazy(() => ModelConfigurationRetry$outboundSchema).optional(),
|
|
3692
3373
|
});
|
|
3693
3374
|
|
|
3694
3375
|
export function updateAgentModelConfiguration2ToJSON(
|
|
@@ -3726,44 +3407,6 @@ export function updateAgentModelConfigurationToJSON(
|
|
|
3726
3407
|
);
|
|
3727
3408
|
}
|
|
3728
3409
|
|
|
3729
|
-
/** @internal */
|
|
3730
|
-
export const UpdateAgentFallbackModelConfigurationVoice$outboundSchema:
|
|
3731
|
-
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationVoice> = z
|
|
3732
|
-
.nativeEnum(UpdateAgentFallbackModelConfigurationVoice);
|
|
3733
|
-
|
|
3734
|
-
/** @internal */
|
|
3735
|
-
export const UpdateAgentFallbackModelConfigurationFormat$outboundSchema:
|
|
3736
|
-
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationFormat> = z
|
|
3737
|
-
.nativeEnum(UpdateAgentFallbackModelConfigurationFormat);
|
|
3738
|
-
|
|
3739
|
-
/** @internal */
|
|
3740
|
-
export type UpdateAgentFallbackModelConfigurationAudio$Outbound = {
|
|
3741
|
-
voice: string;
|
|
3742
|
-
format: string;
|
|
3743
|
-
};
|
|
3744
|
-
|
|
3745
|
-
/** @internal */
|
|
3746
|
-
export const UpdateAgentFallbackModelConfigurationAudio$outboundSchema:
|
|
3747
|
-
z.ZodType<
|
|
3748
|
-
UpdateAgentFallbackModelConfigurationAudio$Outbound,
|
|
3749
|
-
z.ZodTypeDef,
|
|
3750
|
-
UpdateAgentFallbackModelConfigurationAudio
|
|
3751
|
-
> = z.object({
|
|
3752
|
-
voice: UpdateAgentFallbackModelConfigurationVoice$outboundSchema,
|
|
3753
|
-
format: UpdateAgentFallbackModelConfigurationFormat$outboundSchema,
|
|
3754
|
-
});
|
|
3755
|
-
|
|
3756
|
-
export function updateAgentFallbackModelConfigurationAudioToJSON(
|
|
3757
|
-
updateAgentFallbackModelConfigurationAudio:
|
|
3758
|
-
UpdateAgentFallbackModelConfigurationAudio,
|
|
3759
|
-
): string {
|
|
3760
|
-
return JSON.stringify(
|
|
3761
|
-
UpdateAgentFallbackModelConfigurationAudio$outboundSchema.parse(
|
|
3762
|
-
updateAgentFallbackModelConfigurationAudio,
|
|
3763
|
-
),
|
|
3764
|
-
);
|
|
3765
|
-
}
|
|
3766
|
-
|
|
3767
3410
|
/** @internal */
|
|
3768
3411
|
export type UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound =
|
|
3769
3412
|
{
|
|
@@ -3941,36 +3584,6 @@ export function updateAgentFallbackModelConfigurationStopToJSON(
|
|
|
3941
3584
|
);
|
|
3942
3585
|
}
|
|
3943
3586
|
|
|
3944
|
-
/** @internal */
|
|
3945
|
-
export type UpdateAgentFallbackModelConfigurationStreamOptions$Outbound = {
|
|
3946
|
-
include_usage?: boolean | undefined;
|
|
3947
|
-
};
|
|
3948
|
-
|
|
3949
|
-
/** @internal */
|
|
3950
|
-
export const UpdateAgentFallbackModelConfigurationStreamOptions$outboundSchema:
|
|
3951
|
-
z.ZodType<
|
|
3952
|
-
UpdateAgentFallbackModelConfigurationStreamOptions$Outbound,
|
|
3953
|
-
z.ZodTypeDef,
|
|
3954
|
-
UpdateAgentFallbackModelConfigurationStreamOptions
|
|
3955
|
-
> = z.object({
|
|
3956
|
-
includeUsage: z.boolean().optional(),
|
|
3957
|
-
}).transform((v) => {
|
|
3958
|
-
return remap$(v, {
|
|
3959
|
-
includeUsage: "include_usage",
|
|
3960
|
-
});
|
|
3961
|
-
});
|
|
3962
|
-
|
|
3963
|
-
export function updateAgentFallbackModelConfigurationStreamOptionsToJSON(
|
|
3964
|
-
updateAgentFallbackModelConfigurationStreamOptions:
|
|
3965
|
-
UpdateAgentFallbackModelConfigurationStreamOptions,
|
|
3966
|
-
): string {
|
|
3967
|
-
return JSON.stringify(
|
|
3968
|
-
UpdateAgentFallbackModelConfigurationStreamOptions$outboundSchema.parse(
|
|
3969
|
-
updateAgentFallbackModelConfigurationStreamOptions,
|
|
3970
|
-
),
|
|
3971
|
-
);
|
|
3972
|
-
}
|
|
3973
|
-
|
|
3974
3587
|
/** @internal */
|
|
3975
3588
|
export type UpdateAgentFallbackModelConfigurationThinking$Outbound =
|
|
3976
3589
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
@@ -4179,38 +3792,6 @@ export function updateAgentFallbackModelConfigurationFallbacksToJSON(
|
|
|
4179
3792
|
);
|
|
4180
3793
|
}
|
|
4181
3794
|
|
|
4182
|
-
/** @internal */
|
|
4183
|
-
export type UpdateAgentFallbackModelConfigurationRetry$Outbound = {
|
|
4184
|
-
count: number;
|
|
4185
|
-
on_codes?: Array<number> | undefined;
|
|
4186
|
-
};
|
|
4187
|
-
|
|
4188
|
-
/** @internal */
|
|
4189
|
-
export const UpdateAgentFallbackModelConfigurationRetry$outboundSchema:
|
|
4190
|
-
z.ZodType<
|
|
4191
|
-
UpdateAgentFallbackModelConfigurationRetry$Outbound,
|
|
4192
|
-
z.ZodTypeDef,
|
|
4193
|
-
UpdateAgentFallbackModelConfigurationRetry
|
|
4194
|
-
> = z.object({
|
|
4195
|
-
count: z.number().default(3),
|
|
4196
|
-
onCodes: z.array(z.number()).optional(),
|
|
4197
|
-
}).transform((v) => {
|
|
4198
|
-
return remap$(v, {
|
|
4199
|
-
onCodes: "on_codes",
|
|
4200
|
-
});
|
|
4201
|
-
});
|
|
4202
|
-
|
|
4203
|
-
export function updateAgentFallbackModelConfigurationRetryToJSON(
|
|
4204
|
-
updateAgentFallbackModelConfigurationRetry:
|
|
4205
|
-
UpdateAgentFallbackModelConfigurationRetry,
|
|
4206
|
-
): string {
|
|
4207
|
-
return JSON.stringify(
|
|
4208
|
-
UpdateAgentFallbackModelConfigurationRetry$outboundSchema.parse(
|
|
4209
|
-
updateAgentFallbackModelConfigurationRetry,
|
|
4210
|
-
),
|
|
4211
|
-
);
|
|
4212
|
-
}
|
|
4213
|
-
|
|
4214
3795
|
/** @internal */
|
|
4215
3796
|
export const UpdateAgentFallbackModelConfigurationType$outboundSchema:
|
|
4216
3797
|
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationType> = z
|
|
@@ -4359,16 +3940,9 @@ export function updateAgentFallbackModelConfigurationTimeoutToJSON(
|
|
|
4359
3940
|
/** @internal */
|
|
4360
3941
|
export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
4361
3942
|
name?: string | undefined;
|
|
4362
|
-
audio?:
|
|
4363
|
-
| UpdateAgentFallbackModelConfigurationAudio$Outbound
|
|
4364
|
-
| null
|
|
4365
|
-
| undefined;
|
|
4366
3943
|
frequency_penalty?: number | null | undefined;
|
|
4367
3944
|
max_tokens?: number | null | undefined;
|
|
4368
3945
|
max_completion_tokens?: number | null | undefined;
|
|
4369
|
-
logprobs?: boolean | null | undefined;
|
|
4370
|
-
top_logprobs?: number | null | undefined;
|
|
4371
|
-
n?: number | null | undefined;
|
|
4372
3946
|
presence_penalty?: number | null | undefined;
|
|
4373
3947
|
response_format?:
|
|
4374
3948
|
| UpdateAgentResponseFormatAgentsText$Outbound
|
|
@@ -4379,10 +3953,6 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
4379
3953
|
verbosity?: string | undefined;
|
|
4380
3954
|
seed?: number | null | undefined;
|
|
4381
3955
|
stop?: string | Array<string> | null | undefined;
|
|
4382
|
-
stream_options?:
|
|
4383
|
-
| UpdateAgentFallbackModelConfigurationStreamOptions$Outbound
|
|
4384
|
-
| null
|
|
4385
|
-
| undefined;
|
|
4386
3956
|
thinking?:
|
|
4387
3957
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
4388
3958
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
@@ -4399,7 +3969,6 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
4399
3969
|
fallbacks?:
|
|
4400
3970
|
| Array<UpdateAgentFallbackModelConfigurationFallbacks$Outbound>
|
|
4401
3971
|
| undefined;
|
|
4402
|
-
retry?: UpdateAgentFallbackModelConfigurationRetry$Outbound | undefined;
|
|
4403
3972
|
cache?: UpdateAgentFallbackModelConfigurationCache$Outbound | undefined;
|
|
4404
3973
|
load_balancer?: UpdateAgentLoadBalancerAgents1$Outbound | undefined;
|
|
4405
3974
|
timeout?: UpdateAgentFallbackModelConfigurationTimeout$Outbound | undefined;
|
|
@@ -4413,15 +3982,9 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4413
3982
|
UpdateAgentFallbackModelConfigurationParameters
|
|
4414
3983
|
> = z.object({
|
|
4415
3984
|
name: z.string().optional(),
|
|
4416
|
-
audio: z.nullable(
|
|
4417
|
-
z.lazy(() => UpdateAgentFallbackModelConfigurationAudio$outboundSchema),
|
|
4418
|
-
).optional(),
|
|
4419
3985
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
4420
3986
|
maxTokens: z.nullable(z.number().int()).optional(),
|
|
4421
3987
|
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
4422
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
4423
|
-
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
4424
|
-
n: z.nullable(z.number().int()).optional(),
|
|
4425
3988
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
4426
3989
|
responseFormat: z.union([
|
|
4427
3990
|
z.lazy(() => UpdateAgentResponseFormatAgentsText$outboundSchema),
|
|
@@ -4436,11 +3999,6 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4436
3999
|
verbosity: z.string().optional(),
|
|
4437
4000
|
seed: z.nullable(z.number()).optional(),
|
|
4438
4001
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
4439
|
-
streamOptions: z.nullable(
|
|
4440
|
-
z.lazy(() =>
|
|
4441
|
-
UpdateAgentFallbackModelConfigurationStreamOptions$outboundSchema
|
|
4442
|
-
),
|
|
4443
|
-
).optional(),
|
|
4444
4002
|
thinking: z.union([
|
|
4445
4003
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
4446
4004
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
@@ -4466,9 +4024,6 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4466
4024
|
UpdateAgentFallbackModelConfigurationFallbacks$outboundSchema
|
|
4467
4025
|
),
|
|
4468
4026
|
).optional(),
|
|
4469
|
-
retry: z.lazy(() =>
|
|
4470
|
-
UpdateAgentFallbackModelConfigurationRetry$outboundSchema
|
|
4471
|
-
).optional(),
|
|
4472
4027
|
cache: z.lazy(() =>
|
|
4473
4028
|
UpdateAgentFallbackModelConfigurationCache$outboundSchema
|
|
4474
4029
|
).optional(),
|
|
@@ -4482,11 +4037,9 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4482
4037
|
frequencyPenalty: "frequency_penalty",
|
|
4483
4038
|
maxTokens: "max_tokens",
|
|
4484
4039
|
maxCompletionTokens: "max_completion_tokens",
|
|
4485
|
-
topLogprobs: "top_logprobs",
|
|
4486
4040
|
presencePenalty: "presence_penalty",
|
|
4487
4041
|
responseFormat: "response_format",
|
|
4488
4042
|
reasoningEffort: "reasoning_effort",
|
|
4489
|
-
streamOptions: "stream_options",
|
|
4490
4043
|
topP: "top_p",
|
|
4491
4044
|
topK: "top_k",
|
|
4492
4045
|
toolChoice: "tool_choice",
|
|
@@ -4507,17 +4060,17 @@ export function updateAgentFallbackModelConfigurationParametersToJSON(
|
|
|
4507
4060
|
}
|
|
4508
4061
|
|
|
4509
4062
|
/** @internal */
|
|
4510
|
-
export type
|
|
4063
|
+
export type UpdateAgentFallbackModelConfigurationRetry$Outbound = {
|
|
4511
4064
|
count: number;
|
|
4512
4065
|
on_codes?: Array<number> | undefined;
|
|
4513
4066
|
};
|
|
4514
4067
|
|
|
4515
4068
|
/** @internal */
|
|
4516
|
-
export const
|
|
4069
|
+
export const UpdateAgentFallbackModelConfigurationRetry$outboundSchema:
|
|
4517
4070
|
z.ZodType<
|
|
4518
|
-
|
|
4071
|
+
UpdateAgentFallbackModelConfigurationRetry$Outbound,
|
|
4519
4072
|
z.ZodTypeDef,
|
|
4520
|
-
|
|
4073
|
+
UpdateAgentFallbackModelConfigurationRetry
|
|
4521
4074
|
> = z.object({
|
|
4522
4075
|
count: z.number().default(3),
|
|
4523
4076
|
onCodes: z.array(z.number()).optional(),
|
|
@@ -4527,13 +4080,13 @@ export const UpdateAgentFallbackModelConfigurationAgentsRetry$outboundSchema:
|
|
|
4527
4080
|
});
|
|
4528
4081
|
});
|
|
4529
4082
|
|
|
4530
|
-
export function
|
|
4531
|
-
|
|
4532
|
-
|
|
4083
|
+
export function updateAgentFallbackModelConfigurationRetryToJSON(
|
|
4084
|
+
updateAgentFallbackModelConfigurationRetry:
|
|
4085
|
+
UpdateAgentFallbackModelConfigurationRetry,
|
|
4533
4086
|
): string {
|
|
4534
4087
|
return JSON.stringify(
|
|
4535
|
-
|
|
4536
|
-
|
|
4088
|
+
UpdateAgentFallbackModelConfigurationRetry$outboundSchema.parse(
|
|
4089
|
+
updateAgentFallbackModelConfigurationRetry,
|
|
4537
4090
|
),
|
|
4538
4091
|
);
|
|
4539
4092
|
}
|
|
@@ -4544,7 +4097,7 @@ export type UpdateAgentFallbackModelConfiguration2$Outbound = {
|
|
|
4544
4097
|
parameters?:
|
|
4545
4098
|
| UpdateAgentFallbackModelConfigurationParameters$Outbound
|
|
4546
4099
|
| undefined;
|
|
4547
|
-
retry?:
|
|
4100
|
+
retry?: UpdateAgentFallbackModelConfigurationRetry$Outbound | undefined;
|
|
4548
4101
|
};
|
|
4549
4102
|
|
|
4550
4103
|
/** @internal */
|
|
@@ -4557,9 +4110,8 @@ export const UpdateAgentFallbackModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
4557
4110
|
parameters: z.lazy(() =>
|
|
4558
4111
|
UpdateAgentFallbackModelConfigurationParameters$outboundSchema
|
|
4559
4112
|
).optional(),
|
|
4560
|
-
retry: z.lazy(() =>
|
|
4561
|
-
|
|
4562
|
-
).optional(),
|
|
4113
|
+
retry: z.lazy(() => UpdateAgentFallbackModelConfigurationRetry$outboundSchema)
|
|
4114
|
+
.optional(),
|
|
4563
4115
|
});
|
|
4564
4116
|
|
|
4565
4117
|
export function updateAgentFallbackModelConfiguration2ToJSON(
|
|
@@ -5539,7 +5091,62 @@ export function updateAgentTeamOfAgentsToJSON(
|
|
|
5539
5091
|
}
|
|
5540
5092
|
|
|
5541
5093
|
/** @internal */
|
|
5542
|
-
export type
|
|
5094
|
+
export type UpdateAgentHeaders$Outbound = {
|
|
5095
|
+
value: string;
|
|
5096
|
+
encrypted: boolean;
|
|
5097
|
+
};
|
|
5098
|
+
|
|
5099
|
+
/** @internal */
|
|
5100
|
+
export const UpdateAgentHeaders$outboundSchema: z.ZodType<
|
|
5101
|
+
UpdateAgentHeaders$Outbound,
|
|
5102
|
+
z.ZodTypeDef,
|
|
5103
|
+
UpdateAgentHeaders
|
|
5104
|
+
> = z.object({
|
|
5105
|
+
value: z.string(),
|
|
5106
|
+
encrypted: z.boolean().default(false),
|
|
5107
|
+
});
|
|
5108
|
+
|
|
5109
|
+
export function updateAgentHeadersToJSON(
|
|
5110
|
+
updateAgentHeaders: UpdateAgentHeaders,
|
|
5111
|
+
): string {
|
|
5112
|
+
return JSON.stringify(
|
|
5113
|
+
UpdateAgentHeaders$outboundSchema.parse(updateAgentHeaders),
|
|
5114
|
+
);
|
|
5115
|
+
}
|
|
5116
|
+
|
|
5117
|
+
/** @internal */
|
|
5118
|
+
export type UpdateA2AConfiguration$Outbound = {
|
|
5119
|
+
agent_url?: string | undefined;
|
|
5120
|
+
card_url?: string | undefined;
|
|
5121
|
+
headers?: { [k: string]: UpdateAgentHeaders$Outbound } | undefined;
|
|
5122
|
+
};
|
|
5123
|
+
|
|
5124
|
+
/** @internal */
|
|
5125
|
+
export const UpdateA2AConfiguration$outboundSchema: z.ZodType<
|
|
5126
|
+
UpdateA2AConfiguration$Outbound,
|
|
5127
|
+
z.ZodTypeDef,
|
|
5128
|
+
UpdateA2AConfiguration
|
|
5129
|
+
> = z.object({
|
|
5130
|
+
agentUrl: z.string().optional(),
|
|
5131
|
+
cardUrl: z.string().optional(),
|
|
5132
|
+
headers: z.record(z.lazy(() => UpdateAgentHeaders$outboundSchema)).optional(),
|
|
5133
|
+
}).transform((v) => {
|
|
5134
|
+
return remap$(v, {
|
|
5135
|
+
agentUrl: "agent_url",
|
|
5136
|
+
cardUrl: "card_url",
|
|
5137
|
+
});
|
|
5138
|
+
});
|
|
5139
|
+
|
|
5140
|
+
export function updateA2AConfigurationToJSON(
|
|
5141
|
+
updateA2AConfiguration: UpdateA2AConfiguration,
|
|
5142
|
+
): string {
|
|
5143
|
+
return JSON.stringify(
|
|
5144
|
+
UpdateA2AConfiguration$outboundSchema.parse(updateA2AConfiguration),
|
|
5145
|
+
);
|
|
5146
|
+
}
|
|
5147
|
+
|
|
5148
|
+
/** @internal */
|
|
5149
|
+
export type UpdateAgentRequestBody$Outbound = {
|
|
5543
5150
|
key?: string | undefined;
|
|
5544
5151
|
display_name?: string | undefined;
|
|
5545
5152
|
project_id?: string | undefined;
|
|
@@ -5557,13 +5164,14 @@ export type UpdateAgentUpdateAgentRequest$Outbound = {
|
|
|
5557
5164
|
knowledge_bases?: Array<UpdateAgentKnowledgeBases$Outbound> | undefined;
|
|
5558
5165
|
team_of_agents?: Array<UpdateAgentTeamOfAgents$Outbound> | undefined;
|
|
5559
5166
|
variables?: { [k: string]: any } | undefined;
|
|
5167
|
+
a2a?: UpdateA2AConfiguration$Outbound | undefined;
|
|
5560
5168
|
};
|
|
5561
5169
|
|
|
5562
5170
|
/** @internal */
|
|
5563
|
-
export const
|
|
5564
|
-
|
|
5171
|
+
export const UpdateAgentRequestBody$outboundSchema: z.ZodType<
|
|
5172
|
+
UpdateAgentRequestBody$Outbound,
|
|
5565
5173
|
z.ZodTypeDef,
|
|
5566
|
-
|
|
5174
|
+
UpdateAgentRequestBody
|
|
5567
5175
|
> = z.object({
|
|
5568
5176
|
key: z.string().optional(),
|
|
5569
5177
|
displayName: z.string().optional(),
|
|
@@ -5591,6 +5199,7 @@ export const UpdateAgentUpdateAgentRequest$outboundSchema: z.ZodType<
|
|
|
5591
5199
|
teamOfAgents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$outboundSchema))
|
|
5592
5200
|
.optional(),
|
|
5593
5201
|
variables: z.record(z.any()).optional(),
|
|
5202
|
+
a2a: z.lazy(() => UpdateA2AConfiguration$outboundSchema).optional(),
|
|
5594
5203
|
}).transform((v) => {
|
|
5595
5204
|
return remap$(v, {
|
|
5596
5205
|
displayName: "display_name",
|
|
@@ -5603,59 +5212,335 @@ export const UpdateAgentUpdateAgentRequest$outboundSchema: z.ZodType<
|
|
|
5603
5212
|
});
|
|
5604
5213
|
});
|
|
5605
5214
|
|
|
5606
|
-
export function
|
|
5607
|
-
|
|
5215
|
+
export function updateAgentRequestBodyToJSON(
|
|
5216
|
+
updateAgentRequestBody: UpdateAgentRequestBody,
|
|
5608
5217
|
): string {
|
|
5609
5218
|
return JSON.stringify(
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5219
|
+
UpdateAgentRequestBody$outboundSchema.parse(updateAgentRequestBody),
|
|
5220
|
+
);
|
|
5221
|
+
}
|
|
5222
|
+
|
|
5223
|
+
/** @internal */
|
|
5224
|
+
export type UpdateAgentRequest$Outbound = {
|
|
5225
|
+
agent_key: string;
|
|
5226
|
+
RequestBody: UpdateAgentRequestBody$Outbound;
|
|
5227
|
+
};
|
|
5228
|
+
|
|
5229
|
+
/** @internal */
|
|
5230
|
+
export const UpdateAgentRequest$outboundSchema: z.ZodType<
|
|
5231
|
+
UpdateAgentRequest$Outbound,
|
|
5232
|
+
z.ZodTypeDef,
|
|
5233
|
+
UpdateAgentRequest
|
|
5234
|
+
> = z.object({
|
|
5235
|
+
agentKey: z.string(),
|
|
5236
|
+
requestBody: z.lazy(() => UpdateAgentRequestBody$outboundSchema),
|
|
5237
|
+
}).transform((v) => {
|
|
5238
|
+
return remap$(v, {
|
|
5239
|
+
agentKey: "agent_key",
|
|
5240
|
+
requestBody: "RequestBody",
|
|
5241
|
+
});
|
|
5242
|
+
});
|
|
5243
|
+
|
|
5244
|
+
export function updateAgentRequestToJSON(
|
|
5245
|
+
updateAgentRequest: UpdateAgentRequest,
|
|
5246
|
+
): string {
|
|
5247
|
+
return JSON.stringify(
|
|
5248
|
+
UpdateAgentRequest$outboundSchema.parse(updateAgentRequest),
|
|
5249
|
+
);
|
|
5250
|
+
}
|
|
5251
|
+
|
|
5252
|
+
/** @internal */
|
|
5253
|
+
export const UpdateAgentResponseBodyAgentsStatus$inboundSchema: z.ZodNativeEnum<
|
|
5254
|
+
typeof UpdateAgentResponseBodyAgentsStatus
|
|
5255
|
+
> = z.nativeEnum(UpdateAgentResponseBodyAgentsStatus);
|
|
5256
|
+
|
|
5257
|
+
/** @internal */
|
|
5258
|
+
export const UpdateAgentResponseBodyAgentsTeamOfAgents$inboundSchema: z.ZodType<
|
|
5259
|
+
UpdateAgentResponseBodyAgentsTeamOfAgents,
|
|
5260
|
+
z.ZodTypeDef,
|
|
5261
|
+
unknown
|
|
5262
|
+
> = z.object({
|
|
5263
|
+
key: z.string(),
|
|
5264
|
+
role: z.string().optional(),
|
|
5265
|
+
});
|
|
5266
|
+
|
|
5267
|
+
export function updateAgentResponseBodyAgentsTeamOfAgentsFromJSON(
|
|
5268
|
+
jsonString: string,
|
|
5269
|
+
): SafeParseResult<
|
|
5270
|
+
UpdateAgentResponseBodyAgentsTeamOfAgents,
|
|
5271
|
+
SDKValidationError
|
|
5272
|
+
> {
|
|
5273
|
+
return safeParse(
|
|
5274
|
+
jsonString,
|
|
5275
|
+
(x) =>
|
|
5276
|
+
UpdateAgentResponseBodyAgentsTeamOfAgents$inboundSchema.parse(
|
|
5277
|
+
JSON.parse(x),
|
|
5278
|
+
),
|
|
5279
|
+
`Failed to parse 'UpdateAgentResponseBodyAgentsTeamOfAgents' from JSON`,
|
|
5280
|
+
);
|
|
5281
|
+
}
|
|
5282
|
+
|
|
5283
|
+
/** @internal */
|
|
5284
|
+
export const UpdateAgentResponseBodyAgentsMetrics$inboundSchema: z.ZodType<
|
|
5285
|
+
UpdateAgentResponseBodyAgentsMetrics,
|
|
5286
|
+
z.ZodTypeDef,
|
|
5287
|
+
unknown
|
|
5288
|
+
> = z.object({
|
|
5289
|
+
total_cost: z.number().default(0),
|
|
5290
|
+
}).transform((v) => {
|
|
5291
|
+
return remap$(v, {
|
|
5292
|
+
"total_cost": "totalCost",
|
|
5293
|
+
});
|
|
5294
|
+
});
|
|
5295
|
+
|
|
5296
|
+
export function updateAgentResponseBodyAgentsMetricsFromJSON(
|
|
5297
|
+
jsonString: string,
|
|
5298
|
+
): SafeParseResult<UpdateAgentResponseBodyAgentsMetrics, SDKValidationError> {
|
|
5299
|
+
return safeParse(
|
|
5300
|
+
jsonString,
|
|
5301
|
+
(x) =>
|
|
5302
|
+
UpdateAgentResponseBodyAgentsMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
5303
|
+
`Failed to parse 'UpdateAgentResponseBodyAgentsMetrics' from JSON`,
|
|
5304
|
+
);
|
|
5305
|
+
}
|
|
5306
|
+
|
|
5307
|
+
/** @internal */
|
|
5308
|
+
export const UpdateAgentResponseBodyAgentsKnowledgeBases$inboundSchema:
|
|
5309
|
+
z.ZodType<
|
|
5310
|
+
UpdateAgentResponseBodyAgentsKnowledgeBases,
|
|
5311
|
+
z.ZodTypeDef,
|
|
5312
|
+
unknown
|
|
5313
|
+
> = z.object({
|
|
5314
|
+
knowledge_id: z.string(),
|
|
5315
|
+
}).transform((v) => {
|
|
5316
|
+
return remap$(v, {
|
|
5317
|
+
"knowledge_id": "knowledgeId",
|
|
5318
|
+
});
|
|
5319
|
+
});
|
|
5320
|
+
|
|
5321
|
+
export function updateAgentResponseBodyAgentsKnowledgeBasesFromJSON(
|
|
5322
|
+
jsonString: string,
|
|
5323
|
+
): SafeParseResult<
|
|
5324
|
+
UpdateAgentResponseBodyAgentsKnowledgeBases,
|
|
5325
|
+
SDKValidationError
|
|
5326
|
+
> {
|
|
5327
|
+
return safeParse(
|
|
5328
|
+
jsonString,
|
|
5329
|
+
(x) =>
|
|
5330
|
+
UpdateAgentResponseBodyAgentsKnowledgeBases$inboundSchema.parse(
|
|
5331
|
+
JSON.parse(x),
|
|
5332
|
+
),
|
|
5333
|
+
`Failed to parse 'UpdateAgentResponseBodyAgentsKnowledgeBases' from JSON`,
|
|
5334
|
+
);
|
|
5335
|
+
}
|
|
5336
|
+
|
|
5337
|
+
/** @internal */
|
|
5338
|
+
export const UpdateAgentResponseBodyAgentsSource$inboundSchema: z.ZodNativeEnum<
|
|
5339
|
+
typeof UpdateAgentResponseBodyAgentsSource
|
|
5340
|
+
> = z.nativeEnum(UpdateAgentResponseBodyAgentsSource);
|
|
5341
|
+
|
|
5342
|
+
/** @internal */
|
|
5343
|
+
export const UpdateAgentResponseBodyHeaders$inboundSchema: z.ZodType<
|
|
5344
|
+
UpdateAgentResponseBodyHeaders,
|
|
5345
|
+
z.ZodTypeDef,
|
|
5346
|
+
unknown
|
|
5347
|
+
> = z.object({
|
|
5348
|
+
value: z.string(),
|
|
5349
|
+
encrypted: z.boolean().default(false),
|
|
5350
|
+
});
|
|
5351
|
+
|
|
5352
|
+
export function updateAgentResponseBodyHeadersFromJSON(
|
|
5353
|
+
jsonString: string,
|
|
5354
|
+
): SafeParseResult<UpdateAgentResponseBodyHeaders, SDKValidationError> {
|
|
5355
|
+
return safeParse(
|
|
5356
|
+
jsonString,
|
|
5357
|
+
(x) => UpdateAgentResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
5358
|
+
`Failed to parse 'UpdateAgentResponseBodyHeaders' from JSON`,
|
|
5359
|
+
);
|
|
5360
|
+
}
|
|
5361
|
+
|
|
5362
|
+
/** @internal */
|
|
5363
|
+
export const UpdateAgentResponseBodyA2AAgentConfiguration$inboundSchema:
|
|
5364
|
+
z.ZodType<
|
|
5365
|
+
UpdateAgentResponseBodyA2AAgentConfiguration,
|
|
5366
|
+
z.ZodTypeDef,
|
|
5367
|
+
unknown
|
|
5368
|
+
> = z.object({
|
|
5369
|
+
agent_url: z.string(),
|
|
5370
|
+
card_url: z.string().optional(),
|
|
5371
|
+
headers: z.record(
|
|
5372
|
+
z.lazy(() => UpdateAgentResponseBodyHeaders$inboundSchema),
|
|
5373
|
+
).optional(),
|
|
5374
|
+
cached_card: z.any().optional(),
|
|
5375
|
+
}).transform((v) => {
|
|
5376
|
+
return remap$(v, {
|
|
5377
|
+
"agent_url": "agentUrl",
|
|
5378
|
+
"card_url": "cardUrl",
|
|
5379
|
+
"cached_card": "cachedCard",
|
|
5380
|
+
});
|
|
5381
|
+
});
|
|
5382
|
+
|
|
5383
|
+
export function updateAgentResponseBodyA2AAgentConfigurationFromJSON(
|
|
5384
|
+
jsonString: string,
|
|
5385
|
+
): SafeParseResult<
|
|
5386
|
+
UpdateAgentResponseBodyA2AAgentConfiguration,
|
|
5387
|
+
SDKValidationError
|
|
5388
|
+
> {
|
|
5389
|
+
return safeParse(
|
|
5390
|
+
jsonString,
|
|
5391
|
+
(x) =>
|
|
5392
|
+
UpdateAgentResponseBodyA2AAgentConfiguration$inboundSchema.parse(
|
|
5393
|
+
JSON.parse(x),
|
|
5394
|
+
),
|
|
5395
|
+
`Failed to parse 'UpdateAgentResponseBodyA2AAgentConfiguration' from JSON`,
|
|
5396
|
+
);
|
|
5397
|
+
}
|
|
5398
|
+
|
|
5399
|
+
/** @internal */
|
|
5400
|
+
export const UpdateAgentResponseBody2$inboundSchema: z.ZodType<
|
|
5401
|
+
UpdateAgentResponseBody2,
|
|
5402
|
+
z.ZodTypeDef,
|
|
5403
|
+
unknown
|
|
5404
|
+
> = z.object({
|
|
5405
|
+
_id: z.string(),
|
|
5406
|
+
key: z.string(),
|
|
5407
|
+
display_name: z.string().optional(),
|
|
5408
|
+
project_id: z.string(),
|
|
5409
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
5410
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
5411
|
+
created: z.string().optional(),
|
|
5412
|
+
updated: z.string().optional(),
|
|
5413
|
+
status: UpdateAgentResponseBodyAgentsStatus$inboundSchema,
|
|
5414
|
+
version_hash: z.string().optional(),
|
|
5415
|
+
path: z.string(),
|
|
5416
|
+
memory_stores: z.array(z.string()).optional(),
|
|
5417
|
+
team_of_agents: z.array(
|
|
5418
|
+
z.lazy(() => UpdateAgentResponseBodyAgentsTeamOfAgents$inboundSchema),
|
|
5419
|
+
).optional(),
|
|
5420
|
+
metrics: z.lazy(() => UpdateAgentResponseBodyAgentsMetrics$inboundSchema)
|
|
5421
|
+
.optional(),
|
|
5422
|
+
variables: z.record(z.any()).optional(),
|
|
5423
|
+
knowledge_bases: z.array(
|
|
5424
|
+
z.lazy(() => UpdateAgentResponseBodyAgentsKnowledgeBases$inboundSchema),
|
|
5425
|
+
).optional(),
|
|
5426
|
+
source: UpdateAgentResponseBodyAgentsSource$inboundSchema.optional(),
|
|
5427
|
+
type: z.literal("a2a"),
|
|
5428
|
+
role: z.string(),
|
|
5429
|
+
description: z.string(),
|
|
5430
|
+
system_prompt: z.string().optional(),
|
|
5431
|
+
instructions: z.string(),
|
|
5432
|
+
a2a: z.lazy(() => UpdateAgentResponseBodyA2AAgentConfiguration$inboundSchema),
|
|
5433
|
+
}).transform((v) => {
|
|
5434
|
+
return remap$(v, {
|
|
5435
|
+
"_id": "id",
|
|
5436
|
+
"display_name": "displayName",
|
|
5437
|
+
"project_id": "projectId",
|
|
5438
|
+
"created_by_id": "createdById",
|
|
5439
|
+
"updated_by_id": "updatedById",
|
|
5440
|
+
"version_hash": "versionHash",
|
|
5441
|
+
"memory_stores": "memoryStores",
|
|
5442
|
+
"team_of_agents": "teamOfAgents",
|
|
5443
|
+
"knowledge_bases": "knowledgeBases",
|
|
5444
|
+
"system_prompt": "systemPrompt",
|
|
5445
|
+
});
|
|
5446
|
+
});
|
|
5447
|
+
|
|
5448
|
+
export function updateAgentResponseBody2FromJSON(
|
|
5449
|
+
jsonString: string,
|
|
5450
|
+
): SafeParseResult<UpdateAgentResponseBody2, SDKValidationError> {
|
|
5451
|
+
return safeParse(
|
|
5452
|
+
jsonString,
|
|
5453
|
+
(x) => UpdateAgentResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
5454
|
+
`Failed to parse 'UpdateAgentResponseBody2' from JSON`,
|
|
5455
|
+
);
|
|
5456
|
+
}
|
|
5457
|
+
|
|
5458
|
+
/** @internal */
|
|
5459
|
+
export const UpdateAgentResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
|
|
5460
|
+
typeof UpdateAgentResponseBodyStatus
|
|
5461
|
+
> = z.nativeEnum(UpdateAgentResponseBodyStatus);
|
|
5462
|
+
|
|
5463
|
+
/** @internal */
|
|
5464
|
+
export const UpdateAgentResponseBodyTeamOfAgents$inboundSchema: z.ZodType<
|
|
5465
|
+
UpdateAgentResponseBodyTeamOfAgents,
|
|
5466
|
+
z.ZodTypeDef,
|
|
5467
|
+
unknown
|
|
5468
|
+
> = z.object({
|
|
5469
|
+
key: z.string(),
|
|
5470
|
+
role: z.string().optional(),
|
|
5471
|
+
});
|
|
5472
|
+
|
|
5473
|
+
export function updateAgentResponseBodyTeamOfAgentsFromJSON(
|
|
5474
|
+
jsonString: string,
|
|
5475
|
+
): SafeParseResult<UpdateAgentResponseBodyTeamOfAgents, SDKValidationError> {
|
|
5476
|
+
return safeParse(
|
|
5477
|
+
jsonString,
|
|
5478
|
+
(x) =>
|
|
5479
|
+
UpdateAgentResponseBodyTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
5480
|
+
`Failed to parse 'UpdateAgentResponseBodyTeamOfAgents' from JSON`,
|
|
5481
|
+
);
|
|
5482
|
+
}
|
|
5483
|
+
|
|
5484
|
+
/** @internal */
|
|
5485
|
+
export const UpdateAgentResponseBodyMetrics$inboundSchema: z.ZodType<
|
|
5486
|
+
UpdateAgentResponseBodyMetrics,
|
|
5487
|
+
z.ZodTypeDef,
|
|
5488
|
+
unknown
|
|
5489
|
+
> = z.object({
|
|
5490
|
+
total_cost: z.number().default(0),
|
|
5491
|
+
}).transform((v) => {
|
|
5492
|
+
return remap$(v, {
|
|
5493
|
+
"total_cost": "totalCost",
|
|
5494
|
+
});
|
|
5495
|
+
});
|
|
5496
|
+
|
|
5497
|
+
export function updateAgentResponseBodyMetricsFromJSON(
|
|
5498
|
+
jsonString: string,
|
|
5499
|
+
): SafeParseResult<UpdateAgentResponseBodyMetrics, SDKValidationError> {
|
|
5500
|
+
return safeParse(
|
|
5501
|
+
jsonString,
|
|
5502
|
+
(x) => UpdateAgentResponseBodyMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
5503
|
+
`Failed to parse 'UpdateAgentResponseBodyMetrics' from JSON`,
|
|
5613
5504
|
);
|
|
5614
5505
|
}
|
|
5615
5506
|
|
|
5616
5507
|
/** @internal */
|
|
5617
|
-
export
|
|
5618
|
-
|
|
5619
|
-
RequestBody: UpdateAgentUpdateAgentRequest$Outbound;
|
|
5620
|
-
};
|
|
5621
|
-
|
|
5622
|
-
/** @internal */
|
|
5623
|
-
export const UpdateAgentRequest$outboundSchema: z.ZodType<
|
|
5624
|
-
UpdateAgentRequest$Outbound,
|
|
5508
|
+
export const UpdateAgentResponseBodyKnowledgeBases$inboundSchema: z.ZodType<
|
|
5509
|
+
UpdateAgentResponseBodyKnowledgeBases,
|
|
5625
5510
|
z.ZodTypeDef,
|
|
5626
|
-
|
|
5511
|
+
unknown
|
|
5627
5512
|
> = z.object({
|
|
5628
|
-
|
|
5629
|
-
requestBody: z.lazy(() => UpdateAgentUpdateAgentRequest$outboundSchema),
|
|
5513
|
+
knowledge_id: z.string(),
|
|
5630
5514
|
}).transform((v) => {
|
|
5631
5515
|
return remap$(v, {
|
|
5632
|
-
|
|
5633
|
-
requestBody: "RequestBody",
|
|
5516
|
+
"knowledge_id": "knowledgeId",
|
|
5634
5517
|
});
|
|
5635
5518
|
});
|
|
5636
5519
|
|
|
5637
|
-
export function
|
|
5638
|
-
|
|
5639
|
-
):
|
|
5640
|
-
return
|
|
5641
|
-
|
|
5520
|
+
export function updateAgentResponseBodyKnowledgeBasesFromJSON(
|
|
5521
|
+
jsonString: string,
|
|
5522
|
+
): SafeParseResult<UpdateAgentResponseBodyKnowledgeBases, SDKValidationError> {
|
|
5523
|
+
return safeParse(
|
|
5524
|
+
jsonString,
|
|
5525
|
+
(x) =>
|
|
5526
|
+
UpdateAgentResponseBodyKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
5527
|
+
`Failed to parse 'UpdateAgentResponseBodyKnowledgeBases' from JSON`,
|
|
5642
5528
|
);
|
|
5643
5529
|
}
|
|
5644
5530
|
|
|
5645
5531
|
/** @internal */
|
|
5646
|
-
export const
|
|
5647
|
-
typeof
|
|
5648
|
-
> = z.nativeEnum(
|
|
5532
|
+
export const UpdateAgentResponseBodySource$inboundSchema: z.ZodNativeEnum<
|
|
5533
|
+
typeof UpdateAgentResponseBodySource
|
|
5534
|
+
> = z.nativeEnum(UpdateAgentResponseBodySource);
|
|
5649
5535
|
|
|
5650
5536
|
/** @internal */
|
|
5651
|
-
export const
|
|
5652
|
-
z.ZodNativeEnum<typeof
|
|
5653
|
-
|
|
5654
|
-
);
|
|
5537
|
+
export const UpdateAgentResponseBodyToolApprovalRequired$inboundSchema:
|
|
5538
|
+
z.ZodNativeEnum<typeof UpdateAgentResponseBodyToolApprovalRequired> = z
|
|
5539
|
+
.nativeEnum(UpdateAgentResponseBodyToolApprovalRequired);
|
|
5655
5540
|
|
|
5656
5541
|
/** @internal */
|
|
5657
|
-
export const
|
|
5658
|
-
|
|
5542
|
+
export const UpdateAgentResponseBodyConditions$inboundSchema: z.ZodType<
|
|
5543
|
+
UpdateAgentResponseBodyConditions,
|
|
5659
5544
|
z.ZodTypeDef,
|
|
5660
5545
|
unknown
|
|
5661
5546
|
> = z.object({
|
|
@@ -5664,19 +5549,19 @@ export const UpdateAgentConditions$inboundSchema: z.ZodType<
|
|
|
5664
5549
|
value: z.string(),
|
|
5665
5550
|
});
|
|
5666
5551
|
|
|
5667
|
-
export function
|
|
5552
|
+
export function updateAgentResponseBodyConditionsFromJSON(
|
|
5668
5553
|
jsonString: string,
|
|
5669
|
-
): SafeParseResult<
|
|
5554
|
+
): SafeParseResult<UpdateAgentResponseBodyConditions, SDKValidationError> {
|
|
5670
5555
|
return safeParse(
|
|
5671
5556
|
jsonString,
|
|
5672
|
-
(x) =>
|
|
5673
|
-
`Failed to parse '
|
|
5557
|
+
(x) => UpdateAgentResponseBodyConditions$inboundSchema.parse(JSON.parse(x)),
|
|
5558
|
+
`Failed to parse 'UpdateAgentResponseBodyConditions' from JSON`,
|
|
5674
5559
|
);
|
|
5675
5560
|
}
|
|
5676
5561
|
|
|
5677
5562
|
/** @internal */
|
|
5678
|
-
export const
|
|
5679
|
-
|
|
5563
|
+
export const UpdateAgentResponseBodyTools$inboundSchema: z.ZodType<
|
|
5564
|
+
UpdateAgentResponseBodyTools,
|
|
5680
5565
|
z.ZodTypeDef,
|
|
5681
5566
|
unknown
|
|
5682
5567
|
> = z.object({
|
|
@@ -5687,8 +5572,9 @@ export const UpdateAgentTools$inboundSchema: z.ZodType<
|
|
|
5687
5572
|
description: z.string().optional(),
|
|
5688
5573
|
requires_approval: z.boolean().default(false),
|
|
5689
5574
|
tool_id: z.string().optional(),
|
|
5690
|
-
conditions: z.array(
|
|
5691
|
-
.
|
|
5575
|
+
conditions: z.array(
|
|
5576
|
+
z.lazy(() => UpdateAgentResponseBodyConditions$inboundSchema),
|
|
5577
|
+
).optional(),
|
|
5692
5578
|
timeout: z.number().default(120),
|
|
5693
5579
|
}).transform((v) => {
|
|
5694
5580
|
return remap$(v, {
|
|
@@ -5699,30 +5585,30 @@ export const UpdateAgentTools$inboundSchema: z.ZodType<
|
|
|
5699
5585
|
});
|
|
5700
5586
|
});
|
|
5701
5587
|
|
|
5702
|
-
export function
|
|
5588
|
+
export function updateAgentResponseBodyToolsFromJSON(
|
|
5703
5589
|
jsonString: string,
|
|
5704
|
-
): SafeParseResult<
|
|
5590
|
+
): SafeParseResult<UpdateAgentResponseBodyTools, SDKValidationError> {
|
|
5705
5591
|
return safeParse(
|
|
5706
5592
|
jsonString,
|
|
5707
|
-
(x) =>
|
|
5708
|
-
`Failed to parse '
|
|
5593
|
+
(x) => UpdateAgentResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
|
|
5594
|
+
`Failed to parse 'UpdateAgentResponseBodyTools' from JSON`,
|
|
5709
5595
|
);
|
|
5710
5596
|
}
|
|
5711
5597
|
|
|
5712
5598
|
/** @internal */
|
|
5713
|
-
export const
|
|
5714
|
-
typeof
|
|
5715
|
-
> = z.nativeEnum(
|
|
5599
|
+
export const UpdateAgentResponseBodyExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
5600
|
+
typeof UpdateAgentResponseBodyExecuteOn
|
|
5601
|
+
> = z.nativeEnum(UpdateAgentResponseBodyExecuteOn);
|
|
5716
5602
|
|
|
5717
5603
|
/** @internal */
|
|
5718
|
-
export const
|
|
5719
|
-
|
|
5604
|
+
export const UpdateAgentResponseBodyEvaluators$inboundSchema: z.ZodType<
|
|
5605
|
+
UpdateAgentResponseBodyEvaluators,
|
|
5720
5606
|
z.ZodTypeDef,
|
|
5721
5607
|
unknown
|
|
5722
5608
|
> = z.object({
|
|
5723
5609
|
id: z.string(),
|
|
5724
5610
|
sample_rate: z.number().default(50),
|
|
5725
|
-
execute_on:
|
|
5611
|
+
execute_on: UpdateAgentResponseBodyExecuteOn$inboundSchema,
|
|
5726
5612
|
}).transform((v) => {
|
|
5727
5613
|
return remap$(v, {
|
|
5728
5614
|
"sample_rate": "sampleRate",
|
|
@@ -5730,31 +5616,31 @@ export const UpdateAgentAgentsEvaluators$inboundSchema: z.ZodType<
|
|
|
5730
5616
|
});
|
|
5731
5617
|
});
|
|
5732
5618
|
|
|
5733
|
-
export function
|
|
5619
|
+
export function updateAgentResponseBodyEvaluatorsFromJSON(
|
|
5734
5620
|
jsonString: string,
|
|
5735
|
-
): SafeParseResult<
|
|
5621
|
+
): SafeParseResult<UpdateAgentResponseBodyEvaluators, SDKValidationError> {
|
|
5736
5622
|
return safeParse(
|
|
5737
5623
|
jsonString,
|
|
5738
|
-
(x) =>
|
|
5739
|
-
`Failed to parse '
|
|
5624
|
+
(x) => UpdateAgentResponseBodyEvaluators$inboundSchema.parse(JSON.parse(x)),
|
|
5625
|
+
`Failed to parse 'UpdateAgentResponseBodyEvaluators' from JSON`,
|
|
5740
5626
|
);
|
|
5741
5627
|
}
|
|
5742
5628
|
|
|
5743
5629
|
/** @internal */
|
|
5744
|
-
export const
|
|
5745
|
-
z.ZodNativeEnum<typeof
|
|
5746
|
-
|
|
5630
|
+
export const UpdateAgentResponseBodyAgentsExecuteOn$inboundSchema:
|
|
5631
|
+
z.ZodNativeEnum<typeof UpdateAgentResponseBodyAgentsExecuteOn> = z.nativeEnum(
|
|
5632
|
+
UpdateAgentResponseBodyAgentsExecuteOn,
|
|
5747
5633
|
);
|
|
5748
5634
|
|
|
5749
5635
|
/** @internal */
|
|
5750
|
-
export const
|
|
5751
|
-
|
|
5636
|
+
export const UpdateAgentResponseBodyGuardrails$inboundSchema: z.ZodType<
|
|
5637
|
+
UpdateAgentResponseBodyGuardrails,
|
|
5752
5638
|
z.ZodTypeDef,
|
|
5753
5639
|
unknown
|
|
5754
5640
|
> = z.object({
|
|
5755
5641
|
id: z.string(),
|
|
5756
5642
|
sample_rate: z.number().default(50),
|
|
5757
|
-
execute_on:
|
|
5643
|
+
execute_on: UpdateAgentResponseBodyAgentsExecuteOn$inboundSchema,
|
|
5758
5644
|
}).transform((v) => {
|
|
5759
5645
|
return remap$(v, {
|
|
5760
5646
|
"sample_rate": "sampleRate",
|
|
@@ -5762,32 +5648,37 @@ export const UpdateAgentAgentsGuardrails$inboundSchema: z.ZodType<
|
|
|
5762
5648
|
});
|
|
5763
5649
|
});
|
|
5764
5650
|
|
|
5765
|
-
export function
|
|
5651
|
+
export function updateAgentResponseBodyGuardrailsFromJSON(
|
|
5766
5652
|
jsonString: string,
|
|
5767
|
-
): SafeParseResult<
|
|
5653
|
+
): SafeParseResult<UpdateAgentResponseBodyGuardrails, SDKValidationError> {
|
|
5768
5654
|
return safeParse(
|
|
5769
5655
|
jsonString,
|
|
5770
|
-
(x) =>
|
|
5771
|
-
`Failed to parse '
|
|
5656
|
+
(x) => UpdateAgentResponseBodyGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
5657
|
+
`Failed to parse 'UpdateAgentResponseBodyGuardrails' from JSON`,
|
|
5772
5658
|
);
|
|
5773
5659
|
}
|
|
5774
5660
|
|
|
5775
5661
|
/** @internal */
|
|
5776
|
-
export const
|
|
5777
|
-
|
|
5662
|
+
export const UpdateAgentResponseBodySettings$inboundSchema: z.ZodType<
|
|
5663
|
+
UpdateAgentResponseBodySettings,
|
|
5778
5664
|
z.ZodTypeDef,
|
|
5779
5665
|
unknown
|
|
5780
5666
|
> = z.object({
|
|
5781
5667
|
max_iterations: z.number().int().default(100),
|
|
5782
5668
|
max_execution_time: z.number().int().default(600),
|
|
5783
5669
|
max_cost: z.number().default(0),
|
|
5784
|
-
tool_approval_required:
|
|
5785
|
-
.default(
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
guardrails: z.array(z.lazy(() => UpdateAgentAgentsGuardrails$inboundSchema))
|
|
5670
|
+
tool_approval_required:
|
|
5671
|
+
UpdateAgentResponseBodyToolApprovalRequired$inboundSchema.default(
|
|
5672
|
+
"respect_tool",
|
|
5673
|
+
),
|
|
5674
|
+
tools: z.array(z.lazy(() => UpdateAgentResponseBodyTools$inboundSchema))
|
|
5790
5675
|
.optional(),
|
|
5676
|
+
evaluators: z.array(
|
|
5677
|
+
z.lazy(() => UpdateAgentResponseBodyEvaluators$inboundSchema),
|
|
5678
|
+
).optional(),
|
|
5679
|
+
guardrails: z.array(
|
|
5680
|
+
z.lazy(() => UpdateAgentResponseBodyGuardrails$inboundSchema),
|
|
5681
|
+
).optional(),
|
|
5791
5682
|
}).transform((v) => {
|
|
5792
5683
|
return remap$(v, {
|
|
5793
5684
|
"max_iterations": "maxIterations",
|
|
@@ -5797,43 +5688,13 @@ export const UpdateAgentAgentsSettings$inboundSchema: z.ZodType<
|
|
|
5797
5688
|
});
|
|
5798
5689
|
});
|
|
5799
5690
|
|
|
5800
|
-
export function
|
|
5801
|
-
jsonString: string,
|
|
5802
|
-
): SafeParseResult<UpdateAgentAgentsSettings, SDKValidationError> {
|
|
5803
|
-
return safeParse(
|
|
5804
|
-
jsonString,
|
|
5805
|
-
(x) => UpdateAgentAgentsSettings$inboundSchema.parse(JSON.parse(x)),
|
|
5806
|
-
`Failed to parse 'UpdateAgentAgentsSettings' from JSON`,
|
|
5807
|
-
);
|
|
5808
|
-
}
|
|
5809
|
-
|
|
5810
|
-
/** @internal */
|
|
5811
|
-
export const UpdateAgentVoice$inboundSchema: z.ZodNativeEnum<
|
|
5812
|
-
typeof UpdateAgentVoice
|
|
5813
|
-
> = z.nativeEnum(UpdateAgentVoice);
|
|
5814
|
-
|
|
5815
|
-
/** @internal */
|
|
5816
|
-
export const UpdateAgentFormat$inboundSchema: z.ZodNativeEnum<
|
|
5817
|
-
typeof UpdateAgentFormat
|
|
5818
|
-
> = z.nativeEnum(UpdateAgentFormat);
|
|
5819
|
-
|
|
5820
|
-
/** @internal */
|
|
5821
|
-
export const UpdateAgentAudio$inboundSchema: z.ZodType<
|
|
5822
|
-
UpdateAgentAudio,
|
|
5823
|
-
z.ZodTypeDef,
|
|
5824
|
-
unknown
|
|
5825
|
-
> = z.object({
|
|
5826
|
-
voice: UpdateAgentVoice$inboundSchema,
|
|
5827
|
-
format: UpdateAgentFormat$inboundSchema,
|
|
5828
|
-
});
|
|
5829
|
-
|
|
5830
|
-
export function updateAgentAudioFromJSON(
|
|
5691
|
+
export function updateAgentResponseBodySettingsFromJSON(
|
|
5831
5692
|
jsonString: string,
|
|
5832
|
-
): SafeParseResult<
|
|
5693
|
+
): SafeParseResult<UpdateAgentResponseBodySettings, SDKValidationError> {
|
|
5833
5694
|
return safeParse(
|
|
5834
5695
|
jsonString,
|
|
5835
|
-
(x) =>
|
|
5836
|
-
`Failed to parse '
|
|
5696
|
+
(x) => UpdateAgentResponseBodySettings$inboundSchema.parse(JSON.parse(x)),
|
|
5697
|
+
`Failed to parse 'UpdateAgentResponseBodySettings' from JSON`,
|
|
5837
5698
|
);
|
|
5838
5699
|
}
|
|
5839
5700
|
|
|
@@ -5952,8 +5813,8 @@ export function updateAgentResponseFormatAgentsResponseTextFromJSON(
|
|
|
5952
5813
|
}
|
|
5953
5814
|
|
|
5954
5815
|
/** @internal */
|
|
5955
|
-
export const
|
|
5956
|
-
|
|
5816
|
+
export const UpdateAgentResponseBodyResponseFormat$inboundSchema: z.ZodType<
|
|
5817
|
+
UpdateAgentResponseBodyResponseFormat,
|
|
5957
5818
|
z.ZodTypeDef,
|
|
5958
5819
|
unknown
|
|
5959
5820
|
> = z.union([
|
|
@@ -5964,64 +5825,43 @@ export const UpdateAgentResponseFormat$inboundSchema: z.ZodType<
|
|
|
5964
5825
|
),
|
|
5965
5826
|
]);
|
|
5966
5827
|
|
|
5967
|
-
export function
|
|
5828
|
+
export function updateAgentResponseBodyResponseFormatFromJSON(
|
|
5968
5829
|
jsonString: string,
|
|
5969
|
-
): SafeParseResult<
|
|
5830
|
+
): SafeParseResult<UpdateAgentResponseBodyResponseFormat, SDKValidationError> {
|
|
5970
5831
|
return safeParse(
|
|
5971
5832
|
jsonString,
|
|
5972
|
-
(x) =>
|
|
5973
|
-
|
|
5833
|
+
(x) =>
|
|
5834
|
+
UpdateAgentResponseBodyResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
5835
|
+
`Failed to parse 'UpdateAgentResponseBodyResponseFormat' from JSON`,
|
|
5974
5836
|
);
|
|
5975
5837
|
}
|
|
5976
5838
|
|
|
5977
5839
|
/** @internal */
|
|
5978
|
-
export const
|
|
5979
|
-
typeof
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
/** @internal */
|
|
5983
|
-
export const UpdateAgentStop$inboundSchema: z.ZodType<
|
|
5984
|
-
UpdateAgentStop,
|
|
5985
|
-
z.ZodTypeDef,
|
|
5986
|
-
unknown
|
|
5987
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
5988
|
-
|
|
5989
|
-
export function updateAgentStopFromJSON(
|
|
5990
|
-
jsonString: string,
|
|
5991
|
-
): SafeParseResult<UpdateAgentStop, SDKValidationError> {
|
|
5992
|
-
return safeParse(
|
|
5993
|
-
jsonString,
|
|
5994
|
-
(x) => UpdateAgentStop$inboundSchema.parse(JSON.parse(x)),
|
|
5995
|
-
`Failed to parse 'UpdateAgentStop' from JSON`,
|
|
5840
|
+
export const UpdateAgentResponseBodyReasoningEffort$inboundSchema:
|
|
5841
|
+
z.ZodNativeEnum<typeof UpdateAgentResponseBodyReasoningEffort> = z.nativeEnum(
|
|
5842
|
+
UpdateAgentResponseBodyReasoningEffort,
|
|
5996
5843
|
);
|
|
5997
|
-
}
|
|
5998
5844
|
|
|
5999
5845
|
/** @internal */
|
|
6000
|
-
export const
|
|
6001
|
-
|
|
5846
|
+
export const UpdateAgentResponseBodyStop$inboundSchema: z.ZodType<
|
|
5847
|
+
UpdateAgentResponseBodyStop,
|
|
6002
5848
|
z.ZodTypeDef,
|
|
6003
5849
|
unknown
|
|
6004
|
-
> = z.
|
|
6005
|
-
include_usage: z.boolean().optional(),
|
|
6006
|
-
}).transform((v) => {
|
|
6007
|
-
return remap$(v, {
|
|
6008
|
-
"include_usage": "includeUsage",
|
|
6009
|
-
});
|
|
6010
|
-
});
|
|
5850
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
6011
5851
|
|
|
6012
|
-
export function
|
|
5852
|
+
export function updateAgentResponseBodyStopFromJSON(
|
|
6013
5853
|
jsonString: string,
|
|
6014
|
-
): SafeParseResult<
|
|
5854
|
+
): SafeParseResult<UpdateAgentResponseBodyStop, SDKValidationError> {
|
|
6015
5855
|
return safeParse(
|
|
6016
5856
|
jsonString,
|
|
6017
|
-
(x) =>
|
|
6018
|
-
`Failed to parse '
|
|
5857
|
+
(x) => UpdateAgentResponseBodyStop$inboundSchema.parse(JSON.parse(x)),
|
|
5858
|
+
`Failed to parse 'UpdateAgentResponseBodyStop' from JSON`,
|
|
6019
5859
|
);
|
|
6020
5860
|
}
|
|
6021
5861
|
|
|
6022
5862
|
/** @internal */
|
|
6023
|
-
export const
|
|
6024
|
-
|
|
5863
|
+
export const UpdateAgentResponseBodyThinking$inboundSchema: z.ZodType<
|
|
5864
|
+
UpdateAgentResponseBodyThinking,
|
|
6025
5865
|
z.ZodTypeDef,
|
|
6026
5866
|
unknown
|
|
6027
5867
|
> = z.union([
|
|
@@ -6029,13 +5869,13 @@ export const UpdateAgentThinking$inboundSchema: z.ZodType<
|
|
|
6029
5869
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
6030
5870
|
]);
|
|
6031
5871
|
|
|
6032
|
-
export function
|
|
5872
|
+
export function updateAgentResponseBodyThinkingFromJSON(
|
|
6033
5873
|
jsonString: string,
|
|
6034
|
-
): SafeParseResult<
|
|
5874
|
+
): SafeParseResult<UpdateAgentResponseBodyThinking, SDKValidationError> {
|
|
6035
5875
|
return safeParse(
|
|
6036
5876
|
jsonString,
|
|
6037
|
-
(x) =>
|
|
6038
|
-
`Failed to parse '
|
|
5877
|
+
(x) => UpdateAgentResponseBodyThinking$inboundSchema.parse(JSON.parse(x)),
|
|
5878
|
+
`Failed to parse 'UpdateAgentResponseBodyThinking' from JSON`,
|
|
6039
5879
|
);
|
|
6040
5880
|
}
|
|
6041
5881
|
|
|
@@ -6100,8 +5940,8 @@ export const UpdateAgentToolChoiceAgentsResponse1$inboundSchema:
|
|
|
6100
5940
|
);
|
|
6101
5941
|
|
|
6102
5942
|
/** @internal */
|
|
6103
|
-
export const
|
|
6104
|
-
|
|
5943
|
+
export const UpdateAgentResponseBodyToolChoice$inboundSchema: z.ZodType<
|
|
5944
|
+
UpdateAgentResponseBodyToolChoice,
|
|
6105
5945
|
z.ZodTypeDef,
|
|
6106
5946
|
unknown
|
|
6107
5947
|
> = z.union([
|
|
@@ -6109,20 +5949,20 @@ export const UpdateAgentToolChoice$inboundSchema: z.ZodType<
|
|
|
6109
5949
|
UpdateAgentToolChoiceAgentsResponse1$inboundSchema,
|
|
6110
5950
|
]);
|
|
6111
5951
|
|
|
6112
|
-
export function
|
|
5952
|
+
export function updateAgentResponseBodyToolChoiceFromJSON(
|
|
6113
5953
|
jsonString: string,
|
|
6114
|
-
): SafeParseResult<
|
|
5954
|
+
): SafeParseResult<UpdateAgentResponseBodyToolChoice, SDKValidationError> {
|
|
6115
5955
|
return safeParse(
|
|
6116
5956
|
jsonString,
|
|
6117
|
-
(x) =>
|
|
6118
|
-
`Failed to parse '
|
|
5957
|
+
(x) => UpdateAgentResponseBodyToolChoice$inboundSchema.parse(JSON.parse(x)),
|
|
5958
|
+
`Failed to parse 'UpdateAgentResponseBodyToolChoice' from JSON`,
|
|
6119
5959
|
);
|
|
6120
5960
|
}
|
|
6121
5961
|
|
|
6122
5962
|
/** @internal */
|
|
6123
|
-
export const
|
|
6124
|
-
typeof
|
|
6125
|
-
> = z.nativeEnum(
|
|
5963
|
+
export const UpdateAgentResponseBodyModalities$inboundSchema: z.ZodNativeEnum<
|
|
5964
|
+
typeof UpdateAgentResponseBodyModalities
|
|
5965
|
+
> = z.nativeEnum(UpdateAgentResponseBodyModalities);
|
|
6126
5966
|
|
|
6127
5967
|
/** @internal */
|
|
6128
5968
|
export const UpdateAgentIdAgentsResponse1$inboundSchema: z.ZodNativeEnum<
|
|
@@ -6130,118 +5970,98 @@ export const UpdateAgentIdAgentsResponse1$inboundSchema: z.ZodNativeEnum<
|
|
|
6130
5970
|
> = z.nativeEnum(UpdateAgentIdAgentsResponse1);
|
|
6131
5971
|
|
|
6132
5972
|
/** @internal */
|
|
6133
|
-
export const
|
|
6134
|
-
|
|
5973
|
+
export const UpdateAgentResponseBodyId$inboundSchema: z.ZodType<
|
|
5974
|
+
UpdateAgentResponseBodyId,
|
|
6135
5975
|
z.ZodTypeDef,
|
|
6136
5976
|
unknown
|
|
6137
5977
|
> = z.union([UpdateAgentIdAgentsResponse1$inboundSchema, z.string()]);
|
|
6138
5978
|
|
|
6139
|
-
export function
|
|
5979
|
+
export function updateAgentResponseBodyIdFromJSON(
|
|
6140
5980
|
jsonString: string,
|
|
6141
|
-
): SafeParseResult<
|
|
5981
|
+
): SafeParseResult<UpdateAgentResponseBodyId, SDKValidationError> {
|
|
6142
5982
|
return safeParse(
|
|
6143
5983
|
jsonString,
|
|
6144
|
-
(x) =>
|
|
6145
|
-
`Failed to parse '
|
|
5984
|
+
(x) => UpdateAgentResponseBodyId$inboundSchema.parse(JSON.parse(x)),
|
|
5985
|
+
`Failed to parse 'UpdateAgentResponseBodyId' from JSON`,
|
|
6146
5986
|
);
|
|
6147
5987
|
}
|
|
6148
5988
|
|
|
6149
5989
|
/** @internal */
|
|
6150
|
-
export const
|
|
6151
|
-
z.ZodNativeEnum<typeof
|
|
6152
|
-
|
|
5990
|
+
export const UpdateAgentResponseBodyAgentsResponseExecuteOn$inboundSchema:
|
|
5991
|
+
z.ZodNativeEnum<typeof UpdateAgentResponseBodyAgentsResponseExecuteOn> = z
|
|
5992
|
+
.nativeEnum(UpdateAgentResponseBodyAgentsResponseExecuteOn);
|
|
6153
5993
|
|
|
6154
5994
|
/** @internal */
|
|
6155
|
-
export const
|
|
6156
|
-
|
|
5995
|
+
export const UpdateAgentResponseBodyAgentsGuardrails$inboundSchema: z.ZodType<
|
|
5996
|
+
UpdateAgentResponseBodyAgentsGuardrails,
|
|
6157
5997
|
z.ZodTypeDef,
|
|
6158
5998
|
unknown
|
|
6159
5999
|
> = z.object({
|
|
6160
6000
|
id: z.union([UpdateAgentIdAgentsResponse1$inboundSchema, z.string()]),
|
|
6161
|
-
execute_on:
|
|
6162
|
-
UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$inboundSchema,
|
|
6001
|
+
execute_on: UpdateAgentResponseBodyAgentsResponseExecuteOn$inboundSchema,
|
|
6163
6002
|
}).transform((v) => {
|
|
6164
6003
|
return remap$(v, {
|
|
6165
6004
|
"execute_on": "executeOn",
|
|
6166
6005
|
});
|
|
6167
6006
|
});
|
|
6168
6007
|
|
|
6169
|
-
export function
|
|
6008
|
+
export function updateAgentResponseBodyAgentsGuardrailsFromJSON(
|
|
6170
6009
|
jsonString: string,
|
|
6171
|
-
): SafeParseResult<
|
|
6010
|
+
): SafeParseResult<
|
|
6011
|
+
UpdateAgentResponseBodyAgentsGuardrails,
|
|
6012
|
+
SDKValidationError
|
|
6013
|
+
> {
|
|
6172
6014
|
return safeParse(
|
|
6173
6015
|
jsonString,
|
|
6174
6016
|
(x) =>
|
|
6175
|
-
|
|
6176
|
-
|
|
6017
|
+
UpdateAgentResponseBodyAgentsGuardrails$inboundSchema.parse(
|
|
6018
|
+
JSON.parse(x),
|
|
6019
|
+
),
|
|
6020
|
+
`Failed to parse 'UpdateAgentResponseBodyAgentsGuardrails' from JSON`,
|
|
6177
6021
|
);
|
|
6178
6022
|
}
|
|
6179
6023
|
|
|
6180
6024
|
/** @internal */
|
|
6181
|
-
export const
|
|
6182
|
-
|
|
6025
|
+
export const UpdateAgentResponseBodyFallbacks$inboundSchema: z.ZodType<
|
|
6026
|
+
UpdateAgentResponseBodyFallbacks,
|
|
6183
6027
|
z.ZodTypeDef,
|
|
6184
6028
|
unknown
|
|
6185
6029
|
> = z.object({
|
|
6186
6030
|
model: z.string(),
|
|
6187
6031
|
});
|
|
6188
6032
|
|
|
6189
|
-
export function
|
|
6190
|
-
jsonString: string,
|
|
6191
|
-
): SafeParseResult<UpdateAgentFallbacks, SDKValidationError> {
|
|
6192
|
-
return safeParse(
|
|
6193
|
-
jsonString,
|
|
6194
|
-
(x) => UpdateAgentFallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
6195
|
-
`Failed to parse 'UpdateAgentFallbacks' from JSON`,
|
|
6196
|
-
);
|
|
6197
|
-
}
|
|
6198
|
-
|
|
6199
|
-
/** @internal */
|
|
6200
|
-
export const UpdateAgentAgentsRetry$inboundSchema: z.ZodType<
|
|
6201
|
-
UpdateAgentAgentsRetry,
|
|
6202
|
-
z.ZodTypeDef,
|
|
6203
|
-
unknown
|
|
6204
|
-
> = z.object({
|
|
6205
|
-
count: z.number().default(3),
|
|
6206
|
-
on_codes: z.array(z.number()).optional(),
|
|
6207
|
-
}).transform((v) => {
|
|
6208
|
-
return remap$(v, {
|
|
6209
|
-
"on_codes": "onCodes",
|
|
6210
|
-
});
|
|
6211
|
-
});
|
|
6212
|
-
|
|
6213
|
-
export function updateAgentAgentsRetryFromJSON(
|
|
6033
|
+
export function updateAgentResponseBodyFallbacksFromJSON(
|
|
6214
6034
|
jsonString: string,
|
|
6215
|
-
): SafeParseResult<
|
|
6035
|
+
): SafeParseResult<UpdateAgentResponseBodyFallbacks, SDKValidationError> {
|
|
6216
6036
|
return safeParse(
|
|
6217
6037
|
jsonString,
|
|
6218
|
-
(x) =>
|
|
6219
|
-
`Failed to parse '
|
|
6038
|
+
(x) => UpdateAgentResponseBodyFallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
6039
|
+
`Failed to parse 'UpdateAgentResponseBodyFallbacks' from JSON`,
|
|
6220
6040
|
);
|
|
6221
6041
|
}
|
|
6222
6042
|
|
|
6223
6043
|
/** @internal */
|
|
6224
|
-
export const
|
|
6225
|
-
typeof
|
|
6226
|
-
|
|
6044
|
+
export const UpdateAgentResponseBodyAgentsResponseType$inboundSchema:
|
|
6045
|
+
z.ZodNativeEnum<typeof UpdateAgentResponseBodyAgentsResponseType> = z
|
|
6046
|
+
.nativeEnum(UpdateAgentResponseBodyAgentsResponseType);
|
|
6227
6047
|
|
|
6228
6048
|
/** @internal */
|
|
6229
|
-
export const
|
|
6230
|
-
|
|
6049
|
+
export const UpdateAgentResponseBodyCache$inboundSchema: z.ZodType<
|
|
6050
|
+
UpdateAgentResponseBodyCache,
|
|
6231
6051
|
z.ZodTypeDef,
|
|
6232
6052
|
unknown
|
|
6233
6053
|
> = z.object({
|
|
6234
6054
|
ttl: z.number().default(1800),
|
|
6235
|
-
type:
|
|
6055
|
+
type: UpdateAgentResponseBodyAgentsResponseType$inboundSchema,
|
|
6236
6056
|
});
|
|
6237
6057
|
|
|
6238
|
-
export function
|
|
6058
|
+
export function updateAgentResponseBodyCacheFromJSON(
|
|
6239
6059
|
jsonString: string,
|
|
6240
|
-
): SafeParseResult<
|
|
6060
|
+
): SafeParseResult<UpdateAgentResponseBodyCache, SDKValidationError> {
|
|
6241
6061
|
return safeParse(
|
|
6242
6062
|
jsonString,
|
|
6243
|
-
(x) =>
|
|
6244
|
-
`Failed to parse '
|
|
6063
|
+
(x) => UpdateAgentResponseBodyCache$inboundSchema.parse(JSON.parse(x)),
|
|
6064
|
+
`Failed to parse 'UpdateAgentResponseBodyCache' from JSON`,
|
|
6245
6065
|
);
|
|
6246
6066
|
}
|
|
6247
6067
|
|
|
@@ -6301,25 +6121,26 @@ export function updateAgentLoadBalancerAgentsResponse1FromJSON(
|
|
|
6301
6121
|
}
|
|
6302
6122
|
|
|
6303
6123
|
/** @internal */
|
|
6304
|
-
export const
|
|
6305
|
-
|
|
6124
|
+
export const UpdateAgentResponseBodyLoadBalancer$inboundSchema: z.ZodType<
|
|
6125
|
+
UpdateAgentResponseBodyLoadBalancer,
|
|
6306
6126
|
z.ZodTypeDef,
|
|
6307
6127
|
unknown
|
|
6308
6128
|
> = z.lazy(() => UpdateAgentLoadBalancerAgentsResponse1$inboundSchema);
|
|
6309
6129
|
|
|
6310
|
-
export function
|
|
6130
|
+
export function updateAgentResponseBodyLoadBalancerFromJSON(
|
|
6311
6131
|
jsonString: string,
|
|
6312
|
-
): SafeParseResult<
|
|
6132
|
+
): SafeParseResult<UpdateAgentResponseBodyLoadBalancer, SDKValidationError> {
|
|
6313
6133
|
return safeParse(
|
|
6314
6134
|
jsonString,
|
|
6315
|
-
(x) =>
|
|
6316
|
-
|
|
6135
|
+
(x) =>
|
|
6136
|
+
UpdateAgentResponseBodyLoadBalancer$inboundSchema.parse(JSON.parse(x)),
|
|
6137
|
+
`Failed to parse 'UpdateAgentResponseBodyLoadBalancer' from JSON`,
|
|
6317
6138
|
);
|
|
6318
6139
|
}
|
|
6319
6140
|
|
|
6320
6141
|
/** @internal */
|
|
6321
|
-
export const
|
|
6322
|
-
|
|
6142
|
+
export const UpdateAgentResponseBodyTimeout$inboundSchema: z.ZodType<
|
|
6143
|
+
UpdateAgentResponseBodyTimeout,
|
|
6323
6144
|
z.ZodTypeDef,
|
|
6324
6145
|
unknown
|
|
6325
6146
|
> = z.object({
|
|
@@ -6330,30 +6151,26 @@ export const UpdateAgentTimeout$inboundSchema: z.ZodType<
|
|
|
6330
6151
|
});
|
|
6331
6152
|
});
|
|
6332
6153
|
|
|
6333
|
-
export function
|
|
6154
|
+
export function updateAgentResponseBodyTimeoutFromJSON(
|
|
6334
6155
|
jsonString: string,
|
|
6335
|
-
): SafeParseResult<
|
|
6156
|
+
): SafeParseResult<UpdateAgentResponseBodyTimeout, SDKValidationError> {
|
|
6336
6157
|
return safeParse(
|
|
6337
6158
|
jsonString,
|
|
6338
|
-
(x) =>
|
|
6339
|
-
`Failed to parse '
|
|
6159
|
+
(x) => UpdateAgentResponseBodyTimeout$inboundSchema.parse(JSON.parse(x)),
|
|
6160
|
+
`Failed to parse 'UpdateAgentResponseBodyTimeout' from JSON`,
|
|
6340
6161
|
);
|
|
6341
6162
|
}
|
|
6342
6163
|
|
|
6343
6164
|
/** @internal */
|
|
6344
|
-
export const
|
|
6345
|
-
|
|
6165
|
+
export const UpdateAgentResponseBodyParameters$inboundSchema: z.ZodType<
|
|
6166
|
+
UpdateAgentResponseBodyParameters,
|
|
6346
6167
|
z.ZodTypeDef,
|
|
6347
6168
|
unknown
|
|
6348
6169
|
> = z.object({
|
|
6349
6170
|
name: z.string().optional(),
|
|
6350
|
-
audio: z.nullable(z.lazy(() => UpdateAgentAudio$inboundSchema)).optional(),
|
|
6351
6171
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
6352
6172
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
6353
6173
|
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
6354
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
6355
|
-
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
6356
|
-
n: z.nullable(z.number().int()).optional(),
|
|
6357
6174
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
6358
6175
|
response_format: z.union([
|
|
6359
6176
|
z.lazy(() => UpdateAgentResponseFormatAgentsResponseText$inboundSchema),
|
|
@@ -6364,13 +6181,11 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
6364
6181
|
UpdateAgentResponseFormatAgentsResponse200JSONSchema$inboundSchema
|
|
6365
6182
|
),
|
|
6366
6183
|
]).optional(),
|
|
6367
|
-
reasoning_effort:
|
|
6184
|
+
reasoning_effort: UpdateAgentResponseBodyReasoningEffort$inboundSchema
|
|
6185
|
+
.optional(),
|
|
6368
6186
|
verbosity: z.string().optional(),
|
|
6369
6187
|
seed: z.nullable(z.number()).optional(),
|
|
6370
6188
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
6371
|
-
stream_options: z.nullable(
|
|
6372
|
-
z.lazy(() => UpdateAgentStreamOptions$inboundSchema),
|
|
6373
|
-
).optional(),
|
|
6374
6189
|
thinking: z.union([
|
|
6375
6190
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
6376
6191
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -6383,29 +6198,29 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
6383
6198
|
UpdateAgentToolChoiceAgentsResponse1$inboundSchema,
|
|
6384
6199
|
]).optional(),
|
|
6385
6200
|
parallel_tool_calls: z.boolean().optional(),
|
|
6386
|
-
modalities: z.nullable(
|
|
6387
|
-
.
|
|
6201
|
+
modalities: z.nullable(
|
|
6202
|
+
z.array(UpdateAgentResponseBodyModalities$inboundSchema),
|
|
6203
|
+
).optional(),
|
|
6388
6204
|
guardrails: z.array(
|
|
6389
|
-
z.lazy(() =>
|
|
6205
|
+
z.lazy(() => UpdateAgentResponseBodyAgentsGuardrails$inboundSchema),
|
|
6390
6206
|
).optional(),
|
|
6391
|
-
fallbacks: z.array(
|
|
6392
|
-
.
|
|
6393
|
-
|
|
6394
|
-
cache: z.lazy(() =>
|
|
6207
|
+
fallbacks: z.array(
|
|
6208
|
+
z.lazy(() => UpdateAgentResponseBodyFallbacks$inboundSchema),
|
|
6209
|
+
).optional(),
|
|
6210
|
+
cache: z.lazy(() => UpdateAgentResponseBodyCache$inboundSchema).optional(),
|
|
6395
6211
|
load_balancer: z.lazy(() =>
|
|
6396
6212
|
UpdateAgentLoadBalancerAgentsResponse1$inboundSchema
|
|
6397
6213
|
).optional(),
|
|
6398
|
-
timeout: z.lazy(() =>
|
|
6214
|
+
timeout: z.lazy(() => UpdateAgentResponseBodyTimeout$inboundSchema)
|
|
6215
|
+
.optional(),
|
|
6399
6216
|
}).transform((v) => {
|
|
6400
6217
|
return remap$(v, {
|
|
6401
6218
|
"frequency_penalty": "frequencyPenalty",
|
|
6402
6219
|
"max_tokens": "maxTokens",
|
|
6403
6220
|
"max_completion_tokens": "maxCompletionTokens",
|
|
6404
|
-
"top_logprobs": "topLogprobs",
|
|
6405
6221
|
"presence_penalty": "presencePenalty",
|
|
6406
6222
|
"response_format": "responseFormat",
|
|
6407
6223
|
"reasoning_effort": "reasoningEffort",
|
|
6408
|
-
"stream_options": "streamOptions",
|
|
6409
6224
|
"top_p": "topP",
|
|
6410
6225
|
"top_k": "topK",
|
|
6411
6226
|
"tool_choice": "toolChoice",
|
|
@@ -6414,19 +6229,19 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
6414
6229
|
});
|
|
6415
6230
|
});
|
|
6416
6231
|
|
|
6417
|
-
export function
|
|
6232
|
+
export function updateAgentResponseBodyParametersFromJSON(
|
|
6418
6233
|
jsonString: string,
|
|
6419
|
-
): SafeParseResult<
|
|
6234
|
+
): SafeParseResult<UpdateAgentResponseBodyParameters, SDKValidationError> {
|
|
6420
6235
|
return safeParse(
|
|
6421
6236
|
jsonString,
|
|
6422
|
-
(x) =>
|
|
6423
|
-
`Failed to parse '
|
|
6237
|
+
(x) => UpdateAgentResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
|
|
6238
|
+
`Failed to parse 'UpdateAgentResponseBodyParameters' from JSON`,
|
|
6424
6239
|
);
|
|
6425
6240
|
}
|
|
6426
6241
|
|
|
6427
6242
|
/** @internal */
|
|
6428
|
-
export const
|
|
6429
|
-
|
|
6243
|
+
export const UpdateAgentResponseBodyRetry$inboundSchema: z.ZodType<
|
|
6244
|
+
UpdateAgentResponseBodyRetry,
|
|
6430
6245
|
z.ZodTypeDef,
|
|
6431
6246
|
unknown
|
|
6432
6247
|
> = z.object({
|
|
@@ -6438,50 +6253,13 @@ export const UpdateAgentRetry$inboundSchema: z.ZodType<
|
|
|
6438
6253
|
});
|
|
6439
6254
|
});
|
|
6440
6255
|
|
|
6441
|
-
export function
|
|
6442
|
-
jsonString: string,
|
|
6443
|
-
): SafeParseResult<UpdateAgentRetry, SDKValidationError> {
|
|
6444
|
-
return safeParse(
|
|
6445
|
-
jsonString,
|
|
6446
|
-
(x) => UpdateAgentRetry$inboundSchema.parse(JSON.parse(x)),
|
|
6447
|
-
`Failed to parse 'UpdateAgentRetry' from JSON`,
|
|
6448
|
-
);
|
|
6449
|
-
}
|
|
6450
|
-
|
|
6451
|
-
/** @internal */
|
|
6452
|
-
export const UpdateAgentFallbackModelConfigurationAgentsVoice$inboundSchema:
|
|
6453
|
-
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsVoice> = z
|
|
6454
|
-
.nativeEnum(UpdateAgentFallbackModelConfigurationAgentsVoice);
|
|
6455
|
-
|
|
6456
|
-
/** @internal */
|
|
6457
|
-
export const UpdateAgentFallbackModelConfigurationAgentsFormat$inboundSchema:
|
|
6458
|
-
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsFormat> = z
|
|
6459
|
-
.nativeEnum(UpdateAgentFallbackModelConfigurationAgentsFormat);
|
|
6460
|
-
|
|
6461
|
-
/** @internal */
|
|
6462
|
-
export const UpdateAgentFallbackModelConfigurationAgentsAudio$inboundSchema:
|
|
6463
|
-
z.ZodType<
|
|
6464
|
-
UpdateAgentFallbackModelConfigurationAgentsAudio,
|
|
6465
|
-
z.ZodTypeDef,
|
|
6466
|
-
unknown
|
|
6467
|
-
> = z.object({
|
|
6468
|
-
voice: UpdateAgentFallbackModelConfigurationAgentsVoice$inboundSchema,
|
|
6469
|
-
format: UpdateAgentFallbackModelConfigurationAgentsFormat$inboundSchema,
|
|
6470
|
-
});
|
|
6471
|
-
|
|
6472
|
-
export function updateAgentFallbackModelConfigurationAgentsAudioFromJSON(
|
|
6256
|
+
export function updateAgentResponseBodyRetryFromJSON(
|
|
6473
6257
|
jsonString: string,
|
|
6474
|
-
): SafeParseResult<
|
|
6475
|
-
UpdateAgentFallbackModelConfigurationAgentsAudio,
|
|
6476
|
-
SDKValidationError
|
|
6477
|
-
> {
|
|
6258
|
+
): SafeParseResult<UpdateAgentResponseBodyRetry, SDKValidationError> {
|
|
6478
6259
|
return safeParse(
|
|
6479
6260
|
jsonString,
|
|
6480
|
-
(x) =>
|
|
6481
|
-
|
|
6482
|
-
JSON.parse(x),
|
|
6483
|
-
),
|
|
6484
|
-
`Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsAudio' from JSON`,
|
|
6261
|
+
(x) => UpdateAgentResponseBodyRetry$inboundSchema.parse(JSON.parse(x)),
|
|
6262
|
+
`Failed to parse 'UpdateAgentResponseBodyRetry' from JSON`,
|
|
6485
6263
|
);
|
|
6486
6264
|
}
|
|
6487
6265
|
|
|
@@ -6658,35 +6436,6 @@ export function updateAgentFallbackModelConfigurationAgentsStopFromJSON(
|
|
|
6658
6436
|
);
|
|
6659
6437
|
}
|
|
6660
6438
|
|
|
6661
|
-
/** @internal */
|
|
6662
|
-
export const UpdateAgentFallbackModelConfigurationAgentsStreamOptions$inboundSchema:
|
|
6663
|
-
z.ZodType<
|
|
6664
|
-
UpdateAgentFallbackModelConfigurationAgentsStreamOptions,
|
|
6665
|
-
z.ZodTypeDef,
|
|
6666
|
-
unknown
|
|
6667
|
-
> = z.object({
|
|
6668
|
-
include_usage: z.boolean().optional(),
|
|
6669
|
-
}).transform((v) => {
|
|
6670
|
-
return remap$(v, {
|
|
6671
|
-
"include_usage": "includeUsage",
|
|
6672
|
-
});
|
|
6673
|
-
});
|
|
6674
|
-
|
|
6675
|
-
export function updateAgentFallbackModelConfigurationAgentsStreamOptionsFromJSON(
|
|
6676
|
-
jsonString: string,
|
|
6677
|
-
): SafeParseResult<
|
|
6678
|
-
UpdateAgentFallbackModelConfigurationAgentsStreamOptions,
|
|
6679
|
-
SDKValidationError
|
|
6680
|
-
> {
|
|
6681
|
-
return safeParse(
|
|
6682
|
-
jsonString,
|
|
6683
|
-
(x) =>
|
|
6684
|
-
UpdateAgentFallbackModelConfigurationAgentsStreamOptions$inboundSchema
|
|
6685
|
-
.parse(JSON.parse(x)),
|
|
6686
|
-
`Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsStreamOptions' from JSON`,
|
|
6687
|
-
);
|
|
6688
|
-
}
|
|
6689
|
-
|
|
6690
6439
|
/** @internal */
|
|
6691
6440
|
export const UpdateAgentFallbackModelConfigurationAgentsThinking$inboundSchema:
|
|
6692
6441
|
z.ZodType<
|
|
@@ -6903,36 +6652,6 @@ export function updateAgentFallbackModelConfigurationAgentsFallbacksFromJSON(
|
|
|
6903
6652
|
);
|
|
6904
6653
|
}
|
|
6905
6654
|
|
|
6906
|
-
/** @internal */
|
|
6907
|
-
export const UpdateAgentFallbackModelConfigurationAgentsResponse200Retry$inboundSchema:
|
|
6908
|
-
z.ZodType<
|
|
6909
|
-
UpdateAgentFallbackModelConfigurationAgentsResponse200Retry,
|
|
6910
|
-
z.ZodTypeDef,
|
|
6911
|
-
unknown
|
|
6912
|
-
> = z.object({
|
|
6913
|
-
count: z.number().default(3),
|
|
6914
|
-
on_codes: z.array(z.number()).optional(),
|
|
6915
|
-
}).transform((v) => {
|
|
6916
|
-
return remap$(v, {
|
|
6917
|
-
"on_codes": "onCodes",
|
|
6918
|
-
});
|
|
6919
|
-
});
|
|
6920
|
-
|
|
6921
|
-
export function updateAgentFallbackModelConfigurationAgentsResponse200RetryFromJSON(
|
|
6922
|
-
jsonString: string,
|
|
6923
|
-
): SafeParseResult<
|
|
6924
|
-
UpdateAgentFallbackModelConfigurationAgentsResponse200Retry,
|
|
6925
|
-
SDKValidationError
|
|
6926
|
-
> {
|
|
6927
|
-
return safeParse(
|
|
6928
|
-
jsonString,
|
|
6929
|
-
(x) =>
|
|
6930
|
-
UpdateAgentFallbackModelConfigurationAgentsResponse200Retry$inboundSchema
|
|
6931
|
-
.parse(JSON.parse(x)),
|
|
6932
|
-
`Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsResponse200Retry' from JSON`,
|
|
6933
|
-
);
|
|
6934
|
-
}
|
|
6935
|
-
|
|
6936
6655
|
/** @internal */
|
|
6937
6656
|
export const UpdateAgentFallbackModelConfigurationAgentsType$inboundSchema:
|
|
6938
6657
|
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsType> = z
|
|
@@ -7086,17 +6805,9 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
7086
6805
|
unknown
|
|
7087
6806
|
> = z.object({
|
|
7088
6807
|
name: z.string().optional(),
|
|
7089
|
-
audio: z.nullable(
|
|
7090
|
-
z.lazy(() =>
|
|
7091
|
-
UpdateAgentFallbackModelConfigurationAgentsAudio$inboundSchema
|
|
7092
|
-
),
|
|
7093
|
-
).optional(),
|
|
7094
6808
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
7095
6809
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
7096
6810
|
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
7097
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
7098
|
-
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
7099
|
-
n: z.nullable(z.number().int()).optional(),
|
|
7100
6811
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
7101
6812
|
response_format: z.union([
|
|
7102
6813
|
z.lazy(() =>
|
|
@@ -7115,11 +6826,6 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
7115
6826
|
verbosity: z.string().optional(),
|
|
7116
6827
|
seed: z.nullable(z.number()).optional(),
|
|
7117
6828
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
7118
|
-
stream_options: z.nullable(
|
|
7119
|
-
z.lazy(() =>
|
|
7120
|
-
UpdateAgentFallbackModelConfigurationAgentsStreamOptions$inboundSchema
|
|
7121
|
-
),
|
|
7122
|
-
).optional(),
|
|
7123
6829
|
thinking: z.union([
|
|
7124
6830
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
7125
6831
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -7147,9 +6853,6 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
7147
6853
|
UpdateAgentFallbackModelConfigurationAgentsFallbacks$inboundSchema
|
|
7148
6854
|
),
|
|
7149
6855
|
).optional(),
|
|
7150
|
-
retry: z.lazy(() =>
|
|
7151
|
-
UpdateAgentFallbackModelConfigurationAgentsResponse200Retry$inboundSchema
|
|
7152
|
-
).optional(),
|
|
7153
6856
|
cache: z.lazy(() =>
|
|
7154
6857
|
UpdateAgentFallbackModelConfigurationAgentsCache$inboundSchema
|
|
7155
6858
|
).optional(),
|
|
@@ -7164,11 +6867,9 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
7164
6867
|
"frequency_penalty": "frequencyPenalty",
|
|
7165
6868
|
"max_tokens": "maxTokens",
|
|
7166
6869
|
"max_completion_tokens": "maxCompletionTokens",
|
|
7167
|
-
"top_logprobs": "topLogprobs",
|
|
7168
6870
|
"presence_penalty": "presencePenalty",
|
|
7169
6871
|
"response_format": "responseFormat",
|
|
7170
6872
|
"reasoning_effort": "reasoningEffort",
|
|
7171
|
-
"stream_options": "streamOptions",
|
|
7172
6873
|
"top_p": "topP",
|
|
7173
6874
|
"top_k": "topK",
|
|
7174
6875
|
"tool_choice": "toolChoice",
|
|
@@ -7194,9 +6895,9 @@ export function updateAgentFallbackModelConfigurationAgentsParametersFromJSON(
|
|
|
7194
6895
|
}
|
|
7195
6896
|
|
|
7196
6897
|
/** @internal */
|
|
7197
|
-
export const
|
|
6898
|
+
export const UpdateAgentFallbackModelConfigurationAgentsRetry$inboundSchema:
|
|
7198
6899
|
z.ZodType<
|
|
7199
|
-
|
|
6900
|
+
UpdateAgentFallbackModelConfigurationAgentsRetry,
|
|
7200
6901
|
z.ZodTypeDef,
|
|
7201
6902
|
unknown
|
|
7202
6903
|
> = z.object({
|
|
@@ -7208,18 +6909,19 @@ export const UpdateAgentFallbackModelConfigurationAgentsResponseRetry$inboundSch
|
|
|
7208
6909
|
});
|
|
7209
6910
|
});
|
|
7210
6911
|
|
|
7211
|
-
export function
|
|
6912
|
+
export function updateAgentFallbackModelConfigurationAgentsRetryFromJSON(
|
|
7212
6913
|
jsonString: string,
|
|
7213
6914
|
): SafeParseResult<
|
|
7214
|
-
|
|
6915
|
+
UpdateAgentFallbackModelConfigurationAgentsRetry,
|
|
7215
6916
|
SDKValidationError
|
|
7216
6917
|
> {
|
|
7217
6918
|
return safeParse(
|
|
7218
6919
|
jsonString,
|
|
7219
6920
|
(x) =>
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
6921
|
+
UpdateAgentFallbackModelConfigurationAgentsRetry$inboundSchema.parse(
|
|
6922
|
+
JSON.parse(x),
|
|
6923
|
+
),
|
|
6924
|
+
`Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsRetry' from JSON`,
|
|
7223
6925
|
);
|
|
7224
6926
|
}
|
|
7225
6927
|
|
|
@@ -7235,7 +6937,7 @@ export const UpdateAgentFallbackModelConfigurationAgents2$inboundSchema:
|
|
|
7235
6937
|
UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
7236
6938
|
).optional(),
|
|
7237
6939
|
retry: z.lazy(() =>
|
|
7238
|
-
|
|
6940
|
+
UpdateAgentFallbackModelConfigurationAgentsRetry$inboundSchema
|
|
7239
6941
|
).optional(),
|
|
7240
6942
|
});
|
|
7241
6943
|
|
|
@@ -7256,9 +6958,9 @@ export function updateAgentFallbackModelConfigurationAgents2FromJSON(
|
|
|
7256
6958
|
}
|
|
7257
6959
|
|
|
7258
6960
|
/** @internal */
|
|
7259
|
-
export const
|
|
6961
|
+
export const UpdateAgentResponseBodyFallbackModelConfiguration$inboundSchema:
|
|
7260
6962
|
z.ZodType<
|
|
7261
|
-
|
|
6963
|
+
UpdateAgentResponseBodyFallbackModelConfiguration,
|
|
7262
6964
|
z.ZodTypeDef,
|
|
7263
6965
|
unknown
|
|
7264
6966
|
> = z.union([
|
|
@@ -7266,32 +6968,33 @@ export const UpdateAgentAgentsFallbackModelConfiguration$inboundSchema:
|
|
|
7266
6968
|
z.string(),
|
|
7267
6969
|
]);
|
|
7268
6970
|
|
|
7269
|
-
export function
|
|
6971
|
+
export function updateAgentResponseBodyFallbackModelConfigurationFromJSON(
|
|
7270
6972
|
jsonString: string,
|
|
7271
6973
|
): SafeParseResult<
|
|
7272
|
-
|
|
6974
|
+
UpdateAgentResponseBodyFallbackModelConfiguration,
|
|
7273
6975
|
SDKValidationError
|
|
7274
6976
|
> {
|
|
7275
6977
|
return safeParse(
|
|
7276
6978
|
jsonString,
|
|
7277
6979
|
(x) =>
|
|
7278
|
-
|
|
6980
|
+
UpdateAgentResponseBodyFallbackModelConfiguration$inboundSchema.parse(
|
|
7279
6981
|
JSON.parse(x),
|
|
7280
6982
|
),
|
|
7281
|
-
`Failed to parse '
|
|
6983
|
+
`Failed to parse 'UpdateAgentResponseBodyFallbackModelConfiguration' from JSON`,
|
|
7282
6984
|
);
|
|
7283
6985
|
}
|
|
7284
6986
|
|
|
7285
6987
|
/** @internal */
|
|
7286
|
-
export const
|
|
7287
|
-
|
|
6988
|
+
export const UpdateAgentResponseBodyModel$inboundSchema: z.ZodType<
|
|
6989
|
+
UpdateAgentResponseBodyModel,
|
|
7288
6990
|
z.ZodTypeDef,
|
|
7289
6991
|
unknown
|
|
7290
6992
|
> = z.object({
|
|
7291
6993
|
id: z.string(),
|
|
7292
6994
|
integration_id: z.nullable(z.string()).optional(),
|
|
7293
|
-
parameters: z.lazy(() =>
|
|
7294
|
-
|
|
6995
|
+
parameters: z.lazy(() => UpdateAgentResponseBodyParameters$inboundSchema)
|
|
6996
|
+
.optional(),
|
|
6997
|
+
retry: z.lazy(() => UpdateAgentResponseBodyRetry$inboundSchema).optional(),
|
|
7295
6998
|
fallback_models: z.nullable(
|
|
7296
6999
|
z.array(z.union([
|
|
7297
7000
|
z.lazy(() => UpdateAgentFallbackModelConfigurationAgents2$inboundSchema),
|
|
@@ -7305,137 +7008,87 @@ export const UpdateAgentModel$inboundSchema: z.ZodType<
|
|
|
7305
7008
|
});
|
|
7306
7009
|
});
|
|
7307
7010
|
|
|
7308
|
-
export function
|
|
7309
|
-
jsonString: string,
|
|
7310
|
-
): SafeParseResult<UpdateAgentModel, SDKValidationError> {
|
|
7311
|
-
return safeParse(
|
|
7312
|
-
jsonString,
|
|
7313
|
-
(x) => UpdateAgentModel$inboundSchema.parse(JSON.parse(x)),
|
|
7314
|
-
`Failed to parse 'UpdateAgentModel' from JSON`,
|
|
7315
|
-
);
|
|
7316
|
-
}
|
|
7317
|
-
|
|
7318
|
-
/** @internal */
|
|
7319
|
-
export const UpdateAgentAgentsTeamOfAgents$inboundSchema: z.ZodType<
|
|
7320
|
-
UpdateAgentAgentsTeamOfAgents,
|
|
7321
|
-
z.ZodTypeDef,
|
|
7322
|
-
unknown
|
|
7323
|
-
> = z.object({
|
|
7324
|
-
key: z.string(),
|
|
7325
|
-
role: z.string().optional(),
|
|
7326
|
-
});
|
|
7327
|
-
|
|
7328
|
-
export function updateAgentAgentsTeamOfAgentsFromJSON(
|
|
7329
|
-
jsonString: string,
|
|
7330
|
-
): SafeParseResult<UpdateAgentAgentsTeamOfAgents, SDKValidationError> {
|
|
7331
|
-
return safeParse(
|
|
7332
|
-
jsonString,
|
|
7333
|
-
(x) => UpdateAgentAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
7334
|
-
`Failed to parse 'UpdateAgentAgentsTeamOfAgents' from JSON`,
|
|
7335
|
-
);
|
|
7336
|
-
}
|
|
7337
|
-
|
|
7338
|
-
/** @internal */
|
|
7339
|
-
export const UpdateAgentMetrics$inboundSchema: z.ZodType<
|
|
7340
|
-
UpdateAgentMetrics,
|
|
7341
|
-
z.ZodTypeDef,
|
|
7342
|
-
unknown
|
|
7343
|
-
> = z.object({
|
|
7344
|
-
total_cost: z.number().default(0),
|
|
7345
|
-
}).transform((v) => {
|
|
7346
|
-
return remap$(v, {
|
|
7347
|
-
"total_cost": "totalCost",
|
|
7348
|
-
});
|
|
7349
|
-
});
|
|
7350
|
-
|
|
7351
|
-
export function updateAgentMetricsFromJSON(
|
|
7352
|
-
jsonString: string,
|
|
7353
|
-
): SafeParseResult<UpdateAgentMetrics, SDKValidationError> {
|
|
7354
|
-
return safeParse(
|
|
7355
|
-
jsonString,
|
|
7356
|
-
(x) => UpdateAgentMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
7357
|
-
`Failed to parse 'UpdateAgentMetrics' from JSON`,
|
|
7358
|
-
);
|
|
7359
|
-
}
|
|
7360
|
-
|
|
7361
|
-
/** @internal */
|
|
7362
|
-
export const UpdateAgentAgentsKnowledgeBases$inboundSchema: z.ZodType<
|
|
7363
|
-
UpdateAgentAgentsKnowledgeBases,
|
|
7364
|
-
z.ZodTypeDef,
|
|
7365
|
-
unknown
|
|
7366
|
-
> = z.object({
|
|
7367
|
-
knowledge_id: z.string(),
|
|
7368
|
-
}).transform((v) => {
|
|
7369
|
-
return remap$(v, {
|
|
7370
|
-
"knowledge_id": "knowledgeId",
|
|
7371
|
-
});
|
|
7372
|
-
});
|
|
7373
|
-
|
|
7374
|
-
export function updateAgentAgentsKnowledgeBasesFromJSON(
|
|
7011
|
+
export function updateAgentResponseBodyModelFromJSON(
|
|
7375
7012
|
jsonString: string,
|
|
7376
|
-
): SafeParseResult<
|
|
7013
|
+
): SafeParseResult<UpdateAgentResponseBodyModel, SDKValidationError> {
|
|
7377
7014
|
return safeParse(
|
|
7378
7015
|
jsonString,
|
|
7379
|
-
(x) =>
|
|
7380
|
-
`Failed to parse '
|
|
7016
|
+
(x) => UpdateAgentResponseBodyModel$inboundSchema.parse(JSON.parse(x)),
|
|
7017
|
+
`Failed to parse 'UpdateAgentResponseBodyModel' from JSON`,
|
|
7381
7018
|
);
|
|
7382
7019
|
}
|
|
7383
7020
|
|
|
7384
7021
|
/** @internal */
|
|
7385
|
-
export const
|
|
7386
|
-
|
|
7387
|
-
> = z.nativeEnum(UpdateAgentSource);
|
|
7388
|
-
|
|
7389
|
-
/** @internal */
|
|
7390
|
-
export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
|
|
7391
|
-
UpdateAgentResponseBody,
|
|
7022
|
+
export const UpdateAgentResponseBody1$inboundSchema: z.ZodType<
|
|
7023
|
+
UpdateAgentResponseBody1,
|
|
7392
7024
|
z.ZodTypeDef,
|
|
7393
7025
|
unknown
|
|
7394
7026
|
> = z.object({
|
|
7395
7027
|
_id: z.string(),
|
|
7396
7028
|
key: z.string(),
|
|
7397
7029
|
display_name: z.string().optional(),
|
|
7398
|
-
workspace_id: z.string(),
|
|
7399
7030
|
project_id: z.string(),
|
|
7400
7031
|
created_by_id: z.nullable(z.string()).optional(),
|
|
7401
7032
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
7402
7033
|
created: z.string().optional(),
|
|
7403
7034
|
updated: z.string().optional(),
|
|
7404
|
-
|
|
7405
|
-
description: z.string(),
|
|
7406
|
-
system_prompt: z.string().optional(),
|
|
7407
|
-
instructions: z.string(),
|
|
7408
|
-
status: UpdateAgentStatus$inboundSchema,
|
|
7409
|
-
settings: z.lazy(() => UpdateAgentAgentsSettings$inboundSchema).optional(),
|
|
7410
|
-
model: z.lazy(() => UpdateAgentModel$inboundSchema),
|
|
7035
|
+
status: UpdateAgentResponseBodyStatus$inboundSchema,
|
|
7411
7036
|
version_hash: z.string().optional(),
|
|
7412
7037
|
path: z.string(),
|
|
7413
|
-
memory_stores: z.array(z.string()),
|
|
7038
|
+
memory_stores: z.array(z.string()).optional(),
|
|
7414
7039
|
team_of_agents: z.array(
|
|
7415
|
-
z.lazy(() =>
|
|
7416
|
-
),
|
|
7417
|
-
metrics: z.lazy(() =>
|
|
7040
|
+
z.lazy(() => UpdateAgentResponseBodyTeamOfAgents$inboundSchema),
|
|
7041
|
+
).optional(),
|
|
7042
|
+
metrics: z.lazy(() => UpdateAgentResponseBodyMetrics$inboundSchema)
|
|
7043
|
+
.optional(),
|
|
7418
7044
|
variables: z.record(z.any()).optional(),
|
|
7419
7045
|
knowledge_bases: z.array(
|
|
7420
|
-
z.lazy(() =>
|
|
7046
|
+
z.lazy(() => UpdateAgentResponseBodyKnowledgeBases$inboundSchema),
|
|
7421
7047
|
).optional(),
|
|
7422
|
-
source:
|
|
7048
|
+
source: UpdateAgentResponseBodySource$inboundSchema.optional(),
|
|
7049
|
+
type: z.literal("internal"),
|
|
7050
|
+
role: z.string(),
|
|
7051
|
+
description: z.string(),
|
|
7052
|
+
system_prompt: z.string().optional(),
|
|
7053
|
+
instructions: z.string(),
|
|
7054
|
+
settings: z.lazy(() => UpdateAgentResponseBodySettings$inboundSchema)
|
|
7055
|
+
.optional(),
|
|
7056
|
+
model: z.lazy(() => UpdateAgentResponseBodyModel$inboundSchema),
|
|
7423
7057
|
}).transform((v) => {
|
|
7424
7058
|
return remap$(v, {
|
|
7425
7059
|
"_id": "id",
|
|
7426
7060
|
"display_name": "displayName",
|
|
7427
|
-
"workspace_id": "workspaceId",
|
|
7428
7061
|
"project_id": "projectId",
|
|
7429
7062
|
"created_by_id": "createdById",
|
|
7430
7063
|
"updated_by_id": "updatedById",
|
|
7431
|
-
"system_prompt": "systemPrompt",
|
|
7432
7064
|
"version_hash": "versionHash",
|
|
7433
7065
|
"memory_stores": "memoryStores",
|
|
7434
7066
|
"team_of_agents": "teamOfAgents",
|
|
7435
7067
|
"knowledge_bases": "knowledgeBases",
|
|
7068
|
+
"system_prompt": "systemPrompt",
|
|
7436
7069
|
});
|
|
7437
7070
|
});
|
|
7438
7071
|
|
|
7072
|
+
export function updateAgentResponseBody1FromJSON(
|
|
7073
|
+
jsonString: string,
|
|
7074
|
+
): SafeParseResult<UpdateAgentResponseBody1, SDKValidationError> {
|
|
7075
|
+
return safeParse(
|
|
7076
|
+
jsonString,
|
|
7077
|
+
(x) => UpdateAgentResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
7078
|
+
`Failed to parse 'UpdateAgentResponseBody1' from JSON`,
|
|
7079
|
+
);
|
|
7080
|
+
}
|
|
7081
|
+
|
|
7082
|
+
/** @internal */
|
|
7083
|
+
export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
|
|
7084
|
+
UpdateAgentResponseBody,
|
|
7085
|
+
z.ZodTypeDef,
|
|
7086
|
+
unknown
|
|
7087
|
+
> = z.union([
|
|
7088
|
+
z.lazy(() => UpdateAgentResponseBody1$inboundSchema),
|
|
7089
|
+
z.lazy(() => UpdateAgentResponseBody2$inboundSchema),
|
|
7090
|
+
]);
|
|
7091
|
+
|
|
7439
7092
|
export function updateAgentResponseBodyFromJSON(
|
|
7440
7093
|
jsonString: string,
|
|
7441
7094
|
): SafeParseResult<UpdateAgentResponseBody, SDKValidationError> {
|