@orq-ai/node 4.5.0-rc.4 → 4.5.0-rc.40
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/README.md +38 -28
- package/funcs/agentsList.d.ts +1 -1
- package/funcs/agentsList.d.ts.map +1 -1
- package/funcs/agentsList.js +5 -3
- package/funcs/agentsList.js.map +1 -1
- package/funcs/agentsPostV2AgentsA2a.d.ts +18 -0
- package/funcs/agentsPostV2AgentsA2a.d.ts.map +1 -0
- package/funcs/agentsPostV2AgentsA2a.js +120 -0
- package/funcs/agentsPostV2AgentsA2a.js.map +1 -0
- package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts +18 -0
- package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts.map +1 -0
- package/funcs/agentsPostV2AgentsKeyCardRefresh.js +124 -0
- package/funcs/agentsPostV2AgentsKeyCardRefresh.js.map +1 -0
- package/funcs/agentsResponsesGet.d.ts +19 -0
- package/funcs/agentsResponsesGet.d.ts.map +1 -0
- package/funcs/agentsResponsesGet.js +128 -0
- package/funcs/agentsResponsesGet.js.map +1 -0
- package/funcs/agentsStream.js +4 -2
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/agentsStreamRun.js +4 -2
- package/funcs/agentsStreamRun.js.map +1 -1
- package/funcs/agentsUpdate.d.ts +1 -1
- package/funcs/agentsUpdate.d.ts.map +1 -1
- package/funcs/agentsUpdate.js.map +1 -1
- package/funcs/deploymentsStream.js +4 -2
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/filesCreate.d.ts +1 -1
- package/funcs/filesCreate.js +8 -1
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/routerAudioTranscriptionsCreate.js +7 -0
- package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
- package/funcs/routerAudioTranslationsCreate.js +7 -0
- package/funcs/routerAudioTranslationsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/event-streams.d.ts +5 -0
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +0 -1
- package/lib/matchers.js.map +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +1 -2
- package/lib/security.js.map +1 -1
- package/models/components/createagentresponse.d.ts +5 -0
- package/models/components/createagentresponse.d.ts.map +1 -1
- package/models/components/createagentresponse.js +2 -0
- package/models/components/createagentresponse.js.map +1 -1
- package/models/components/extendedmessage.d.ts +71 -0
- package/models/components/extendedmessage.d.ts.map +1 -0
- package/models/components/extendedmessage.js +98 -0
- package/models/components/extendedmessage.js.map +1 -0
- package/models/components/getagentresponse.d.ts +157 -0
- package/models/components/getagentresponse.d.ts.map +1 -0
- package/models/components/getagentresponse.js +175 -0
- package/models/components/getagentresponse.js.map +1 -0
- package/models/components/index.d.ts +3 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -0
- package/models/components/index.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsedoneevent.d.ts +5 -0
- package/models/components/responsedoneevent.d.ts.map +1 -1
- package/models/components/responsedoneevent.js +2 -0
- package/models/components/responsedoneevent.js.map +1 -1
- package/models/components/responsestartedevent.d.ts +5 -0
- package/models/components/responsestartedevent.d.ts.map +1 -1
- package/models/components/responsestartedevent.js +2 -0
- package/models/components/responsestartedevent.js.map +1 -1
- package/models/components/telemetry.d.ts +20 -0
- package/models/components/telemetry.d.ts.map +1 -0
- package/models/components/telemetry.js +57 -0
- package/models/components/telemetry.js.map +1 -0
- package/models/errors/index.d.ts +2 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/postv2agentsa2a.d.ts +43 -0
- package/models/errors/postv2agentsa2a.d.ts.map +1 -0
- package/models/errors/postv2agentsa2a.js +94 -0
- package/models/errors/postv2agentsa2a.js.map +1 -0
- package/models/errors/postv2agentskeycardrefresh.d.ts +43 -0
- package/models/errors/postv2agentskeycardrefresh.d.ts.map +1 -0
- package/models/errors/postv2agentskeycardrefresh.js +94 -0
- package/models/errors/postv2agentskeycardrefresh.js.map +1 -0
- package/models/operations/createagentrequest.d.ts +324 -601
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +308 -454
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +22 -1
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +12 -2
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createannotation.d.ts +1 -1
- package/models/operations/createannotation.d.ts.map +1 -1
- package/models/operations/createannotation.js +4 -0
- package/models/operations/createannotation.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +15 -2
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +3 -1
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +6 -2
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +2 -1
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createfeedback.d.ts +2 -2
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createknowledge.d.ts +7 -7
- package/models/operations/createknowledge.d.ts.map +1 -1
- package/models/operations/createknowledge.js +11 -11
- package/models/operations/createknowledge.js.map +1 -1
- package/models/operations/createprompt.d.ts +31 -30
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +32 -29
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createresponse.d.ts.map +1 -1
- package/models/operations/createresponse.js +2 -1
- package/models/operations/createresponse.js.map +1 -1
- package/models/operations/createtool.d.ts +39 -39
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +52 -49
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +15 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +17 -1
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +1 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +1 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +15 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +17 -1
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getagentresponse.d.ts +20 -0
- package/models/operations/getagentresponse.d.ts.map +1 -0
- package/models/operations/getagentresponse.js +56 -0
- package/models/operations/getagentresponse.js.map +1 -0
- package/models/operations/getallprompts.d.ts +1 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.d.ts +39 -39
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +49 -47
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getevals.js +16 -16
- package/models/operations/getoneprompt.d.ts +1 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +26 -1
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +12 -1
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.d.ts +328 -346
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +314 -308
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/listknowledgebases.d.ts +8 -8
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +13 -15
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +1 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/postv2agentsa2a.d.ts +119 -0
- package/models/operations/postv2agentsa2a.d.ts.map +1 -0
- package/models/operations/postv2agentsa2a.js +147 -0
- package/models/operations/postv2agentsa2a.js.map +1 -0
- package/models/operations/postv2agentskeycardrefresh.d.ts +35 -0
- package/models/operations/postv2agentskeycardrefresh.d.ts.map +1 -0
- package/models/operations/postv2agentskeycardrefresh.js +71 -0
- package/models/operations/postv2agentskeycardrefresh.js.map +1 -0
- package/models/operations/retrieveagentrequest.d.ts +313 -349
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +307 -311
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +27 -265
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +26 -163
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +22 -1
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +11 -1
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +13 -255
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +15 -152
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +407 -614
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +364 -472
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.d.ts +48 -0
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +60 -20
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatememorystore.d.ts +2 -43
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +2 -45
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +1 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +1 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.d.ts +60 -0
- package/models/operations/updatetool.d.ts.map +1 -1
- package/models/operations/updatetool.js +63 -9
- package/models/operations/updatetool.js.map +1 -1
- package/package.json +1 -1
- package/sdk/agents.d.ts +16 -2
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +22 -2
- package/sdk/agents.js.map +1 -1
- package/sdk/files.d.ts +1 -1
- package/sdk/files.js +1 -1
- package/sdk/responses.d.ts +8 -0
- package/sdk/responses.d.ts.map +1 -1
- package/sdk/responses.js +10 -0
- package/sdk/responses.js.map +1 -1
- package/src/funcs/agentsList.ts +5 -0
- package/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
- package/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
- package/src/funcs/agentsResponsesGet.ts +182 -0
- package/src/funcs/agentsStream.ts +4 -1
- package/src/funcs/agentsStreamRun.ts +4 -1
- package/src/funcs/agentsUpdate.ts +2 -2
- package/src/funcs/deploymentsStream.ts +4 -1
- package/src/funcs/filesCreate.ts +12 -1
- package/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
- package/src/funcs/routerAudioTranslationsCreate.ts +11 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +10 -1
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +1 -2
- package/src/models/components/createagentresponse.ts +6 -0
- package/src/models/components/extendedmessage.ts +146 -0
- package/src/models/components/getagentresponse.ts +348 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsedoneevent.ts +6 -0
- package/src/models/components/responsestartedevent.ts +6 -0
- package/src/models/components/telemetry.ts +48 -0
- package/src/models/errors/index.ts +2 -0
- package/src/models/errors/postv2agentsa2a.ts +96 -0
- package/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
- package/src/models/operations/createagentrequest.ts +755 -1212
- package/src/models/operations/createagentresponserequest.ts +37 -2
- package/src/models/operations/createannotation.ts +5 -1
- package/src/models/operations/createchatcompletion.ts +14 -3
- package/src/models/operations/createcompletion.ts +8 -3
- 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/createfeedback.ts +2 -2
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createknowledge.ts +19 -17
- package/src/models/operations/createprompt.ts +56 -66
- package/src/models/operations/createresponse.ts +2 -1
- package/src/models/operations/createtool.ts +103 -91
- package/src/models/operations/deploymentinvoke.ts +39 -0
- package/src/models/operations/deployments.ts +1 -0
- package/src/models/operations/deploymentstream.ts +39 -0
- 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/getagentresponse.ts +46 -0
- package/src/models/operations/getallprompts.ts +1 -0
- package/src/models/operations/getalltools.ts +93 -87
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getoneprompt.ts +1 -0
- package/src/models/operations/getpromptversion.ts +1 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/invokeagent.ts +45 -1
- package/src/models/operations/listagents.ts +751 -787
- 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/listknowledgebases.ts +72 -64
- package/src/models/operations/listpromptversions.ts +1 -0
- package/src/models/operations/postv2agentsa2a.ts +252 -0
- package/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
- package/src/models/operations/retrieveagentrequest.ts +962 -857
- 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 +69 -493
- package/src/models/operations/streamagent.ts +40 -1
- package/src/models/operations/streamrunagent.ts +36 -493
- package/src/models/operations/updateagent.ts +1002 -1319
- 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 +102 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatememorystore.ts +3 -61
- package/src/models/operations/updateprompt.ts +1 -0
- package/src/models/operations/updatetool.ts +121 -7
- package/src/sdk/agents.ts +39 -1
- package/src/sdk/files.ts +1 -1
- package/src/sdk/responses.ts +19 -0
|
@@ -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,46 @@ 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
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
* Update A2A agent configuration (only applicable to A2A agents)
|
|
1428
|
+
*/
|
|
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
|
+
/**
|
|
1445
|
+
* Optional semantic version bump to create after a successful publish.
|
|
1446
|
+
*/
|
|
1447
|
+
export const VersionIncrement = {
|
|
1448
|
+
Major: "major",
|
|
1449
|
+
Minor: "minor",
|
|
1450
|
+
Patch: "patch",
|
|
1451
|
+
} as const;
|
|
1615
1452
|
/**
|
|
1616
|
-
*
|
|
1453
|
+
* Optional semantic version bump to create after a successful publish.
|
|
1617
1454
|
*/
|
|
1618
|
-
export type
|
|
1455
|
+
export type VersionIncrement = ClosedEnum<typeof VersionIncrement>;
|
|
1456
|
+
|
|
1457
|
+
export type UpdateAgentRequestBody = {
|
|
1619
1458
|
key?: string | undefined;
|
|
1620
1459
|
displayName?: string | undefined;
|
|
1621
1460
|
projectId?: string | undefined;
|
|
@@ -1663,6 +1502,18 @@ export type UpdateAgentUpdateAgentRequest = {
|
|
|
1663
1502
|
* Extracted variables from agent instructions
|
|
1664
1503
|
*/
|
|
1665
1504
|
variables?: { [k: string]: any } | undefined;
|
|
1505
|
+
/**
|
|
1506
|
+
* Update A2A agent configuration (only applicable to A2A agents)
|
|
1507
|
+
*/
|
|
1508
|
+
a2a?: UpdateA2AConfiguration | undefined;
|
|
1509
|
+
/**
|
|
1510
|
+
* Optional semantic version bump to create after a successful publish.
|
|
1511
|
+
*/
|
|
1512
|
+
versionIncrement?: VersionIncrement | undefined;
|
|
1513
|
+
/**
|
|
1514
|
+
* Optional description stored with the created version.
|
|
1515
|
+
*/
|
|
1516
|
+
versionDescription?: string | undefined;
|
|
1666
1517
|
};
|
|
1667
1518
|
|
|
1668
1519
|
export type UpdateAgentRequest = {
|
|
@@ -1670,13 +1521,13 @@ export type UpdateAgentRequest = {
|
|
|
1670
1521
|
* The unique key of the agent to update
|
|
1671
1522
|
*/
|
|
1672
1523
|
agentKey: string;
|
|
1673
|
-
requestBody:
|
|
1524
|
+
requestBody: UpdateAgentRequestBody;
|
|
1674
1525
|
};
|
|
1675
1526
|
|
|
1676
1527
|
/**
|
|
1677
1528
|
* 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
1529
|
*/
|
|
1679
|
-
export const
|
|
1530
|
+
export const UpdateAgentResponseBodyAgentsStatus = {
|
|
1680
1531
|
Live: "live",
|
|
1681
1532
|
Draft: "draft",
|
|
1682
1533
|
Pending: "pending",
|
|
@@ -1685,194 +1536,329 @@ export const UpdateAgentStatus = {
|
|
|
1685
1536
|
/**
|
|
1686
1537
|
* 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
1538
|
*/
|
|
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
|
|
1539
|
+
export type UpdateAgentResponseBodyAgentsStatus = ClosedEnum<
|
|
1540
|
+
typeof UpdateAgentResponseBodyAgentsStatus
|
|
1703
1541
|
>;
|
|
1704
1542
|
|
|
1705
|
-
export type
|
|
1706
|
-
/**
|
|
1707
|
-
* The argument of the tool call to evaluate
|
|
1708
|
-
*/
|
|
1709
|
-
condition: string;
|
|
1543
|
+
export type UpdateAgentResponseBodyAgentsTeamOfAgents = {
|
|
1710
1544
|
/**
|
|
1711
|
-
* The
|
|
1545
|
+
* The unique key of the agent within the workspace
|
|
1712
1546
|
*/
|
|
1713
|
-
|
|
1547
|
+
key: string;
|
|
1714
1548
|
/**
|
|
1715
|
-
* The
|
|
1549
|
+
* 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.
|
|
1716
1550
|
*/
|
|
1717
|
-
|
|
1551
|
+
role?: string | undefined;
|
|
1718
1552
|
};
|
|
1719
1553
|
|
|
1720
|
-
export type
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
/**
|
|
1726
|
-
* Optional tool key for custom tools
|
|
1727
|
-
*/
|
|
1728
|
-
key?: string | undefined;
|
|
1729
|
-
actionType: string;
|
|
1730
|
-
displayName?: string | undefined;
|
|
1731
|
-
/**
|
|
1732
|
-
* Optional tool description
|
|
1733
|
-
*/
|
|
1734
|
-
description?: string | undefined;
|
|
1735
|
-
requiresApproval: boolean;
|
|
1736
|
-
/**
|
|
1737
|
-
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
1738
|
-
*/
|
|
1739
|
-
toolId?: string | undefined;
|
|
1740
|
-
conditions?: Array<UpdateAgentConditions> | undefined;
|
|
1554
|
+
export type UpdateAgentResponseBodyAgentsMetrics = {
|
|
1555
|
+
totalCost: number;
|
|
1556
|
+
};
|
|
1557
|
+
|
|
1558
|
+
export type UpdateAgentResponseBodyAgentsKnowledgeBases = {
|
|
1741
1559
|
/**
|
|
1742
|
-
*
|
|
1560
|
+
* Unique identifier of the knowledge base to search
|
|
1743
1561
|
*/
|
|
1744
|
-
|
|
1562
|
+
knowledgeId: string;
|
|
1745
1563
|
};
|
|
1746
1564
|
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
Input: "input",
|
|
1752
|
-
Output: "output",
|
|
1565
|
+
export const UpdateAgentResponseBodyAgentsSource = {
|
|
1566
|
+
Internal: "internal",
|
|
1567
|
+
External: "external",
|
|
1568
|
+
Experiment: "experiment",
|
|
1753
1569
|
} as const;
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
*/
|
|
1757
|
-
export type UpdateAgentAgentsResponseExecuteOn = ClosedEnum<
|
|
1758
|
-
typeof UpdateAgentAgentsResponseExecuteOn
|
|
1570
|
+
export type UpdateAgentResponseBodyAgentsSource = ClosedEnum<
|
|
1571
|
+
typeof UpdateAgentResponseBodyAgentsSource
|
|
1759
1572
|
>;
|
|
1760
1573
|
|
|
1761
|
-
export type
|
|
1762
|
-
/**
|
|
1763
|
-
* Unique key or identifier of the evaluator
|
|
1764
|
-
*/
|
|
1765
|
-
id: string;
|
|
1766
|
-
/**
|
|
1767
|
-
* 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.
|
|
1768
|
-
*/
|
|
1769
|
-
sampleRate: number;
|
|
1574
|
+
export type UpdateAgentResponseBodyHeaders = {
|
|
1770
1575
|
/**
|
|
1771
|
-
*
|
|
1576
|
+
* 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.
|
|
1772
1577
|
*/
|
|
1773
|
-
|
|
1578
|
+
value: string;
|
|
1579
|
+
encrypted: boolean;
|
|
1774
1580
|
};
|
|
1775
1581
|
|
|
1776
1582
|
/**
|
|
1777
|
-
*
|
|
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).
|
|
1583
|
+
* A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
|
|
1785
1584
|
*/
|
|
1786
|
-
export type
|
|
1787
|
-
typeof UpdateAgentAgentsResponse200ExecuteOn
|
|
1788
|
-
>;
|
|
1789
|
-
|
|
1790
|
-
export type UpdateAgentAgentsGuardrails = {
|
|
1585
|
+
export type UpdateAgentResponseBodyA2AAgentConfiguration = {
|
|
1791
1586
|
/**
|
|
1792
|
-
*
|
|
1587
|
+
* The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
|
|
1793
1588
|
*/
|
|
1794
|
-
|
|
1589
|
+
agentUrl: string;
|
|
1795
1590
|
/**
|
|
1796
|
-
*
|
|
1591
|
+
* Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
|
|
1797
1592
|
*/
|
|
1798
|
-
|
|
1593
|
+
cardUrl?: string | undefined;
|
|
1799
1594
|
/**
|
|
1800
|
-
*
|
|
1595
|
+
* 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.
|
|
1596
|
+
*/
|
|
1597
|
+
headers?: { [k: string]: UpdateAgentResponseBodyHeaders } | undefined;
|
|
1598
|
+
/**
|
|
1599
|
+
* Cached agent card from discovery. Refreshed periodically.
|
|
1801
1600
|
*/
|
|
1802
|
-
|
|
1601
|
+
cachedCard?: any | undefined;
|
|
1803
1602
|
};
|
|
1804
1603
|
|
|
1805
|
-
export type
|
|
1604
|
+
export type UpdateAgentResponseBody2 = {
|
|
1605
|
+
id: string;
|
|
1806
1606
|
/**
|
|
1807
|
-
*
|
|
1607
|
+
* Unique identifier for the agent within the workspace
|
|
1808
1608
|
*/
|
|
1809
|
-
|
|
1609
|
+
key: string;
|
|
1610
|
+
displayName?: string | undefined;
|
|
1611
|
+
projectId: string;
|
|
1612
|
+
createdById?: string | null | undefined;
|
|
1613
|
+
updatedById?: string | null | undefined;
|
|
1614
|
+
created?: string | undefined;
|
|
1615
|
+
updated?: string | undefined;
|
|
1810
1616
|
/**
|
|
1811
|
-
*
|
|
1617
|
+
* 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.
|
|
1812
1618
|
*/
|
|
1813
|
-
|
|
1619
|
+
status: UpdateAgentResponseBodyAgentsStatus;
|
|
1620
|
+
versionHash?: string | undefined;
|
|
1814
1621
|
/**
|
|
1815
|
-
*
|
|
1622
|
+
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
1623
|
+
*
|
|
1624
|
+
* @remarks
|
|
1625
|
+
*
|
|
1626
|
+
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
1627
|
+
*
|
|
1628
|
+
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
1816
1629
|
*/
|
|
1817
|
-
|
|
1630
|
+
path: string;
|
|
1818
1631
|
/**
|
|
1819
|
-
*
|
|
1632
|
+
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
1820
1633
|
*/
|
|
1821
|
-
|
|
1822
|
-
tools?: Array<UpdateAgentTools> | undefined;
|
|
1634
|
+
memoryStores?: Array<string> | undefined;
|
|
1823
1635
|
/**
|
|
1824
|
-
*
|
|
1636
|
+
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
1825
1637
|
*/
|
|
1826
|
-
|
|
1638
|
+
teamOfAgents?: Array<UpdateAgentResponseBodyAgentsTeamOfAgents> | undefined;
|
|
1639
|
+
metrics?: UpdateAgentResponseBodyAgentsMetrics | undefined;
|
|
1827
1640
|
/**
|
|
1828
|
-
*
|
|
1641
|
+
* Extracted variables from agent instructions
|
|
1829
1642
|
*/
|
|
1830
|
-
|
|
1831
|
-
|
|
1643
|
+
variables?: { [k: string]: any } | undefined;
|
|
1644
|
+
/**
|
|
1645
|
+
* Agent knowledge bases reference
|
|
1646
|
+
*/
|
|
1647
|
+
knowledgeBases?:
|
|
1648
|
+
| Array<UpdateAgentResponseBodyAgentsKnowledgeBases>
|
|
1649
|
+
| undefined;
|
|
1650
|
+
source?: UpdateAgentResponseBodyAgentsSource | undefined;
|
|
1651
|
+
/**
|
|
1652
|
+
* External A2A-compliant agent
|
|
1653
|
+
*/
|
|
1654
|
+
type: "a2a";
|
|
1655
|
+
/**
|
|
1656
|
+
* Role fetched from agent card name or user-provided
|
|
1657
|
+
*/
|
|
1658
|
+
role: string;
|
|
1659
|
+
/**
|
|
1660
|
+
* Description fetched from agent card or user-provided
|
|
1661
|
+
*/
|
|
1662
|
+
description: string;
|
|
1663
|
+
systemPrompt?: string | undefined;
|
|
1664
|
+
/**
|
|
1665
|
+
* Instructions from agent card description or user-provided
|
|
1666
|
+
*/
|
|
1667
|
+
instructions: string;
|
|
1668
|
+
/**
|
|
1669
|
+
* A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
|
|
1670
|
+
*/
|
|
1671
|
+
a2a: UpdateAgentResponseBodyA2AAgentConfiguration;
|
|
1672
|
+
};
|
|
1832
1673
|
|
|
1833
1674
|
/**
|
|
1834
|
-
* The
|
|
1675
|
+
* 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
1676
|
*/
|
|
1836
|
-
export const
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
Nova: "nova",
|
|
1842
|
-
Shimmer: "shimmer",
|
|
1677
|
+
export const UpdateAgentResponseBodyStatus = {
|
|
1678
|
+
Live: "live",
|
|
1679
|
+
Draft: "draft",
|
|
1680
|
+
Pending: "pending",
|
|
1681
|
+
Published: "published",
|
|
1843
1682
|
} as const;
|
|
1844
1683
|
/**
|
|
1845
|
-
* The
|
|
1684
|
+
* 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
1685
|
*/
|
|
1847
|
-
export type
|
|
1686
|
+
export type UpdateAgentResponseBodyStatus = ClosedEnum<
|
|
1687
|
+
typeof UpdateAgentResponseBodyStatus
|
|
1688
|
+
>;
|
|
1689
|
+
|
|
1690
|
+
export type UpdateAgentResponseBodyTeamOfAgents = {
|
|
1691
|
+
/**
|
|
1692
|
+
* The unique key of the agent within the workspace
|
|
1693
|
+
*/
|
|
1694
|
+
key: string;
|
|
1695
|
+
/**
|
|
1696
|
+
* 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.
|
|
1697
|
+
*/
|
|
1698
|
+
role?: string | undefined;
|
|
1699
|
+
};
|
|
1700
|
+
|
|
1701
|
+
export type UpdateAgentResponseBodyMetrics = {
|
|
1702
|
+
totalCost: number;
|
|
1703
|
+
};
|
|
1704
|
+
|
|
1705
|
+
export type UpdateAgentResponseBodyKnowledgeBases = {
|
|
1706
|
+
/**
|
|
1707
|
+
* Unique identifier of the knowledge base to search
|
|
1708
|
+
*/
|
|
1709
|
+
knowledgeId: string;
|
|
1710
|
+
};
|
|
1711
|
+
|
|
1712
|
+
export const UpdateAgentResponseBodySource = {
|
|
1713
|
+
Internal: "internal",
|
|
1714
|
+
External: "external",
|
|
1715
|
+
Experiment: "experiment",
|
|
1716
|
+
} as const;
|
|
1717
|
+
export type UpdateAgentResponseBodySource = ClosedEnum<
|
|
1718
|
+
typeof UpdateAgentResponseBodySource
|
|
1719
|
+
>;
|
|
1848
1720
|
|
|
1849
1721
|
/**
|
|
1850
|
-
*
|
|
1722
|
+
* 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
1723
|
*/
|
|
1852
|
-
export const
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
Opus: "opus",
|
|
1857
|
-
Pcm16: "pcm16",
|
|
1724
|
+
export const UpdateAgentResponseBodyToolApprovalRequired = {
|
|
1725
|
+
All: "all",
|
|
1726
|
+
RespectTool: "respect_tool",
|
|
1727
|
+
None: "none",
|
|
1858
1728
|
} as const;
|
|
1859
1729
|
/**
|
|
1860
|
-
*
|
|
1730
|
+
* 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
1731
|
*/
|
|
1862
|
-
export type
|
|
1732
|
+
export type UpdateAgentResponseBodyToolApprovalRequired = ClosedEnum<
|
|
1733
|
+
typeof UpdateAgentResponseBodyToolApprovalRequired
|
|
1734
|
+
>;
|
|
1735
|
+
|
|
1736
|
+
export type UpdateAgentResponseBodyConditions = {
|
|
1737
|
+
/**
|
|
1738
|
+
* The argument of the tool call to evaluate
|
|
1739
|
+
*/
|
|
1740
|
+
condition: string;
|
|
1741
|
+
/**
|
|
1742
|
+
* The operator to use
|
|
1743
|
+
*/
|
|
1744
|
+
operator: string;
|
|
1745
|
+
/**
|
|
1746
|
+
* The value to compare against
|
|
1747
|
+
*/
|
|
1748
|
+
value: string;
|
|
1749
|
+
};
|
|
1750
|
+
|
|
1751
|
+
export type UpdateAgentResponseBodyTools = {
|
|
1752
|
+
/**
|
|
1753
|
+
* The id of the resource
|
|
1754
|
+
*/
|
|
1755
|
+
id: string;
|
|
1756
|
+
/**
|
|
1757
|
+
* Optional tool key for custom tools
|
|
1758
|
+
*/
|
|
1759
|
+
key?: string | undefined;
|
|
1760
|
+
actionType: string;
|
|
1761
|
+
displayName?: string | undefined;
|
|
1762
|
+
/**
|
|
1763
|
+
* Optional tool description
|
|
1764
|
+
*/
|
|
1765
|
+
description?: string | undefined;
|
|
1766
|
+
requiresApproval: boolean;
|
|
1767
|
+
/**
|
|
1768
|
+
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
1769
|
+
*/
|
|
1770
|
+
toolId?: string | undefined;
|
|
1771
|
+
conditions?: Array<UpdateAgentResponseBodyConditions> | undefined;
|
|
1772
|
+
/**
|
|
1773
|
+
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
1774
|
+
*/
|
|
1775
|
+
timeout: number;
|
|
1776
|
+
};
|
|
1863
1777
|
|
|
1864
1778
|
/**
|
|
1865
|
-
*
|
|
1779
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1866
1780
|
*/
|
|
1867
|
-
export
|
|
1781
|
+
export const UpdateAgentResponseBodyExecuteOn = {
|
|
1782
|
+
Input: "input",
|
|
1783
|
+
Output: "output",
|
|
1784
|
+
} as const;
|
|
1785
|
+
/**
|
|
1786
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1787
|
+
*/
|
|
1788
|
+
export type UpdateAgentResponseBodyExecuteOn = ClosedEnum<
|
|
1789
|
+
typeof UpdateAgentResponseBodyExecuteOn
|
|
1790
|
+
>;
|
|
1791
|
+
|
|
1792
|
+
export type UpdateAgentResponseBodyEvaluators = {
|
|
1868
1793
|
/**
|
|
1869
|
-
*
|
|
1794
|
+
* Unique key or identifier of the evaluator
|
|
1870
1795
|
*/
|
|
1871
|
-
|
|
1796
|
+
id: string;
|
|
1872
1797
|
/**
|
|
1873
|
-
*
|
|
1798
|
+
* 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.
|
|
1799
|
+
*/
|
|
1800
|
+
sampleRate: number;
|
|
1801
|
+
/**
|
|
1802
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1803
|
+
*/
|
|
1804
|
+
executeOn: UpdateAgentResponseBodyExecuteOn;
|
|
1805
|
+
};
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1809
|
+
*/
|
|
1810
|
+
export const UpdateAgentResponseBodyAgentsExecuteOn = {
|
|
1811
|
+
Input: "input",
|
|
1812
|
+
Output: "output",
|
|
1813
|
+
} as const;
|
|
1814
|
+
/**
|
|
1815
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1816
|
+
*/
|
|
1817
|
+
export type UpdateAgentResponseBodyAgentsExecuteOn = ClosedEnum<
|
|
1818
|
+
typeof UpdateAgentResponseBodyAgentsExecuteOn
|
|
1819
|
+
>;
|
|
1820
|
+
|
|
1821
|
+
export type UpdateAgentResponseBodyGuardrails = {
|
|
1822
|
+
/**
|
|
1823
|
+
* Unique key or identifier of the evaluator
|
|
1824
|
+
*/
|
|
1825
|
+
id: string;
|
|
1826
|
+
/**
|
|
1827
|
+
* 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.
|
|
1828
|
+
*/
|
|
1829
|
+
sampleRate: number;
|
|
1830
|
+
/**
|
|
1831
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1874
1832
|
*/
|
|
1875
|
-
|
|
1833
|
+
executeOn: UpdateAgentResponseBodyAgentsExecuteOn;
|
|
1834
|
+
};
|
|
1835
|
+
|
|
1836
|
+
export type UpdateAgentResponseBodySettings = {
|
|
1837
|
+
/**
|
|
1838
|
+
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
1839
|
+
*/
|
|
1840
|
+
maxIterations: number;
|
|
1841
|
+
/**
|
|
1842
|
+
* 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.
|
|
1843
|
+
*/
|
|
1844
|
+
maxExecutionTime: number;
|
|
1845
|
+
/**
|
|
1846
|
+
* 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
|
|
1847
|
+
*/
|
|
1848
|
+
maxCost: number;
|
|
1849
|
+
/**
|
|
1850
|
+
* 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
|
+
*/
|
|
1852
|
+
toolApprovalRequired: UpdateAgentResponseBodyToolApprovalRequired;
|
|
1853
|
+
tools?: Array<UpdateAgentResponseBodyTools> | undefined;
|
|
1854
|
+
/**
|
|
1855
|
+
* Configuration for an evaluator applied to the agent
|
|
1856
|
+
*/
|
|
1857
|
+
evaluators?: Array<UpdateAgentResponseBodyEvaluators> | undefined;
|
|
1858
|
+
/**
|
|
1859
|
+
* Configuration for a guardrail applied to the agent
|
|
1860
|
+
*/
|
|
1861
|
+
guardrails?: Array<UpdateAgentResponseBodyGuardrails> | undefined;
|
|
1876
1862
|
};
|
|
1877
1863
|
|
|
1878
1864
|
export type UpdateAgentResponseFormatAgentsResponseJsonSchema = {
|
|
@@ -1925,7 +1911,7 @@ export type UpdateAgentResponseFormatAgentsResponseText = {
|
|
|
1925
1911
|
/**
|
|
1926
1912
|
* An object specifying the format that the model must output
|
|
1927
1913
|
*/
|
|
1928
|
-
export type
|
|
1914
|
+
export type UpdateAgentResponseBodyResponseFormat =
|
|
1929
1915
|
| UpdateAgentResponseFormatAgentsResponseText
|
|
1930
1916
|
| UpdateAgentResponseFormatAgentsResponseJSONObject
|
|
1931
1917
|
| UpdateAgentResponseFormatAgentsResponse200JSONSchema;
|
|
@@ -1942,7 +1928,7 @@ export type UpdateAgentResponseFormat =
|
|
|
1942
1928
|
*
|
|
1943
1929
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
1944
1930
|
*/
|
|
1945
|
-
export const
|
|
1931
|
+
export const UpdateAgentResponseBodyReasoningEffort = {
|
|
1946
1932
|
None: "none",
|
|
1947
1933
|
Minimal: "minimal",
|
|
1948
1934
|
Low: "low",
|
|
@@ -1962,26 +1948,16 @@ export const UpdateAgentReasoningEffort = {
|
|
|
1962
1948
|
*
|
|
1963
1949
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
1964
1950
|
*/
|
|
1965
|
-
export type
|
|
1966
|
-
typeof
|
|
1951
|
+
export type UpdateAgentResponseBodyReasoningEffort = ClosedEnum<
|
|
1952
|
+
typeof UpdateAgentResponseBodyReasoningEffort
|
|
1967
1953
|
>;
|
|
1968
1954
|
|
|
1969
1955
|
/**
|
|
1970
1956
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
1971
1957
|
*/
|
|
1972
|
-
export type
|
|
1958
|
+
export type UpdateAgentResponseBodyStop = string | Array<string>;
|
|
1973
1959
|
|
|
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 =
|
|
1960
|
+
export type UpdateAgentResponseBodyThinking =
|
|
1985
1961
|
| components.ThinkingConfigDisabledSchema
|
|
1986
1962
|
| components.ThinkingConfigEnabledSchema;
|
|
1987
1963
|
|
|
@@ -2025,15 +2001,17 @@ export type UpdateAgentToolChoiceAgentsResponse1 = ClosedEnum<
|
|
|
2025
2001
|
/**
|
|
2026
2002
|
* Controls which (if any) tool is called by the model.
|
|
2027
2003
|
*/
|
|
2028
|
-
export type
|
|
2004
|
+
export type UpdateAgentResponseBodyToolChoice =
|
|
2029
2005
|
| UpdateAgentToolChoiceAgentsResponse2
|
|
2030
2006
|
| UpdateAgentToolChoiceAgentsResponse1;
|
|
2031
2007
|
|
|
2032
|
-
export const
|
|
2008
|
+
export const UpdateAgentResponseBodyModalities = {
|
|
2033
2009
|
Text: "text",
|
|
2034
2010
|
Audio: "audio",
|
|
2035
2011
|
} as const;
|
|
2036
|
-
export type
|
|
2012
|
+
export type UpdateAgentResponseBodyModalities = ClosedEnum<
|
|
2013
|
+
typeof UpdateAgentResponseBodyModalities
|
|
2014
|
+
>;
|
|
2037
2015
|
|
|
2038
2016
|
/**
|
|
2039
2017
|
* The key of the guardrail.
|
|
@@ -2050,65 +2028,53 @@ export type UpdateAgentIdAgentsResponse1 = ClosedEnum<
|
|
|
2050
2028
|
typeof UpdateAgentIdAgentsResponse1
|
|
2051
2029
|
>;
|
|
2052
2030
|
|
|
2053
|
-
export type
|
|
2031
|
+
export type UpdateAgentResponseBodyId = UpdateAgentIdAgentsResponse1 | string;
|
|
2054
2032
|
|
|
2055
2033
|
/**
|
|
2056
2034
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2057
2035
|
*/
|
|
2058
|
-
export const
|
|
2036
|
+
export const UpdateAgentResponseBodyAgentsResponseExecuteOn = {
|
|
2059
2037
|
Input: "input",
|
|
2060
2038
|
Output: "output",
|
|
2061
2039
|
} as const;
|
|
2062
2040
|
/**
|
|
2063
2041
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2064
2042
|
*/
|
|
2065
|
-
export type
|
|
2066
|
-
typeof
|
|
2043
|
+
export type UpdateAgentResponseBodyAgentsResponseExecuteOn = ClosedEnum<
|
|
2044
|
+
typeof UpdateAgentResponseBodyAgentsResponseExecuteOn
|
|
2067
2045
|
>;
|
|
2068
2046
|
|
|
2069
|
-
export type
|
|
2047
|
+
export type UpdateAgentResponseBodyAgentsGuardrails = {
|
|
2070
2048
|
id: UpdateAgentIdAgentsResponse1 | string;
|
|
2071
2049
|
/**
|
|
2072
2050
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2073
2051
|
*/
|
|
2074
|
-
executeOn:
|
|
2052
|
+
executeOn: UpdateAgentResponseBodyAgentsResponseExecuteOn;
|
|
2075
2053
|
};
|
|
2076
2054
|
|
|
2077
|
-
export type
|
|
2055
|
+
export type UpdateAgentResponseBodyFallbacks = {
|
|
2078
2056
|
/**
|
|
2079
2057
|
* Fallback model identifier
|
|
2080
2058
|
*/
|
|
2081
2059
|
model: string;
|
|
2082
2060
|
};
|
|
2083
2061
|
|
|
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 = {
|
|
2062
|
+
export const UpdateAgentResponseBodyAgentsResponseType = {
|
|
2099
2063
|
ExactMatch: "exact_match",
|
|
2100
2064
|
} as const;
|
|
2101
|
-
export type
|
|
2065
|
+
export type UpdateAgentResponseBodyAgentsResponseType = ClosedEnum<
|
|
2066
|
+
typeof UpdateAgentResponseBodyAgentsResponseType
|
|
2067
|
+
>;
|
|
2102
2068
|
|
|
2103
2069
|
/**
|
|
2104
2070
|
* Cache configuration for the request.
|
|
2105
2071
|
*/
|
|
2106
|
-
export type
|
|
2072
|
+
export type UpdateAgentResponseBodyCache = {
|
|
2107
2073
|
/**
|
|
2108
2074
|
* Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
|
|
2109
2075
|
*/
|
|
2110
2076
|
ttl: number;
|
|
2111
|
-
type:
|
|
2077
|
+
type: UpdateAgentResponseBodyAgentsResponseType;
|
|
2112
2078
|
};
|
|
2113
2079
|
|
|
2114
2080
|
export const UpdateAgentLoadBalancerAgentsResponseType = {
|
|
@@ -2137,12 +2103,13 @@ export type UpdateAgentLoadBalancerAgentsResponse1 = {
|
|
|
2137
2103
|
/**
|
|
2138
2104
|
* Load balancer configuration for the request.
|
|
2139
2105
|
*/
|
|
2140
|
-
export type
|
|
2106
|
+
export type UpdateAgentResponseBodyLoadBalancer =
|
|
2107
|
+
UpdateAgentLoadBalancerAgentsResponse1;
|
|
2141
2108
|
|
|
2142
2109
|
/**
|
|
2143
2110
|
* 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
2111
|
*/
|
|
2145
|
-
export type
|
|
2112
|
+
export type UpdateAgentResponseBodyTimeout = {
|
|
2146
2113
|
/**
|
|
2147
2114
|
* Timeout value in milliseconds
|
|
2148
2115
|
*/
|
|
@@ -2152,15 +2119,11 @@ export type UpdateAgentTimeout = {
|
|
|
2152
2119
|
/**
|
|
2153
2120
|
* 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
2121
|
*/
|
|
2155
|
-
export type
|
|
2122
|
+
export type UpdateAgentResponseBodyParameters = {
|
|
2156
2123
|
/**
|
|
2157
2124
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
2158
2125
|
*/
|
|
2159
2126
|
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
2127
|
/**
|
|
2165
2128
|
* 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
2129
|
*/
|
|
@@ -2177,18 +2140,6 @@ export type UpdateAgentParameters = {
|
|
|
2177
2140
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
2178
2141
|
*/
|
|
2179
2142
|
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
2143
|
/**
|
|
2193
2144
|
* 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
2145
|
*/
|
|
@@ -2213,7 +2164,7 @@ export type UpdateAgentParameters = {
|
|
|
2213
2164
|
*
|
|
2214
2165
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
2215
2166
|
*/
|
|
2216
|
-
reasoningEffort?:
|
|
2167
|
+
reasoningEffort?: UpdateAgentResponseBodyReasoningEffort | undefined;
|
|
2217
2168
|
/**
|
|
2218
2169
|
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
2219
2170
|
*/
|
|
@@ -2226,10 +2177,6 @@ export type UpdateAgentParameters = {
|
|
|
2226
2177
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
2227
2178
|
*/
|
|
2228
2179
|
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
2180
|
thinking?:
|
|
2234
2181
|
| components.ThinkingConfigDisabledSchema
|
|
2235
2182
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -2260,23 +2207,19 @@ export type UpdateAgentParameters = {
|
|
|
2260
2207
|
/**
|
|
2261
2208
|
* 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
2209
|
*/
|
|
2263
|
-
modalities?: Array<
|
|
2210
|
+
modalities?: Array<UpdateAgentResponseBodyModalities> | null | undefined;
|
|
2264
2211
|
/**
|
|
2265
2212
|
* A list of guardrails to apply to the request.
|
|
2266
2213
|
*/
|
|
2267
|
-
guardrails?: Array<
|
|
2214
|
+
guardrails?: Array<UpdateAgentResponseBodyAgentsGuardrails> | undefined;
|
|
2268
2215
|
/**
|
|
2269
2216
|
* Array of fallback models to use if primary model fails
|
|
2270
2217
|
*/
|
|
2271
|
-
fallbacks?: Array<
|
|
2272
|
-
/**
|
|
2273
|
-
* Retry configuration for the request
|
|
2274
|
-
*/
|
|
2275
|
-
retry?: UpdateAgentAgentsRetry | undefined;
|
|
2218
|
+
fallbacks?: Array<UpdateAgentResponseBodyFallbacks> | undefined;
|
|
2276
2219
|
/**
|
|
2277
2220
|
* Cache configuration for the request.
|
|
2278
2221
|
*/
|
|
2279
|
-
cache?:
|
|
2222
|
+
cache?: UpdateAgentResponseBodyCache | undefined;
|
|
2280
2223
|
/**
|
|
2281
2224
|
* Load balancer configuration for the request.
|
|
2282
2225
|
*/
|
|
@@ -2284,13 +2227,13 @@ export type UpdateAgentParameters = {
|
|
|
2284
2227
|
/**
|
|
2285
2228
|
* 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
2229
|
*/
|
|
2287
|
-
timeout?:
|
|
2230
|
+
timeout?: UpdateAgentResponseBodyTimeout | undefined;
|
|
2288
2231
|
};
|
|
2289
2232
|
|
|
2290
2233
|
/**
|
|
2291
2234
|
* 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
2235
|
*/
|
|
2293
|
-
export type
|
|
2236
|
+
export type UpdateAgentResponseBodyRetry = {
|
|
2294
2237
|
/**
|
|
2295
2238
|
* Number of retry attempts (1-5)
|
|
2296
2239
|
*/
|
|
@@ -2301,55 +2244,6 @@ export type UpdateAgentRetry = {
|
|
|
2301
2244
|
onCodes?: Array<number> | undefined;
|
|
2302
2245
|
};
|
|
2303
2246
|
|
|
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
2247
|
export type UpdateAgentResponseFormatAgentsResponse200ApplicationJSONJSONSchema =
|
|
2354
2248
|
{
|
|
2355
2249
|
/**
|
|
@@ -2450,16 +2344,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsStop =
|
|
|
2450
2344
|
| string
|
|
2451
2345
|
| Array<string>;
|
|
2452
2346
|
|
|
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
2347
|
export type UpdateAgentFallbackModelConfigurationAgentsThinking =
|
|
2464
2348
|
| components.ThinkingConfigDisabledSchema
|
|
2465
2349
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -2564,20 +2448,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsFallbacks = {
|
|
|
2564
2448
|
model: string;
|
|
2565
2449
|
};
|
|
2566
2450
|
|
|
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
2451
|
export const UpdateAgentFallbackModelConfigurationAgentsType = {
|
|
2582
2452
|
ExactMatch: "exact_match",
|
|
2583
2453
|
} as const;
|
|
@@ -2643,10 +2513,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2643
2513
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
2644
2514
|
*/
|
|
2645
2515
|
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
2516
|
/**
|
|
2651
2517
|
* 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
2518
|
*/
|
|
@@ -2663,18 +2529,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2663
2529
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
2664
2530
|
*/
|
|
2665
2531
|
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
2532
|
/**
|
|
2679
2533
|
* 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
2534
|
*/
|
|
@@ -2714,13 +2568,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2714
2568
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
2715
2569
|
*/
|
|
2716
2570
|
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
2571
|
thinking?:
|
|
2725
2572
|
| components.ThinkingConfigDisabledSchema
|
|
2726
2573
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -2767,12 +2614,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2767
2614
|
fallbacks?:
|
|
2768
2615
|
| Array<UpdateAgentFallbackModelConfigurationAgentsFallbacks>
|
|
2769
2616
|
| undefined;
|
|
2770
|
-
/**
|
|
2771
|
-
* Retry configuration for the request
|
|
2772
|
-
*/
|
|
2773
|
-
retry?:
|
|
2774
|
-
| UpdateAgentFallbackModelConfigurationAgentsResponse200Retry
|
|
2775
|
-
| undefined;
|
|
2776
2617
|
/**
|
|
2777
2618
|
* Cache configuration for the request.
|
|
2778
2619
|
*/
|
|
@@ -2790,7 +2631,7 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2790
2631
|
/**
|
|
2791
2632
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
2792
2633
|
*/
|
|
2793
|
-
export type
|
|
2634
|
+
export type UpdateAgentFallbackModelConfigurationAgentsRetry = {
|
|
2794
2635
|
/**
|
|
2795
2636
|
* Number of retry attempts (1-5)
|
|
2796
2637
|
*/
|
|
@@ -2818,17 +2659,17 @@ export type UpdateAgentFallbackModelConfigurationAgents2 = {
|
|
|
2818
2659
|
/**
|
|
2819
2660
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
2820
2661
|
*/
|
|
2821
|
-
retry?:
|
|
2662
|
+
retry?: UpdateAgentFallbackModelConfigurationAgentsRetry | undefined;
|
|
2822
2663
|
};
|
|
2823
2664
|
|
|
2824
2665
|
/**
|
|
2825
2666
|
* 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
2667
|
*/
|
|
2827
|
-
export type
|
|
2668
|
+
export type UpdateAgentResponseBodyFallbackModelConfiguration =
|
|
2828
2669
|
| UpdateAgentFallbackModelConfigurationAgents2
|
|
2829
2670
|
| string;
|
|
2830
2671
|
|
|
2831
|
-
export type
|
|
2672
|
+
export type UpdateAgentResponseBodyModel = {
|
|
2832
2673
|
/**
|
|
2833
2674
|
* The database ID of the primary model
|
|
2834
2675
|
*/
|
|
@@ -2840,11 +2681,11 @@ export type UpdateAgentModel = {
|
|
|
2840
2681
|
/**
|
|
2841
2682
|
* 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
2683
|
*/
|
|
2843
|
-
parameters?:
|
|
2684
|
+
parameters?: UpdateAgentResponseBodyParameters | undefined;
|
|
2844
2685
|
/**
|
|
2845
2686
|
* 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
2687
|
*/
|
|
2847
|
-
retry?:
|
|
2688
|
+
retry?: UpdateAgentResponseBodyRetry | undefined;
|
|
2848
2689
|
/**
|
|
2849
2690
|
* Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
|
|
2850
2691
|
*/
|
|
@@ -2854,61 +2695,22 @@ export type UpdateAgentModel = {
|
|
|
2854
2695
|
| undefined;
|
|
2855
2696
|
};
|
|
2856
2697
|
|
|
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 = {
|
|
2698
|
+
export type UpdateAgentResponseBody1 = {
|
|
2890
2699
|
id: string;
|
|
2891
2700
|
/**
|
|
2892
2701
|
* Unique identifier for the agent within the workspace
|
|
2893
2702
|
*/
|
|
2894
2703
|
key: string;
|
|
2895
2704
|
displayName?: string | undefined;
|
|
2896
|
-
workspaceId: string;
|
|
2897
2705
|
projectId: string;
|
|
2898
2706
|
createdById?: string | null | undefined;
|
|
2899
2707
|
updatedById?: string | null | undefined;
|
|
2900
2708
|
created?: string | undefined;
|
|
2901
2709
|
updated?: string | undefined;
|
|
2902
|
-
role: string;
|
|
2903
|
-
description: string;
|
|
2904
|
-
systemPrompt?: string | undefined;
|
|
2905
|
-
instructions: string;
|
|
2906
2710
|
/**
|
|
2907
2711
|
* 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
2712
|
*/
|
|
2909
|
-
status:
|
|
2910
|
-
settings?: UpdateAgentAgentsSettings | undefined;
|
|
2911
|
-
model: UpdateAgentModel;
|
|
2713
|
+
status: UpdateAgentResponseBodyStatus;
|
|
2912
2714
|
versionHash?: string | undefined;
|
|
2913
2715
|
/**
|
|
2914
2716
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -2923,12 +2725,12 @@ export type UpdateAgentResponseBody = {
|
|
|
2923
2725
|
/**
|
|
2924
2726
|
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
2925
2727
|
*/
|
|
2926
|
-
memoryStores
|
|
2728
|
+
memoryStores?: Array<string> | undefined;
|
|
2927
2729
|
/**
|
|
2928
2730
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
2929
2731
|
*/
|
|
2930
|
-
teamOfAgents
|
|
2931
|
-
metrics?:
|
|
2732
|
+
teamOfAgents?: Array<UpdateAgentResponseBodyTeamOfAgents> | undefined;
|
|
2733
|
+
metrics?: UpdateAgentResponseBodyMetrics | undefined;
|
|
2932
2734
|
/**
|
|
2933
2735
|
* Extracted variables from agent instructions
|
|
2934
2736
|
*/
|
|
@@ -2936,45 +2738,26 @@ export type UpdateAgentResponseBody = {
|
|
|
2936
2738
|
/**
|
|
2937
2739
|
* Agent knowledge bases reference
|
|
2938
2740
|
*/
|
|
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;
|
|
2741
|
+
knowledgeBases?: Array<UpdateAgentResponseBodyKnowledgeBases> | undefined;
|
|
2742
|
+
source?: UpdateAgentResponseBodySource | undefined;
|
|
2743
|
+
/**
|
|
2744
|
+
* Orquesta-managed agent
|
|
2745
|
+
*/
|
|
2746
|
+
type: "internal";
|
|
2747
|
+
role: string;
|
|
2748
|
+
description: string;
|
|
2749
|
+
systemPrompt?: string | undefined;
|
|
2750
|
+
instructions: string;
|
|
2751
|
+
settings?: UpdateAgentResponseBodySettings | undefined;
|
|
2752
|
+
model: UpdateAgentResponseBodyModel;
|
|
2957
2753
|
};
|
|
2958
2754
|
|
|
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
|
-
}
|
|
2755
|
+
/**
|
|
2756
|
+
* Agent configuration successfully updated. Returns the complete updated agent manifest reflecting all changes made.
|
|
2757
|
+
*/
|
|
2758
|
+
export type UpdateAgentResponseBody =
|
|
2759
|
+
| UpdateAgentResponseBody1
|
|
2760
|
+
| UpdateAgentResponseBody2;
|
|
2978
2761
|
|
|
2979
2762
|
/** @internal */
|
|
2980
2763
|
export type UpdateAgentResponseFormatAgentsJsonSchema$Outbound = {
|
|
@@ -3138,34 +2921,6 @@ export function modelConfigurationStopToJSON(
|
|
|
3138
2921
|
);
|
|
3139
2922
|
}
|
|
3140
2923
|
|
|
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
2924
|
/** @internal */
|
|
3170
2925
|
export type ModelConfigurationThinking$Outbound =
|
|
3171
2926
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
@@ -3359,36 +3114,6 @@ export function modelConfigurationFallbacksToJSON(
|
|
|
3359
3114
|
);
|
|
3360
3115
|
}
|
|
3361
3116
|
|
|
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
3117
|
/** @internal */
|
|
3393
3118
|
export const UpdateAgentModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
3394
3119
|
typeof UpdateAgentModelConfigurationType
|
|
@@ -3523,13 +3248,9 @@ export function modelConfigurationTimeoutToJSON(
|
|
|
3523
3248
|
/** @internal */
|
|
3524
3249
|
export type ModelConfigurationParameters$Outbound = {
|
|
3525
3250
|
name?: string | undefined;
|
|
3526
|
-
audio?: UpdateAgentModelConfigurationAudio$Outbound | null | undefined;
|
|
3527
3251
|
frequency_penalty?: number | null | undefined;
|
|
3528
3252
|
max_tokens?: number | null | undefined;
|
|
3529
3253
|
max_completion_tokens?: number | null | undefined;
|
|
3530
|
-
logprobs?: boolean | null | undefined;
|
|
3531
|
-
top_logprobs?: number | null | undefined;
|
|
3532
|
-
n?: number | null | undefined;
|
|
3533
3254
|
presence_penalty?: number | null | undefined;
|
|
3534
3255
|
response_format?:
|
|
3535
3256
|
| UpdateAgentResponseFormatText$Outbound
|
|
@@ -3540,7 +3261,6 @@ export type ModelConfigurationParameters$Outbound = {
|
|
|
3540
3261
|
verbosity?: string | undefined;
|
|
3541
3262
|
seed?: number | null | undefined;
|
|
3542
3263
|
stop?: string | Array<string> | null | undefined;
|
|
3543
|
-
stream_options?: ModelConfigurationStreamOptions$Outbound | null | undefined;
|
|
3544
3264
|
thinking?:
|
|
3545
3265
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3546
3266
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
@@ -3553,7 +3273,6 @@ export type ModelConfigurationParameters$Outbound = {
|
|
|
3553
3273
|
modalities?: Array<string> | null | undefined;
|
|
3554
3274
|
guardrails?: Array<ModelConfigurationGuardrails$Outbound> | undefined;
|
|
3555
3275
|
fallbacks?: Array<ModelConfigurationFallbacks$Outbound> | undefined;
|
|
3556
|
-
retry?: UpdateAgentModelConfigurationRetry$Outbound | undefined;
|
|
3557
3276
|
cache?: ModelConfigurationCache$Outbound | undefined;
|
|
3558
3277
|
load_balancer?: UpdateAgentLoadBalancer1$Outbound | undefined;
|
|
3559
3278
|
timeout?: ModelConfigurationTimeout$Outbound | undefined;
|
|
@@ -3566,15 +3285,9 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3566
3285
|
ModelConfigurationParameters
|
|
3567
3286
|
> = z.object({
|
|
3568
3287
|
name: z.string().optional(),
|
|
3569
|
-
audio: z.nullable(
|
|
3570
|
-
z.lazy(() => UpdateAgentModelConfigurationAudio$outboundSchema),
|
|
3571
|
-
).optional(),
|
|
3572
3288
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
3573
3289
|
maxTokens: z.nullable(z.number().int()).optional(),
|
|
3574
3290
|
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
3291
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
3579
3292
|
responseFormat: z.union([
|
|
3580
3293
|
z.lazy(() => UpdateAgentResponseFormatText$outboundSchema),
|
|
@@ -3585,9 +3298,6 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3585
3298
|
verbosity: z.string().optional(),
|
|
3586
3299
|
seed: z.nullable(z.number()).optional(),
|
|
3587
3300
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
3588
|
-
streamOptions: z.nullable(
|
|
3589
|
-
z.lazy(() => ModelConfigurationStreamOptions$outboundSchema),
|
|
3590
|
-
).optional(),
|
|
3591
3301
|
thinking: z.union([
|
|
3592
3302
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3593
3303
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
@@ -3606,8 +3316,6 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3606
3316
|
.optional(),
|
|
3607
3317
|
fallbacks: z.array(z.lazy(() => ModelConfigurationFallbacks$outboundSchema))
|
|
3608
3318
|
.optional(),
|
|
3609
|
-
retry: z.lazy(() => UpdateAgentModelConfigurationRetry$outboundSchema)
|
|
3610
|
-
.optional(),
|
|
3611
3319
|
cache: z.lazy(() => ModelConfigurationCache$outboundSchema).optional(),
|
|
3612
3320
|
loadBalancer: z.lazy(() => UpdateAgentLoadBalancer1$outboundSchema)
|
|
3613
3321
|
.optional(),
|
|
@@ -3617,11 +3325,9 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3617
3325
|
frequencyPenalty: "frequency_penalty",
|
|
3618
3326
|
maxTokens: "max_tokens",
|
|
3619
3327
|
maxCompletionTokens: "max_completion_tokens",
|
|
3620
|
-
topLogprobs: "top_logprobs",
|
|
3621
3328
|
presencePenalty: "presence_penalty",
|
|
3622
3329
|
responseFormat: "response_format",
|
|
3623
3330
|
reasoningEffort: "reasoning_effort",
|
|
3624
|
-
streamOptions: "stream_options",
|
|
3625
3331
|
topP: "top_p",
|
|
3626
3332
|
topK: "top_k",
|
|
3627
3333
|
toolChoice: "tool_choice",
|
|
@@ -3641,16 +3347,16 @@ export function modelConfigurationParametersToJSON(
|
|
|
3641
3347
|
}
|
|
3642
3348
|
|
|
3643
3349
|
/** @internal */
|
|
3644
|
-
export type
|
|
3350
|
+
export type ModelConfigurationRetry$Outbound = {
|
|
3645
3351
|
count: number;
|
|
3646
3352
|
on_codes?: Array<number> | undefined;
|
|
3647
3353
|
};
|
|
3648
3354
|
|
|
3649
3355
|
/** @internal */
|
|
3650
|
-
export const
|
|
3651
|
-
|
|
3356
|
+
export const ModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
3357
|
+
ModelConfigurationRetry$Outbound,
|
|
3652
3358
|
z.ZodTypeDef,
|
|
3653
|
-
|
|
3359
|
+
ModelConfigurationRetry
|
|
3654
3360
|
> = z.object({
|
|
3655
3361
|
count: z.number().default(3),
|
|
3656
3362
|
onCodes: z.array(z.number()).optional(),
|
|
@@ -3660,14 +3366,11 @@ export const UpdateAgentModelConfigurationAgentsRetry$outboundSchema: z.ZodType<
|
|
|
3660
3366
|
});
|
|
3661
3367
|
});
|
|
3662
3368
|
|
|
3663
|
-
export function
|
|
3664
|
-
|
|
3665
|
-
UpdateAgentModelConfigurationAgentsRetry,
|
|
3369
|
+
export function modelConfigurationRetryToJSON(
|
|
3370
|
+
modelConfigurationRetry: ModelConfigurationRetry,
|
|
3666
3371
|
): string {
|
|
3667
3372
|
return JSON.stringify(
|
|
3668
|
-
|
|
3669
|
-
updateAgentModelConfigurationAgentsRetry,
|
|
3670
|
-
),
|
|
3373
|
+
ModelConfigurationRetry$outboundSchema.parse(modelConfigurationRetry),
|
|
3671
3374
|
);
|
|
3672
3375
|
}
|
|
3673
3376
|
|
|
@@ -3675,7 +3378,7 @@ export function updateAgentModelConfigurationAgentsRetryToJSON(
|
|
|
3675
3378
|
export type UpdateAgentModelConfiguration2$Outbound = {
|
|
3676
3379
|
id: string;
|
|
3677
3380
|
parameters?: ModelConfigurationParameters$Outbound | undefined;
|
|
3678
|
-
retry?:
|
|
3381
|
+
retry?: ModelConfigurationRetry$Outbound | undefined;
|
|
3679
3382
|
};
|
|
3680
3383
|
|
|
3681
3384
|
/** @internal */
|
|
@@ -3687,8 +3390,7 @@ export const UpdateAgentModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
3687
3390
|
id: z.string(),
|
|
3688
3391
|
parameters: z.lazy(() => ModelConfigurationParameters$outboundSchema)
|
|
3689
3392
|
.optional(),
|
|
3690
|
-
retry: z.lazy(() =>
|
|
3691
|
-
.optional(),
|
|
3393
|
+
retry: z.lazy(() => ModelConfigurationRetry$outboundSchema).optional(),
|
|
3692
3394
|
});
|
|
3693
3395
|
|
|
3694
3396
|
export function updateAgentModelConfiguration2ToJSON(
|
|
@@ -3726,44 +3428,6 @@ export function updateAgentModelConfigurationToJSON(
|
|
|
3726
3428
|
);
|
|
3727
3429
|
}
|
|
3728
3430
|
|
|
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
3431
|
/** @internal */
|
|
3768
3432
|
export type UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound =
|
|
3769
3433
|
{
|
|
@@ -3941,36 +3605,6 @@ export function updateAgentFallbackModelConfigurationStopToJSON(
|
|
|
3941
3605
|
);
|
|
3942
3606
|
}
|
|
3943
3607
|
|
|
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
3608
|
/** @internal */
|
|
3975
3609
|
export type UpdateAgentFallbackModelConfigurationThinking$Outbound =
|
|
3976
3610
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
@@ -4179,38 +3813,6 @@ export function updateAgentFallbackModelConfigurationFallbacksToJSON(
|
|
|
4179
3813
|
);
|
|
4180
3814
|
}
|
|
4181
3815
|
|
|
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
3816
|
/** @internal */
|
|
4215
3817
|
export const UpdateAgentFallbackModelConfigurationType$outboundSchema:
|
|
4216
3818
|
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationType> = z
|
|
@@ -4359,16 +3961,9 @@ export function updateAgentFallbackModelConfigurationTimeoutToJSON(
|
|
|
4359
3961
|
/** @internal */
|
|
4360
3962
|
export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
4361
3963
|
name?: string | undefined;
|
|
4362
|
-
audio?:
|
|
4363
|
-
| UpdateAgentFallbackModelConfigurationAudio$Outbound
|
|
4364
|
-
| null
|
|
4365
|
-
| undefined;
|
|
4366
3964
|
frequency_penalty?: number | null | undefined;
|
|
4367
3965
|
max_tokens?: number | null | undefined;
|
|
4368
3966
|
max_completion_tokens?: number | null | undefined;
|
|
4369
|
-
logprobs?: boolean | null | undefined;
|
|
4370
|
-
top_logprobs?: number | null | undefined;
|
|
4371
|
-
n?: number | null | undefined;
|
|
4372
3967
|
presence_penalty?: number | null | undefined;
|
|
4373
3968
|
response_format?:
|
|
4374
3969
|
| UpdateAgentResponseFormatAgentsText$Outbound
|
|
@@ -4379,10 +3974,6 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
4379
3974
|
verbosity?: string | undefined;
|
|
4380
3975
|
seed?: number | null | undefined;
|
|
4381
3976
|
stop?: string | Array<string> | null | undefined;
|
|
4382
|
-
stream_options?:
|
|
4383
|
-
| UpdateAgentFallbackModelConfigurationStreamOptions$Outbound
|
|
4384
|
-
| null
|
|
4385
|
-
| undefined;
|
|
4386
3977
|
thinking?:
|
|
4387
3978
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
4388
3979
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
@@ -4399,7 +3990,6 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
4399
3990
|
fallbacks?:
|
|
4400
3991
|
| Array<UpdateAgentFallbackModelConfigurationFallbacks$Outbound>
|
|
4401
3992
|
| undefined;
|
|
4402
|
-
retry?: UpdateAgentFallbackModelConfigurationRetry$Outbound | undefined;
|
|
4403
3993
|
cache?: UpdateAgentFallbackModelConfigurationCache$Outbound | undefined;
|
|
4404
3994
|
load_balancer?: UpdateAgentLoadBalancerAgents1$Outbound | undefined;
|
|
4405
3995
|
timeout?: UpdateAgentFallbackModelConfigurationTimeout$Outbound | undefined;
|
|
@@ -4413,15 +4003,9 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4413
4003
|
UpdateAgentFallbackModelConfigurationParameters
|
|
4414
4004
|
> = z.object({
|
|
4415
4005
|
name: z.string().optional(),
|
|
4416
|
-
audio: z.nullable(
|
|
4417
|
-
z.lazy(() => UpdateAgentFallbackModelConfigurationAudio$outboundSchema),
|
|
4418
|
-
).optional(),
|
|
4419
4006
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
4420
4007
|
maxTokens: z.nullable(z.number().int()).optional(),
|
|
4421
4008
|
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
4009
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
4426
4010
|
responseFormat: z.union([
|
|
4427
4011
|
z.lazy(() => UpdateAgentResponseFormatAgentsText$outboundSchema),
|
|
@@ -4435,12 +4019,7 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4435
4019
|
.optional(),
|
|
4436
4020
|
verbosity: z.string().optional(),
|
|
4437
4021
|
seed: z.nullable(z.number()).optional(),
|
|
4438
|
-
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(),
|
|
4022
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
4444
4023
|
thinking: z.union([
|
|
4445
4024
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
4446
4025
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
@@ -4466,9 +4045,6 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4466
4045
|
UpdateAgentFallbackModelConfigurationFallbacks$outboundSchema
|
|
4467
4046
|
),
|
|
4468
4047
|
).optional(),
|
|
4469
|
-
retry: z.lazy(() =>
|
|
4470
|
-
UpdateAgentFallbackModelConfigurationRetry$outboundSchema
|
|
4471
|
-
).optional(),
|
|
4472
4048
|
cache: z.lazy(() =>
|
|
4473
4049
|
UpdateAgentFallbackModelConfigurationCache$outboundSchema
|
|
4474
4050
|
).optional(),
|
|
@@ -4482,11 +4058,9 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4482
4058
|
frequencyPenalty: "frequency_penalty",
|
|
4483
4059
|
maxTokens: "max_tokens",
|
|
4484
4060
|
maxCompletionTokens: "max_completion_tokens",
|
|
4485
|
-
topLogprobs: "top_logprobs",
|
|
4486
4061
|
presencePenalty: "presence_penalty",
|
|
4487
4062
|
responseFormat: "response_format",
|
|
4488
4063
|
reasoningEffort: "reasoning_effort",
|
|
4489
|
-
streamOptions: "stream_options",
|
|
4490
4064
|
topP: "top_p",
|
|
4491
4065
|
topK: "top_k",
|
|
4492
4066
|
toolChoice: "tool_choice",
|
|
@@ -4507,17 +4081,17 @@ export function updateAgentFallbackModelConfigurationParametersToJSON(
|
|
|
4507
4081
|
}
|
|
4508
4082
|
|
|
4509
4083
|
/** @internal */
|
|
4510
|
-
export type
|
|
4084
|
+
export type UpdateAgentFallbackModelConfigurationRetry$Outbound = {
|
|
4511
4085
|
count: number;
|
|
4512
4086
|
on_codes?: Array<number> | undefined;
|
|
4513
4087
|
};
|
|
4514
4088
|
|
|
4515
4089
|
/** @internal */
|
|
4516
|
-
export const
|
|
4090
|
+
export const UpdateAgentFallbackModelConfigurationRetry$outboundSchema:
|
|
4517
4091
|
z.ZodType<
|
|
4518
|
-
|
|
4092
|
+
UpdateAgentFallbackModelConfigurationRetry$Outbound,
|
|
4519
4093
|
z.ZodTypeDef,
|
|
4520
|
-
|
|
4094
|
+
UpdateAgentFallbackModelConfigurationRetry
|
|
4521
4095
|
> = z.object({
|
|
4522
4096
|
count: z.number().default(3),
|
|
4523
4097
|
onCodes: z.array(z.number()).optional(),
|
|
@@ -4527,13 +4101,13 @@ export const UpdateAgentFallbackModelConfigurationAgentsRetry$outboundSchema:
|
|
|
4527
4101
|
});
|
|
4528
4102
|
});
|
|
4529
4103
|
|
|
4530
|
-
export function
|
|
4531
|
-
|
|
4532
|
-
|
|
4104
|
+
export function updateAgentFallbackModelConfigurationRetryToJSON(
|
|
4105
|
+
updateAgentFallbackModelConfigurationRetry:
|
|
4106
|
+
UpdateAgentFallbackModelConfigurationRetry,
|
|
4533
4107
|
): string {
|
|
4534
4108
|
return JSON.stringify(
|
|
4535
|
-
|
|
4536
|
-
|
|
4109
|
+
UpdateAgentFallbackModelConfigurationRetry$outboundSchema.parse(
|
|
4110
|
+
updateAgentFallbackModelConfigurationRetry,
|
|
4537
4111
|
),
|
|
4538
4112
|
);
|
|
4539
4113
|
}
|
|
@@ -4544,7 +4118,7 @@ export type UpdateAgentFallbackModelConfiguration2$Outbound = {
|
|
|
4544
4118
|
parameters?:
|
|
4545
4119
|
| UpdateAgentFallbackModelConfigurationParameters$Outbound
|
|
4546
4120
|
| undefined;
|
|
4547
|
-
retry?:
|
|
4121
|
+
retry?: UpdateAgentFallbackModelConfigurationRetry$Outbound | undefined;
|
|
4548
4122
|
};
|
|
4549
4123
|
|
|
4550
4124
|
/** @internal */
|
|
@@ -4557,9 +4131,8 @@ export const UpdateAgentFallbackModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
4557
4131
|
parameters: z.lazy(() =>
|
|
4558
4132
|
UpdateAgentFallbackModelConfigurationParameters$outboundSchema
|
|
4559
4133
|
).optional(),
|
|
4560
|
-
retry: z.lazy(() =>
|
|
4561
|
-
|
|
4562
|
-
).optional(),
|
|
4134
|
+
retry: z.lazy(() => UpdateAgentFallbackModelConfigurationRetry$outboundSchema)
|
|
4135
|
+
.optional(),
|
|
4563
4136
|
});
|
|
4564
4137
|
|
|
4565
4138
|
export function updateAgentFallbackModelConfiguration2ToJSON(
|
|
@@ -5539,7 +5112,67 @@ export function updateAgentTeamOfAgentsToJSON(
|
|
|
5539
5112
|
}
|
|
5540
5113
|
|
|
5541
5114
|
/** @internal */
|
|
5542
|
-
export type
|
|
5115
|
+
export type UpdateAgentHeaders$Outbound = {
|
|
5116
|
+
value: string;
|
|
5117
|
+
encrypted: boolean;
|
|
5118
|
+
};
|
|
5119
|
+
|
|
5120
|
+
/** @internal */
|
|
5121
|
+
export const UpdateAgentHeaders$outboundSchema: z.ZodType<
|
|
5122
|
+
UpdateAgentHeaders$Outbound,
|
|
5123
|
+
z.ZodTypeDef,
|
|
5124
|
+
UpdateAgentHeaders
|
|
5125
|
+
> = z.object({
|
|
5126
|
+
value: z.string(),
|
|
5127
|
+
encrypted: z.boolean().default(false),
|
|
5128
|
+
});
|
|
5129
|
+
|
|
5130
|
+
export function updateAgentHeadersToJSON(
|
|
5131
|
+
updateAgentHeaders: UpdateAgentHeaders,
|
|
5132
|
+
): string {
|
|
5133
|
+
return JSON.stringify(
|
|
5134
|
+
UpdateAgentHeaders$outboundSchema.parse(updateAgentHeaders),
|
|
5135
|
+
);
|
|
5136
|
+
}
|
|
5137
|
+
|
|
5138
|
+
/** @internal */
|
|
5139
|
+
export type UpdateA2AConfiguration$Outbound = {
|
|
5140
|
+
agent_url?: string | undefined;
|
|
5141
|
+
card_url?: string | undefined;
|
|
5142
|
+
headers?: { [k: string]: UpdateAgentHeaders$Outbound } | undefined;
|
|
5143
|
+
};
|
|
5144
|
+
|
|
5145
|
+
/** @internal */
|
|
5146
|
+
export const UpdateA2AConfiguration$outboundSchema: z.ZodType<
|
|
5147
|
+
UpdateA2AConfiguration$Outbound,
|
|
5148
|
+
z.ZodTypeDef,
|
|
5149
|
+
UpdateA2AConfiguration
|
|
5150
|
+
> = z.object({
|
|
5151
|
+
agentUrl: z.string().optional(),
|
|
5152
|
+
cardUrl: z.string().optional(),
|
|
5153
|
+
headers: z.record(z.lazy(() => UpdateAgentHeaders$outboundSchema)).optional(),
|
|
5154
|
+
}).transform((v) => {
|
|
5155
|
+
return remap$(v, {
|
|
5156
|
+
agentUrl: "agent_url",
|
|
5157
|
+
cardUrl: "card_url",
|
|
5158
|
+
});
|
|
5159
|
+
});
|
|
5160
|
+
|
|
5161
|
+
export function updateA2AConfigurationToJSON(
|
|
5162
|
+
updateA2AConfiguration: UpdateA2AConfiguration,
|
|
5163
|
+
): string {
|
|
5164
|
+
return JSON.stringify(
|
|
5165
|
+
UpdateA2AConfiguration$outboundSchema.parse(updateA2AConfiguration),
|
|
5166
|
+
);
|
|
5167
|
+
}
|
|
5168
|
+
|
|
5169
|
+
/** @internal */
|
|
5170
|
+
export const VersionIncrement$outboundSchema: z.ZodNativeEnum<
|
|
5171
|
+
typeof VersionIncrement
|
|
5172
|
+
> = z.nativeEnum(VersionIncrement);
|
|
5173
|
+
|
|
5174
|
+
/** @internal */
|
|
5175
|
+
export type UpdateAgentRequestBody$Outbound = {
|
|
5543
5176
|
key?: string | undefined;
|
|
5544
5177
|
display_name?: string | undefined;
|
|
5545
5178
|
project_id?: string | undefined;
|
|
@@ -5557,13 +5190,16 @@ export type UpdateAgentUpdateAgentRequest$Outbound = {
|
|
|
5557
5190
|
knowledge_bases?: Array<UpdateAgentKnowledgeBases$Outbound> | undefined;
|
|
5558
5191
|
team_of_agents?: Array<UpdateAgentTeamOfAgents$Outbound> | undefined;
|
|
5559
5192
|
variables?: { [k: string]: any } | undefined;
|
|
5193
|
+
a2a?: UpdateA2AConfiguration$Outbound | undefined;
|
|
5194
|
+
versionIncrement?: string | undefined;
|
|
5195
|
+
versionDescription?: string | undefined;
|
|
5560
5196
|
};
|
|
5561
5197
|
|
|
5562
5198
|
/** @internal */
|
|
5563
|
-
export const
|
|
5564
|
-
|
|
5199
|
+
export const UpdateAgentRequestBody$outboundSchema: z.ZodType<
|
|
5200
|
+
UpdateAgentRequestBody$Outbound,
|
|
5565
5201
|
z.ZodTypeDef,
|
|
5566
|
-
|
|
5202
|
+
UpdateAgentRequestBody
|
|
5567
5203
|
> = z.object({
|
|
5568
5204
|
key: z.string().optional(),
|
|
5569
5205
|
displayName: z.string().optional(),
|
|
@@ -5591,6 +5227,9 @@ export const UpdateAgentUpdateAgentRequest$outboundSchema: z.ZodType<
|
|
|
5591
5227
|
teamOfAgents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$outboundSchema))
|
|
5592
5228
|
.optional(),
|
|
5593
5229
|
variables: z.record(z.any()).optional(),
|
|
5230
|
+
a2a: z.lazy(() => UpdateA2AConfiguration$outboundSchema).optional(),
|
|
5231
|
+
versionIncrement: VersionIncrement$outboundSchema.optional(),
|
|
5232
|
+
versionDescription: z.string().optional(),
|
|
5594
5233
|
}).transform((v) => {
|
|
5595
5234
|
return remap$(v, {
|
|
5596
5235
|
displayName: "display_name",
|
|
@@ -5603,59 +5242,335 @@ export const UpdateAgentUpdateAgentRequest$outboundSchema: z.ZodType<
|
|
|
5603
5242
|
});
|
|
5604
5243
|
});
|
|
5605
5244
|
|
|
5606
|
-
export function
|
|
5607
|
-
|
|
5245
|
+
export function updateAgentRequestBodyToJSON(
|
|
5246
|
+
updateAgentRequestBody: UpdateAgentRequestBody,
|
|
5608
5247
|
): string {
|
|
5609
5248
|
return JSON.stringify(
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5249
|
+
UpdateAgentRequestBody$outboundSchema.parse(updateAgentRequestBody),
|
|
5250
|
+
);
|
|
5251
|
+
}
|
|
5252
|
+
|
|
5253
|
+
/** @internal */
|
|
5254
|
+
export type UpdateAgentRequest$Outbound = {
|
|
5255
|
+
agent_key: string;
|
|
5256
|
+
RequestBody: UpdateAgentRequestBody$Outbound;
|
|
5257
|
+
};
|
|
5258
|
+
|
|
5259
|
+
/** @internal */
|
|
5260
|
+
export const UpdateAgentRequest$outboundSchema: z.ZodType<
|
|
5261
|
+
UpdateAgentRequest$Outbound,
|
|
5262
|
+
z.ZodTypeDef,
|
|
5263
|
+
UpdateAgentRequest
|
|
5264
|
+
> = z.object({
|
|
5265
|
+
agentKey: z.string(),
|
|
5266
|
+
requestBody: z.lazy(() => UpdateAgentRequestBody$outboundSchema),
|
|
5267
|
+
}).transform((v) => {
|
|
5268
|
+
return remap$(v, {
|
|
5269
|
+
agentKey: "agent_key",
|
|
5270
|
+
requestBody: "RequestBody",
|
|
5271
|
+
});
|
|
5272
|
+
});
|
|
5273
|
+
|
|
5274
|
+
export function updateAgentRequestToJSON(
|
|
5275
|
+
updateAgentRequest: UpdateAgentRequest,
|
|
5276
|
+
): string {
|
|
5277
|
+
return JSON.stringify(
|
|
5278
|
+
UpdateAgentRequest$outboundSchema.parse(updateAgentRequest),
|
|
5279
|
+
);
|
|
5280
|
+
}
|
|
5281
|
+
|
|
5282
|
+
/** @internal */
|
|
5283
|
+
export const UpdateAgentResponseBodyAgentsStatus$inboundSchema: z.ZodNativeEnum<
|
|
5284
|
+
typeof UpdateAgentResponseBodyAgentsStatus
|
|
5285
|
+
> = z.nativeEnum(UpdateAgentResponseBodyAgentsStatus);
|
|
5286
|
+
|
|
5287
|
+
/** @internal */
|
|
5288
|
+
export const UpdateAgentResponseBodyAgentsTeamOfAgents$inboundSchema: z.ZodType<
|
|
5289
|
+
UpdateAgentResponseBodyAgentsTeamOfAgents,
|
|
5290
|
+
z.ZodTypeDef,
|
|
5291
|
+
unknown
|
|
5292
|
+
> = z.object({
|
|
5293
|
+
key: z.string(),
|
|
5294
|
+
role: z.string().optional(),
|
|
5295
|
+
});
|
|
5296
|
+
|
|
5297
|
+
export function updateAgentResponseBodyAgentsTeamOfAgentsFromJSON(
|
|
5298
|
+
jsonString: string,
|
|
5299
|
+
): SafeParseResult<
|
|
5300
|
+
UpdateAgentResponseBodyAgentsTeamOfAgents,
|
|
5301
|
+
SDKValidationError
|
|
5302
|
+
> {
|
|
5303
|
+
return safeParse(
|
|
5304
|
+
jsonString,
|
|
5305
|
+
(x) =>
|
|
5306
|
+
UpdateAgentResponseBodyAgentsTeamOfAgents$inboundSchema.parse(
|
|
5307
|
+
JSON.parse(x),
|
|
5308
|
+
),
|
|
5309
|
+
`Failed to parse 'UpdateAgentResponseBodyAgentsTeamOfAgents' from JSON`,
|
|
5310
|
+
);
|
|
5311
|
+
}
|
|
5312
|
+
|
|
5313
|
+
/** @internal */
|
|
5314
|
+
export const UpdateAgentResponseBodyAgentsMetrics$inboundSchema: z.ZodType<
|
|
5315
|
+
UpdateAgentResponseBodyAgentsMetrics,
|
|
5316
|
+
z.ZodTypeDef,
|
|
5317
|
+
unknown
|
|
5318
|
+
> = z.object({
|
|
5319
|
+
total_cost: z.number().default(0),
|
|
5320
|
+
}).transform((v) => {
|
|
5321
|
+
return remap$(v, {
|
|
5322
|
+
"total_cost": "totalCost",
|
|
5323
|
+
});
|
|
5324
|
+
});
|
|
5325
|
+
|
|
5326
|
+
export function updateAgentResponseBodyAgentsMetricsFromJSON(
|
|
5327
|
+
jsonString: string,
|
|
5328
|
+
): SafeParseResult<UpdateAgentResponseBodyAgentsMetrics, SDKValidationError> {
|
|
5329
|
+
return safeParse(
|
|
5330
|
+
jsonString,
|
|
5331
|
+
(x) =>
|
|
5332
|
+
UpdateAgentResponseBodyAgentsMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
5333
|
+
`Failed to parse 'UpdateAgentResponseBodyAgentsMetrics' from JSON`,
|
|
5334
|
+
);
|
|
5335
|
+
}
|
|
5336
|
+
|
|
5337
|
+
/** @internal */
|
|
5338
|
+
export const UpdateAgentResponseBodyAgentsKnowledgeBases$inboundSchema:
|
|
5339
|
+
z.ZodType<
|
|
5340
|
+
UpdateAgentResponseBodyAgentsKnowledgeBases,
|
|
5341
|
+
z.ZodTypeDef,
|
|
5342
|
+
unknown
|
|
5343
|
+
> = z.object({
|
|
5344
|
+
knowledge_id: z.string(),
|
|
5345
|
+
}).transform((v) => {
|
|
5346
|
+
return remap$(v, {
|
|
5347
|
+
"knowledge_id": "knowledgeId",
|
|
5348
|
+
});
|
|
5349
|
+
});
|
|
5350
|
+
|
|
5351
|
+
export function updateAgentResponseBodyAgentsKnowledgeBasesFromJSON(
|
|
5352
|
+
jsonString: string,
|
|
5353
|
+
): SafeParseResult<
|
|
5354
|
+
UpdateAgentResponseBodyAgentsKnowledgeBases,
|
|
5355
|
+
SDKValidationError
|
|
5356
|
+
> {
|
|
5357
|
+
return safeParse(
|
|
5358
|
+
jsonString,
|
|
5359
|
+
(x) =>
|
|
5360
|
+
UpdateAgentResponseBodyAgentsKnowledgeBases$inboundSchema.parse(
|
|
5361
|
+
JSON.parse(x),
|
|
5362
|
+
),
|
|
5363
|
+
`Failed to parse 'UpdateAgentResponseBodyAgentsKnowledgeBases' from JSON`,
|
|
5364
|
+
);
|
|
5365
|
+
}
|
|
5366
|
+
|
|
5367
|
+
/** @internal */
|
|
5368
|
+
export const UpdateAgentResponseBodyAgentsSource$inboundSchema: z.ZodNativeEnum<
|
|
5369
|
+
typeof UpdateAgentResponseBodyAgentsSource
|
|
5370
|
+
> = z.nativeEnum(UpdateAgentResponseBodyAgentsSource);
|
|
5371
|
+
|
|
5372
|
+
/** @internal */
|
|
5373
|
+
export const UpdateAgentResponseBodyHeaders$inboundSchema: z.ZodType<
|
|
5374
|
+
UpdateAgentResponseBodyHeaders,
|
|
5375
|
+
z.ZodTypeDef,
|
|
5376
|
+
unknown
|
|
5377
|
+
> = z.object({
|
|
5378
|
+
value: z.string(),
|
|
5379
|
+
encrypted: z.boolean().default(false),
|
|
5380
|
+
});
|
|
5381
|
+
|
|
5382
|
+
export function updateAgentResponseBodyHeadersFromJSON(
|
|
5383
|
+
jsonString: string,
|
|
5384
|
+
): SafeParseResult<UpdateAgentResponseBodyHeaders, SDKValidationError> {
|
|
5385
|
+
return safeParse(
|
|
5386
|
+
jsonString,
|
|
5387
|
+
(x) => UpdateAgentResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
5388
|
+
`Failed to parse 'UpdateAgentResponseBodyHeaders' from JSON`,
|
|
5389
|
+
);
|
|
5390
|
+
}
|
|
5391
|
+
|
|
5392
|
+
/** @internal */
|
|
5393
|
+
export const UpdateAgentResponseBodyA2AAgentConfiguration$inboundSchema:
|
|
5394
|
+
z.ZodType<
|
|
5395
|
+
UpdateAgentResponseBodyA2AAgentConfiguration,
|
|
5396
|
+
z.ZodTypeDef,
|
|
5397
|
+
unknown
|
|
5398
|
+
> = z.object({
|
|
5399
|
+
agent_url: z.string(),
|
|
5400
|
+
card_url: z.string().optional(),
|
|
5401
|
+
headers: z.record(
|
|
5402
|
+
z.lazy(() => UpdateAgentResponseBodyHeaders$inboundSchema),
|
|
5403
|
+
).optional(),
|
|
5404
|
+
cached_card: z.any().optional(),
|
|
5405
|
+
}).transform((v) => {
|
|
5406
|
+
return remap$(v, {
|
|
5407
|
+
"agent_url": "agentUrl",
|
|
5408
|
+
"card_url": "cardUrl",
|
|
5409
|
+
"cached_card": "cachedCard",
|
|
5410
|
+
});
|
|
5411
|
+
});
|
|
5412
|
+
|
|
5413
|
+
export function updateAgentResponseBodyA2AAgentConfigurationFromJSON(
|
|
5414
|
+
jsonString: string,
|
|
5415
|
+
): SafeParseResult<
|
|
5416
|
+
UpdateAgentResponseBodyA2AAgentConfiguration,
|
|
5417
|
+
SDKValidationError
|
|
5418
|
+
> {
|
|
5419
|
+
return safeParse(
|
|
5420
|
+
jsonString,
|
|
5421
|
+
(x) =>
|
|
5422
|
+
UpdateAgentResponseBodyA2AAgentConfiguration$inboundSchema.parse(
|
|
5423
|
+
JSON.parse(x),
|
|
5424
|
+
),
|
|
5425
|
+
`Failed to parse 'UpdateAgentResponseBodyA2AAgentConfiguration' from JSON`,
|
|
5426
|
+
);
|
|
5427
|
+
}
|
|
5428
|
+
|
|
5429
|
+
/** @internal */
|
|
5430
|
+
export const UpdateAgentResponseBody2$inboundSchema: z.ZodType<
|
|
5431
|
+
UpdateAgentResponseBody2,
|
|
5432
|
+
z.ZodTypeDef,
|
|
5433
|
+
unknown
|
|
5434
|
+
> = z.object({
|
|
5435
|
+
_id: z.string(),
|
|
5436
|
+
key: z.string(),
|
|
5437
|
+
display_name: z.string().optional(),
|
|
5438
|
+
project_id: z.string(),
|
|
5439
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
5440
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
5441
|
+
created: z.string().optional(),
|
|
5442
|
+
updated: z.string().optional(),
|
|
5443
|
+
status: UpdateAgentResponseBodyAgentsStatus$inboundSchema,
|
|
5444
|
+
version_hash: z.string().optional(),
|
|
5445
|
+
path: z.string(),
|
|
5446
|
+
memory_stores: z.array(z.string()).optional(),
|
|
5447
|
+
team_of_agents: z.array(
|
|
5448
|
+
z.lazy(() => UpdateAgentResponseBodyAgentsTeamOfAgents$inboundSchema),
|
|
5449
|
+
).optional(),
|
|
5450
|
+
metrics: z.lazy(() => UpdateAgentResponseBodyAgentsMetrics$inboundSchema)
|
|
5451
|
+
.optional(),
|
|
5452
|
+
variables: z.record(z.any()).optional(),
|
|
5453
|
+
knowledge_bases: z.array(
|
|
5454
|
+
z.lazy(() => UpdateAgentResponseBodyAgentsKnowledgeBases$inboundSchema),
|
|
5455
|
+
).optional(),
|
|
5456
|
+
source: UpdateAgentResponseBodyAgentsSource$inboundSchema.optional(),
|
|
5457
|
+
type: z.literal("a2a"),
|
|
5458
|
+
role: z.string(),
|
|
5459
|
+
description: z.string(),
|
|
5460
|
+
system_prompt: z.string().optional(),
|
|
5461
|
+
instructions: z.string(),
|
|
5462
|
+
a2a: z.lazy(() => UpdateAgentResponseBodyA2AAgentConfiguration$inboundSchema),
|
|
5463
|
+
}).transform((v) => {
|
|
5464
|
+
return remap$(v, {
|
|
5465
|
+
"_id": "id",
|
|
5466
|
+
"display_name": "displayName",
|
|
5467
|
+
"project_id": "projectId",
|
|
5468
|
+
"created_by_id": "createdById",
|
|
5469
|
+
"updated_by_id": "updatedById",
|
|
5470
|
+
"version_hash": "versionHash",
|
|
5471
|
+
"memory_stores": "memoryStores",
|
|
5472
|
+
"team_of_agents": "teamOfAgents",
|
|
5473
|
+
"knowledge_bases": "knowledgeBases",
|
|
5474
|
+
"system_prompt": "systemPrompt",
|
|
5475
|
+
});
|
|
5476
|
+
});
|
|
5477
|
+
|
|
5478
|
+
export function updateAgentResponseBody2FromJSON(
|
|
5479
|
+
jsonString: string,
|
|
5480
|
+
): SafeParseResult<UpdateAgentResponseBody2, SDKValidationError> {
|
|
5481
|
+
return safeParse(
|
|
5482
|
+
jsonString,
|
|
5483
|
+
(x) => UpdateAgentResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
5484
|
+
`Failed to parse 'UpdateAgentResponseBody2' from JSON`,
|
|
5485
|
+
);
|
|
5486
|
+
}
|
|
5487
|
+
|
|
5488
|
+
/** @internal */
|
|
5489
|
+
export const UpdateAgentResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
|
|
5490
|
+
typeof UpdateAgentResponseBodyStatus
|
|
5491
|
+
> = z.nativeEnum(UpdateAgentResponseBodyStatus);
|
|
5492
|
+
|
|
5493
|
+
/** @internal */
|
|
5494
|
+
export const UpdateAgentResponseBodyTeamOfAgents$inboundSchema: z.ZodType<
|
|
5495
|
+
UpdateAgentResponseBodyTeamOfAgents,
|
|
5496
|
+
z.ZodTypeDef,
|
|
5497
|
+
unknown
|
|
5498
|
+
> = z.object({
|
|
5499
|
+
key: z.string(),
|
|
5500
|
+
role: z.string().optional(),
|
|
5501
|
+
});
|
|
5502
|
+
|
|
5503
|
+
export function updateAgentResponseBodyTeamOfAgentsFromJSON(
|
|
5504
|
+
jsonString: string,
|
|
5505
|
+
): SafeParseResult<UpdateAgentResponseBodyTeamOfAgents, SDKValidationError> {
|
|
5506
|
+
return safeParse(
|
|
5507
|
+
jsonString,
|
|
5508
|
+
(x) =>
|
|
5509
|
+
UpdateAgentResponseBodyTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
5510
|
+
`Failed to parse 'UpdateAgentResponseBodyTeamOfAgents' from JSON`,
|
|
5511
|
+
);
|
|
5512
|
+
}
|
|
5513
|
+
|
|
5514
|
+
/** @internal */
|
|
5515
|
+
export const UpdateAgentResponseBodyMetrics$inboundSchema: z.ZodType<
|
|
5516
|
+
UpdateAgentResponseBodyMetrics,
|
|
5517
|
+
z.ZodTypeDef,
|
|
5518
|
+
unknown
|
|
5519
|
+
> = z.object({
|
|
5520
|
+
total_cost: z.number().default(0),
|
|
5521
|
+
}).transform((v) => {
|
|
5522
|
+
return remap$(v, {
|
|
5523
|
+
"total_cost": "totalCost",
|
|
5524
|
+
});
|
|
5525
|
+
});
|
|
5526
|
+
|
|
5527
|
+
export function updateAgentResponseBodyMetricsFromJSON(
|
|
5528
|
+
jsonString: string,
|
|
5529
|
+
): SafeParseResult<UpdateAgentResponseBodyMetrics, SDKValidationError> {
|
|
5530
|
+
return safeParse(
|
|
5531
|
+
jsonString,
|
|
5532
|
+
(x) => UpdateAgentResponseBodyMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
5533
|
+
`Failed to parse 'UpdateAgentResponseBodyMetrics' from JSON`,
|
|
5613
5534
|
);
|
|
5614
5535
|
}
|
|
5615
5536
|
|
|
5616
5537
|
/** @internal */
|
|
5617
|
-
export
|
|
5618
|
-
|
|
5619
|
-
RequestBody: UpdateAgentUpdateAgentRequest$Outbound;
|
|
5620
|
-
};
|
|
5621
|
-
|
|
5622
|
-
/** @internal */
|
|
5623
|
-
export const UpdateAgentRequest$outboundSchema: z.ZodType<
|
|
5624
|
-
UpdateAgentRequest$Outbound,
|
|
5538
|
+
export const UpdateAgentResponseBodyKnowledgeBases$inboundSchema: z.ZodType<
|
|
5539
|
+
UpdateAgentResponseBodyKnowledgeBases,
|
|
5625
5540
|
z.ZodTypeDef,
|
|
5626
|
-
|
|
5541
|
+
unknown
|
|
5627
5542
|
> = z.object({
|
|
5628
|
-
|
|
5629
|
-
requestBody: z.lazy(() => UpdateAgentUpdateAgentRequest$outboundSchema),
|
|
5543
|
+
knowledge_id: z.string(),
|
|
5630
5544
|
}).transform((v) => {
|
|
5631
5545
|
return remap$(v, {
|
|
5632
|
-
|
|
5633
|
-
requestBody: "RequestBody",
|
|
5546
|
+
"knowledge_id": "knowledgeId",
|
|
5634
5547
|
});
|
|
5635
5548
|
});
|
|
5636
5549
|
|
|
5637
|
-
export function
|
|
5638
|
-
|
|
5639
|
-
):
|
|
5640
|
-
return
|
|
5641
|
-
|
|
5550
|
+
export function updateAgentResponseBodyKnowledgeBasesFromJSON(
|
|
5551
|
+
jsonString: string,
|
|
5552
|
+
): SafeParseResult<UpdateAgentResponseBodyKnowledgeBases, SDKValidationError> {
|
|
5553
|
+
return safeParse(
|
|
5554
|
+
jsonString,
|
|
5555
|
+
(x) =>
|
|
5556
|
+
UpdateAgentResponseBodyKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
5557
|
+
`Failed to parse 'UpdateAgentResponseBodyKnowledgeBases' from JSON`,
|
|
5642
5558
|
);
|
|
5643
5559
|
}
|
|
5644
5560
|
|
|
5645
5561
|
/** @internal */
|
|
5646
|
-
export const
|
|
5647
|
-
typeof
|
|
5648
|
-
> = z.nativeEnum(
|
|
5562
|
+
export const UpdateAgentResponseBodySource$inboundSchema: z.ZodNativeEnum<
|
|
5563
|
+
typeof UpdateAgentResponseBodySource
|
|
5564
|
+
> = z.nativeEnum(UpdateAgentResponseBodySource);
|
|
5649
5565
|
|
|
5650
5566
|
/** @internal */
|
|
5651
|
-
export const
|
|
5652
|
-
z.ZodNativeEnum<typeof
|
|
5653
|
-
|
|
5654
|
-
);
|
|
5567
|
+
export const UpdateAgentResponseBodyToolApprovalRequired$inboundSchema:
|
|
5568
|
+
z.ZodNativeEnum<typeof UpdateAgentResponseBodyToolApprovalRequired> = z
|
|
5569
|
+
.nativeEnum(UpdateAgentResponseBodyToolApprovalRequired);
|
|
5655
5570
|
|
|
5656
5571
|
/** @internal */
|
|
5657
|
-
export const
|
|
5658
|
-
|
|
5572
|
+
export const UpdateAgentResponseBodyConditions$inboundSchema: z.ZodType<
|
|
5573
|
+
UpdateAgentResponseBodyConditions,
|
|
5659
5574
|
z.ZodTypeDef,
|
|
5660
5575
|
unknown
|
|
5661
5576
|
> = z.object({
|
|
@@ -5664,19 +5579,19 @@ export const UpdateAgentConditions$inboundSchema: z.ZodType<
|
|
|
5664
5579
|
value: z.string(),
|
|
5665
5580
|
});
|
|
5666
5581
|
|
|
5667
|
-
export function
|
|
5582
|
+
export function updateAgentResponseBodyConditionsFromJSON(
|
|
5668
5583
|
jsonString: string,
|
|
5669
|
-
): SafeParseResult<
|
|
5584
|
+
): SafeParseResult<UpdateAgentResponseBodyConditions, SDKValidationError> {
|
|
5670
5585
|
return safeParse(
|
|
5671
5586
|
jsonString,
|
|
5672
|
-
(x) =>
|
|
5673
|
-
`Failed to parse '
|
|
5587
|
+
(x) => UpdateAgentResponseBodyConditions$inboundSchema.parse(JSON.parse(x)),
|
|
5588
|
+
`Failed to parse 'UpdateAgentResponseBodyConditions' from JSON`,
|
|
5674
5589
|
);
|
|
5675
5590
|
}
|
|
5676
5591
|
|
|
5677
5592
|
/** @internal */
|
|
5678
|
-
export const
|
|
5679
|
-
|
|
5593
|
+
export const UpdateAgentResponseBodyTools$inboundSchema: z.ZodType<
|
|
5594
|
+
UpdateAgentResponseBodyTools,
|
|
5680
5595
|
z.ZodTypeDef,
|
|
5681
5596
|
unknown
|
|
5682
5597
|
> = z.object({
|
|
@@ -5687,8 +5602,9 @@ export const UpdateAgentTools$inboundSchema: z.ZodType<
|
|
|
5687
5602
|
description: z.string().optional(),
|
|
5688
5603
|
requires_approval: z.boolean().default(false),
|
|
5689
5604
|
tool_id: z.string().optional(),
|
|
5690
|
-
conditions: z.array(
|
|
5691
|
-
.
|
|
5605
|
+
conditions: z.array(
|
|
5606
|
+
z.lazy(() => UpdateAgentResponseBodyConditions$inboundSchema),
|
|
5607
|
+
).optional(),
|
|
5692
5608
|
timeout: z.number().default(120),
|
|
5693
5609
|
}).transform((v) => {
|
|
5694
5610
|
return remap$(v, {
|
|
@@ -5699,30 +5615,30 @@ export const UpdateAgentTools$inboundSchema: z.ZodType<
|
|
|
5699
5615
|
});
|
|
5700
5616
|
});
|
|
5701
5617
|
|
|
5702
|
-
export function
|
|
5618
|
+
export function updateAgentResponseBodyToolsFromJSON(
|
|
5703
5619
|
jsonString: string,
|
|
5704
|
-
): SafeParseResult<
|
|
5620
|
+
): SafeParseResult<UpdateAgentResponseBodyTools, SDKValidationError> {
|
|
5705
5621
|
return safeParse(
|
|
5706
5622
|
jsonString,
|
|
5707
|
-
(x) =>
|
|
5708
|
-
`Failed to parse '
|
|
5623
|
+
(x) => UpdateAgentResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
|
|
5624
|
+
`Failed to parse 'UpdateAgentResponseBodyTools' from JSON`,
|
|
5709
5625
|
);
|
|
5710
5626
|
}
|
|
5711
5627
|
|
|
5712
5628
|
/** @internal */
|
|
5713
|
-
export const
|
|
5714
|
-
typeof
|
|
5715
|
-
> = z.nativeEnum(
|
|
5629
|
+
export const UpdateAgentResponseBodyExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
5630
|
+
typeof UpdateAgentResponseBodyExecuteOn
|
|
5631
|
+
> = z.nativeEnum(UpdateAgentResponseBodyExecuteOn);
|
|
5716
5632
|
|
|
5717
5633
|
/** @internal */
|
|
5718
|
-
export const
|
|
5719
|
-
|
|
5634
|
+
export const UpdateAgentResponseBodyEvaluators$inboundSchema: z.ZodType<
|
|
5635
|
+
UpdateAgentResponseBodyEvaluators,
|
|
5720
5636
|
z.ZodTypeDef,
|
|
5721
5637
|
unknown
|
|
5722
5638
|
> = z.object({
|
|
5723
5639
|
id: z.string(),
|
|
5724
5640
|
sample_rate: z.number().default(50),
|
|
5725
|
-
execute_on:
|
|
5641
|
+
execute_on: UpdateAgentResponseBodyExecuteOn$inboundSchema,
|
|
5726
5642
|
}).transform((v) => {
|
|
5727
5643
|
return remap$(v, {
|
|
5728
5644
|
"sample_rate": "sampleRate",
|
|
@@ -5730,31 +5646,31 @@ export const UpdateAgentAgentsEvaluators$inboundSchema: z.ZodType<
|
|
|
5730
5646
|
});
|
|
5731
5647
|
});
|
|
5732
5648
|
|
|
5733
|
-
export function
|
|
5649
|
+
export function updateAgentResponseBodyEvaluatorsFromJSON(
|
|
5734
5650
|
jsonString: string,
|
|
5735
|
-
): SafeParseResult<
|
|
5651
|
+
): SafeParseResult<UpdateAgentResponseBodyEvaluators, SDKValidationError> {
|
|
5736
5652
|
return safeParse(
|
|
5737
5653
|
jsonString,
|
|
5738
|
-
(x) =>
|
|
5739
|
-
`Failed to parse '
|
|
5654
|
+
(x) => UpdateAgentResponseBodyEvaluators$inboundSchema.parse(JSON.parse(x)),
|
|
5655
|
+
`Failed to parse 'UpdateAgentResponseBodyEvaluators' from JSON`,
|
|
5740
5656
|
);
|
|
5741
5657
|
}
|
|
5742
5658
|
|
|
5743
5659
|
/** @internal */
|
|
5744
|
-
export const
|
|
5745
|
-
z.ZodNativeEnum<typeof
|
|
5746
|
-
|
|
5660
|
+
export const UpdateAgentResponseBodyAgentsExecuteOn$inboundSchema:
|
|
5661
|
+
z.ZodNativeEnum<typeof UpdateAgentResponseBodyAgentsExecuteOn> = z.nativeEnum(
|
|
5662
|
+
UpdateAgentResponseBodyAgentsExecuteOn,
|
|
5747
5663
|
);
|
|
5748
5664
|
|
|
5749
5665
|
/** @internal */
|
|
5750
|
-
export const
|
|
5751
|
-
|
|
5666
|
+
export const UpdateAgentResponseBodyGuardrails$inboundSchema: z.ZodType<
|
|
5667
|
+
UpdateAgentResponseBodyGuardrails,
|
|
5752
5668
|
z.ZodTypeDef,
|
|
5753
5669
|
unknown
|
|
5754
5670
|
> = z.object({
|
|
5755
5671
|
id: z.string(),
|
|
5756
5672
|
sample_rate: z.number().default(50),
|
|
5757
|
-
execute_on:
|
|
5673
|
+
execute_on: UpdateAgentResponseBodyAgentsExecuteOn$inboundSchema,
|
|
5758
5674
|
}).transform((v) => {
|
|
5759
5675
|
return remap$(v, {
|
|
5760
5676
|
"sample_rate": "sampleRate",
|
|
@@ -5762,32 +5678,37 @@ export const UpdateAgentAgentsGuardrails$inboundSchema: z.ZodType<
|
|
|
5762
5678
|
});
|
|
5763
5679
|
});
|
|
5764
5680
|
|
|
5765
|
-
export function
|
|
5681
|
+
export function updateAgentResponseBodyGuardrailsFromJSON(
|
|
5766
5682
|
jsonString: string,
|
|
5767
|
-
): SafeParseResult<
|
|
5683
|
+
): SafeParseResult<UpdateAgentResponseBodyGuardrails, SDKValidationError> {
|
|
5768
5684
|
return safeParse(
|
|
5769
5685
|
jsonString,
|
|
5770
|
-
(x) =>
|
|
5771
|
-
`Failed to parse '
|
|
5686
|
+
(x) => UpdateAgentResponseBodyGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
5687
|
+
`Failed to parse 'UpdateAgentResponseBodyGuardrails' from JSON`,
|
|
5772
5688
|
);
|
|
5773
5689
|
}
|
|
5774
5690
|
|
|
5775
5691
|
/** @internal */
|
|
5776
|
-
export const
|
|
5777
|
-
|
|
5692
|
+
export const UpdateAgentResponseBodySettings$inboundSchema: z.ZodType<
|
|
5693
|
+
UpdateAgentResponseBodySettings,
|
|
5778
5694
|
z.ZodTypeDef,
|
|
5779
5695
|
unknown
|
|
5780
5696
|
> = z.object({
|
|
5781
5697
|
max_iterations: z.number().int().default(100),
|
|
5782
5698
|
max_execution_time: z.number().int().default(600),
|
|
5783
5699
|
max_cost: z.number().default(0),
|
|
5784
|
-
tool_approval_required:
|
|
5785
|
-
.default(
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
guardrails: z.array(z.lazy(() => UpdateAgentAgentsGuardrails$inboundSchema))
|
|
5700
|
+
tool_approval_required:
|
|
5701
|
+
UpdateAgentResponseBodyToolApprovalRequired$inboundSchema.default(
|
|
5702
|
+
"respect_tool",
|
|
5703
|
+
),
|
|
5704
|
+
tools: z.array(z.lazy(() => UpdateAgentResponseBodyTools$inboundSchema))
|
|
5790
5705
|
.optional(),
|
|
5706
|
+
evaluators: z.array(
|
|
5707
|
+
z.lazy(() => UpdateAgentResponseBodyEvaluators$inboundSchema),
|
|
5708
|
+
).optional(),
|
|
5709
|
+
guardrails: z.array(
|
|
5710
|
+
z.lazy(() => UpdateAgentResponseBodyGuardrails$inboundSchema),
|
|
5711
|
+
).optional(),
|
|
5791
5712
|
}).transform((v) => {
|
|
5792
5713
|
return remap$(v, {
|
|
5793
5714
|
"max_iterations": "maxIterations",
|
|
@@ -5797,43 +5718,13 @@ export const UpdateAgentAgentsSettings$inboundSchema: z.ZodType<
|
|
|
5797
5718
|
});
|
|
5798
5719
|
});
|
|
5799
5720
|
|
|
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(
|
|
5721
|
+
export function updateAgentResponseBodySettingsFromJSON(
|
|
5831
5722
|
jsonString: string,
|
|
5832
|
-
): SafeParseResult<
|
|
5723
|
+
): SafeParseResult<UpdateAgentResponseBodySettings, SDKValidationError> {
|
|
5833
5724
|
return safeParse(
|
|
5834
5725
|
jsonString,
|
|
5835
|
-
(x) =>
|
|
5836
|
-
`Failed to parse '
|
|
5726
|
+
(x) => UpdateAgentResponseBodySettings$inboundSchema.parse(JSON.parse(x)),
|
|
5727
|
+
`Failed to parse 'UpdateAgentResponseBodySettings' from JSON`,
|
|
5837
5728
|
);
|
|
5838
5729
|
}
|
|
5839
5730
|
|
|
@@ -5952,8 +5843,8 @@ export function updateAgentResponseFormatAgentsResponseTextFromJSON(
|
|
|
5952
5843
|
}
|
|
5953
5844
|
|
|
5954
5845
|
/** @internal */
|
|
5955
|
-
export const
|
|
5956
|
-
|
|
5846
|
+
export const UpdateAgentResponseBodyResponseFormat$inboundSchema: z.ZodType<
|
|
5847
|
+
UpdateAgentResponseBodyResponseFormat,
|
|
5957
5848
|
z.ZodTypeDef,
|
|
5958
5849
|
unknown
|
|
5959
5850
|
> = z.union([
|
|
@@ -5964,64 +5855,43 @@ export const UpdateAgentResponseFormat$inboundSchema: z.ZodType<
|
|
|
5964
5855
|
),
|
|
5965
5856
|
]);
|
|
5966
5857
|
|
|
5967
|
-
export function
|
|
5858
|
+
export function updateAgentResponseBodyResponseFormatFromJSON(
|
|
5968
5859
|
jsonString: string,
|
|
5969
|
-
): SafeParseResult<
|
|
5860
|
+
): SafeParseResult<UpdateAgentResponseBodyResponseFormat, SDKValidationError> {
|
|
5970
5861
|
return safeParse(
|
|
5971
5862
|
jsonString,
|
|
5972
|
-
(x) =>
|
|
5973
|
-
|
|
5863
|
+
(x) =>
|
|
5864
|
+
UpdateAgentResponseBodyResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
5865
|
+
`Failed to parse 'UpdateAgentResponseBodyResponseFormat' from JSON`,
|
|
5974
5866
|
);
|
|
5975
5867
|
}
|
|
5976
5868
|
|
|
5977
5869
|
/** @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`,
|
|
5870
|
+
export const UpdateAgentResponseBodyReasoningEffort$inboundSchema:
|
|
5871
|
+
z.ZodNativeEnum<typeof UpdateAgentResponseBodyReasoningEffort> = z.nativeEnum(
|
|
5872
|
+
UpdateAgentResponseBodyReasoningEffort,
|
|
5996
5873
|
);
|
|
5997
|
-
}
|
|
5998
5874
|
|
|
5999
5875
|
/** @internal */
|
|
6000
|
-
export const
|
|
6001
|
-
|
|
5876
|
+
export const UpdateAgentResponseBodyStop$inboundSchema: z.ZodType<
|
|
5877
|
+
UpdateAgentResponseBodyStop,
|
|
6002
5878
|
z.ZodTypeDef,
|
|
6003
5879
|
unknown
|
|
6004
|
-
> = z.
|
|
6005
|
-
include_usage: z.boolean().optional(),
|
|
6006
|
-
}).transform((v) => {
|
|
6007
|
-
return remap$(v, {
|
|
6008
|
-
"include_usage": "includeUsage",
|
|
6009
|
-
});
|
|
6010
|
-
});
|
|
5880
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
6011
5881
|
|
|
6012
|
-
export function
|
|
5882
|
+
export function updateAgentResponseBodyStopFromJSON(
|
|
6013
5883
|
jsonString: string,
|
|
6014
|
-
): SafeParseResult<
|
|
5884
|
+
): SafeParseResult<UpdateAgentResponseBodyStop, SDKValidationError> {
|
|
6015
5885
|
return safeParse(
|
|
6016
5886
|
jsonString,
|
|
6017
|
-
(x) =>
|
|
6018
|
-
`Failed to parse '
|
|
5887
|
+
(x) => UpdateAgentResponseBodyStop$inboundSchema.parse(JSON.parse(x)),
|
|
5888
|
+
`Failed to parse 'UpdateAgentResponseBodyStop' from JSON`,
|
|
6019
5889
|
);
|
|
6020
5890
|
}
|
|
6021
5891
|
|
|
6022
5892
|
/** @internal */
|
|
6023
|
-
export const
|
|
6024
|
-
|
|
5893
|
+
export const UpdateAgentResponseBodyThinking$inboundSchema: z.ZodType<
|
|
5894
|
+
UpdateAgentResponseBodyThinking,
|
|
6025
5895
|
z.ZodTypeDef,
|
|
6026
5896
|
unknown
|
|
6027
5897
|
> = z.union([
|
|
@@ -6029,13 +5899,13 @@ export const UpdateAgentThinking$inboundSchema: z.ZodType<
|
|
|
6029
5899
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
6030
5900
|
]);
|
|
6031
5901
|
|
|
6032
|
-
export function
|
|
5902
|
+
export function updateAgentResponseBodyThinkingFromJSON(
|
|
6033
5903
|
jsonString: string,
|
|
6034
|
-
): SafeParseResult<
|
|
5904
|
+
): SafeParseResult<UpdateAgentResponseBodyThinking, SDKValidationError> {
|
|
6035
5905
|
return safeParse(
|
|
6036
5906
|
jsonString,
|
|
6037
|
-
(x) =>
|
|
6038
|
-
`Failed to parse '
|
|
5907
|
+
(x) => UpdateAgentResponseBodyThinking$inboundSchema.parse(JSON.parse(x)),
|
|
5908
|
+
`Failed to parse 'UpdateAgentResponseBodyThinking' from JSON`,
|
|
6039
5909
|
);
|
|
6040
5910
|
}
|
|
6041
5911
|
|
|
@@ -6100,8 +5970,8 @@ export const UpdateAgentToolChoiceAgentsResponse1$inboundSchema:
|
|
|
6100
5970
|
);
|
|
6101
5971
|
|
|
6102
5972
|
/** @internal */
|
|
6103
|
-
export const
|
|
6104
|
-
|
|
5973
|
+
export const UpdateAgentResponseBodyToolChoice$inboundSchema: z.ZodType<
|
|
5974
|
+
UpdateAgentResponseBodyToolChoice,
|
|
6105
5975
|
z.ZodTypeDef,
|
|
6106
5976
|
unknown
|
|
6107
5977
|
> = z.union([
|
|
@@ -6109,20 +5979,20 @@ export const UpdateAgentToolChoice$inboundSchema: z.ZodType<
|
|
|
6109
5979
|
UpdateAgentToolChoiceAgentsResponse1$inboundSchema,
|
|
6110
5980
|
]);
|
|
6111
5981
|
|
|
6112
|
-
export function
|
|
5982
|
+
export function updateAgentResponseBodyToolChoiceFromJSON(
|
|
6113
5983
|
jsonString: string,
|
|
6114
|
-
): SafeParseResult<
|
|
5984
|
+
): SafeParseResult<UpdateAgentResponseBodyToolChoice, SDKValidationError> {
|
|
6115
5985
|
return safeParse(
|
|
6116
5986
|
jsonString,
|
|
6117
|
-
(x) =>
|
|
6118
|
-
`Failed to parse '
|
|
5987
|
+
(x) => UpdateAgentResponseBodyToolChoice$inboundSchema.parse(JSON.parse(x)),
|
|
5988
|
+
`Failed to parse 'UpdateAgentResponseBodyToolChoice' from JSON`,
|
|
6119
5989
|
);
|
|
6120
5990
|
}
|
|
6121
5991
|
|
|
6122
5992
|
/** @internal */
|
|
6123
|
-
export const
|
|
6124
|
-
typeof
|
|
6125
|
-
> = z.nativeEnum(
|
|
5993
|
+
export const UpdateAgentResponseBodyModalities$inboundSchema: z.ZodNativeEnum<
|
|
5994
|
+
typeof UpdateAgentResponseBodyModalities
|
|
5995
|
+
> = z.nativeEnum(UpdateAgentResponseBodyModalities);
|
|
6126
5996
|
|
|
6127
5997
|
/** @internal */
|
|
6128
5998
|
export const UpdateAgentIdAgentsResponse1$inboundSchema: z.ZodNativeEnum<
|
|
@@ -6130,118 +6000,98 @@ export const UpdateAgentIdAgentsResponse1$inboundSchema: z.ZodNativeEnum<
|
|
|
6130
6000
|
> = z.nativeEnum(UpdateAgentIdAgentsResponse1);
|
|
6131
6001
|
|
|
6132
6002
|
/** @internal */
|
|
6133
|
-
export const
|
|
6134
|
-
|
|
6003
|
+
export const UpdateAgentResponseBodyId$inboundSchema: z.ZodType<
|
|
6004
|
+
UpdateAgentResponseBodyId,
|
|
6135
6005
|
z.ZodTypeDef,
|
|
6136
6006
|
unknown
|
|
6137
6007
|
> = z.union([UpdateAgentIdAgentsResponse1$inboundSchema, z.string()]);
|
|
6138
6008
|
|
|
6139
|
-
export function
|
|
6009
|
+
export function updateAgentResponseBodyIdFromJSON(
|
|
6140
6010
|
jsonString: string,
|
|
6141
|
-
): SafeParseResult<
|
|
6011
|
+
): SafeParseResult<UpdateAgentResponseBodyId, SDKValidationError> {
|
|
6142
6012
|
return safeParse(
|
|
6143
6013
|
jsonString,
|
|
6144
|
-
(x) =>
|
|
6145
|
-
`Failed to parse '
|
|
6014
|
+
(x) => UpdateAgentResponseBodyId$inboundSchema.parse(JSON.parse(x)),
|
|
6015
|
+
`Failed to parse 'UpdateAgentResponseBodyId' from JSON`,
|
|
6146
6016
|
);
|
|
6147
6017
|
}
|
|
6148
6018
|
|
|
6149
6019
|
/** @internal */
|
|
6150
|
-
export const
|
|
6151
|
-
z.ZodNativeEnum<typeof
|
|
6152
|
-
|
|
6020
|
+
export const UpdateAgentResponseBodyAgentsResponseExecuteOn$inboundSchema:
|
|
6021
|
+
z.ZodNativeEnum<typeof UpdateAgentResponseBodyAgentsResponseExecuteOn> = z
|
|
6022
|
+
.nativeEnum(UpdateAgentResponseBodyAgentsResponseExecuteOn);
|
|
6153
6023
|
|
|
6154
6024
|
/** @internal */
|
|
6155
|
-
export const
|
|
6156
|
-
|
|
6025
|
+
export const UpdateAgentResponseBodyAgentsGuardrails$inboundSchema: z.ZodType<
|
|
6026
|
+
UpdateAgentResponseBodyAgentsGuardrails,
|
|
6157
6027
|
z.ZodTypeDef,
|
|
6158
6028
|
unknown
|
|
6159
6029
|
> = z.object({
|
|
6160
6030
|
id: z.union([UpdateAgentIdAgentsResponse1$inboundSchema, z.string()]),
|
|
6161
|
-
execute_on:
|
|
6162
|
-
UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$inboundSchema,
|
|
6031
|
+
execute_on: UpdateAgentResponseBodyAgentsResponseExecuteOn$inboundSchema,
|
|
6163
6032
|
}).transform((v) => {
|
|
6164
6033
|
return remap$(v, {
|
|
6165
6034
|
"execute_on": "executeOn",
|
|
6166
6035
|
});
|
|
6167
6036
|
});
|
|
6168
6037
|
|
|
6169
|
-
export function
|
|
6038
|
+
export function updateAgentResponseBodyAgentsGuardrailsFromJSON(
|
|
6170
6039
|
jsonString: string,
|
|
6171
|
-
): SafeParseResult<
|
|
6040
|
+
): SafeParseResult<
|
|
6041
|
+
UpdateAgentResponseBodyAgentsGuardrails,
|
|
6042
|
+
SDKValidationError
|
|
6043
|
+
> {
|
|
6172
6044
|
return safeParse(
|
|
6173
6045
|
jsonString,
|
|
6174
6046
|
(x) =>
|
|
6175
|
-
|
|
6176
|
-
|
|
6047
|
+
UpdateAgentResponseBodyAgentsGuardrails$inboundSchema.parse(
|
|
6048
|
+
JSON.parse(x),
|
|
6049
|
+
),
|
|
6050
|
+
`Failed to parse 'UpdateAgentResponseBodyAgentsGuardrails' from JSON`,
|
|
6177
6051
|
);
|
|
6178
6052
|
}
|
|
6179
6053
|
|
|
6180
6054
|
/** @internal */
|
|
6181
|
-
export const
|
|
6182
|
-
|
|
6055
|
+
export const UpdateAgentResponseBodyFallbacks$inboundSchema: z.ZodType<
|
|
6056
|
+
UpdateAgentResponseBodyFallbacks,
|
|
6183
6057
|
z.ZodTypeDef,
|
|
6184
6058
|
unknown
|
|
6185
6059
|
> = z.object({
|
|
6186
6060
|
model: z.string(),
|
|
6187
6061
|
});
|
|
6188
6062
|
|
|
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(
|
|
6063
|
+
export function updateAgentResponseBodyFallbacksFromJSON(
|
|
6214
6064
|
jsonString: string,
|
|
6215
|
-
): SafeParseResult<
|
|
6065
|
+
): SafeParseResult<UpdateAgentResponseBodyFallbacks, SDKValidationError> {
|
|
6216
6066
|
return safeParse(
|
|
6217
6067
|
jsonString,
|
|
6218
|
-
(x) =>
|
|
6219
|
-
`Failed to parse '
|
|
6068
|
+
(x) => UpdateAgentResponseBodyFallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
6069
|
+
`Failed to parse 'UpdateAgentResponseBodyFallbacks' from JSON`,
|
|
6220
6070
|
);
|
|
6221
6071
|
}
|
|
6222
6072
|
|
|
6223
6073
|
/** @internal */
|
|
6224
|
-
export const
|
|
6225
|
-
typeof
|
|
6226
|
-
|
|
6074
|
+
export const UpdateAgentResponseBodyAgentsResponseType$inboundSchema:
|
|
6075
|
+
z.ZodNativeEnum<typeof UpdateAgentResponseBodyAgentsResponseType> = z
|
|
6076
|
+
.nativeEnum(UpdateAgentResponseBodyAgentsResponseType);
|
|
6227
6077
|
|
|
6228
6078
|
/** @internal */
|
|
6229
|
-
export const
|
|
6230
|
-
|
|
6079
|
+
export const UpdateAgentResponseBodyCache$inboundSchema: z.ZodType<
|
|
6080
|
+
UpdateAgentResponseBodyCache,
|
|
6231
6081
|
z.ZodTypeDef,
|
|
6232
6082
|
unknown
|
|
6233
6083
|
> = z.object({
|
|
6234
6084
|
ttl: z.number().default(1800),
|
|
6235
|
-
type:
|
|
6085
|
+
type: UpdateAgentResponseBodyAgentsResponseType$inboundSchema,
|
|
6236
6086
|
});
|
|
6237
6087
|
|
|
6238
|
-
export function
|
|
6088
|
+
export function updateAgentResponseBodyCacheFromJSON(
|
|
6239
6089
|
jsonString: string,
|
|
6240
|
-
): SafeParseResult<
|
|
6090
|
+
): SafeParseResult<UpdateAgentResponseBodyCache, SDKValidationError> {
|
|
6241
6091
|
return safeParse(
|
|
6242
6092
|
jsonString,
|
|
6243
|
-
(x) =>
|
|
6244
|
-
`Failed to parse '
|
|
6093
|
+
(x) => UpdateAgentResponseBodyCache$inboundSchema.parse(JSON.parse(x)),
|
|
6094
|
+
`Failed to parse 'UpdateAgentResponseBodyCache' from JSON`,
|
|
6245
6095
|
);
|
|
6246
6096
|
}
|
|
6247
6097
|
|
|
@@ -6301,25 +6151,26 @@ export function updateAgentLoadBalancerAgentsResponse1FromJSON(
|
|
|
6301
6151
|
}
|
|
6302
6152
|
|
|
6303
6153
|
/** @internal */
|
|
6304
|
-
export const
|
|
6305
|
-
|
|
6154
|
+
export const UpdateAgentResponseBodyLoadBalancer$inboundSchema: z.ZodType<
|
|
6155
|
+
UpdateAgentResponseBodyLoadBalancer,
|
|
6306
6156
|
z.ZodTypeDef,
|
|
6307
6157
|
unknown
|
|
6308
6158
|
> = z.lazy(() => UpdateAgentLoadBalancerAgentsResponse1$inboundSchema);
|
|
6309
6159
|
|
|
6310
|
-
export function
|
|
6160
|
+
export function updateAgentResponseBodyLoadBalancerFromJSON(
|
|
6311
6161
|
jsonString: string,
|
|
6312
|
-
): SafeParseResult<
|
|
6162
|
+
): SafeParseResult<UpdateAgentResponseBodyLoadBalancer, SDKValidationError> {
|
|
6313
6163
|
return safeParse(
|
|
6314
6164
|
jsonString,
|
|
6315
|
-
(x) =>
|
|
6316
|
-
|
|
6165
|
+
(x) =>
|
|
6166
|
+
UpdateAgentResponseBodyLoadBalancer$inboundSchema.parse(JSON.parse(x)),
|
|
6167
|
+
`Failed to parse 'UpdateAgentResponseBodyLoadBalancer' from JSON`,
|
|
6317
6168
|
);
|
|
6318
6169
|
}
|
|
6319
6170
|
|
|
6320
6171
|
/** @internal */
|
|
6321
|
-
export const
|
|
6322
|
-
|
|
6172
|
+
export const UpdateAgentResponseBodyTimeout$inboundSchema: z.ZodType<
|
|
6173
|
+
UpdateAgentResponseBodyTimeout,
|
|
6323
6174
|
z.ZodTypeDef,
|
|
6324
6175
|
unknown
|
|
6325
6176
|
> = z.object({
|
|
@@ -6330,30 +6181,26 @@ export const UpdateAgentTimeout$inboundSchema: z.ZodType<
|
|
|
6330
6181
|
});
|
|
6331
6182
|
});
|
|
6332
6183
|
|
|
6333
|
-
export function
|
|
6184
|
+
export function updateAgentResponseBodyTimeoutFromJSON(
|
|
6334
6185
|
jsonString: string,
|
|
6335
|
-
): SafeParseResult<
|
|
6186
|
+
): SafeParseResult<UpdateAgentResponseBodyTimeout, SDKValidationError> {
|
|
6336
6187
|
return safeParse(
|
|
6337
6188
|
jsonString,
|
|
6338
|
-
(x) =>
|
|
6339
|
-
`Failed to parse '
|
|
6189
|
+
(x) => UpdateAgentResponseBodyTimeout$inboundSchema.parse(JSON.parse(x)),
|
|
6190
|
+
`Failed to parse 'UpdateAgentResponseBodyTimeout' from JSON`,
|
|
6340
6191
|
);
|
|
6341
6192
|
}
|
|
6342
6193
|
|
|
6343
6194
|
/** @internal */
|
|
6344
|
-
export const
|
|
6345
|
-
|
|
6195
|
+
export const UpdateAgentResponseBodyParameters$inboundSchema: z.ZodType<
|
|
6196
|
+
UpdateAgentResponseBodyParameters,
|
|
6346
6197
|
z.ZodTypeDef,
|
|
6347
6198
|
unknown
|
|
6348
6199
|
> = z.object({
|
|
6349
6200
|
name: z.string().optional(),
|
|
6350
|
-
audio: z.nullable(z.lazy(() => UpdateAgentAudio$inboundSchema)).optional(),
|
|
6351
6201
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
6352
6202
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
6353
6203
|
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
6204
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
6358
6205
|
response_format: z.union([
|
|
6359
6206
|
z.lazy(() => UpdateAgentResponseFormatAgentsResponseText$inboundSchema),
|
|
@@ -6364,13 +6211,11 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
6364
6211
|
UpdateAgentResponseFormatAgentsResponse200JSONSchema$inboundSchema
|
|
6365
6212
|
),
|
|
6366
6213
|
]).optional(),
|
|
6367
|
-
reasoning_effort:
|
|
6214
|
+
reasoning_effort: UpdateAgentResponseBodyReasoningEffort$inboundSchema
|
|
6215
|
+
.optional(),
|
|
6368
6216
|
verbosity: z.string().optional(),
|
|
6369
6217
|
seed: z.nullable(z.number()).optional(),
|
|
6370
6218
|
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
6219
|
thinking: z.union([
|
|
6375
6220
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
6376
6221
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -6383,29 +6228,29 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
6383
6228
|
UpdateAgentToolChoiceAgentsResponse1$inboundSchema,
|
|
6384
6229
|
]).optional(),
|
|
6385
6230
|
parallel_tool_calls: z.boolean().optional(),
|
|
6386
|
-
modalities: z.nullable(
|
|
6387
|
-
.
|
|
6231
|
+
modalities: z.nullable(
|
|
6232
|
+
z.array(UpdateAgentResponseBodyModalities$inboundSchema),
|
|
6233
|
+
).optional(),
|
|
6388
6234
|
guardrails: z.array(
|
|
6389
|
-
z.lazy(() =>
|
|
6235
|
+
z.lazy(() => UpdateAgentResponseBodyAgentsGuardrails$inboundSchema),
|
|
6390
6236
|
).optional(),
|
|
6391
|
-
fallbacks: z.array(
|
|
6392
|
-
.
|
|
6393
|
-
|
|
6394
|
-
cache: z.lazy(() =>
|
|
6237
|
+
fallbacks: z.array(
|
|
6238
|
+
z.lazy(() => UpdateAgentResponseBodyFallbacks$inboundSchema),
|
|
6239
|
+
).optional(),
|
|
6240
|
+
cache: z.lazy(() => UpdateAgentResponseBodyCache$inboundSchema).optional(),
|
|
6395
6241
|
load_balancer: z.lazy(() =>
|
|
6396
6242
|
UpdateAgentLoadBalancerAgentsResponse1$inboundSchema
|
|
6397
6243
|
).optional(),
|
|
6398
|
-
timeout: z.lazy(() =>
|
|
6244
|
+
timeout: z.lazy(() => UpdateAgentResponseBodyTimeout$inboundSchema)
|
|
6245
|
+
.optional(),
|
|
6399
6246
|
}).transform((v) => {
|
|
6400
6247
|
return remap$(v, {
|
|
6401
6248
|
"frequency_penalty": "frequencyPenalty",
|
|
6402
6249
|
"max_tokens": "maxTokens",
|
|
6403
6250
|
"max_completion_tokens": "maxCompletionTokens",
|
|
6404
|
-
"top_logprobs": "topLogprobs",
|
|
6405
6251
|
"presence_penalty": "presencePenalty",
|
|
6406
6252
|
"response_format": "responseFormat",
|
|
6407
6253
|
"reasoning_effort": "reasoningEffort",
|
|
6408
|
-
"stream_options": "streamOptions",
|
|
6409
6254
|
"top_p": "topP",
|
|
6410
6255
|
"top_k": "topK",
|
|
6411
6256
|
"tool_choice": "toolChoice",
|
|
@@ -6414,19 +6259,19 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
6414
6259
|
});
|
|
6415
6260
|
});
|
|
6416
6261
|
|
|
6417
|
-
export function
|
|
6262
|
+
export function updateAgentResponseBodyParametersFromJSON(
|
|
6418
6263
|
jsonString: string,
|
|
6419
|
-
): SafeParseResult<
|
|
6264
|
+
): SafeParseResult<UpdateAgentResponseBodyParameters, SDKValidationError> {
|
|
6420
6265
|
return safeParse(
|
|
6421
6266
|
jsonString,
|
|
6422
|
-
(x) =>
|
|
6423
|
-
`Failed to parse '
|
|
6267
|
+
(x) => UpdateAgentResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
|
|
6268
|
+
`Failed to parse 'UpdateAgentResponseBodyParameters' from JSON`,
|
|
6424
6269
|
);
|
|
6425
6270
|
}
|
|
6426
6271
|
|
|
6427
6272
|
/** @internal */
|
|
6428
|
-
export const
|
|
6429
|
-
|
|
6273
|
+
export const UpdateAgentResponseBodyRetry$inboundSchema: z.ZodType<
|
|
6274
|
+
UpdateAgentResponseBodyRetry,
|
|
6430
6275
|
z.ZodTypeDef,
|
|
6431
6276
|
unknown
|
|
6432
6277
|
> = z.object({
|
|
@@ -6438,50 +6283,13 @@ export const UpdateAgentRetry$inboundSchema: z.ZodType<
|
|
|
6438
6283
|
});
|
|
6439
6284
|
});
|
|
6440
6285
|
|
|
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(
|
|
6286
|
+
export function updateAgentResponseBodyRetryFromJSON(
|
|
6473
6287
|
jsonString: string,
|
|
6474
|
-
): SafeParseResult<
|
|
6475
|
-
UpdateAgentFallbackModelConfigurationAgentsAudio,
|
|
6476
|
-
SDKValidationError
|
|
6477
|
-
> {
|
|
6288
|
+
): SafeParseResult<UpdateAgentResponseBodyRetry, SDKValidationError> {
|
|
6478
6289
|
return safeParse(
|
|
6479
6290
|
jsonString,
|
|
6480
|
-
(x) =>
|
|
6481
|
-
|
|
6482
|
-
JSON.parse(x),
|
|
6483
|
-
),
|
|
6484
|
-
`Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsAudio' from JSON`,
|
|
6291
|
+
(x) => UpdateAgentResponseBodyRetry$inboundSchema.parse(JSON.parse(x)),
|
|
6292
|
+
`Failed to parse 'UpdateAgentResponseBodyRetry' from JSON`,
|
|
6485
6293
|
);
|
|
6486
6294
|
}
|
|
6487
6295
|
|
|
@@ -6658,35 +6466,6 @@ export function updateAgentFallbackModelConfigurationAgentsStopFromJSON(
|
|
|
6658
6466
|
);
|
|
6659
6467
|
}
|
|
6660
6468
|
|
|
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
6469
|
/** @internal */
|
|
6691
6470
|
export const UpdateAgentFallbackModelConfigurationAgentsThinking$inboundSchema:
|
|
6692
6471
|
z.ZodType<
|
|
@@ -6903,36 +6682,6 @@ export function updateAgentFallbackModelConfigurationAgentsFallbacksFromJSON(
|
|
|
6903
6682
|
);
|
|
6904
6683
|
}
|
|
6905
6684
|
|
|
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
6685
|
/** @internal */
|
|
6937
6686
|
export const UpdateAgentFallbackModelConfigurationAgentsType$inboundSchema:
|
|
6938
6687
|
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsType> = z
|
|
@@ -7086,17 +6835,9 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
7086
6835
|
unknown
|
|
7087
6836
|
> = z.object({
|
|
7088
6837
|
name: z.string().optional(),
|
|
7089
|
-
audio: z.nullable(
|
|
7090
|
-
z.lazy(() =>
|
|
7091
|
-
UpdateAgentFallbackModelConfigurationAgentsAudio$inboundSchema
|
|
7092
|
-
),
|
|
7093
|
-
).optional(),
|
|
7094
6838
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
7095
6839
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
7096
6840
|
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
6841
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
7101
6842
|
response_format: z.union([
|
|
7102
6843
|
z.lazy(() =>
|
|
@@ -7115,11 +6856,6 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
7115
6856
|
verbosity: z.string().optional(),
|
|
7116
6857
|
seed: z.nullable(z.number()).optional(),
|
|
7117
6858
|
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
6859
|
thinking: z.union([
|
|
7124
6860
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
7125
6861
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -7147,9 +6883,6 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
7147
6883
|
UpdateAgentFallbackModelConfigurationAgentsFallbacks$inboundSchema
|
|
7148
6884
|
),
|
|
7149
6885
|
).optional(),
|
|
7150
|
-
retry: z.lazy(() =>
|
|
7151
|
-
UpdateAgentFallbackModelConfigurationAgentsResponse200Retry$inboundSchema
|
|
7152
|
-
).optional(),
|
|
7153
6886
|
cache: z.lazy(() =>
|
|
7154
6887
|
UpdateAgentFallbackModelConfigurationAgentsCache$inboundSchema
|
|
7155
6888
|
).optional(),
|
|
@@ -7164,11 +6897,9 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
7164
6897
|
"frequency_penalty": "frequencyPenalty",
|
|
7165
6898
|
"max_tokens": "maxTokens",
|
|
7166
6899
|
"max_completion_tokens": "maxCompletionTokens",
|
|
7167
|
-
"top_logprobs": "topLogprobs",
|
|
7168
6900
|
"presence_penalty": "presencePenalty",
|
|
7169
6901
|
"response_format": "responseFormat",
|
|
7170
6902
|
"reasoning_effort": "reasoningEffort",
|
|
7171
|
-
"stream_options": "streamOptions",
|
|
7172
6903
|
"top_p": "topP",
|
|
7173
6904
|
"top_k": "topK",
|
|
7174
6905
|
"tool_choice": "toolChoice",
|
|
@@ -7194,9 +6925,9 @@ export function updateAgentFallbackModelConfigurationAgentsParametersFromJSON(
|
|
|
7194
6925
|
}
|
|
7195
6926
|
|
|
7196
6927
|
/** @internal */
|
|
7197
|
-
export const
|
|
6928
|
+
export const UpdateAgentFallbackModelConfigurationAgentsRetry$inboundSchema:
|
|
7198
6929
|
z.ZodType<
|
|
7199
|
-
|
|
6930
|
+
UpdateAgentFallbackModelConfigurationAgentsRetry,
|
|
7200
6931
|
z.ZodTypeDef,
|
|
7201
6932
|
unknown
|
|
7202
6933
|
> = z.object({
|
|
@@ -7208,18 +6939,19 @@ export const UpdateAgentFallbackModelConfigurationAgentsResponseRetry$inboundSch
|
|
|
7208
6939
|
});
|
|
7209
6940
|
});
|
|
7210
6941
|
|
|
7211
|
-
export function
|
|
6942
|
+
export function updateAgentFallbackModelConfigurationAgentsRetryFromJSON(
|
|
7212
6943
|
jsonString: string,
|
|
7213
6944
|
): SafeParseResult<
|
|
7214
|
-
|
|
6945
|
+
UpdateAgentFallbackModelConfigurationAgentsRetry,
|
|
7215
6946
|
SDKValidationError
|
|
7216
6947
|
> {
|
|
7217
6948
|
return safeParse(
|
|
7218
6949
|
jsonString,
|
|
7219
6950
|
(x) =>
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
6951
|
+
UpdateAgentFallbackModelConfigurationAgentsRetry$inboundSchema.parse(
|
|
6952
|
+
JSON.parse(x),
|
|
6953
|
+
),
|
|
6954
|
+
`Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsRetry' from JSON`,
|
|
7223
6955
|
);
|
|
7224
6956
|
}
|
|
7225
6957
|
|
|
@@ -7235,7 +6967,7 @@ export const UpdateAgentFallbackModelConfigurationAgents2$inboundSchema:
|
|
|
7235
6967
|
UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
7236
6968
|
).optional(),
|
|
7237
6969
|
retry: z.lazy(() =>
|
|
7238
|
-
|
|
6970
|
+
UpdateAgentFallbackModelConfigurationAgentsRetry$inboundSchema
|
|
7239
6971
|
).optional(),
|
|
7240
6972
|
});
|
|
7241
6973
|
|
|
@@ -7256,9 +6988,9 @@ export function updateAgentFallbackModelConfigurationAgents2FromJSON(
|
|
|
7256
6988
|
}
|
|
7257
6989
|
|
|
7258
6990
|
/** @internal */
|
|
7259
|
-
export const
|
|
6991
|
+
export const UpdateAgentResponseBodyFallbackModelConfiguration$inboundSchema:
|
|
7260
6992
|
z.ZodType<
|
|
7261
|
-
|
|
6993
|
+
UpdateAgentResponseBodyFallbackModelConfiguration,
|
|
7262
6994
|
z.ZodTypeDef,
|
|
7263
6995
|
unknown
|
|
7264
6996
|
> = z.union([
|
|
@@ -7266,32 +6998,33 @@ export const UpdateAgentAgentsFallbackModelConfiguration$inboundSchema:
|
|
|
7266
6998
|
z.string(),
|
|
7267
6999
|
]);
|
|
7268
7000
|
|
|
7269
|
-
export function
|
|
7001
|
+
export function updateAgentResponseBodyFallbackModelConfigurationFromJSON(
|
|
7270
7002
|
jsonString: string,
|
|
7271
7003
|
): SafeParseResult<
|
|
7272
|
-
|
|
7004
|
+
UpdateAgentResponseBodyFallbackModelConfiguration,
|
|
7273
7005
|
SDKValidationError
|
|
7274
7006
|
> {
|
|
7275
7007
|
return safeParse(
|
|
7276
7008
|
jsonString,
|
|
7277
7009
|
(x) =>
|
|
7278
|
-
|
|
7010
|
+
UpdateAgentResponseBodyFallbackModelConfiguration$inboundSchema.parse(
|
|
7279
7011
|
JSON.parse(x),
|
|
7280
7012
|
),
|
|
7281
|
-
`Failed to parse '
|
|
7013
|
+
`Failed to parse 'UpdateAgentResponseBodyFallbackModelConfiguration' from JSON`,
|
|
7282
7014
|
);
|
|
7283
7015
|
}
|
|
7284
7016
|
|
|
7285
7017
|
/** @internal */
|
|
7286
|
-
export const
|
|
7287
|
-
|
|
7018
|
+
export const UpdateAgentResponseBodyModel$inboundSchema: z.ZodType<
|
|
7019
|
+
UpdateAgentResponseBodyModel,
|
|
7288
7020
|
z.ZodTypeDef,
|
|
7289
7021
|
unknown
|
|
7290
7022
|
> = z.object({
|
|
7291
7023
|
id: z.string(),
|
|
7292
7024
|
integration_id: z.nullable(z.string()).optional(),
|
|
7293
|
-
parameters: z.lazy(() =>
|
|
7294
|
-
|
|
7025
|
+
parameters: z.lazy(() => UpdateAgentResponseBodyParameters$inboundSchema)
|
|
7026
|
+
.optional(),
|
|
7027
|
+
retry: z.lazy(() => UpdateAgentResponseBodyRetry$inboundSchema).optional(),
|
|
7295
7028
|
fallback_models: z.nullable(
|
|
7296
7029
|
z.array(z.union([
|
|
7297
7030
|
z.lazy(() => UpdateAgentFallbackModelConfigurationAgents2$inboundSchema),
|
|
@@ -7305,137 +7038,87 @@ export const UpdateAgentModel$inboundSchema: z.ZodType<
|
|
|
7305
7038
|
});
|
|
7306
7039
|
});
|
|
7307
7040
|
|
|
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(
|
|
7041
|
+
export function updateAgentResponseBodyModelFromJSON(
|
|
7375
7042
|
jsonString: string,
|
|
7376
|
-
): SafeParseResult<
|
|
7043
|
+
): SafeParseResult<UpdateAgentResponseBodyModel, SDKValidationError> {
|
|
7377
7044
|
return safeParse(
|
|
7378
7045
|
jsonString,
|
|
7379
|
-
(x) =>
|
|
7380
|
-
`Failed to parse '
|
|
7046
|
+
(x) => UpdateAgentResponseBodyModel$inboundSchema.parse(JSON.parse(x)),
|
|
7047
|
+
`Failed to parse 'UpdateAgentResponseBodyModel' from JSON`,
|
|
7381
7048
|
);
|
|
7382
7049
|
}
|
|
7383
7050
|
|
|
7384
7051
|
/** @internal */
|
|
7385
|
-
export const
|
|
7386
|
-
|
|
7387
|
-
> = z.nativeEnum(UpdateAgentSource);
|
|
7388
|
-
|
|
7389
|
-
/** @internal */
|
|
7390
|
-
export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
|
|
7391
|
-
UpdateAgentResponseBody,
|
|
7052
|
+
export const UpdateAgentResponseBody1$inboundSchema: z.ZodType<
|
|
7053
|
+
UpdateAgentResponseBody1,
|
|
7392
7054
|
z.ZodTypeDef,
|
|
7393
7055
|
unknown
|
|
7394
7056
|
> = z.object({
|
|
7395
7057
|
_id: z.string(),
|
|
7396
7058
|
key: z.string(),
|
|
7397
7059
|
display_name: z.string().optional(),
|
|
7398
|
-
workspace_id: z.string(),
|
|
7399
7060
|
project_id: z.string(),
|
|
7400
7061
|
created_by_id: z.nullable(z.string()).optional(),
|
|
7401
7062
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
7402
7063
|
created: z.string().optional(),
|
|
7403
7064
|
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),
|
|
7065
|
+
status: UpdateAgentResponseBodyStatus$inboundSchema,
|
|
7411
7066
|
version_hash: z.string().optional(),
|
|
7412
7067
|
path: z.string(),
|
|
7413
|
-
memory_stores: z.array(z.string()),
|
|
7068
|
+
memory_stores: z.array(z.string()).optional(),
|
|
7414
7069
|
team_of_agents: z.array(
|
|
7415
|
-
z.lazy(() =>
|
|
7416
|
-
),
|
|
7417
|
-
metrics: z.lazy(() =>
|
|
7070
|
+
z.lazy(() => UpdateAgentResponseBodyTeamOfAgents$inboundSchema),
|
|
7071
|
+
).optional(),
|
|
7072
|
+
metrics: z.lazy(() => UpdateAgentResponseBodyMetrics$inboundSchema)
|
|
7073
|
+
.optional(),
|
|
7418
7074
|
variables: z.record(z.any()).optional(),
|
|
7419
7075
|
knowledge_bases: z.array(
|
|
7420
|
-
z.lazy(() =>
|
|
7076
|
+
z.lazy(() => UpdateAgentResponseBodyKnowledgeBases$inboundSchema),
|
|
7421
7077
|
).optional(),
|
|
7422
|
-
source:
|
|
7078
|
+
source: UpdateAgentResponseBodySource$inboundSchema.optional(),
|
|
7079
|
+
type: z.literal("internal"),
|
|
7080
|
+
role: z.string(),
|
|
7081
|
+
description: z.string(),
|
|
7082
|
+
system_prompt: z.string().optional(),
|
|
7083
|
+
instructions: z.string(),
|
|
7084
|
+
settings: z.lazy(() => UpdateAgentResponseBodySettings$inboundSchema)
|
|
7085
|
+
.optional(),
|
|
7086
|
+
model: z.lazy(() => UpdateAgentResponseBodyModel$inboundSchema),
|
|
7423
7087
|
}).transform((v) => {
|
|
7424
7088
|
return remap$(v, {
|
|
7425
7089
|
"_id": "id",
|
|
7426
7090
|
"display_name": "displayName",
|
|
7427
|
-
"workspace_id": "workspaceId",
|
|
7428
7091
|
"project_id": "projectId",
|
|
7429
7092
|
"created_by_id": "createdById",
|
|
7430
7093
|
"updated_by_id": "updatedById",
|
|
7431
|
-
"system_prompt": "systemPrompt",
|
|
7432
7094
|
"version_hash": "versionHash",
|
|
7433
7095
|
"memory_stores": "memoryStores",
|
|
7434
7096
|
"team_of_agents": "teamOfAgents",
|
|
7435
7097
|
"knowledge_bases": "knowledgeBases",
|
|
7098
|
+
"system_prompt": "systemPrompt",
|
|
7436
7099
|
});
|
|
7437
7100
|
});
|
|
7438
7101
|
|
|
7102
|
+
export function updateAgentResponseBody1FromJSON(
|
|
7103
|
+
jsonString: string,
|
|
7104
|
+
): SafeParseResult<UpdateAgentResponseBody1, SDKValidationError> {
|
|
7105
|
+
return safeParse(
|
|
7106
|
+
jsonString,
|
|
7107
|
+
(x) => UpdateAgentResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
7108
|
+
`Failed to parse 'UpdateAgentResponseBody1' from JSON`,
|
|
7109
|
+
);
|
|
7110
|
+
}
|
|
7111
|
+
|
|
7112
|
+
/** @internal */
|
|
7113
|
+
export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
|
|
7114
|
+
UpdateAgentResponseBody,
|
|
7115
|
+
z.ZodTypeDef,
|
|
7116
|
+
unknown
|
|
7117
|
+
> = z.union([
|
|
7118
|
+
z.lazy(() => UpdateAgentResponseBody1$inboundSchema),
|
|
7119
|
+
z.lazy(() => UpdateAgentResponseBody2$inboundSchema),
|
|
7120
|
+
]);
|
|
7121
|
+
|
|
7439
7122
|
export function updateAgentResponseBodyFromJSON(
|
|
7440
7123
|
jsonString: string,
|
|
7441
7124
|
): SafeParseResult<UpdateAgentResponseBody, SDKValidationError> {
|