@orq-ai/node 4.5.0-rc.9 → 4.5.3
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 +113 -500
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +103 -343
- 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/createprompt.d.ts +33 -32
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +33 -30
- 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.js +6 -6
- 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.js +6 -6
- 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 +114 -241
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +94 -182
- 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/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 +96 -242
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +84 -185
- 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 +190 -507
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +144 -348
- 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 +3 -4
- package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
- package/packages/orq-rc/src/core.ts +13 -0
- package/packages/orq-rc/src/funcs/agentsCreate.ts +161 -0
- package/packages/orq-rc/src/funcs/agentsDelete.ts +180 -0
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +177 -0
- package/packages/orq-rc/src/funcs/agentsList.ts +184 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +183 -0
- package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +182 -0
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +180 -0
- package/packages/orq-rc/src/funcs/agentsRun.ts +162 -0
- package/packages/orq-rc/src/funcs/agentsStream.ts +204 -0
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +189 -0
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +184 -0
- package/packages/orq-rc/src/funcs/annotationsCreate.ts +171 -0
- package/packages/orq-rc/src/funcs/annotationsDelete.ts +171 -0
- package/packages/orq-rc/src/funcs/chunkingParse.ts +160 -0
- package/packages/orq-rc/src/funcs/contactsCreate.ts +160 -0
- package/packages/orq-rc/src/funcs/datasetsClear.ts +167 -0
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +165 -0
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +171 -0
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +167 -0
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +182 -0
- package/packages/orq-rc/src/funcs/datasetsList.ts +167 -0
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +174 -0
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +175 -0
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +181 -0
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +176 -0
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +179 -0
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +168 -0
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +176 -0
- package/packages/orq-rc/src/funcs/deploymentsList.ts +176 -0
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +168 -0
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +186 -0
- package/packages/orq-rc/src/funcs/evalsAll.ts +173 -0
- package/packages/orq-rc/src/funcs/evalsCreate.ts +169 -0
- package/packages/orq-rc/src/funcs/evalsDelete.ts +173 -0
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +181 -0
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +173 -0
- package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +183 -0
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +160 -0
- package/packages/orq-rc/src/funcs/filesCreate.ts +198 -0
- package/packages/orq-rc/src/funcs/filesDelete.ts +164 -0
- package/packages/orq-rc/src/funcs/filesGet.ts +166 -0
- package/packages/orq-rc/src/funcs/filesList.ts +167 -0
- package/packages/orq-rc/src/funcs/identitiesCreate.ts +165 -0
- package/packages/orq-rc/src/funcs/identitiesDelete.ts +176 -0
- package/packages/orq-rc/src/funcs/identitiesList.ts +170 -0
- package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +175 -0
- package/packages/orq-rc/src/funcs/identitiesUpdate.ts +176 -0
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +158 -0
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +171 -0
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +166 -0
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +167 -0
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +174 -0
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +170 -0
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +173 -0
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +170 -0
- package/packages/orq-rc/src/funcs/knowledgeList.ts +169 -0
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +178 -0
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +171 -0
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +174 -0
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +166 -0
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +173 -0
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +169 -0
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +167 -0
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +164 -0
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +174 -0
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +170 -0
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +176 -0
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +170 -0
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +185 -0
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +180 -0
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +178 -0
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +184 -0
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +177 -0
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +177 -0
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +179 -0
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +174 -0
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +168 -0
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +180 -0
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +175 -0
- package/packages/orq-rc/src/funcs/modelsList.ts +142 -0
- package/packages/orq-rc/src/funcs/promptsCreate.ts +160 -0
- package/packages/orq-rc/src/funcs/promptsDelete.ts +173 -0
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +181 -0
- package/packages/orq-rc/src/funcs/promptsList.ts +167 -0
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +173 -0
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +166 -0
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +173 -0
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +161 -0
- package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +161 -0
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +273 -0
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +263 -0
- package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +168 -0
- package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +168 -0
- package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +161 -0
- package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +222 -0
- package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +160 -0
- package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +218 -0
- package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +167 -0
- package/packages/orq-rc/src/funcs/routerOcr.ts +158 -0
- package/packages/orq-rc/src/funcs/routerRerankCreate.ts +160 -0
- package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +167 -0
- package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
- package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
- package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +183 -0
- package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +190 -0
- package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
- package/packages/orq-rc/src/hooks/global.ts +44 -0
- package/packages/orq-rc/src/hooks/hooks.ts +132 -0
- package/packages/orq-rc/src/hooks/index.ts +6 -0
- package/packages/orq-rc/src/hooks/registration.ts +15 -0
- package/packages/orq-rc/src/hooks/types.ts +112 -0
- package/packages/orq-rc/src/index.ts +9 -0
- package/packages/orq-rc/src/lib/base64.ts +37 -0
- package/packages/orq-rc/src/lib/config.ts +74 -0
- package/packages/orq-rc/src/lib/dlv.ts +53 -0
- package/packages/orq-rc/src/lib/encodings.ts +497 -0
- package/packages/orq-rc/src/lib/env.ts +89 -0
- package/packages/orq-rc/src/lib/event-streams.ts +161 -0
- package/packages/orq-rc/src/lib/files.ts +82 -0
- package/packages/orq-rc/src/lib/http.ts +323 -0
- package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
- package/packages/orq-rc/src/lib/logger.ts +9 -0
- package/packages/orq-rc/src/lib/matchers.ts +346 -0
- package/packages/orq-rc/src/lib/primitives.ts +150 -0
- package/packages/orq-rc/src/lib/retries.ts +218 -0
- package/packages/orq-rc/src/lib/schemas.ts +91 -0
- package/packages/orq-rc/src/lib/sdks.ts +407 -0
- package/packages/orq-rc/src/lib/security.ts +263 -0
- package/packages/orq-rc/src/lib/url.ts +33 -0
- package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +99 -0
- package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +185 -0
- package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +73 -0
- package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +91 -0
- package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +71 -0
- package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +507 -0
- package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +165 -0
- package/packages/orq-rc/src/models/components/agentresponsemessage.ts +103 -0
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +517 -0
- package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +807 -0
- package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +136 -0
- package/packages/orq-rc/src/models/components/createagentresponse.ts +305 -0
- package/packages/orq-rc/src/models/components/datapart.ts +38 -0
- package/packages/orq-rc/src/models/components/errorpart.ts +58 -0
- package/packages/orq-rc/src/models/components/errorstreamingevent.ts +66 -0
- package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +71 -0
- package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +61 -0
- package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +67 -0
- package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
- package/packages/orq-rc/src/models/components/filecontentpartschema.ts +87 -0
- package/packages/orq-rc/src/models/components/filepart.ts +218 -0
- package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
- package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +268 -0
- package/packages/orq-rc/src/models/components/index.ts +59 -0
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3450 -0
- package/packages/orq-rc/src/models/components/partdelta.ts +39 -0
- package/packages/orq-rc/src/models/components/partdeltaevent.ts +73 -0
- package/packages/orq-rc/src/models/components/partdoneevent.ts +139 -0
- package/packages/orq-rc/src/models/components/publiccontact.ts +71 -0
- package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +62 -0
- package/packages/orq-rc/src/models/components/reasoningpartschema.ts +71 -0
- package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +66 -0
- package/packages/orq-rc/src/models/components/refusalpartschema.ts +64 -0
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +324 -0
- package/packages/orq-rc/src/models/components/responsefailedevent.ts +72 -0
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +97 -0
- package/packages/orq-rc/src/models/components/responsestreamingevent.ts +85 -0
- package/packages/orq-rc/src/models/components/reviewoutcome.ts +23 -0
- package/packages/orq-rc/src/models/components/security.ts +32 -0
- package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
- package/packages/orq-rc/src/models/components/textcontentpartschema.ts +207 -0
- package/packages/orq-rc/src/models/components/textpart.ts +54 -0
- package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
- package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +106 -0
- package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +64 -0
- package/packages/orq-rc/src/models/components/toolcallpart.ts +51 -0
- package/packages/orq-rc/src/models/components/tooldoneevent.ts +77 -0
- package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +230 -0
- package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +214 -0
- package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +200 -0
- package/packages/orq-rc/src/models/components/toolfailedevent.ts +77 -0
- package/packages/orq-rc/src/models/components/toolresultpart.ts +71 -0
- package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +78 -0
- package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +87 -0
- package/packages/orq-rc/src/models/components/toolstartedevent.ts +82 -0
- package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
- package/packages/orq-rc/src/models/errors/createeval.ts +51 -0
- package/packages/orq-rc/src/models/errors/createmoderation.ts +84 -0
- package/packages/orq-rc/src/models/errors/createtranscription.ts +87 -0
- package/packages/orq-rc/src/models/errors/createtranslation.ts +87 -0
- package/packages/orq-rc/src/models/errors/deleteagent.ts +51 -0
- package/packages/orq-rc/src/models/errors/deleteeval.ts +51 -0
- package/packages/orq-rc/src/models/errors/deleteidentity.ts +62 -0
- package/packages/orq-rc/src/models/errors/deleteprompt.ts +51 -0
- package/packages/orq-rc/src/models/errors/getevals.ts +51 -0
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +51 -0
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +51 -0
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +51 -0
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +52 -0
- package/packages/orq-rc/src/models/errors/honoapierror.ts +59 -0
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
- package/packages/orq-rc/src/models/errors/index.ts +35 -0
- package/packages/orq-rc/src/models/errors/invokeeval.ts +141 -0
- package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
- package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
- package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
- package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
- package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +51 -0
- package/packages/orq-rc/src/models/errors/retrieveidentity.ts +62 -0
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
- package/packages/orq-rc/src/models/errors/streamagent.ts +51 -0
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +51 -0
- package/packages/orq-rc/src/models/errors/updateagent.ts +51 -0
- package/packages/orq-rc/src/models/errors/updateeval.ts +51 -0
- package/packages/orq-rc/src/models/errors/updateidentity.ts +54 -0
- package/packages/orq-rc/src/models/errors/updateprompt.ts +51 -0
- package/packages/orq-rc/src/models/errors/updatetool.ts +62 -0
- package/packages/orq-rc/src/models/operations/cleardataset.ts +39 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +6393 -0
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +644 -0
- package/packages/orq-rc/src/models/operations/createannotation.ts +166 -0
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +6392 -0
- package/packages/orq-rc/src/models/operations/createchunk.ts +222 -0
- package/packages/orq-rc/src/models/operations/createcompletion.ts +3418 -0
- package/packages/orq-rc/src/models/operations/createcontact.ts +156 -0
- package/packages/orq-rc/src/models/operations/createdataset.ts +162 -0
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2551 -0
- package/packages/orq-rc/src/models/operations/createdatasource.ts +437 -0
- package/packages/orq-rc/src/models/operations/createembedding.ts +947 -0
- package/packages/orq-rc/src/models/operations/createeval.ts +4170 -0
- package/packages/orq-rc/src/models/operations/createfeedback.ts +144 -0
- package/packages/orq-rc/src/models/operations/createidentity.ts +162 -0
- package/packages/orq-rc/src/models/operations/createimage.ts +1028 -0
- package/packages/orq-rc/src/models/operations/createimageedit.ts +1045 -0
- package/packages/orq-rc/src/models/operations/createimagevariation.ts +1067 -0
- package/packages/orq-rc/src/models/operations/createknowledge.ts +944 -0
- package/packages/orq-rc/src/models/operations/creatememory.ts +142 -0
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +152 -0
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +199 -0
- package/packages/orq-rc/src/models/operations/createmoderation.ts +664 -0
- package/packages/orq-rc/src/models/operations/createprompt.ts +5391 -0
- package/packages/orq-rc/src/models/operations/creatererank.ts +890 -0
- package/packages/orq-rc/src/models/operations/createresponse.ts +3325 -0
- package/packages/orq-rc/src/models/operations/createspeech.ts +700 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +2499 -0
- package/packages/orq-rc/src/models/operations/createtranscription.ts +955 -0
- package/packages/orq-rc/src/models/operations/createtranslation.ts +930 -0
- package/packages/orq-rc/src/models/operations/deleteagent.ts +39 -0
- package/packages/orq-rc/src/models/operations/deleteannotation.ts +79 -0
- package/packages/orq-rc/src/models/operations/deletechunk.ts +53 -0
- package/packages/orq-rc/src/models/operations/deletechunks.ts +125 -0
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +46 -0
- package/packages/orq-rc/src/models/operations/deletedataset.ts +39 -0
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +46 -0
- package/packages/orq-rc/src/models/operations/deleteeval.ts +31 -0
- package/packages/orq-rc/src/models/operations/deleteidentity.ts +34 -0
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +39 -0
- package/packages/orq-rc/src/models/operations/deletememory.ts +46 -0
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +55 -0
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +39 -0
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +34 -0
- package/packages/orq-rc/src/models/operations/deletetool.ts +36 -0
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2370 -0
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4525 -0
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +729 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +1269 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +4653 -0
- package/packages/orq-rc/src/models/operations/filedelete.ts +39 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +116 -0
- package/packages/orq-rc/src/models/operations/filelist.ts +172 -0
- package/packages/orq-rc/src/models/operations/fileupload.ts +170 -0
- package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
- package/packages/orq-rc/src/models/operations/getallmemories.ts +173 -0
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +188 -0
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +200 -0
- package/packages/orq-rc/src/models/operations/getallprompts.ts +3165 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +1398 -0
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +121 -0
- package/packages/orq-rc/src/models/operations/getevals.ts +2842 -0
- package/packages/orq-rc/src/models/operations/getonechunk.ts +171 -0
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +652 -0
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +3090 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +3135 -0
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +162 -0
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +163 -0
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +110 -0
- package/packages/orq-rc/src/models/operations/index.ts +116 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +777 -0
- package/packages/orq-rc/src/models/operations/invokeeval.ts +1253 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +2754 -0
- package/packages/orq-rc/src/models/operations/listchunks.ts +260 -0
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +263 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1498 -0
- package/packages/orq-rc/src/models/operations/listdatasets.ts +205 -0
- package/packages/orq-rc/src/models/operations/listdatasources.ts +235 -0
- package/packages/orq-rc/src/models/operations/listidentities.ts +275 -0
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +642 -0
- package/packages/orq-rc/src/models/operations/listmodels.ts +143 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +3210 -0
- package/packages/orq-rc/src/models/operations/parse.ts +777 -0
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
- package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
- package/packages/orq-rc/src/models/operations/postv2routerocr.ts +478 -0
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +108 -0
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +2814 -0
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1402 -0
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +150 -0
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +152 -0
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +117 -0
- package/packages/orq-rc/src/models/operations/retrievememory.ts +112 -0
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +118 -0
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +144 -0
- package/packages/orq-rc/src/models/operations/retrievetool.ts +1379 -0
- package/packages/orq-rc/src/models/operations/runagent.ts +4927 -0
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +1762 -0
- package/packages/orq-rc/src/models/operations/streamagent.ts +668 -0
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +5089 -0
- package/packages/orq-rc/src/models/operations/updateagent.ts +6824 -0
- package/packages/orq-rc/src/models/operations/updatechunk.ts +236 -0
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2555 -0
- package/packages/orq-rc/src/models/operations/updatedataset.ts +206 -0
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +186 -0
- package/packages/orq-rc/src/models/operations/updateeval.ts +4152 -0
- package/packages/orq-rc/src/models/operations/updateidentity.ts +189 -0
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +1231 -0
- package/packages/orq-rc/src/models/operations/updatememory.ts +142 -0
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +159 -0
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +188 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +5473 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +2810 -0
- package/packages/orq-rc/src/sdk/agents.ts +234 -0
- package/packages/orq-rc/src/sdk/annotations.ts +39 -0
- package/packages/orq-rc/src/sdk/audio.ts +25 -0
- package/packages/orq-rc/src/sdk/chat.ts +13 -0
- package/packages/orq-rc/src/sdk/chunking.ts +27 -0
- package/packages/orq-rc/src/sdk/completions.ts +32 -0
- package/packages/orq-rc/src/sdk/contacts.ts +27 -0
- package/packages/orq-rc/src/sdk/datasets.ts +204 -0
- package/packages/orq-rc/src/sdk/deployments.ts +89 -0
- package/packages/orq-rc/src/sdk/edits.ts +27 -0
- package/packages/orq-rc/src/sdk/embeddings.ts +27 -0
- package/packages/orq-rc/src/sdk/evals.ts +84 -0
- package/packages/orq-rc/src/sdk/evaluators.ts +27 -0
- package/packages/orq-rc/src/sdk/feedback.ts +27 -0
- package/packages/orq-rc/src/sdk/files.ts +78 -0
- package/packages/orq-rc/src/sdk/generations.ts +27 -0
- package/packages/orq-rc/src/sdk/identities.ts +99 -0
- package/packages/orq-rc/src/sdk/images.ts +25 -0
- package/packages/orq-rc/src/sdk/index.ts +5 -0
- package/packages/orq-rc/src/sdk/knowledge.ts +309 -0
- package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
- package/packages/orq-rc/src/sdk/metrics.ts +27 -0
- package/packages/orq-rc/src/sdk/models.ts +25 -0
- package/packages/orq-rc/src/sdk/moderations.ts +24 -0
- package/packages/orq-rc/src/sdk/orqcompletions.ts +32 -0
- package/packages/orq-rc/src/sdk/orqresponses.ts +32 -0
- package/packages/orq-rc/src/sdk/prompts.ts +126 -0
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
- package/packages/orq-rc/src/sdk/rerank.ts +27 -0
- package/packages/orq-rc/src/sdk/responses.ts +53 -0
- package/packages/orq-rc/src/sdk/router.ts +72 -0
- package/packages/orq-rc/src/sdk/sdk.ts +115 -0
- package/packages/orq-rc/src/sdk/speech.ts +27 -0
- package/packages/orq-rc/src/sdk/tools.ts +135 -0
- package/packages/orq-rc/src/sdk/transcriptions.ts +24 -0
- package/packages/orq-rc/src/sdk/translations.ts +24 -0
- package/packages/orq-rc/src/sdk/variations.ts +27 -0
- package/packages/orq-rc/src/types/async.ts +68 -0
- package/packages/orq-rc/src/types/blobs.ts +32 -0
- package/packages/orq-rc/src/types/constdatetime.ts +15 -0
- package/packages/orq-rc/src/types/enums.ts +45 -0
- package/packages/orq-rc/src/types/fp.ts +50 -0
- package/packages/orq-rc/src/types/index.ts +11 -0
- package/packages/orq-rc/src/types/operations.ts +105 -0
- package/packages/orq-rc/src/types/rfcdate.ts +54 -0
- package/packages/orq-rc/src/types/streams.ts +21 -0
- package/packages/orq-rc/src/types/unrecognized.ts +35 -0
- 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 +243 -943
- 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/createprompt.ts +59 -69
- package/src/models/operations/createresponse.ts +2 -1
- package/src/models/operations/createtool.ts +6 -6
- 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 +6 -6
- 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 +218 -482
- 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/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 +207 -497
- 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 +380 -1003
- 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,7 +1521,7 @@ 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
|
/**
|
|
@@ -1687,6 +1538,47 @@ export const UpdateAgentStatus = {
|
|
|
1687
1538
|
*/
|
|
1688
1539
|
export type UpdateAgentStatus = ClosedEnum<typeof UpdateAgentStatus>;
|
|
1689
1540
|
|
|
1541
|
+
export type UpdateAgentAgentsTeamOfAgents = {
|
|
1542
|
+
/**
|
|
1543
|
+
* The unique key of the agent within the workspace
|
|
1544
|
+
*/
|
|
1545
|
+
key: string;
|
|
1546
|
+
/**
|
|
1547
|
+
* 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.
|
|
1548
|
+
*/
|
|
1549
|
+
role?: string | undefined;
|
|
1550
|
+
};
|
|
1551
|
+
|
|
1552
|
+
export type UpdateAgentMetrics = {
|
|
1553
|
+
totalCost: number;
|
|
1554
|
+
};
|
|
1555
|
+
|
|
1556
|
+
export type UpdateAgentAgentsKnowledgeBases = {
|
|
1557
|
+
/**
|
|
1558
|
+
* Unique identifier of the knowledge base to search
|
|
1559
|
+
*/
|
|
1560
|
+
knowledgeId: string;
|
|
1561
|
+
};
|
|
1562
|
+
|
|
1563
|
+
export const UpdateAgentSource = {
|
|
1564
|
+
Internal: "internal",
|
|
1565
|
+
External: "external",
|
|
1566
|
+
Experiment: "experiment",
|
|
1567
|
+
} as const;
|
|
1568
|
+
export type UpdateAgentSource = ClosedEnum<typeof UpdateAgentSource>;
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
|
|
1572
|
+
*/
|
|
1573
|
+
export const UpdateAgentType = {
|
|
1574
|
+
Internal: "internal",
|
|
1575
|
+
A2a: "a2a",
|
|
1576
|
+
} as const;
|
|
1577
|
+
/**
|
|
1578
|
+
* Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
|
|
1579
|
+
*/
|
|
1580
|
+
export type UpdateAgentType = ClosedEnum<typeof UpdateAgentType>;
|
|
1581
|
+
|
|
1690
1582
|
/**
|
|
1691
1583
|
* 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
1584
|
*/
|
|
@@ -1830,51 +1722,6 @@ export type UpdateAgentAgentsSettings = {
|
|
|
1830
1722
|
guardrails?: Array<UpdateAgentAgentsGuardrails> | undefined;
|
|
1831
1723
|
};
|
|
1832
1724
|
|
|
1833
|
-
/**
|
|
1834
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
1835
|
-
*/
|
|
1836
|
-
export const UpdateAgentVoice = {
|
|
1837
|
-
Alloy: "alloy",
|
|
1838
|
-
Echo: "echo",
|
|
1839
|
-
Fable: "fable",
|
|
1840
|
-
Onyx: "onyx",
|
|
1841
|
-
Nova: "nova",
|
|
1842
|
-
Shimmer: "shimmer",
|
|
1843
|
-
} as const;
|
|
1844
|
-
/**
|
|
1845
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
1846
|
-
*/
|
|
1847
|
-
export type UpdateAgentVoice = ClosedEnum<typeof UpdateAgentVoice>;
|
|
1848
|
-
|
|
1849
|
-
/**
|
|
1850
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
1851
|
-
*/
|
|
1852
|
-
export const UpdateAgentFormat = {
|
|
1853
|
-
Wav: "wav",
|
|
1854
|
-
Mp3: "mp3",
|
|
1855
|
-
Flac: "flac",
|
|
1856
|
-
Opus: "opus",
|
|
1857
|
-
Pcm16: "pcm16",
|
|
1858
|
-
} as const;
|
|
1859
|
-
/**
|
|
1860
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
1861
|
-
*/
|
|
1862
|
-
export type UpdateAgentFormat = ClosedEnum<typeof UpdateAgentFormat>;
|
|
1863
|
-
|
|
1864
|
-
/**
|
|
1865
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
1866
|
-
*/
|
|
1867
|
-
export type UpdateAgentAudio = {
|
|
1868
|
-
/**
|
|
1869
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
1870
|
-
*/
|
|
1871
|
-
voice: UpdateAgentVoice;
|
|
1872
|
-
/**
|
|
1873
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
1874
|
-
*/
|
|
1875
|
-
format: UpdateAgentFormat;
|
|
1876
|
-
};
|
|
1877
|
-
|
|
1878
1725
|
export type UpdateAgentResponseFormatAgentsResponseJsonSchema = {
|
|
1879
1726
|
/**
|
|
1880
1727
|
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
@@ -1971,16 +1818,6 @@ export type UpdateAgentReasoningEffort = ClosedEnum<
|
|
|
1971
1818
|
*/
|
|
1972
1819
|
export type UpdateAgentStop = string | Array<string>;
|
|
1973
1820
|
|
|
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
1821
|
export type UpdateAgentThinking =
|
|
1985
1822
|
| components.ThinkingConfigDisabledSchema
|
|
1986
1823
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -2081,24 +1918,10 @@ export type UpdateAgentFallbacks = {
|
|
|
2081
1918
|
model: string;
|
|
2082
1919
|
};
|
|
2083
1920
|
|
|
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 = {
|
|
1921
|
+
export const UpdateAgentAgentsType = {
|
|
2099
1922
|
ExactMatch: "exact_match",
|
|
2100
1923
|
} as const;
|
|
2101
|
-
export type
|
|
1924
|
+
export type UpdateAgentAgentsType = ClosedEnum<typeof UpdateAgentAgentsType>;
|
|
2102
1925
|
|
|
2103
1926
|
/**
|
|
2104
1927
|
* Cache configuration for the request.
|
|
@@ -2108,7 +1931,7 @@ export type UpdateAgentCache = {
|
|
|
2108
1931
|
* Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
|
|
2109
1932
|
*/
|
|
2110
1933
|
ttl: number;
|
|
2111
|
-
type:
|
|
1934
|
+
type: UpdateAgentAgentsType;
|
|
2112
1935
|
};
|
|
2113
1936
|
|
|
2114
1937
|
export const UpdateAgentLoadBalancerAgentsResponseType = {
|
|
@@ -2157,10 +1980,6 @@ export type UpdateAgentParameters = {
|
|
|
2157
1980
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
2158
1981
|
*/
|
|
2159
1982
|
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
1983
|
/**
|
|
2165
1984
|
* 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
1985
|
*/
|
|
@@ -2177,18 +1996,6 @@ export type UpdateAgentParameters = {
|
|
|
2177
1996
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
2178
1997
|
*/
|
|
2179
1998
|
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
1999
|
/**
|
|
2193
2000
|
* 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
2001
|
*/
|
|
@@ -2226,10 +2033,6 @@ export type UpdateAgentParameters = {
|
|
|
2226
2033
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
2227
2034
|
*/
|
|
2228
2035
|
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
2036
|
thinking?:
|
|
2234
2037
|
| components.ThinkingConfigDisabledSchema
|
|
2235
2038
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -2269,10 +2072,6 @@ export type UpdateAgentParameters = {
|
|
|
2269
2072
|
* Array of fallback models to use if primary model fails
|
|
2270
2073
|
*/
|
|
2271
2074
|
fallbacks?: Array<UpdateAgentFallbacks> | undefined;
|
|
2272
|
-
/**
|
|
2273
|
-
* Retry configuration for the request
|
|
2274
|
-
*/
|
|
2275
|
-
retry?: UpdateAgentAgentsRetry | undefined;
|
|
2276
2075
|
/**
|
|
2277
2076
|
* Cache configuration for the request.
|
|
2278
2077
|
*/
|
|
@@ -2301,55 +2100,6 @@ export type UpdateAgentRetry = {
|
|
|
2301
2100
|
onCodes?: Array<number> | undefined;
|
|
2302
2101
|
};
|
|
2303
2102
|
|
|
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
2103
|
export type UpdateAgentResponseFormatAgentsResponse200ApplicationJSONJSONSchema =
|
|
2354
2104
|
{
|
|
2355
2105
|
/**
|
|
@@ -2450,16 +2200,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsStop =
|
|
|
2450
2200
|
| string
|
|
2451
2201
|
| Array<string>;
|
|
2452
2202
|
|
|
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
2203
|
export type UpdateAgentFallbackModelConfigurationAgentsThinking =
|
|
2464
2204
|
| components.ThinkingConfigDisabledSchema
|
|
2465
2205
|
| components.ThinkingConfigEnabledSchema;
|
|
@@ -2564,20 +2304,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsFallbacks = {
|
|
|
2564
2304
|
model: string;
|
|
2565
2305
|
};
|
|
2566
2306
|
|
|
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
2307
|
export const UpdateAgentFallbackModelConfigurationAgentsType = {
|
|
2582
2308
|
ExactMatch: "exact_match",
|
|
2583
2309
|
} as const;
|
|
@@ -2643,10 +2369,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2643
2369
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
2644
2370
|
*/
|
|
2645
2371
|
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
2372
|
/**
|
|
2651
2373
|
* 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
2374
|
*/
|
|
@@ -2663,18 +2385,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2663
2385
|
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
2664
2386
|
*/
|
|
2665
2387
|
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
2388
|
/**
|
|
2679
2389
|
* 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
2390
|
*/
|
|
@@ -2714,13 +2424,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2714
2424
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
2715
2425
|
*/
|
|
2716
2426
|
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
2427
|
thinking?:
|
|
2725
2428
|
| components.ThinkingConfigDisabledSchema
|
|
2726
2429
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -2767,12 +2470,6 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2767
2470
|
fallbacks?:
|
|
2768
2471
|
| Array<UpdateAgentFallbackModelConfigurationAgentsFallbacks>
|
|
2769
2472
|
| undefined;
|
|
2770
|
-
/**
|
|
2771
|
-
* Retry configuration for the request
|
|
2772
|
-
*/
|
|
2773
|
-
retry?:
|
|
2774
|
-
| UpdateAgentFallbackModelConfigurationAgentsResponse200Retry
|
|
2775
|
-
| undefined;
|
|
2776
2473
|
/**
|
|
2777
2474
|
* Cache configuration for the request.
|
|
2778
2475
|
*/
|
|
@@ -2790,7 +2487,7 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2790
2487
|
/**
|
|
2791
2488
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
2792
2489
|
*/
|
|
2793
|
-
export type
|
|
2490
|
+
export type UpdateAgentFallbackModelConfigurationAgentsRetry = {
|
|
2794
2491
|
/**
|
|
2795
2492
|
* Number of retry attempts (1-5)
|
|
2796
2493
|
*/
|
|
@@ -2818,7 +2515,7 @@ export type UpdateAgentFallbackModelConfigurationAgents2 = {
|
|
|
2818
2515
|
/**
|
|
2819
2516
|
* Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
|
|
2820
2517
|
*/
|
|
2821
|
-
retry?:
|
|
2518
|
+
retry?: UpdateAgentFallbackModelConfigurationAgentsRetry | undefined;
|
|
2822
2519
|
};
|
|
2823
2520
|
|
|
2824
2521
|
/**
|
|
@@ -2854,35 +2551,36 @@ export type UpdateAgentModel = {
|
|
|
2854
2551
|
| undefined;
|
|
2855
2552
|
};
|
|
2856
2553
|
|
|
2857
|
-
export type
|
|
2858
|
-
/**
|
|
2859
|
-
* The unique key of the agent within the workspace
|
|
2860
|
-
*/
|
|
2861
|
-
key: string;
|
|
2554
|
+
export type UpdateAgentAgentsHeaders = {
|
|
2862
2555
|
/**
|
|
2863
|
-
*
|
|
2556
|
+
* 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.
|
|
2864
2557
|
*/
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
export type UpdateAgentMetrics = {
|
|
2869
|
-
totalCost: number;
|
|
2558
|
+
value: string;
|
|
2559
|
+
encrypted: boolean;
|
|
2870
2560
|
};
|
|
2871
2561
|
|
|
2872
|
-
|
|
2562
|
+
/**
|
|
2563
|
+
* A2A configuration with agent endpoint and authentication. Only present for A2A agents.
|
|
2564
|
+
*/
|
|
2565
|
+
export type UpdateAgentA2AAgentConfiguration = {
|
|
2873
2566
|
/**
|
|
2874
|
-
*
|
|
2567
|
+
* The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
|
|
2875
2568
|
*/
|
|
2876
|
-
|
|
2569
|
+
agentUrl: string;
|
|
2570
|
+
/**
|
|
2571
|
+
* Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
|
|
2572
|
+
*/
|
|
2573
|
+
cardUrl?: string | undefined;
|
|
2574
|
+
/**
|
|
2575
|
+
* 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.
|
|
2576
|
+
*/
|
|
2577
|
+
headers?: { [k: string]: UpdateAgentAgentsHeaders } | undefined;
|
|
2578
|
+
/**
|
|
2579
|
+
* Cached agent card from discovery. Refreshed periodically.
|
|
2580
|
+
*/
|
|
2581
|
+
cachedCard?: any | undefined;
|
|
2877
2582
|
};
|
|
2878
2583
|
|
|
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
2584
|
/**
|
|
2887
2585
|
* Agent configuration successfully updated. Returns the complete updated agent manifest reflecting all changes made.
|
|
2888
2586
|
*/
|
|
@@ -2893,22 +2591,15 @@ export type UpdateAgentResponseBody = {
|
|
|
2893
2591
|
*/
|
|
2894
2592
|
key: string;
|
|
2895
2593
|
displayName?: string | undefined;
|
|
2896
|
-
workspaceId: string;
|
|
2897
2594
|
projectId: string;
|
|
2898
2595
|
createdById?: string | null | undefined;
|
|
2899
2596
|
updatedById?: string | null | undefined;
|
|
2900
2597
|
created?: string | undefined;
|
|
2901
2598
|
updated?: string | undefined;
|
|
2902
|
-
role: string;
|
|
2903
|
-
description: string;
|
|
2904
|
-
systemPrompt?: string | undefined;
|
|
2905
|
-
instructions: string;
|
|
2906
2599
|
/**
|
|
2907
2600
|
* 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
2601
|
*/
|
|
2909
2602
|
status: UpdateAgentStatus;
|
|
2910
|
-
settings?: UpdateAgentAgentsSettings | undefined;
|
|
2911
|
-
model: UpdateAgentModel;
|
|
2912
2603
|
versionHash?: string | undefined;
|
|
2913
2604
|
/**
|
|
2914
2605
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -2923,11 +2614,11 @@ export type UpdateAgentResponseBody = {
|
|
|
2923
2614
|
/**
|
|
2924
2615
|
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
2925
2616
|
*/
|
|
2926
|
-
memoryStores
|
|
2617
|
+
memoryStores?: Array<string> | undefined;
|
|
2927
2618
|
/**
|
|
2928
2619
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
2929
2620
|
*/
|
|
2930
|
-
teamOfAgents
|
|
2621
|
+
teamOfAgents?: Array<UpdateAgentAgentsTeamOfAgents> | undefined;
|
|
2931
2622
|
metrics?: UpdateAgentMetrics | undefined;
|
|
2932
2623
|
/**
|
|
2933
2624
|
* Extracted variables from agent instructions
|
|
@@ -2938,44 +2629,22 @@ export type UpdateAgentResponseBody = {
|
|
|
2938
2629
|
*/
|
|
2939
2630
|
knowledgeBases?: Array<UpdateAgentAgentsKnowledgeBases> | undefined;
|
|
2940
2631
|
source?: UpdateAgentSource | undefined;
|
|
2632
|
+
/**
|
|
2633
|
+
* Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
|
|
2634
|
+
*/
|
|
2635
|
+
type: UpdateAgentType;
|
|
2636
|
+
role: string;
|
|
2637
|
+
description: string;
|
|
2638
|
+
systemPrompt?: string | undefined;
|
|
2639
|
+
instructions: string;
|
|
2640
|
+
settings?: UpdateAgentAgentsSettings | undefined;
|
|
2641
|
+
model: UpdateAgentModel;
|
|
2642
|
+
/**
|
|
2643
|
+
* A2A configuration with agent endpoint and authentication. Only present for A2A agents.
|
|
2644
|
+
*/
|
|
2645
|
+
a2a?: UpdateAgentA2AAgentConfiguration | undefined;
|
|
2941
2646
|
};
|
|
2942
2647
|
|
|
2943
|
-
/** @internal */
|
|
2944
|
-
export const ModelConfigurationVoice$outboundSchema: z.ZodNativeEnum<
|
|
2945
|
-
typeof ModelConfigurationVoice
|
|
2946
|
-
> = z.nativeEnum(ModelConfigurationVoice);
|
|
2947
|
-
|
|
2948
|
-
/** @internal */
|
|
2949
|
-
export const ModelConfigurationFormat$outboundSchema: z.ZodNativeEnum<
|
|
2950
|
-
typeof ModelConfigurationFormat
|
|
2951
|
-
> = z.nativeEnum(ModelConfigurationFormat);
|
|
2952
|
-
|
|
2953
|
-
/** @internal */
|
|
2954
|
-
export type UpdateAgentModelConfigurationAudio$Outbound = {
|
|
2955
|
-
voice: string;
|
|
2956
|
-
format: string;
|
|
2957
|
-
};
|
|
2958
|
-
|
|
2959
|
-
/** @internal */
|
|
2960
|
-
export const UpdateAgentModelConfigurationAudio$outboundSchema: z.ZodType<
|
|
2961
|
-
UpdateAgentModelConfigurationAudio$Outbound,
|
|
2962
|
-
z.ZodTypeDef,
|
|
2963
|
-
UpdateAgentModelConfigurationAudio
|
|
2964
|
-
> = z.object({
|
|
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
|
-
}
|
|
2978
|
-
|
|
2979
2648
|
/** @internal */
|
|
2980
2649
|
export type UpdateAgentResponseFormatAgentsJsonSchema$Outbound = {
|
|
2981
2650
|
description?: string | undefined;
|
|
@@ -3138,34 +2807,6 @@ export function modelConfigurationStopToJSON(
|
|
|
3138
2807
|
);
|
|
3139
2808
|
}
|
|
3140
2809
|
|
|
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
2810
|
/** @internal */
|
|
3170
2811
|
export type ModelConfigurationThinking$Outbound =
|
|
3171
2812
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
@@ -3359,36 +3000,6 @@ export function modelConfigurationFallbacksToJSON(
|
|
|
3359
3000
|
);
|
|
3360
3001
|
}
|
|
3361
3002
|
|
|
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
3003
|
/** @internal */
|
|
3393
3004
|
export const UpdateAgentModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
3394
3005
|
typeof UpdateAgentModelConfigurationType
|
|
@@ -3523,13 +3134,9 @@ export function modelConfigurationTimeoutToJSON(
|
|
|
3523
3134
|
/** @internal */
|
|
3524
3135
|
export type ModelConfigurationParameters$Outbound = {
|
|
3525
3136
|
name?: string | undefined;
|
|
3526
|
-
audio?: UpdateAgentModelConfigurationAudio$Outbound | null | undefined;
|
|
3527
3137
|
frequency_penalty?: number | null | undefined;
|
|
3528
3138
|
max_tokens?: number | null | undefined;
|
|
3529
3139
|
max_completion_tokens?: number | null | undefined;
|
|
3530
|
-
logprobs?: boolean | null | undefined;
|
|
3531
|
-
top_logprobs?: number | null | undefined;
|
|
3532
|
-
n?: number | null | undefined;
|
|
3533
3140
|
presence_penalty?: number | null | undefined;
|
|
3534
3141
|
response_format?:
|
|
3535
3142
|
| UpdateAgentResponseFormatText$Outbound
|
|
@@ -3540,7 +3147,6 @@ export type ModelConfigurationParameters$Outbound = {
|
|
|
3540
3147
|
verbosity?: string | undefined;
|
|
3541
3148
|
seed?: number | null | undefined;
|
|
3542
3149
|
stop?: string | Array<string> | null | undefined;
|
|
3543
|
-
stream_options?: ModelConfigurationStreamOptions$Outbound | null | undefined;
|
|
3544
3150
|
thinking?:
|
|
3545
3151
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3546
3152
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
@@ -3553,7 +3159,6 @@ export type ModelConfigurationParameters$Outbound = {
|
|
|
3553
3159
|
modalities?: Array<string> | null | undefined;
|
|
3554
3160
|
guardrails?: Array<ModelConfigurationGuardrails$Outbound> | undefined;
|
|
3555
3161
|
fallbacks?: Array<ModelConfigurationFallbacks$Outbound> | undefined;
|
|
3556
|
-
retry?: UpdateAgentModelConfigurationRetry$Outbound | undefined;
|
|
3557
3162
|
cache?: ModelConfigurationCache$Outbound | undefined;
|
|
3558
3163
|
load_balancer?: UpdateAgentLoadBalancer1$Outbound | undefined;
|
|
3559
3164
|
timeout?: ModelConfigurationTimeout$Outbound | undefined;
|
|
@@ -3566,15 +3171,9 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3566
3171
|
ModelConfigurationParameters
|
|
3567
3172
|
> = z.object({
|
|
3568
3173
|
name: z.string().optional(),
|
|
3569
|
-
audio: z.nullable(
|
|
3570
|
-
z.lazy(() => UpdateAgentModelConfigurationAudio$outboundSchema),
|
|
3571
|
-
).optional(),
|
|
3572
3174
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
3573
3175
|
maxTokens: z.nullable(z.number().int()).optional(),
|
|
3574
3176
|
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
3177
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
3579
3178
|
responseFormat: z.union([
|
|
3580
3179
|
z.lazy(() => UpdateAgentResponseFormatText$outboundSchema),
|
|
@@ -3585,9 +3184,6 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3585
3184
|
verbosity: z.string().optional(),
|
|
3586
3185
|
seed: z.nullable(z.number()).optional(),
|
|
3587
3186
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
3588
|
-
streamOptions: z.nullable(
|
|
3589
|
-
z.lazy(() => ModelConfigurationStreamOptions$outboundSchema),
|
|
3590
|
-
).optional(),
|
|
3591
3187
|
thinking: z.union([
|
|
3592
3188
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3593
3189
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
@@ -3606,8 +3202,6 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3606
3202
|
.optional(),
|
|
3607
3203
|
fallbacks: z.array(z.lazy(() => ModelConfigurationFallbacks$outboundSchema))
|
|
3608
3204
|
.optional(),
|
|
3609
|
-
retry: z.lazy(() => UpdateAgentModelConfigurationRetry$outboundSchema)
|
|
3610
|
-
.optional(),
|
|
3611
3205
|
cache: z.lazy(() => ModelConfigurationCache$outboundSchema).optional(),
|
|
3612
3206
|
loadBalancer: z.lazy(() => UpdateAgentLoadBalancer1$outboundSchema)
|
|
3613
3207
|
.optional(),
|
|
@@ -3617,11 +3211,9 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3617
3211
|
frequencyPenalty: "frequency_penalty",
|
|
3618
3212
|
maxTokens: "max_tokens",
|
|
3619
3213
|
maxCompletionTokens: "max_completion_tokens",
|
|
3620
|
-
topLogprobs: "top_logprobs",
|
|
3621
3214
|
presencePenalty: "presence_penalty",
|
|
3622
3215
|
responseFormat: "response_format",
|
|
3623
3216
|
reasoningEffort: "reasoning_effort",
|
|
3624
|
-
streamOptions: "stream_options",
|
|
3625
3217
|
topP: "top_p",
|
|
3626
3218
|
topK: "top_k",
|
|
3627
3219
|
toolChoice: "tool_choice",
|
|
@@ -3641,16 +3233,16 @@ export function modelConfigurationParametersToJSON(
|
|
|
3641
3233
|
}
|
|
3642
3234
|
|
|
3643
3235
|
/** @internal */
|
|
3644
|
-
export type
|
|
3236
|
+
export type ModelConfigurationRetry$Outbound = {
|
|
3645
3237
|
count: number;
|
|
3646
3238
|
on_codes?: Array<number> | undefined;
|
|
3647
3239
|
};
|
|
3648
3240
|
|
|
3649
3241
|
/** @internal */
|
|
3650
|
-
export const
|
|
3651
|
-
|
|
3242
|
+
export const ModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
3243
|
+
ModelConfigurationRetry$Outbound,
|
|
3652
3244
|
z.ZodTypeDef,
|
|
3653
|
-
|
|
3245
|
+
ModelConfigurationRetry
|
|
3654
3246
|
> = z.object({
|
|
3655
3247
|
count: z.number().default(3),
|
|
3656
3248
|
onCodes: z.array(z.number()).optional(),
|
|
@@ -3660,14 +3252,11 @@ export const UpdateAgentModelConfigurationAgentsRetry$outboundSchema: z.ZodType<
|
|
|
3660
3252
|
});
|
|
3661
3253
|
});
|
|
3662
3254
|
|
|
3663
|
-
export function
|
|
3664
|
-
|
|
3665
|
-
UpdateAgentModelConfigurationAgentsRetry,
|
|
3255
|
+
export function modelConfigurationRetryToJSON(
|
|
3256
|
+
modelConfigurationRetry: ModelConfigurationRetry,
|
|
3666
3257
|
): string {
|
|
3667
3258
|
return JSON.stringify(
|
|
3668
|
-
|
|
3669
|
-
updateAgentModelConfigurationAgentsRetry,
|
|
3670
|
-
),
|
|
3259
|
+
ModelConfigurationRetry$outboundSchema.parse(modelConfigurationRetry),
|
|
3671
3260
|
);
|
|
3672
3261
|
}
|
|
3673
3262
|
|
|
@@ -3675,7 +3264,7 @@ export function updateAgentModelConfigurationAgentsRetryToJSON(
|
|
|
3675
3264
|
export type UpdateAgentModelConfiguration2$Outbound = {
|
|
3676
3265
|
id: string;
|
|
3677
3266
|
parameters?: ModelConfigurationParameters$Outbound | undefined;
|
|
3678
|
-
retry?:
|
|
3267
|
+
retry?: ModelConfigurationRetry$Outbound | undefined;
|
|
3679
3268
|
};
|
|
3680
3269
|
|
|
3681
3270
|
/** @internal */
|
|
@@ -3687,8 +3276,7 @@ export const UpdateAgentModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
3687
3276
|
id: z.string(),
|
|
3688
3277
|
parameters: z.lazy(() => ModelConfigurationParameters$outboundSchema)
|
|
3689
3278
|
.optional(),
|
|
3690
|
-
retry: z.lazy(() =>
|
|
3691
|
-
.optional(),
|
|
3279
|
+
retry: z.lazy(() => ModelConfigurationRetry$outboundSchema).optional(),
|
|
3692
3280
|
});
|
|
3693
3281
|
|
|
3694
3282
|
export function updateAgentModelConfiguration2ToJSON(
|
|
@@ -3726,44 +3314,6 @@ export function updateAgentModelConfigurationToJSON(
|
|
|
3726
3314
|
);
|
|
3727
3315
|
}
|
|
3728
3316
|
|
|
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
3317
|
/** @internal */
|
|
3768
3318
|
export type UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound =
|
|
3769
3319
|
{
|
|
@@ -3941,36 +3491,6 @@ export function updateAgentFallbackModelConfigurationStopToJSON(
|
|
|
3941
3491
|
);
|
|
3942
3492
|
}
|
|
3943
3493
|
|
|
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
3494
|
/** @internal */
|
|
3975
3495
|
export type UpdateAgentFallbackModelConfigurationThinking$Outbound =
|
|
3976
3496
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
@@ -4179,38 +3699,6 @@ export function updateAgentFallbackModelConfigurationFallbacksToJSON(
|
|
|
4179
3699
|
);
|
|
4180
3700
|
}
|
|
4181
3701
|
|
|
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
3702
|
/** @internal */
|
|
4215
3703
|
export const UpdateAgentFallbackModelConfigurationType$outboundSchema:
|
|
4216
3704
|
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationType> = z
|
|
@@ -4359,16 +3847,9 @@ export function updateAgentFallbackModelConfigurationTimeoutToJSON(
|
|
|
4359
3847
|
/** @internal */
|
|
4360
3848
|
export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
4361
3849
|
name?: string | undefined;
|
|
4362
|
-
audio?:
|
|
4363
|
-
| UpdateAgentFallbackModelConfigurationAudio$Outbound
|
|
4364
|
-
| null
|
|
4365
|
-
| undefined;
|
|
4366
3850
|
frequency_penalty?: number | null | undefined;
|
|
4367
3851
|
max_tokens?: number | null | undefined;
|
|
4368
3852
|
max_completion_tokens?: number | null | undefined;
|
|
4369
|
-
logprobs?: boolean | null | undefined;
|
|
4370
|
-
top_logprobs?: number | null | undefined;
|
|
4371
|
-
n?: number | null | undefined;
|
|
4372
3853
|
presence_penalty?: number | null | undefined;
|
|
4373
3854
|
response_format?:
|
|
4374
3855
|
| UpdateAgentResponseFormatAgentsText$Outbound
|
|
@@ -4379,10 +3860,6 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
4379
3860
|
verbosity?: string | undefined;
|
|
4380
3861
|
seed?: number | null | undefined;
|
|
4381
3862
|
stop?: string | Array<string> | null | undefined;
|
|
4382
|
-
stream_options?:
|
|
4383
|
-
| UpdateAgentFallbackModelConfigurationStreamOptions$Outbound
|
|
4384
|
-
| null
|
|
4385
|
-
| undefined;
|
|
4386
3863
|
thinking?:
|
|
4387
3864
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
4388
3865
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
@@ -4399,7 +3876,6 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
4399
3876
|
fallbacks?:
|
|
4400
3877
|
| Array<UpdateAgentFallbackModelConfigurationFallbacks$Outbound>
|
|
4401
3878
|
| undefined;
|
|
4402
|
-
retry?: UpdateAgentFallbackModelConfigurationRetry$Outbound | undefined;
|
|
4403
3879
|
cache?: UpdateAgentFallbackModelConfigurationCache$Outbound | undefined;
|
|
4404
3880
|
load_balancer?: UpdateAgentLoadBalancerAgents1$Outbound | undefined;
|
|
4405
3881
|
timeout?: UpdateAgentFallbackModelConfigurationTimeout$Outbound | undefined;
|
|
@@ -4413,15 +3889,9 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4413
3889
|
UpdateAgentFallbackModelConfigurationParameters
|
|
4414
3890
|
> = z.object({
|
|
4415
3891
|
name: z.string().optional(),
|
|
4416
|
-
audio: z.nullable(
|
|
4417
|
-
z.lazy(() => UpdateAgentFallbackModelConfigurationAudio$outboundSchema),
|
|
4418
|
-
).optional(),
|
|
4419
3892
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
4420
3893
|
maxTokens: z.nullable(z.number().int()).optional(),
|
|
4421
3894
|
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
3895
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
4426
3896
|
responseFormat: z.union([
|
|
4427
3897
|
z.lazy(() => UpdateAgentResponseFormatAgentsText$outboundSchema),
|
|
@@ -4436,11 +3906,6 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4436
3906
|
verbosity: z.string().optional(),
|
|
4437
3907
|
seed: z.nullable(z.number()).optional(),
|
|
4438
3908
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
4439
|
-
streamOptions: z.nullable(
|
|
4440
|
-
z.lazy(() =>
|
|
4441
|
-
UpdateAgentFallbackModelConfigurationStreamOptions$outboundSchema
|
|
4442
|
-
),
|
|
4443
|
-
).optional(),
|
|
4444
3909
|
thinking: z.union([
|
|
4445
3910
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
4446
3911
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
@@ -4466,9 +3931,6 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4466
3931
|
UpdateAgentFallbackModelConfigurationFallbacks$outboundSchema
|
|
4467
3932
|
),
|
|
4468
3933
|
).optional(),
|
|
4469
|
-
retry: z.lazy(() =>
|
|
4470
|
-
UpdateAgentFallbackModelConfigurationRetry$outboundSchema
|
|
4471
|
-
).optional(),
|
|
4472
3934
|
cache: z.lazy(() =>
|
|
4473
3935
|
UpdateAgentFallbackModelConfigurationCache$outboundSchema
|
|
4474
3936
|
).optional(),
|
|
@@ -4482,11 +3944,9 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4482
3944
|
frequencyPenalty: "frequency_penalty",
|
|
4483
3945
|
maxTokens: "max_tokens",
|
|
4484
3946
|
maxCompletionTokens: "max_completion_tokens",
|
|
4485
|
-
topLogprobs: "top_logprobs",
|
|
4486
3947
|
presencePenalty: "presence_penalty",
|
|
4487
3948
|
responseFormat: "response_format",
|
|
4488
3949
|
reasoningEffort: "reasoning_effort",
|
|
4489
|
-
streamOptions: "stream_options",
|
|
4490
3950
|
topP: "top_p",
|
|
4491
3951
|
topK: "top_k",
|
|
4492
3952
|
toolChoice: "tool_choice",
|
|
@@ -4507,17 +3967,17 @@ export function updateAgentFallbackModelConfigurationParametersToJSON(
|
|
|
4507
3967
|
}
|
|
4508
3968
|
|
|
4509
3969
|
/** @internal */
|
|
4510
|
-
export type
|
|
3970
|
+
export type UpdateAgentFallbackModelConfigurationRetry$Outbound = {
|
|
4511
3971
|
count: number;
|
|
4512
3972
|
on_codes?: Array<number> | undefined;
|
|
4513
3973
|
};
|
|
4514
3974
|
|
|
4515
3975
|
/** @internal */
|
|
4516
|
-
export const
|
|
3976
|
+
export const UpdateAgentFallbackModelConfigurationRetry$outboundSchema:
|
|
4517
3977
|
z.ZodType<
|
|
4518
|
-
|
|
3978
|
+
UpdateAgentFallbackModelConfigurationRetry$Outbound,
|
|
4519
3979
|
z.ZodTypeDef,
|
|
4520
|
-
|
|
3980
|
+
UpdateAgentFallbackModelConfigurationRetry
|
|
4521
3981
|
> = z.object({
|
|
4522
3982
|
count: z.number().default(3),
|
|
4523
3983
|
onCodes: z.array(z.number()).optional(),
|
|
@@ -4527,13 +3987,13 @@ export const UpdateAgentFallbackModelConfigurationAgentsRetry$outboundSchema:
|
|
|
4527
3987
|
});
|
|
4528
3988
|
});
|
|
4529
3989
|
|
|
4530
|
-
export function
|
|
4531
|
-
|
|
4532
|
-
|
|
3990
|
+
export function updateAgentFallbackModelConfigurationRetryToJSON(
|
|
3991
|
+
updateAgentFallbackModelConfigurationRetry:
|
|
3992
|
+
UpdateAgentFallbackModelConfigurationRetry,
|
|
4533
3993
|
): string {
|
|
4534
3994
|
return JSON.stringify(
|
|
4535
|
-
|
|
4536
|
-
|
|
3995
|
+
UpdateAgentFallbackModelConfigurationRetry$outboundSchema.parse(
|
|
3996
|
+
updateAgentFallbackModelConfigurationRetry,
|
|
4537
3997
|
),
|
|
4538
3998
|
);
|
|
4539
3999
|
}
|
|
@@ -4544,7 +4004,7 @@ export type UpdateAgentFallbackModelConfiguration2$Outbound = {
|
|
|
4544
4004
|
parameters?:
|
|
4545
4005
|
| UpdateAgentFallbackModelConfigurationParameters$Outbound
|
|
4546
4006
|
| undefined;
|
|
4547
|
-
retry?:
|
|
4007
|
+
retry?: UpdateAgentFallbackModelConfigurationRetry$Outbound | undefined;
|
|
4548
4008
|
};
|
|
4549
4009
|
|
|
4550
4010
|
/** @internal */
|
|
@@ -4557,9 +4017,8 @@ export const UpdateAgentFallbackModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
4557
4017
|
parameters: z.lazy(() =>
|
|
4558
4018
|
UpdateAgentFallbackModelConfigurationParameters$outboundSchema
|
|
4559
4019
|
).optional(),
|
|
4560
|
-
retry: z.lazy(() =>
|
|
4561
|
-
|
|
4562
|
-
).optional(),
|
|
4020
|
+
retry: z.lazy(() => UpdateAgentFallbackModelConfigurationRetry$outboundSchema)
|
|
4021
|
+
.optional(),
|
|
4563
4022
|
});
|
|
4564
4023
|
|
|
4565
4024
|
export function updateAgentFallbackModelConfiguration2ToJSON(
|
|
@@ -5539,38 +4998,101 @@ export function updateAgentTeamOfAgentsToJSON(
|
|
|
5539
4998
|
}
|
|
5540
4999
|
|
|
5541
5000
|
/** @internal */
|
|
5542
|
-
export type
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
project_id?: string | undefined;
|
|
5546
|
-
role?: string | undefined;
|
|
5547
|
-
description?: string | undefined;
|
|
5548
|
-
instructions?: string | undefined;
|
|
5549
|
-
system_prompt?: string | undefined;
|
|
5550
|
-
model?: UpdateAgentModelConfiguration2$Outbound | string | undefined;
|
|
5551
|
-
fallback_models?:
|
|
5552
|
-
| Array<UpdateAgentFallbackModelConfiguration2$Outbound | string>
|
|
5553
|
-
| undefined;
|
|
5554
|
-
settings?: UpdateAgentSettings$Outbound | undefined;
|
|
5555
|
-
path?: string | undefined;
|
|
5556
|
-
memory_stores?: Array<string> | undefined;
|
|
5557
|
-
knowledge_bases?: Array<UpdateAgentKnowledgeBases$Outbound> | undefined;
|
|
5558
|
-
team_of_agents?: Array<UpdateAgentTeamOfAgents$Outbound> | undefined;
|
|
5559
|
-
variables?: { [k: string]: any } | undefined;
|
|
5001
|
+
export type UpdateAgentHeaders$Outbound = {
|
|
5002
|
+
value: string;
|
|
5003
|
+
encrypted: boolean;
|
|
5560
5004
|
};
|
|
5561
5005
|
|
|
5562
5006
|
/** @internal */
|
|
5563
|
-
export const
|
|
5564
|
-
|
|
5007
|
+
export const UpdateAgentHeaders$outboundSchema: z.ZodType<
|
|
5008
|
+
UpdateAgentHeaders$Outbound,
|
|
5565
5009
|
z.ZodTypeDef,
|
|
5566
|
-
|
|
5010
|
+
UpdateAgentHeaders
|
|
5567
5011
|
> = z.object({
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5012
|
+
value: z.string(),
|
|
5013
|
+
encrypted: z.boolean().default(false),
|
|
5014
|
+
});
|
|
5015
|
+
|
|
5016
|
+
export function updateAgentHeadersToJSON(
|
|
5017
|
+
updateAgentHeaders: UpdateAgentHeaders,
|
|
5018
|
+
): string {
|
|
5019
|
+
return JSON.stringify(
|
|
5020
|
+
UpdateAgentHeaders$outboundSchema.parse(updateAgentHeaders),
|
|
5021
|
+
);
|
|
5022
|
+
}
|
|
5023
|
+
|
|
5024
|
+
/** @internal */
|
|
5025
|
+
export type UpdateA2AConfiguration$Outbound = {
|
|
5026
|
+
agent_url?: string | undefined;
|
|
5027
|
+
card_url?: string | undefined;
|
|
5028
|
+
headers?: { [k: string]: UpdateAgentHeaders$Outbound } | undefined;
|
|
5029
|
+
};
|
|
5030
|
+
|
|
5031
|
+
/** @internal */
|
|
5032
|
+
export const UpdateA2AConfiguration$outboundSchema: z.ZodType<
|
|
5033
|
+
UpdateA2AConfiguration$Outbound,
|
|
5034
|
+
z.ZodTypeDef,
|
|
5035
|
+
UpdateA2AConfiguration
|
|
5036
|
+
> = z.object({
|
|
5037
|
+
agentUrl: z.string().optional(),
|
|
5038
|
+
cardUrl: z.string().optional(),
|
|
5039
|
+
headers: z.record(z.lazy(() => UpdateAgentHeaders$outboundSchema)).optional(),
|
|
5040
|
+
}).transform((v) => {
|
|
5041
|
+
return remap$(v, {
|
|
5042
|
+
agentUrl: "agent_url",
|
|
5043
|
+
cardUrl: "card_url",
|
|
5044
|
+
});
|
|
5045
|
+
});
|
|
5046
|
+
|
|
5047
|
+
export function updateA2AConfigurationToJSON(
|
|
5048
|
+
updateA2AConfiguration: UpdateA2AConfiguration,
|
|
5049
|
+
): string {
|
|
5050
|
+
return JSON.stringify(
|
|
5051
|
+
UpdateA2AConfiguration$outboundSchema.parse(updateA2AConfiguration),
|
|
5052
|
+
);
|
|
5053
|
+
}
|
|
5054
|
+
|
|
5055
|
+
/** @internal */
|
|
5056
|
+
export const VersionIncrement$outboundSchema: z.ZodNativeEnum<
|
|
5057
|
+
typeof VersionIncrement
|
|
5058
|
+
> = z.nativeEnum(VersionIncrement);
|
|
5059
|
+
|
|
5060
|
+
/** @internal */
|
|
5061
|
+
export type UpdateAgentRequestBody$Outbound = {
|
|
5062
|
+
key?: string | undefined;
|
|
5063
|
+
display_name?: string | undefined;
|
|
5064
|
+
project_id?: string | undefined;
|
|
5065
|
+
role?: string | undefined;
|
|
5066
|
+
description?: string | undefined;
|
|
5067
|
+
instructions?: string | undefined;
|
|
5068
|
+
system_prompt?: string | undefined;
|
|
5069
|
+
model?: UpdateAgentModelConfiguration2$Outbound | string | undefined;
|
|
5070
|
+
fallback_models?:
|
|
5071
|
+
| Array<UpdateAgentFallbackModelConfiguration2$Outbound | string>
|
|
5072
|
+
| undefined;
|
|
5073
|
+
settings?: UpdateAgentSettings$Outbound | undefined;
|
|
5074
|
+
path?: string | undefined;
|
|
5075
|
+
memory_stores?: Array<string> | undefined;
|
|
5076
|
+
knowledge_bases?: Array<UpdateAgentKnowledgeBases$Outbound> | undefined;
|
|
5077
|
+
team_of_agents?: Array<UpdateAgentTeamOfAgents$Outbound> | undefined;
|
|
5078
|
+
variables?: { [k: string]: any } | undefined;
|
|
5079
|
+
a2a?: UpdateA2AConfiguration$Outbound | undefined;
|
|
5080
|
+
versionIncrement?: string | undefined;
|
|
5081
|
+
versionDescription?: string | undefined;
|
|
5082
|
+
};
|
|
5083
|
+
|
|
5084
|
+
/** @internal */
|
|
5085
|
+
export const UpdateAgentRequestBody$outboundSchema: z.ZodType<
|
|
5086
|
+
UpdateAgentRequestBody$Outbound,
|
|
5087
|
+
z.ZodTypeDef,
|
|
5088
|
+
UpdateAgentRequestBody
|
|
5089
|
+
> = z.object({
|
|
5090
|
+
key: z.string().optional(),
|
|
5091
|
+
displayName: z.string().optional(),
|
|
5092
|
+
projectId: z.string().optional(),
|
|
5093
|
+
role: z.string().optional(),
|
|
5094
|
+
description: z.string().optional(),
|
|
5095
|
+
instructions: z.string().optional(),
|
|
5574
5096
|
systemPrompt: z.string().optional(),
|
|
5575
5097
|
model: z.union([
|
|
5576
5098
|
z.lazy(() => UpdateAgentModelConfiguration2$outboundSchema),
|
|
@@ -5591,6 +5113,9 @@ export const UpdateAgentUpdateAgentRequest$outboundSchema: z.ZodType<
|
|
|
5591
5113
|
teamOfAgents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$outboundSchema))
|
|
5592
5114
|
.optional(),
|
|
5593
5115
|
variables: z.record(z.any()).optional(),
|
|
5116
|
+
a2a: z.lazy(() => UpdateA2AConfiguration$outboundSchema).optional(),
|
|
5117
|
+
versionIncrement: VersionIncrement$outboundSchema.optional(),
|
|
5118
|
+
versionDescription: z.string().optional(),
|
|
5594
5119
|
}).transform((v) => {
|
|
5595
5120
|
return remap$(v, {
|
|
5596
5121
|
displayName: "display_name",
|
|
@@ -5603,20 +5128,18 @@ export const UpdateAgentUpdateAgentRequest$outboundSchema: z.ZodType<
|
|
|
5603
5128
|
});
|
|
5604
5129
|
});
|
|
5605
5130
|
|
|
5606
|
-
export function
|
|
5607
|
-
|
|
5131
|
+
export function updateAgentRequestBodyToJSON(
|
|
5132
|
+
updateAgentRequestBody: UpdateAgentRequestBody,
|
|
5608
5133
|
): string {
|
|
5609
5134
|
return JSON.stringify(
|
|
5610
|
-
|
|
5611
|
-
updateAgentUpdateAgentRequest,
|
|
5612
|
-
),
|
|
5135
|
+
UpdateAgentRequestBody$outboundSchema.parse(updateAgentRequestBody),
|
|
5613
5136
|
);
|
|
5614
5137
|
}
|
|
5615
5138
|
|
|
5616
5139
|
/** @internal */
|
|
5617
5140
|
export type UpdateAgentRequest$Outbound = {
|
|
5618
5141
|
agent_key: string;
|
|
5619
|
-
RequestBody:
|
|
5142
|
+
RequestBody: UpdateAgentRequestBody$Outbound;
|
|
5620
5143
|
};
|
|
5621
5144
|
|
|
5622
5145
|
/** @internal */
|
|
@@ -5626,7 +5149,7 @@ export const UpdateAgentRequest$outboundSchema: z.ZodType<
|
|
|
5626
5149
|
UpdateAgentRequest
|
|
5627
5150
|
> = z.object({
|
|
5628
5151
|
agentKey: z.string(),
|
|
5629
|
-
requestBody: z.lazy(() =>
|
|
5152
|
+
requestBody: z.lazy(() => UpdateAgentRequestBody$outboundSchema),
|
|
5630
5153
|
}).transform((v) => {
|
|
5631
5154
|
return remap$(v, {
|
|
5632
5155
|
agentKey: "agent_key",
|
|
@@ -5647,6 +5170,82 @@ export const UpdateAgentStatus$inboundSchema: z.ZodNativeEnum<
|
|
|
5647
5170
|
typeof UpdateAgentStatus
|
|
5648
5171
|
> = z.nativeEnum(UpdateAgentStatus);
|
|
5649
5172
|
|
|
5173
|
+
/** @internal */
|
|
5174
|
+
export const UpdateAgentAgentsTeamOfAgents$inboundSchema: z.ZodType<
|
|
5175
|
+
UpdateAgentAgentsTeamOfAgents,
|
|
5176
|
+
z.ZodTypeDef,
|
|
5177
|
+
unknown
|
|
5178
|
+
> = z.object({
|
|
5179
|
+
key: z.string(),
|
|
5180
|
+
role: z.string().optional(),
|
|
5181
|
+
});
|
|
5182
|
+
|
|
5183
|
+
export function updateAgentAgentsTeamOfAgentsFromJSON(
|
|
5184
|
+
jsonString: string,
|
|
5185
|
+
): SafeParseResult<UpdateAgentAgentsTeamOfAgents, SDKValidationError> {
|
|
5186
|
+
return safeParse(
|
|
5187
|
+
jsonString,
|
|
5188
|
+
(x) => UpdateAgentAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
5189
|
+
`Failed to parse 'UpdateAgentAgentsTeamOfAgents' from JSON`,
|
|
5190
|
+
);
|
|
5191
|
+
}
|
|
5192
|
+
|
|
5193
|
+
/** @internal */
|
|
5194
|
+
export const UpdateAgentMetrics$inboundSchema: z.ZodType<
|
|
5195
|
+
UpdateAgentMetrics,
|
|
5196
|
+
z.ZodTypeDef,
|
|
5197
|
+
unknown
|
|
5198
|
+
> = z.object({
|
|
5199
|
+
total_cost: z.number().default(0),
|
|
5200
|
+
}).transform((v) => {
|
|
5201
|
+
return remap$(v, {
|
|
5202
|
+
"total_cost": "totalCost",
|
|
5203
|
+
});
|
|
5204
|
+
});
|
|
5205
|
+
|
|
5206
|
+
export function updateAgentMetricsFromJSON(
|
|
5207
|
+
jsonString: string,
|
|
5208
|
+
): SafeParseResult<UpdateAgentMetrics, SDKValidationError> {
|
|
5209
|
+
return safeParse(
|
|
5210
|
+
jsonString,
|
|
5211
|
+
(x) => UpdateAgentMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
5212
|
+
`Failed to parse 'UpdateAgentMetrics' from JSON`,
|
|
5213
|
+
);
|
|
5214
|
+
}
|
|
5215
|
+
|
|
5216
|
+
/** @internal */
|
|
5217
|
+
export const UpdateAgentAgentsKnowledgeBases$inboundSchema: z.ZodType<
|
|
5218
|
+
UpdateAgentAgentsKnowledgeBases,
|
|
5219
|
+
z.ZodTypeDef,
|
|
5220
|
+
unknown
|
|
5221
|
+
> = z.object({
|
|
5222
|
+
knowledge_id: z.string(),
|
|
5223
|
+
}).transform((v) => {
|
|
5224
|
+
return remap$(v, {
|
|
5225
|
+
"knowledge_id": "knowledgeId",
|
|
5226
|
+
});
|
|
5227
|
+
});
|
|
5228
|
+
|
|
5229
|
+
export function updateAgentAgentsKnowledgeBasesFromJSON(
|
|
5230
|
+
jsonString: string,
|
|
5231
|
+
): SafeParseResult<UpdateAgentAgentsKnowledgeBases, SDKValidationError> {
|
|
5232
|
+
return safeParse(
|
|
5233
|
+
jsonString,
|
|
5234
|
+
(x) => UpdateAgentAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
5235
|
+
`Failed to parse 'UpdateAgentAgentsKnowledgeBases' from JSON`,
|
|
5236
|
+
);
|
|
5237
|
+
}
|
|
5238
|
+
|
|
5239
|
+
/** @internal */
|
|
5240
|
+
export const UpdateAgentSource$inboundSchema: z.ZodNativeEnum<
|
|
5241
|
+
typeof UpdateAgentSource
|
|
5242
|
+
> = z.nativeEnum(UpdateAgentSource);
|
|
5243
|
+
|
|
5244
|
+
/** @internal */
|
|
5245
|
+
export const UpdateAgentType$inboundSchema: z.ZodNativeEnum<
|
|
5246
|
+
typeof UpdateAgentType
|
|
5247
|
+
> = z.nativeEnum(UpdateAgentType);
|
|
5248
|
+
|
|
5650
5249
|
/** @internal */
|
|
5651
5250
|
export const UpdateAgentAgentsToolApprovalRequired$inboundSchema:
|
|
5652
5251
|
z.ZodNativeEnum<typeof UpdateAgentAgentsToolApprovalRequired> = z.nativeEnum(
|
|
@@ -5807,36 +5406,6 @@ export function updateAgentAgentsSettingsFromJSON(
|
|
|
5807
5406
|
);
|
|
5808
5407
|
}
|
|
5809
5408
|
|
|
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(
|
|
5831
|
-
jsonString: string,
|
|
5832
|
-
): SafeParseResult<UpdateAgentAudio, SDKValidationError> {
|
|
5833
|
-
return safeParse(
|
|
5834
|
-
jsonString,
|
|
5835
|
-
(x) => UpdateAgentAudio$inboundSchema.parse(JSON.parse(x)),
|
|
5836
|
-
`Failed to parse 'UpdateAgentAudio' from JSON`,
|
|
5837
|
-
);
|
|
5838
|
-
}
|
|
5839
|
-
|
|
5840
5409
|
/** @internal */
|
|
5841
5410
|
export const UpdateAgentResponseFormatAgentsResponseJsonSchema$inboundSchema:
|
|
5842
5411
|
z.ZodType<
|
|
@@ -5996,29 +5565,6 @@ export function updateAgentStopFromJSON(
|
|
|
5996
5565
|
);
|
|
5997
5566
|
}
|
|
5998
5567
|
|
|
5999
|
-
/** @internal */
|
|
6000
|
-
export const UpdateAgentStreamOptions$inboundSchema: z.ZodType<
|
|
6001
|
-
UpdateAgentStreamOptions,
|
|
6002
|
-
z.ZodTypeDef,
|
|
6003
|
-
unknown
|
|
6004
|
-
> = z.object({
|
|
6005
|
-
include_usage: z.boolean().optional(),
|
|
6006
|
-
}).transform((v) => {
|
|
6007
|
-
return remap$(v, {
|
|
6008
|
-
"include_usage": "includeUsage",
|
|
6009
|
-
});
|
|
6010
|
-
});
|
|
6011
|
-
|
|
6012
|
-
export function updateAgentStreamOptionsFromJSON(
|
|
6013
|
-
jsonString: string,
|
|
6014
|
-
): SafeParseResult<UpdateAgentStreamOptions, SDKValidationError> {
|
|
6015
|
-
return safeParse(
|
|
6016
|
-
jsonString,
|
|
6017
|
-
(x) => UpdateAgentStreamOptions$inboundSchema.parse(JSON.parse(x)),
|
|
6018
|
-
`Failed to parse 'UpdateAgentStreamOptions' from JSON`,
|
|
6019
|
-
);
|
|
6020
|
-
}
|
|
6021
|
-
|
|
6022
5568
|
/** @internal */
|
|
6023
5569
|
export const UpdateAgentThinking$inboundSchema: z.ZodType<
|
|
6024
5570
|
UpdateAgentThinking,
|
|
@@ -6197,33 +5743,9 @@ export function updateAgentFallbacksFromJSON(
|
|
|
6197
5743
|
}
|
|
6198
5744
|
|
|
6199
5745
|
/** @internal */
|
|
6200
|
-
export const
|
|
6201
|
-
|
|
6202
|
-
|
|
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(
|
|
6214
|
-
jsonString: string,
|
|
6215
|
-
): SafeParseResult<UpdateAgentAgentsRetry, SDKValidationError> {
|
|
6216
|
-
return safeParse(
|
|
6217
|
-
jsonString,
|
|
6218
|
-
(x) => UpdateAgentAgentsRetry$inboundSchema.parse(JSON.parse(x)),
|
|
6219
|
-
`Failed to parse 'UpdateAgentAgentsRetry' from JSON`,
|
|
6220
|
-
);
|
|
6221
|
-
}
|
|
6222
|
-
|
|
6223
|
-
/** @internal */
|
|
6224
|
-
export const UpdateAgentType$inboundSchema: z.ZodNativeEnum<
|
|
6225
|
-
typeof UpdateAgentType
|
|
6226
|
-
> = z.nativeEnum(UpdateAgentType);
|
|
5746
|
+
export const UpdateAgentAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
5747
|
+
typeof UpdateAgentAgentsType
|
|
5748
|
+
> = z.nativeEnum(UpdateAgentAgentsType);
|
|
6227
5749
|
|
|
6228
5750
|
/** @internal */
|
|
6229
5751
|
export const UpdateAgentCache$inboundSchema: z.ZodType<
|
|
@@ -6232,7 +5754,7 @@ export const UpdateAgentCache$inboundSchema: z.ZodType<
|
|
|
6232
5754
|
unknown
|
|
6233
5755
|
> = z.object({
|
|
6234
5756
|
ttl: z.number().default(1800),
|
|
6235
|
-
type:
|
|
5757
|
+
type: UpdateAgentAgentsType$inboundSchema,
|
|
6236
5758
|
});
|
|
6237
5759
|
|
|
6238
5760
|
export function updateAgentCacheFromJSON(
|
|
@@ -6347,13 +5869,9 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
6347
5869
|
unknown
|
|
6348
5870
|
> = z.object({
|
|
6349
5871
|
name: z.string().optional(),
|
|
6350
|
-
audio: z.nullable(z.lazy(() => UpdateAgentAudio$inboundSchema)).optional(),
|
|
6351
5872
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
6352
5873
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
6353
5874
|
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
5875
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
6358
5876
|
response_format: z.union([
|
|
6359
5877
|
z.lazy(() => UpdateAgentResponseFormatAgentsResponseText$inboundSchema),
|
|
@@ -6368,9 +5886,6 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
6368
5886
|
verbosity: z.string().optional(),
|
|
6369
5887
|
seed: z.nullable(z.number()).optional(),
|
|
6370
5888
|
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
5889
|
thinking: z.union([
|
|
6375
5890
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
6376
5891
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -6390,7 +5905,6 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
6390
5905
|
).optional(),
|
|
6391
5906
|
fallbacks: z.array(z.lazy(() => UpdateAgentFallbacks$inboundSchema))
|
|
6392
5907
|
.optional(),
|
|
6393
|
-
retry: z.lazy(() => UpdateAgentAgentsRetry$inboundSchema).optional(),
|
|
6394
5908
|
cache: z.lazy(() => UpdateAgentCache$inboundSchema).optional(),
|
|
6395
5909
|
load_balancer: z.lazy(() =>
|
|
6396
5910
|
UpdateAgentLoadBalancerAgentsResponse1$inboundSchema
|
|
@@ -6401,11 +5915,9 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
6401
5915
|
"frequency_penalty": "frequencyPenalty",
|
|
6402
5916
|
"max_tokens": "maxTokens",
|
|
6403
5917
|
"max_completion_tokens": "maxCompletionTokens",
|
|
6404
|
-
"top_logprobs": "topLogprobs",
|
|
6405
5918
|
"presence_penalty": "presencePenalty",
|
|
6406
5919
|
"response_format": "responseFormat",
|
|
6407
5920
|
"reasoning_effort": "reasoningEffort",
|
|
6408
|
-
"stream_options": "streamOptions",
|
|
6409
5921
|
"top_p": "topP",
|
|
6410
5922
|
"top_k": "topK",
|
|
6411
5923
|
"tool_choice": "toolChoice",
|
|
@@ -6448,43 +5960,6 @@ export function updateAgentRetryFromJSON(
|
|
|
6448
5960
|
);
|
|
6449
5961
|
}
|
|
6450
5962
|
|
|
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(
|
|
6473
|
-
jsonString: string,
|
|
6474
|
-
): SafeParseResult<
|
|
6475
|
-
UpdateAgentFallbackModelConfigurationAgentsAudio,
|
|
6476
|
-
SDKValidationError
|
|
6477
|
-
> {
|
|
6478
|
-
return safeParse(
|
|
6479
|
-
jsonString,
|
|
6480
|
-
(x) =>
|
|
6481
|
-
UpdateAgentFallbackModelConfigurationAgentsAudio$inboundSchema.parse(
|
|
6482
|
-
JSON.parse(x),
|
|
6483
|
-
),
|
|
6484
|
-
`Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsAudio' from JSON`,
|
|
6485
|
-
);
|
|
6486
|
-
}
|
|
6487
|
-
|
|
6488
5963
|
/** @internal */
|
|
6489
5964
|
export const UpdateAgentResponseFormatAgentsResponse200ApplicationJSONJSONSchema$inboundSchema:
|
|
6490
5965
|
z.ZodType<
|
|
@@ -6658,35 +6133,6 @@ export function updateAgentFallbackModelConfigurationAgentsStopFromJSON(
|
|
|
6658
6133
|
);
|
|
6659
6134
|
}
|
|
6660
6135
|
|
|
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
6136
|
/** @internal */
|
|
6691
6137
|
export const UpdateAgentFallbackModelConfigurationAgentsThinking$inboundSchema:
|
|
6692
6138
|
z.ZodType<
|
|
@@ -6903,36 +6349,6 @@ export function updateAgentFallbackModelConfigurationAgentsFallbacksFromJSON(
|
|
|
6903
6349
|
);
|
|
6904
6350
|
}
|
|
6905
6351
|
|
|
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
6352
|
/** @internal */
|
|
6937
6353
|
export const UpdateAgentFallbackModelConfigurationAgentsType$inboundSchema:
|
|
6938
6354
|
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsType> = z
|
|
@@ -7086,17 +6502,9 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
7086
6502
|
unknown
|
|
7087
6503
|
> = z.object({
|
|
7088
6504
|
name: z.string().optional(),
|
|
7089
|
-
audio: z.nullable(
|
|
7090
|
-
z.lazy(() =>
|
|
7091
|
-
UpdateAgentFallbackModelConfigurationAgentsAudio$inboundSchema
|
|
7092
|
-
),
|
|
7093
|
-
).optional(),
|
|
7094
6505
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
7095
6506
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
7096
6507
|
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
6508
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
7101
6509
|
response_format: z.union([
|
|
7102
6510
|
z.lazy(() =>
|
|
@@ -7115,11 +6523,6 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
7115
6523
|
verbosity: z.string().optional(),
|
|
7116
6524
|
seed: z.nullable(z.number()).optional(),
|
|
7117
6525
|
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
6526
|
thinking: z.union([
|
|
7124
6527
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
7125
6528
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -7147,9 +6550,6 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
7147
6550
|
UpdateAgentFallbackModelConfigurationAgentsFallbacks$inboundSchema
|
|
7148
6551
|
),
|
|
7149
6552
|
).optional(),
|
|
7150
|
-
retry: z.lazy(() =>
|
|
7151
|
-
UpdateAgentFallbackModelConfigurationAgentsResponse200Retry$inboundSchema
|
|
7152
|
-
).optional(),
|
|
7153
6553
|
cache: z.lazy(() =>
|
|
7154
6554
|
UpdateAgentFallbackModelConfigurationAgentsCache$inboundSchema
|
|
7155
6555
|
).optional(),
|
|
@@ -7164,11 +6564,9 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
7164
6564
|
"frequency_penalty": "frequencyPenalty",
|
|
7165
6565
|
"max_tokens": "maxTokens",
|
|
7166
6566
|
"max_completion_tokens": "maxCompletionTokens",
|
|
7167
|
-
"top_logprobs": "topLogprobs",
|
|
7168
6567
|
"presence_penalty": "presencePenalty",
|
|
7169
6568
|
"response_format": "responseFormat",
|
|
7170
6569
|
"reasoning_effort": "reasoningEffort",
|
|
7171
|
-
"stream_options": "streamOptions",
|
|
7172
6570
|
"top_p": "topP",
|
|
7173
6571
|
"top_k": "topK",
|
|
7174
6572
|
"tool_choice": "toolChoice",
|
|
@@ -7194,9 +6592,9 @@ export function updateAgentFallbackModelConfigurationAgentsParametersFromJSON(
|
|
|
7194
6592
|
}
|
|
7195
6593
|
|
|
7196
6594
|
/** @internal */
|
|
7197
|
-
export const
|
|
6595
|
+
export const UpdateAgentFallbackModelConfigurationAgentsRetry$inboundSchema:
|
|
7198
6596
|
z.ZodType<
|
|
7199
|
-
|
|
6597
|
+
UpdateAgentFallbackModelConfigurationAgentsRetry,
|
|
7200
6598
|
z.ZodTypeDef,
|
|
7201
6599
|
unknown
|
|
7202
6600
|
> = z.object({
|
|
@@ -7208,18 +6606,19 @@ export const UpdateAgentFallbackModelConfigurationAgentsResponseRetry$inboundSch
|
|
|
7208
6606
|
});
|
|
7209
6607
|
});
|
|
7210
6608
|
|
|
7211
|
-
export function
|
|
6609
|
+
export function updateAgentFallbackModelConfigurationAgentsRetryFromJSON(
|
|
7212
6610
|
jsonString: string,
|
|
7213
6611
|
): SafeParseResult<
|
|
7214
|
-
|
|
6612
|
+
UpdateAgentFallbackModelConfigurationAgentsRetry,
|
|
7215
6613
|
SDKValidationError
|
|
7216
6614
|
> {
|
|
7217
6615
|
return safeParse(
|
|
7218
6616
|
jsonString,
|
|
7219
6617
|
(x) =>
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
6618
|
+
UpdateAgentFallbackModelConfigurationAgentsRetry$inboundSchema.parse(
|
|
6619
|
+
JSON.parse(x),
|
|
6620
|
+
),
|
|
6621
|
+
`Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsRetry' from JSON`,
|
|
7223
6622
|
);
|
|
7224
6623
|
}
|
|
7225
6624
|
|
|
@@ -7235,7 +6634,7 @@ export const UpdateAgentFallbackModelConfigurationAgents2$inboundSchema:
|
|
|
7235
6634
|
UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
7236
6635
|
).optional(),
|
|
7237
6636
|
retry: z.lazy(() =>
|
|
7238
|
-
|
|
6637
|
+
UpdateAgentFallbackModelConfigurationAgentsRetry$inboundSchema
|
|
7239
6638
|
).optional(),
|
|
7240
6639
|
});
|
|
7241
6640
|
|
|
@@ -7316,76 +6715,54 @@ export function updateAgentModelFromJSON(
|
|
|
7316
6715
|
}
|
|
7317
6716
|
|
|
7318
6717
|
/** @internal */
|
|
7319
|
-
export const
|
|
7320
|
-
|
|
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,
|
|
6718
|
+
export const UpdateAgentAgentsHeaders$inboundSchema: z.ZodType<
|
|
6719
|
+
UpdateAgentAgentsHeaders,
|
|
7341
6720
|
z.ZodTypeDef,
|
|
7342
6721
|
unknown
|
|
7343
6722
|
> = z.object({
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
return remap$(v, {
|
|
7347
|
-
"total_cost": "totalCost",
|
|
7348
|
-
});
|
|
6723
|
+
value: z.string(),
|
|
6724
|
+
encrypted: z.boolean().default(false),
|
|
7349
6725
|
});
|
|
7350
6726
|
|
|
7351
|
-
export function
|
|
6727
|
+
export function updateAgentAgentsHeadersFromJSON(
|
|
7352
6728
|
jsonString: string,
|
|
7353
|
-
): SafeParseResult<
|
|
6729
|
+
): SafeParseResult<UpdateAgentAgentsHeaders, SDKValidationError> {
|
|
7354
6730
|
return safeParse(
|
|
7355
6731
|
jsonString,
|
|
7356
|
-
(x) =>
|
|
7357
|
-
`Failed to parse '
|
|
6732
|
+
(x) => UpdateAgentAgentsHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
6733
|
+
`Failed to parse 'UpdateAgentAgentsHeaders' from JSON`,
|
|
7358
6734
|
);
|
|
7359
6735
|
}
|
|
7360
6736
|
|
|
7361
6737
|
/** @internal */
|
|
7362
|
-
export const
|
|
7363
|
-
|
|
6738
|
+
export const UpdateAgentA2AAgentConfiguration$inboundSchema: z.ZodType<
|
|
6739
|
+
UpdateAgentA2AAgentConfiguration,
|
|
7364
6740
|
z.ZodTypeDef,
|
|
7365
6741
|
unknown
|
|
7366
6742
|
> = z.object({
|
|
7367
|
-
|
|
6743
|
+
agent_url: z.string(),
|
|
6744
|
+
card_url: z.string().optional(),
|
|
6745
|
+
headers: z.record(z.lazy(() => UpdateAgentAgentsHeaders$inboundSchema))
|
|
6746
|
+
.optional(),
|
|
6747
|
+
cached_card: z.any().optional(),
|
|
7368
6748
|
}).transform((v) => {
|
|
7369
6749
|
return remap$(v, {
|
|
7370
|
-
"
|
|
6750
|
+
"agent_url": "agentUrl",
|
|
6751
|
+
"card_url": "cardUrl",
|
|
6752
|
+
"cached_card": "cachedCard",
|
|
7371
6753
|
});
|
|
7372
6754
|
});
|
|
7373
6755
|
|
|
7374
|
-
export function
|
|
6756
|
+
export function updateAgentA2AAgentConfigurationFromJSON(
|
|
7375
6757
|
jsonString: string,
|
|
7376
|
-
): SafeParseResult<
|
|
6758
|
+
): SafeParseResult<UpdateAgentA2AAgentConfiguration, SDKValidationError> {
|
|
7377
6759
|
return safeParse(
|
|
7378
6760
|
jsonString,
|
|
7379
|
-
(x) =>
|
|
7380
|
-
`Failed to parse '
|
|
6761
|
+
(x) => UpdateAgentA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
6762
|
+
`Failed to parse 'UpdateAgentA2AAgentConfiguration' from JSON`,
|
|
7381
6763
|
);
|
|
7382
6764
|
}
|
|
7383
6765
|
|
|
7384
|
-
/** @internal */
|
|
7385
|
-
export const UpdateAgentSource$inboundSchema: z.ZodNativeEnum<
|
|
7386
|
-
typeof UpdateAgentSource
|
|
7387
|
-
> = z.nativeEnum(UpdateAgentSource);
|
|
7388
|
-
|
|
7389
6766
|
/** @internal */
|
|
7390
6767
|
export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
|
|
7391
6768
|
UpdateAgentResponseBody,
|
|
@@ -7395,44 +6772,44 @@ export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
7395
6772
|
_id: z.string(),
|
|
7396
6773
|
key: z.string(),
|
|
7397
6774
|
display_name: z.string().optional(),
|
|
7398
|
-
workspace_id: z.string(),
|
|
7399
6775
|
project_id: z.string(),
|
|
7400
6776
|
created_by_id: z.nullable(z.string()).optional(),
|
|
7401
6777
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
7402
6778
|
created: z.string().optional(),
|
|
7403
6779
|
updated: z.string().optional(),
|
|
7404
|
-
role: z.string(),
|
|
7405
|
-
description: z.string(),
|
|
7406
|
-
system_prompt: z.string().optional(),
|
|
7407
|
-
instructions: z.string(),
|
|
7408
6780
|
status: UpdateAgentStatus$inboundSchema,
|
|
7409
|
-
settings: z.lazy(() => UpdateAgentAgentsSettings$inboundSchema).optional(),
|
|
7410
|
-
model: z.lazy(() => UpdateAgentModel$inboundSchema),
|
|
7411
6781
|
version_hash: z.string().optional(),
|
|
7412
6782
|
path: z.string(),
|
|
7413
|
-
memory_stores: z.array(z.string()),
|
|
6783
|
+
memory_stores: z.array(z.string()).optional(),
|
|
7414
6784
|
team_of_agents: z.array(
|
|
7415
6785
|
z.lazy(() => UpdateAgentAgentsTeamOfAgents$inboundSchema),
|
|
7416
|
-
),
|
|
6786
|
+
).optional(),
|
|
7417
6787
|
metrics: z.lazy(() => UpdateAgentMetrics$inboundSchema).optional(),
|
|
7418
6788
|
variables: z.record(z.any()).optional(),
|
|
7419
6789
|
knowledge_bases: z.array(
|
|
7420
6790
|
z.lazy(() => UpdateAgentAgentsKnowledgeBases$inboundSchema),
|
|
7421
6791
|
).optional(),
|
|
7422
6792
|
source: UpdateAgentSource$inboundSchema.optional(),
|
|
6793
|
+
type: UpdateAgentType$inboundSchema.default("internal"),
|
|
6794
|
+
role: z.string(),
|
|
6795
|
+
description: z.string(),
|
|
6796
|
+
system_prompt: z.string().optional(),
|
|
6797
|
+
instructions: z.string(),
|
|
6798
|
+
settings: z.lazy(() => UpdateAgentAgentsSettings$inboundSchema).optional(),
|
|
6799
|
+
model: z.lazy(() => UpdateAgentModel$inboundSchema),
|
|
6800
|
+
a2a: z.lazy(() => UpdateAgentA2AAgentConfiguration$inboundSchema).optional(),
|
|
7423
6801
|
}).transform((v) => {
|
|
7424
6802
|
return remap$(v, {
|
|
7425
6803
|
"_id": "id",
|
|
7426
6804
|
"display_name": "displayName",
|
|
7427
|
-
"workspace_id": "workspaceId",
|
|
7428
6805
|
"project_id": "projectId",
|
|
7429
6806
|
"created_by_id": "createdById",
|
|
7430
6807
|
"updated_by_id": "updatedById",
|
|
7431
|
-
"system_prompt": "systemPrompt",
|
|
7432
6808
|
"version_hash": "versionHash",
|
|
7433
6809
|
"memory_stores": "memoryStores",
|
|
7434
6810
|
"team_of_agents": "teamOfAgents",
|
|
7435
6811
|
"knowledge_bases": "knowledgeBases",
|
|
6812
|
+
"system_prompt": "systemPrompt",
|
|
7436
6813
|
});
|
|
7437
6814
|
});
|
|
7438
6815
|
|