@orq-ai/node 4.0.5 → 4.1.0-rc.1
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/bin/mcp-server.js +214 -217
- package/bin/mcp-server.js.map +39 -39
- package/docs/sdks/agents/README.md +8 -4
- package/docs/sdks/budgets/README.md +4 -2
- package/docs/sdks/tools/README.md +2 -2
- package/examples/package-lock.json +4 -7
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +4 -3
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/packages/orq-rc/FUNCTIONS.md +0 -103
- package/packages/orq-rc/README.md +0 -901
- package/packages/orq-rc/RUNTIMES.md +0 -48
- package/packages/orq-rc/docs/sdks/agents/README.md +0 -1064
- package/packages/orq-rc/docs/sdks/budgets/README.md +0 -401
- package/packages/orq-rc/docs/sdks/chunking/README.md +0 -97
- package/packages/orq-rc/docs/sdks/contacts/README.md +0 -450
- package/packages/orq-rc/docs/sdks/datasets/README.md +0 -836
- package/packages/orq-rc/docs/sdks/deployments/README.md +0 -312
- package/packages/orq-rc/docs/sdks/evals/README.md +0 -339
- package/packages/orq-rc/docs/sdks/feedback/README.md +0 -89
- package/packages/orq-rc/docs/sdks/files/README.md +0 -301
- package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1487
- package/packages/orq-rc/docs/sdks/memorystores/README.md +0 -1171
- package/packages/orq-rc/docs/sdks/metrics/README.md +0 -83
- package/packages/orq-rc/docs/sdks/models/README.md +0 -76
- package/packages/orq-rc/docs/sdks/prompts/README.md +0 -591
- package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -77
- package/packages/orq-rc/docs/sdks/responses/README.md +0 -134
- package/packages/orq-rc/docs/sdks/tools/README.md +0 -420
- package/packages/orq-rc/examples/README.md +0 -31
- package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
- package/packages/orq-rc/examples/package-lock.json +0 -619
- package/packages/orq-rc/examples/package.json +0 -18
- package/packages/orq-rc/jsr.json +0 -28
- package/packages/orq-rc/package-lock.json +0 -3047
- package/packages/orq-rc/package.json +0 -40
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -174
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -165
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -191
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/budgetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/budgetsGet.ts +0 -166
- package/packages/orq-rc/src/funcs/budgetsList.ts +0 -170
- package/packages/orq-rc/src/funcs/budgetsUpdate.ts +0 -167
- package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/contactsList.ts +0 -169
- package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
- package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
- package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
- package/packages/orq-rc/src/funcs/filesList.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -181
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -176
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
- package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
- package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
- package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -172
- package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
- package/packages/orq-rc/src/hooks/global.ts +0 -44
- package/packages/orq-rc/src/hooks/hooks.ts +0 -132
- package/packages/orq-rc/src/hooks/index.ts +0 -6
- package/packages/orq-rc/src/hooks/registration.ts +0 -15
- package/packages/orq-rc/src/hooks/types.ts +0 -112
- package/packages/orq-rc/src/index.ts +0 -9
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -74
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/encodings.ts +0 -483
- package/packages/orq-rc/src/lib/env.ts +0 -89
- package/packages/orq-rc/src/lib/event-streams.ts +0 -135
- package/packages/orq-rc/src/lib/files.ts +0 -82
- package/packages/orq-rc/src/lib/http.ts +0 -323
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/packages/orq-rc/src/lib/logger.ts +0 -9
- package/packages/orq-rc/src/lib/matchers.ts +0 -345
- package/packages/orq-rc/src/lib/primitives.ts +0 -150
- package/packages/orq-rc/src/lib/retries.ts +0 -218
- package/packages/orq-rc/src/lib/schemas.ts +0 -91
- package/packages/orq-rc/src/lib/sdks.ts +0 -407
- package/packages/orq-rc/src/lib/security.ts +0 -264
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
- package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
- package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
- package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
- package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
- package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
- package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
- package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
- package/packages/orq-rc/src/mcp-server/server.ts +0 -251
- package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
- package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
- package/packages/orq-rc/src/models/components/index.ts +0 -6
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -6261
- package/packages/orq-rc/src/models/components/security.ts +0 -56
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createagentrequest.ts +0 -67
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -78
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -67
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -67
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -77
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -26
- package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
- package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
- package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -67
- package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -78
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/streamagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -70
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -67
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -78
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -63
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -8215
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -1353
- package/packages/orq-rc/src/models/operations/createbudget.ts +0 -582
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -341
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -237
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -257
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -5379
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -694
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -6857
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -226
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1489
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -229
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -242
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -310
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -6179
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -3956
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -81
- package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -198
- package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -72
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -72
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -51
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -72
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -83
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -63
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletetool.ts +0 -60
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5091
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -8055
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -980
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2054
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -8269
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -63
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -181
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -268
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -258
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -261
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -280
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -325
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2033
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2292
- package/packages/orq-rc/src/models/operations/getbudget.ts +0 -357
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -185
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -5543
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -258
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1070
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1924
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1942
- package/packages/orq-rc/src/models/operations/index.ts +0 -98
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -1893
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -3614
- package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -494
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -395
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -408
- package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -413
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -3169
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -334
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -363
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1068
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -207
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2041
- package/packages/orq-rc/src/models/operations/parse.ts +0 -1013
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -146
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3741
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -180
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2985
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -246
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -231
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -171
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -189
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -234
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2347
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -7613
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -2775
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -9732
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -15817
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -8649
- package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -502
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -361
- package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -280
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -5374
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -326
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -288
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -7197
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1925
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -238
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -251
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -463
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -6410
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4279
- package/packages/orq-rc/src/sdk/agents.ts +0 -196
- package/packages/orq-rc/src/sdk/budgets.ts +0 -99
- package/packages/orq-rc/src/sdk/chunking.ts +0 -27
- package/packages/orq-rc/src/sdk/contacts.ts +0 -99
- package/packages/orq-rc/src/sdk/datasets.ts +0 -204
- package/packages/orq-rc/src/sdk/deployments.ts +0 -89
- package/packages/orq-rc/src/sdk/evals.ts +0 -69
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -78
- package/packages/orq-rc/src/sdk/index.ts +0 -5
- package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
- package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
- package/packages/orq-rc/src/sdk/metrics.ts +0 -27
- package/packages/orq-rc/src/sdk/models.ts +0 -25
- package/packages/orq-rc/src/sdk/prompts.ts +0 -126
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
- package/packages/orq-rc/src/sdk/responses.ts +0 -29
- package/packages/orq-rc/src/sdk/sdk.ts +0 -97
- package/packages/orq-rc/src/sdk/tools.ts +0 -99
- package/packages/orq-rc/src/types/async.ts +0 -68
- package/packages/orq-rc/src/types/blobs.ts +0 -32
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -45
- package/packages/orq-rc/src/types/fp.ts +0 -50
- package/packages/orq-rc/src/types/index.ts +0 -11
- package/packages/orq-rc/src/types/operations.ts +0 -105
- package/packages/orq-rc/src/types/rfcdate.ts +0 -54
- package/packages/orq-rc/src/types/streams.ts +0 -21
- package/packages/orq-rc/src/types/unrecognized.ts +0 -27
- package/packages/orq-rc/tsconfig.json +0 -41
|
@@ -1,3614 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type ListAgentsRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* A limit on the number of objects to be returned. Limit can range between 1 and 200. When not provided, returns all agents without pagination.
|
|
15
|
-
*/
|
|
16
|
-
limit?: number | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
|
|
19
|
-
*/
|
|
20
|
-
startingAfter?: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
23
|
-
*/
|
|
24
|
-
endingBefore?: string | undefined;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const ListAgentsObject = {
|
|
28
|
-
List: "list",
|
|
29
|
-
} as const;
|
|
30
|
-
export type ListAgentsObject = ClosedEnum<typeof ListAgentsObject>;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* 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.
|
|
34
|
-
*/
|
|
35
|
-
export const ListAgentsStatus = {
|
|
36
|
-
Live: "live",
|
|
37
|
-
Draft: "draft",
|
|
38
|
-
Pending: "pending",
|
|
39
|
-
Published: "published",
|
|
40
|
-
} as const;
|
|
41
|
-
/**
|
|
42
|
-
* 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.
|
|
43
|
-
*/
|
|
44
|
-
export type ListAgentsStatus = ClosedEnum<typeof ListAgentsStatus>;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* 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.
|
|
48
|
-
*/
|
|
49
|
-
export const ListAgentsToolApprovalRequired = {
|
|
50
|
-
All: "all",
|
|
51
|
-
RespectTool: "respect_tool",
|
|
52
|
-
None: "none",
|
|
53
|
-
} as const;
|
|
54
|
-
/**
|
|
55
|
-
* 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.
|
|
56
|
-
*/
|
|
57
|
-
export type ListAgentsToolApprovalRequired = ClosedEnum<
|
|
58
|
-
typeof ListAgentsToolApprovalRequired
|
|
59
|
-
>;
|
|
60
|
-
|
|
61
|
-
export type ListAgentsConditions = {
|
|
62
|
-
/**
|
|
63
|
-
* The argument of the tool call to evaluate
|
|
64
|
-
*/
|
|
65
|
-
condition: string;
|
|
66
|
-
/**
|
|
67
|
-
* The operator to use
|
|
68
|
-
*/
|
|
69
|
-
operator: string;
|
|
70
|
-
/**
|
|
71
|
-
* The value to compare against
|
|
72
|
-
*/
|
|
73
|
-
value: string;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export type ListAgentsTools = {
|
|
77
|
-
/**
|
|
78
|
-
* The id of the resource
|
|
79
|
-
*/
|
|
80
|
-
id: string;
|
|
81
|
-
/**
|
|
82
|
-
* Optional tool key for custom tools
|
|
83
|
-
*/
|
|
84
|
-
key?: string | undefined;
|
|
85
|
-
actionType: string;
|
|
86
|
-
displayName?: string | undefined;
|
|
87
|
-
/**
|
|
88
|
-
* Optional tool description
|
|
89
|
-
*/
|
|
90
|
-
description?: string | undefined;
|
|
91
|
-
requiresApproval?: boolean | undefined;
|
|
92
|
-
/**
|
|
93
|
-
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
94
|
-
*/
|
|
95
|
-
toolId?: string | undefined;
|
|
96
|
-
conditions?: Array<ListAgentsConditions> | undefined;
|
|
97
|
-
/**
|
|
98
|
-
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
99
|
-
*/
|
|
100
|
-
timeout?: number | undefined;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
105
|
-
*/
|
|
106
|
-
export const ListAgentsExecuteOn = {
|
|
107
|
-
Input: "input",
|
|
108
|
-
Output: "output",
|
|
109
|
-
} as const;
|
|
110
|
-
/**
|
|
111
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
112
|
-
*/
|
|
113
|
-
export type ListAgentsExecuteOn = ClosedEnum<typeof ListAgentsExecuteOn>;
|
|
114
|
-
|
|
115
|
-
export type ListAgentsEvaluators = {
|
|
116
|
-
/**
|
|
117
|
-
* Unique key or identifier of the evaluator
|
|
118
|
-
*/
|
|
119
|
-
id: string;
|
|
120
|
-
/**
|
|
121
|
-
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
122
|
-
*/
|
|
123
|
-
sampleRate?: number | undefined;
|
|
124
|
-
/**
|
|
125
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
126
|
-
*/
|
|
127
|
-
executeOn: ListAgentsExecuteOn;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
132
|
-
*/
|
|
133
|
-
export const ListAgentsAgentsExecuteOn = {
|
|
134
|
-
Input: "input",
|
|
135
|
-
Output: "output",
|
|
136
|
-
} as const;
|
|
137
|
-
/**
|
|
138
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
139
|
-
*/
|
|
140
|
-
export type ListAgentsAgentsExecuteOn = ClosedEnum<
|
|
141
|
-
typeof ListAgentsAgentsExecuteOn
|
|
142
|
-
>;
|
|
143
|
-
|
|
144
|
-
export type ListAgentsGuardrails = {
|
|
145
|
-
/**
|
|
146
|
-
* Unique key or identifier of the evaluator
|
|
147
|
-
*/
|
|
148
|
-
id: string;
|
|
149
|
-
/**
|
|
150
|
-
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
151
|
-
*/
|
|
152
|
-
sampleRate?: number | undefined;
|
|
153
|
-
/**
|
|
154
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
155
|
-
*/
|
|
156
|
-
executeOn: ListAgentsAgentsExecuteOn;
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
export type ListAgentsSettings = {
|
|
160
|
-
/**
|
|
161
|
-
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
162
|
-
*/
|
|
163
|
-
maxIterations?: number | undefined;
|
|
164
|
-
/**
|
|
165
|
-
* Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
|
|
166
|
-
*/
|
|
167
|
-
maxExecutionTime?: number | undefined;
|
|
168
|
-
/**
|
|
169
|
-
* 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.
|
|
170
|
-
*/
|
|
171
|
-
toolApprovalRequired?: ListAgentsToolApprovalRequired | undefined;
|
|
172
|
-
tools?: Array<ListAgentsTools> | undefined;
|
|
173
|
-
/**
|
|
174
|
-
* Configuration for an evaluator applied to the agent
|
|
175
|
-
*/
|
|
176
|
-
evaluators?: Array<ListAgentsEvaluators> | undefined;
|
|
177
|
-
/**
|
|
178
|
-
* Configuration for a guardrail applied to the agent
|
|
179
|
-
*/
|
|
180
|
-
guardrails?: Array<ListAgentsGuardrails> | undefined;
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
185
|
-
*/
|
|
186
|
-
export const ListAgentsVoice = {
|
|
187
|
-
Alloy: "alloy",
|
|
188
|
-
Echo: "echo",
|
|
189
|
-
Fable: "fable",
|
|
190
|
-
Onyx: "onyx",
|
|
191
|
-
Nova: "nova",
|
|
192
|
-
Shimmer: "shimmer",
|
|
193
|
-
} as const;
|
|
194
|
-
/**
|
|
195
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
196
|
-
*/
|
|
197
|
-
export type ListAgentsVoice = ClosedEnum<typeof ListAgentsVoice>;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
201
|
-
*/
|
|
202
|
-
export const ListAgentsFormat = {
|
|
203
|
-
Wav: "wav",
|
|
204
|
-
Mp3: "mp3",
|
|
205
|
-
Flac: "flac",
|
|
206
|
-
Opus: "opus",
|
|
207
|
-
Pcm16: "pcm16",
|
|
208
|
-
} as const;
|
|
209
|
-
/**
|
|
210
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
211
|
-
*/
|
|
212
|
-
export type ListAgentsFormat = ClosedEnum<typeof ListAgentsFormat>;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
216
|
-
*/
|
|
217
|
-
export type ListAgentsAudio = {
|
|
218
|
-
/**
|
|
219
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
220
|
-
*/
|
|
221
|
-
voice: ListAgentsVoice;
|
|
222
|
-
/**
|
|
223
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
224
|
-
*/
|
|
225
|
-
format: ListAgentsFormat;
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
export const ListAgentsResponseFormatAgentsResponseType = {
|
|
229
|
-
JsonSchema: "json_schema",
|
|
230
|
-
} as const;
|
|
231
|
-
export type ListAgentsResponseFormatAgentsResponseType = ClosedEnum<
|
|
232
|
-
typeof ListAgentsResponseFormatAgentsResponseType
|
|
233
|
-
>;
|
|
234
|
-
|
|
235
|
-
export type ListAgentsResponseFormatJsonSchema = {
|
|
236
|
-
/**
|
|
237
|
-
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
238
|
-
*/
|
|
239
|
-
description?: string | undefined;
|
|
240
|
-
/**
|
|
241
|
-
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
242
|
-
*/
|
|
243
|
-
name: string;
|
|
244
|
-
/**
|
|
245
|
-
* The schema for the response format, described as a JSON Schema object.
|
|
246
|
-
*/
|
|
247
|
-
schema?: any | undefined;
|
|
248
|
-
/**
|
|
249
|
-
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
250
|
-
*/
|
|
251
|
-
strict?: boolean | undefined;
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* @remarks
|
|
256
|
-
*
|
|
257
|
-
* JSON Schema response format. Used to generate structured JSON responses
|
|
258
|
-
*/
|
|
259
|
-
export type ListAgentsResponseFormatAgentsJSONSchema = {
|
|
260
|
-
type: ListAgentsResponseFormatAgentsResponseType;
|
|
261
|
-
jsonSchema: ListAgentsResponseFormatJsonSchema;
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
export const ListAgentsResponseFormatAgentsType = {
|
|
265
|
-
JsonObject: "json_object",
|
|
266
|
-
} as const;
|
|
267
|
-
export type ListAgentsResponseFormatAgentsType = ClosedEnum<
|
|
268
|
-
typeof ListAgentsResponseFormatAgentsType
|
|
269
|
-
>;
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* @remarks
|
|
273
|
-
*
|
|
274
|
-
* JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
|
|
275
|
-
*/
|
|
276
|
-
export type ListAgentsResponseFormatJSONObject = {
|
|
277
|
-
type: ListAgentsResponseFormatAgentsType;
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
export const ListAgentsResponseFormatType = {
|
|
281
|
-
Text: "text",
|
|
282
|
-
} as const;
|
|
283
|
-
export type ListAgentsResponseFormatType = ClosedEnum<
|
|
284
|
-
typeof ListAgentsResponseFormatType
|
|
285
|
-
>;
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* @remarks
|
|
289
|
-
*
|
|
290
|
-
* Default response format. Used to generate text responses
|
|
291
|
-
*/
|
|
292
|
-
export type ListAgentsResponseFormatText = {
|
|
293
|
-
type: ListAgentsResponseFormatType;
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* An object specifying the format that the model must output
|
|
298
|
-
*/
|
|
299
|
-
export type ListAgentsResponseFormat =
|
|
300
|
-
| ListAgentsResponseFormatAgentsJSONSchema
|
|
301
|
-
| ListAgentsResponseFormatText
|
|
302
|
-
| ListAgentsResponseFormatJSONObject;
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Up to 4 sequences where the API will stop generating further tokens.
|
|
306
|
-
*/
|
|
307
|
-
export type ListAgentsStop = string | Array<string>;
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
311
|
-
*/
|
|
312
|
-
export type ListAgentsStreamOptions = {
|
|
313
|
-
/**
|
|
314
|
-
* 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.
|
|
315
|
-
*/
|
|
316
|
-
includeUsage?: boolean | undefined;
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* Enables or disables the thinking mode capability
|
|
321
|
-
*/
|
|
322
|
-
export const ListAgentsType = {
|
|
323
|
-
Enabled: "enabled",
|
|
324
|
-
Disabled: "disabled",
|
|
325
|
-
} as const;
|
|
326
|
-
/**
|
|
327
|
-
* Enables or disables the thinking mode capability
|
|
328
|
-
*/
|
|
329
|
-
export type ListAgentsType = ClosedEnum<typeof ListAgentsType>;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
333
|
-
*/
|
|
334
|
-
export const ListAgentsThinkingLevel = {
|
|
335
|
-
Low: "low",
|
|
336
|
-
High: "high",
|
|
337
|
-
} as const;
|
|
338
|
-
/**
|
|
339
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
340
|
-
*/
|
|
341
|
-
export type ListAgentsThinkingLevel = ClosedEnum<
|
|
342
|
-
typeof ListAgentsThinkingLevel
|
|
343
|
-
>;
|
|
344
|
-
|
|
345
|
-
export type ListAgentsThinking = {
|
|
346
|
-
/**
|
|
347
|
-
* Enables or disables the thinking mode capability
|
|
348
|
-
*/
|
|
349
|
-
type: ListAgentsType;
|
|
350
|
-
/**
|
|
351
|
-
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
352
|
-
*/
|
|
353
|
-
budgetTokens: number;
|
|
354
|
-
/**
|
|
355
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
356
|
-
*/
|
|
357
|
-
thinkingLevel?: ListAgentsThinkingLevel | undefined;
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* The type of the tool. Currently, only function is supported.
|
|
362
|
-
*/
|
|
363
|
-
export const ListAgentsToolChoiceType = {
|
|
364
|
-
Function: "function",
|
|
365
|
-
} as const;
|
|
366
|
-
/**
|
|
367
|
-
* The type of the tool. Currently, only function is supported.
|
|
368
|
-
*/
|
|
369
|
-
export type ListAgentsToolChoiceType = ClosedEnum<
|
|
370
|
-
typeof ListAgentsToolChoiceType
|
|
371
|
-
>;
|
|
372
|
-
|
|
373
|
-
export type ListAgentsToolChoiceFunction = {
|
|
374
|
-
/**
|
|
375
|
-
* The name of the function to call.
|
|
376
|
-
*/
|
|
377
|
-
name?: string | undefined;
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
export type ListAgentsToolChoice2 = {
|
|
381
|
-
/**
|
|
382
|
-
* The type of the tool. Currently, only function is supported.
|
|
383
|
-
*/
|
|
384
|
-
type?: ListAgentsToolChoiceType | undefined;
|
|
385
|
-
function: ListAgentsToolChoiceFunction;
|
|
386
|
-
};
|
|
387
|
-
|
|
388
|
-
export const ListAgentsToolChoice1 = {
|
|
389
|
-
None: "none",
|
|
390
|
-
Auto: "auto",
|
|
391
|
-
Required: "required",
|
|
392
|
-
} as const;
|
|
393
|
-
export type ListAgentsToolChoice1 = ClosedEnum<typeof ListAgentsToolChoice1>;
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* Controls which (if any) tool is called by the model.
|
|
397
|
-
*/
|
|
398
|
-
export type ListAgentsToolChoice =
|
|
399
|
-
| ListAgentsToolChoice2
|
|
400
|
-
| ListAgentsToolChoice1;
|
|
401
|
-
|
|
402
|
-
export const ListAgentsModalities = {
|
|
403
|
-
Text: "text",
|
|
404
|
-
Audio: "audio",
|
|
405
|
-
} as const;
|
|
406
|
-
export type ListAgentsModalities = ClosedEnum<typeof ListAgentsModalities>;
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
|
|
410
|
-
*/
|
|
411
|
-
export type ListAgentsParameters = {
|
|
412
|
-
/**
|
|
413
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
414
|
-
*/
|
|
415
|
-
audio?: ListAgentsAudio | null | undefined;
|
|
416
|
-
/**
|
|
417
|
-
* 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.
|
|
418
|
-
*/
|
|
419
|
-
frequencyPenalty?: number | null | undefined;
|
|
420
|
-
/**
|
|
421
|
-
* `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
|
|
422
|
-
*
|
|
423
|
-
* @remarks
|
|
424
|
-
*
|
|
425
|
-
* This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
|
|
426
|
-
*/
|
|
427
|
-
maxTokens?: number | null | undefined;
|
|
428
|
-
/**
|
|
429
|
-
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
430
|
-
*/
|
|
431
|
-
maxCompletionTokens?: number | null | undefined;
|
|
432
|
-
/**
|
|
433
|
-
* 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.
|
|
434
|
-
*/
|
|
435
|
-
logprobs?: boolean | null | undefined;
|
|
436
|
-
/**
|
|
437
|
-
* 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.
|
|
438
|
-
*/
|
|
439
|
-
topLogprobs?: number | null | undefined;
|
|
440
|
-
/**
|
|
441
|
-
* 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.
|
|
442
|
-
*/
|
|
443
|
-
n?: number | null | undefined;
|
|
444
|
-
/**
|
|
445
|
-
* 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.
|
|
446
|
-
*/
|
|
447
|
-
presencePenalty?: number | null | undefined;
|
|
448
|
-
/**
|
|
449
|
-
* An object specifying the format that the model must output
|
|
450
|
-
*/
|
|
451
|
-
responseFormat?:
|
|
452
|
-
| ListAgentsResponseFormatAgentsJSONSchema
|
|
453
|
-
| ListAgentsResponseFormatText
|
|
454
|
-
| ListAgentsResponseFormatJSONObject
|
|
455
|
-
| undefined;
|
|
456
|
-
/**
|
|
457
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
458
|
-
*/
|
|
459
|
-
reasoningEffort?: string | undefined;
|
|
460
|
-
/**
|
|
461
|
-
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
462
|
-
*/
|
|
463
|
-
verbosity?: string | undefined;
|
|
464
|
-
/**
|
|
465
|
-
* If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
|
|
466
|
-
*/
|
|
467
|
-
seed?: number | null | undefined;
|
|
468
|
-
/**
|
|
469
|
-
* Up to 4 sequences where the API will stop generating further tokens.
|
|
470
|
-
*/
|
|
471
|
-
stop?: string | Array<string> | null | undefined;
|
|
472
|
-
/**
|
|
473
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
474
|
-
*/
|
|
475
|
-
streamOptions?: ListAgentsStreamOptions | null | undefined;
|
|
476
|
-
thinking?: ListAgentsThinking | undefined;
|
|
477
|
-
/**
|
|
478
|
-
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
479
|
-
*/
|
|
480
|
-
temperature?: number | null | undefined;
|
|
481
|
-
/**
|
|
482
|
-
* An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
|
|
483
|
-
*/
|
|
484
|
-
topP?: number | null | undefined;
|
|
485
|
-
/**
|
|
486
|
-
* Limits the model to consider only the top k most likely tokens at each step.
|
|
487
|
-
*/
|
|
488
|
-
topK?: number | null | undefined;
|
|
489
|
-
/**
|
|
490
|
-
* Controls which (if any) tool is called by the model.
|
|
491
|
-
*/
|
|
492
|
-
toolChoice?: ListAgentsToolChoice2 | ListAgentsToolChoice1 | undefined;
|
|
493
|
-
/**
|
|
494
|
-
* Whether to enable parallel function calling during tool use.
|
|
495
|
-
*/
|
|
496
|
-
parallelToolCalls?: boolean | undefined;
|
|
497
|
-
/**
|
|
498
|
-
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
499
|
-
*/
|
|
500
|
-
modalities?: Array<ListAgentsModalities> | null | undefined;
|
|
501
|
-
};
|
|
502
|
-
|
|
503
|
-
/**
|
|
504
|
-
* Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
|
|
505
|
-
*/
|
|
506
|
-
export type ListAgentsRetry = {
|
|
507
|
-
/**
|
|
508
|
-
* Number of retry attempts (1-5)
|
|
509
|
-
*/
|
|
510
|
-
count?: number | undefined;
|
|
511
|
-
/**
|
|
512
|
-
* HTTP status codes that trigger retry logic
|
|
513
|
-
*/
|
|
514
|
-
onCodes?: Array<number> | undefined;
|
|
515
|
-
};
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
519
|
-
*/
|
|
520
|
-
export const ListAgentsFallbackModelConfigurationVoice = {
|
|
521
|
-
Alloy: "alloy",
|
|
522
|
-
Echo: "echo",
|
|
523
|
-
Fable: "fable",
|
|
524
|
-
Onyx: "onyx",
|
|
525
|
-
Nova: "nova",
|
|
526
|
-
Shimmer: "shimmer",
|
|
527
|
-
} as const;
|
|
528
|
-
/**
|
|
529
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
530
|
-
*/
|
|
531
|
-
export type ListAgentsFallbackModelConfigurationVoice = ClosedEnum<
|
|
532
|
-
typeof ListAgentsFallbackModelConfigurationVoice
|
|
533
|
-
>;
|
|
534
|
-
|
|
535
|
-
/**
|
|
536
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
537
|
-
*/
|
|
538
|
-
export const ListAgentsFallbackModelConfigurationFormat = {
|
|
539
|
-
Wav: "wav",
|
|
540
|
-
Mp3: "mp3",
|
|
541
|
-
Flac: "flac",
|
|
542
|
-
Opus: "opus",
|
|
543
|
-
Pcm16: "pcm16",
|
|
544
|
-
} as const;
|
|
545
|
-
/**
|
|
546
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
547
|
-
*/
|
|
548
|
-
export type ListAgentsFallbackModelConfigurationFormat = ClosedEnum<
|
|
549
|
-
typeof ListAgentsFallbackModelConfigurationFormat
|
|
550
|
-
>;
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
554
|
-
*/
|
|
555
|
-
export type ListAgentsFallbackModelConfigurationAudio = {
|
|
556
|
-
/**
|
|
557
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
558
|
-
*/
|
|
559
|
-
voice: ListAgentsFallbackModelConfigurationVoice;
|
|
560
|
-
/**
|
|
561
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
562
|
-
*/
|
|
563
|
-
format: ListAgentsFallbackModelConfigurationFormat;
|
|
564
|
-
};
|
|
565
|
-
|
|
566
|
-
export const ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType =
|
|
567
|
-
{
|
|
568
|
-
JsonSchema: "json_schema",
|
|
569
|
-
} as const;
|
|
570
|
-
export type ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType =
|
|
571
|
-
ClosedEnum<
|
|
572
|
-
typeof ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType
|
|
573
|
-
>;
|
|
574
|
-
|
|
575
|
-
export type ListAgentsResponseFormatAgentsResponseJsonSchema = {
|
|
576
|
-
/**
|
|
577
|
-
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
578
|
-
*/
|
|
579
|
-
description?: string | undefined;
|
|
580
|
-
/**
|
|
581
|
-
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
582
|
-
*/
|
|
583
|
-
name: string;
|
|
584
|
-
/**
|
|
585
|
-
* The schema for the response format, described as a JSON Schema object.
|
|
586
|
-
*/
|
|
587
|
-
schema?: any | undefined;
|
|
588
|
-
/**
|
|
589
|
-
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
590
|
-
*/
|
|
591
|
-
strict?: boolean | undefined;
|
|
592
|
-
};
|
|
593
|
-
|
|
594
|
-
/**
|
|
595
|
-
* @remarks
|
|
596
|
-
*
|
|
597
|
-
* JSON Schema response format. Used to generate structured JSON responses
|
|
598
|
-
*/
|
|
599
|
-
export type ListAgentsResponseFormatAgentsResponse200JSONSchema = {
|
|
600
|
-
type:
|
|
601
|
-
ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType;
|
|
602
|
-
jsonSchema: ListAgentsResponseFormatAgentsResponseJsonSchema;
|
|
603
|
-
};
|
|
604
|
-
|
|
605
|
-
export const ListAgentsResponseFormatAgentsResponse200ApplicationJSONType = {
|
|
606
|
-
JsonObject: "json_object",
|
|
607
|
-
} as const;
|
|
608
|
-
export type ListAgentsResponseFormatAgentsResponse200ApplicationJSONType =
|
|
609
|
-
ClosedEnum<
|
|
610
|
-
typeof ListAgentsResponseFormatAgentsResponse200ApplicationJSONType
|
|
611
|
-
>;
|
|
612
|
-
|
|
613
|
-
/**
|
|
614
|
-
* @remarks
|
|
615
|
-
*
|
|
616
|
-
* JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
|
|
617
|
-
*/
|
|
618
|
-
export type ListAgentsResponseFormatAgentsJSONObject = {
|
|
619
|
-
type: ListAgentsResponseFormatAgentsResponse200ApplicationJSONType;
|
|
620
|
-
};
|
|
621
|
-
|
|
622
|
-
export const ListAgentsResponseFormatAgentsResponse200Type = {
|
|
623
|
-
Text: "text",
|
|
624
|
-
} as const;
|
|
625
|
-
export type ListAgentsResponseFormatAgentsResponse200Type = ClosedEnum<
|
|
626
|
-
typeof ListAgentsResponseFormatAgentsResponse200Type
|
|
627
|
-
>;
|
|
628
|
-
|
|
629
|
-
/**
|
|
630
|
-
* @remarks
|
|
631
|
-
*
|
|
632
|
-
* Default response format. Used to generate text responses
|
|
633
|
-
*/
|
|
634
|
-
export type ListAgentsResponseFormatAgentsText = {
|
|
635
|
-
type: ListAgentsResponseFormatAgentsResponse200Type;
|
|
636
|
-
};
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* An object specifying the format that the model must output
|
|
640
|
-
*/
|
|
641
|
-
export type ListAgentsFallbackModelConfigurationResponseFormat =
|
|
642
|
-
| ListAgentsResponseFormatAgentsResponse200JSONSchema
|
|
643
|
-
| ListAgentsResponseFormatAgentsText
|
|
644
|
-
| ListAgentsResponseFormatAgentsJSONObject;
|
|
645
|
-
|
|
646
|
-
/**
|
|
647
|
-
* Up to 4 sequences where the API will stop generating further tokens.
|
|
648
|
-
*/
|
|
649
|
-
export type ListAgentsFallbackModelConfigurationStop = string | Array<string>;
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
653
|
-
*/
|
|
654
|
-
export type ListAgentsFallbackModelConfigurationStreamOptions = {
|
|
655
|
-
/**
|
|
656
|
-
* 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.
|
|
657
|
-
*/
|
|
658
|
-
includeUsage?: boolean | undefined;
|
|
659
|
-
};
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* Enables or disables the thinking mode capability
|
|
663
|
-
*/
|
|
664
|
-
export const ListAgentsFallbackModelConfigurationType = {
|
|
665
|
-
Enabled: "enabled",
|
|
666
|
-
Disabled: "disabled",
|
|
667
|
-
} as const;
|
|
668
|
-
/**
|
|
669
|
-
* Enables or disables the thinking mode capability
|
|
670
|
-
*/
|
|
671
|
-
export type ListAgentsFallbackModelConfigurationType = ClosedEnum<
|
|
672
|
-
typeof ListAgentsFallbackModelConfigurationType
|
|
673
|
-
>;
|
|
674
|
-
|
|
675
|
-
/**
|
|
676
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
677
|
-
*/
|
|
678
|
-
export const ListAgentsFallbackModelConfigurationThinkingLevel = {
|
|
679
|
-
Low: "low",
|
|
680
|
-
High: "high",
|
|
681
|
-
} as const;
|
|
682
|
-
/**
|
|
683
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
684
|
-
*/
|
|
685
|
-
export type ListAgentsFallbackModelConfigurationThinkingLevel = ClosedEnum<
|
|
686
|
-
typeof ListAgentsFallbackModelConfigurationThinkingLevel
|
|
687
|
-
>;
|
|
688
|
-
|
|
689
|
-
export type ListAgentsFallbackModelConfigurationThinking = {
|
|
690
|
-
/**
|
|
691
|
-
* Enables or disables the thinking mode capability
|
|
692
|
-
*/
|
|
693
|
-
type: ListAgentsFallbackModelConfigurationType;
|
|
694
|
-
/**
|
|
695
|
-
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
696
|
-
*/
|
|
697
|
-
budgetTokens: number;
|
|
698
|
-
/**
|
|
699
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
700
|
-
*/
|
|
701
|
-
thinkingLevel?: ListAgentsFallbackModelConfigurationThinkingLevel | undefined;
|
|
702
|
-
};
|
|
703
|
-
|
|
704
|
-
/**
|
|
705
|
-
* The type of the tool. Currently, only function is supported.
|
|
706
|
-
*/
|
|
707
|
-
export const ListAgentsToolChoiceAgentsType = {
|
|
708
|
-
Function: "function",
|
|
709
|
-
} as const;
|
|
710
|
-
/**
|
|
711
|
-
* The type of the tool. Currently, only function is supported.
|
|
712
|
-
*/
|
|
713
|
-
export type ListAgentsToolChoiceAgentsType = ClosedEnum<
|
|
714
|
-
typeof ListAgentsToolChoiceAgentsType
|
|
715
|
-
>;
|
|
716
|
-
|
|
717
|
-
export type ListAgentsToolChoiceAgentsFunction = {
|
|
718
|
-
/**
|
|
719
|
-
* The name of the function to call.
|
|
720
|
-
*/
|
|
721
|
-
name?: string | undefined;
|
|
722
|
-
};
|
|
723
|
-
|
|
724
|
-
export type ListAgentsToolChoiceAgents2 = {
|
|
725
|
-
/**
|
|
726
|
-
* The type of the tool. Currently, only function is supported.
|
|
727
|
-
*/
|
|
728
|
-
type?: ListAgentsToolChoiceAgentsType | undefined;
|
|
729
|
-
function: ListAgentsToolChoiceAgentsFunction;
|
|
730
|
-
};
|
|
731
|
-
|
|
732
|
-
export const ListAgentsToolChoiceAgents1 = {
|
|
733
|
-
None: "none",
|
|
734
|
-
Auto: "auto",
|
|
735
|
-
Required: "required",
|
|
736
|
-
} as const;
|
|
737
|
-
export type ListAgentsToolChoiceAgents1 = ClosedEnum<
|
|
738
|
-
typeof ListAgentsToolChoiceAgents1
|
|
739
|
-
>;
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* Controls which (if any) tool is called by the model.
|
|
743
|
-
*/
|
|
744
|
-
export type ListAgentsFallbackModelConfigurationToolChoice =
|
|
745
|
-
| ListAgentsToolChoiceAgents2
|
|
746
|
-
| ListAgentsToolChoiceAgents1;
|
|
747
|
-
|
|
748
|
-
export const ListAgentsFallbackModelConfigurationModalities = {
|
|
749
|
-
Text: "text",
|
|
750
|
-
Audio: "audio",
|
|
751
|
-
} as const;
|
|
752
|
-
export type ListAgentsFallbackModelConfigurationModalities = ClosedEnum<
|
|
753
|
-
typeof ListAgentsFallbackModelConfigurationModalities
|
|
754
|
-
>;
|
|
755
|
-
|
|
756
|
-
/**
|
|
757
|
-
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
758
|
-
*/
|
|
759
|
-
export type ListAgentsFallbackModelConfigurationParameters = {
|
|
760
|
-
/**
|
|
761
|
-
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
762
|
-
*/
|
|
763
|
-
audio?: ListAgentsFallbackModelConfigurationAudio | null | undefined;
|
|
764
|
-
/**
|
|
765
|
-
* 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.
|
|
766
|
-
*/
|
|
767
|
-
frequencyPenalty?: number | null | undefined;
|
|
768
|
-
/**
|
|
769
|
-
* `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
|
|
770
|
-
*
|
|
771
|
-
* @remarks
|
|
772
|
-
*
|
|
773
|
-
* This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
|
|
774
|
-
*/
|
|
775
|
-
maxTokens?: number | null | undefined;
|
|
776
|
-
/**
|
|
777
|
-
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
778
|
-
*/
|
|
779
|
-
maxCompletionTokens?: number | null | undefined;
|
|
780
|
-
/**
|
|
781
|
-
* 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.
|
|
782
|
-
*/
|
|
783
|
-
logprobs?: boolean | null | undefined;
|
|
784
|
-
/**
|
|
785
|
-
* 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.
|
|
786
|
-
*/
|
|
787
|
-
topLogprobs?: number | null | undefined;
|
|
788
|
-
/**
|
|
789
|
-
* 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.
|
|
790
|
-
*/
|
|
791
|
-
n?: number | null | undefined;
|
|
792
|
-
/**
|
|
793
|
-
* 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.
|
|
794
|
-
*/
|
|
795
|
-
presencePenalty?: number | null | undefined;
|
|
796
|
-
/**
|
|
797
|
-
* An object specifying the format that the model must output
|
|
798
|
-
*/
|
|
799
|
-
responseFormat?:
|
|
800
|
-
| ListAgentsResponseFormatAgentsResponse200JSONSchema
|
|
801
|
-
| ListAgentsResponseFormatAgentsText
|
|
802
|
-
| ListAgentsResponseFormatAgentsJSONObject
|
|
803
|
-
| undefined;
|
|
804
|
-
/**
|
|
805
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
806
|
-
*/
|
|
807
|
-
reasoningEffort?: string | undefined;
|
|
808
|
-
/**
|
|
809
|
-
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
810
|
-
*/
|
|
811
|
-
verbosity?: string | undefined;
|
|
812
|
-
/**
|
|
813
|
-
* If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
|
|
814
|
-
*/
|
|
815
|
-
seed?: number | null | undefined;
|
|
816
|
-
/**
|
|
817
|
-
* Up to 4 sequences where the API will stop generating further tokens.
|
|
818
|
-
*/
|
|
819
|
-
stop?: string | Array<string> | null | undefined;
|
|
820
|
-
/**
|
|
821
|
-
* Options for streaming response. Only set this when you set stream: true.
|
|
822
|
-
*/
|
|
823
|
-
streamOptions?:
|
|
824
|
-
| ListAgentsFallbackModelConfigurationStreamOptions
|
|
825
|
-
| null
|
|
826
|
-
| undefined;
|
|
827
|
-
thinking?: ListAgentsFallbackModelConfigurationThinking | undefined;
|
|
828
|
-
/**
|
|
829
|
-
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
830
|
-
*/
|
|
831
|
-
temperature?: number | null | undefined;
|
|
832
|
-
/**
|
|
833
|
-
* An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
|
|
834
|
-
*/
|
|
835
|
-
topP?: number | null | undefined;
|
|
836
|
-
/**
|
|
837
|
-
* Limits the model to consider only the top k most likely tokens at each step.
|
|
838
|
-
*/
|
|
839
|
-
topK?: number | null | undefined;
|
|
840
|
-
/**
|
|
841
|
-
* Controls which (if any) tool is called by the model.
|
|
842
|
-
*/
|
|
843
|
-
toolChoice?:
|
|
844
|
-
| ListAgentsToolChoiceAgents2
|
|
845
|
-
| ListAgentsToolChoiceAgents1
|
|
846
|
-
| undefined;
|
|
847
|
-
/**
|
|
848
|
-
* Whether to enable parallel function calling during tool use.
|
|
849
|
-
*/
|
|
850
|
-
parallelToolCalls?: boolean | undefined;
|
|
851
|
-
/**
|
|
852
|
-
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
853
|
-
*/
|
|
854
|
-
modalities?:
|
|
855
|
-
| Array<ListAgentsFallbackModelConfigurationModalities>
|
|
856
|
-
| null
|
|
857
|
-
| undefined;
|
|
858
|
-
};
|
|
859
|
-
|
|
860
|
-
/**
|
|
861
|
-
* Fallback model configuration with optional parameters.
|
|
862
|
-
*/
|
|
863
|
-
export type ListAgentsFallbackModelConfiguration2 = {
|
|
864
|
-
/**
|
|
865
|
-
* A fallback model ID string. Must support tool calling.
|
|
866
|
-
*/
|
|
867
|
-
id: string;
|
|
868
|
-
/**
|
|
869
|
-
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
870
|
-
*/
|
|
871
|
-
parameters?: ListAgentsFallbackModelConfigurationParameters | undefined;
|
|
872
|
-
};
|
|
873
|
-
|
|
874
|
-
/**
|
|
875
|
-
* Fallback model for automatic failover when primary model request fails. Supports optional parameter overrides. Can be a simple model ID string or a configuration object with model-specific parameters. Fallbacks are tried in order.
|
|
876
|
-
*/
|
|
877
|
-
export type ListAgentsFallbackModelConfiguration =
|
|
878
|
-
| ListAgentsFallbackModelConfiguration2
|
|
879
|
-
| string;
|
|
880
|
-
|
|
881
|
-
export type ListAgentsModel = {
|
|
882
|
-
/**
|
|
883
|
-
* The database ID of the primary model
|
|
884
|
-
*/
|
|
885
|
-
id: string;
|
|
886
|
-
/**
|
|
887
|
-
* Optional integration ID for custom model configurations
|
|
888
|
-
*/
|
|
889
|
-
integrationId?: string | null | undefined;
|
|
890
|
-
/**
|
|
891
|
-
* Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
|
|
892
|
-
*/
|
|
893
|
-
parameters?: ListAgentsParameters | undefined;
|
|
894
|
-
/**
|
|
895
|
-
* Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
|
|
896
|
-
*/
|
|
897
|
-
retry?: ListAgentsRetry | undefined;
|
|
898
|
-
/**
|
|
899
|
-
* Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
|
|
900
|
-
*/
|
|
901
|
-
fallbackModels?:
|
|
902
|
-
| Array<ListAgentsFallbackModelConfiguration2 | string>
|
|
903
|
-
| null
|
|
904
|
-
| undefined;
|
|
905
|
-
};
|
|
906
|
-
|
|
907
|
-
export type ListAgentsTeamOfAgents = {
|
|
908
|
-
/**
|
|
909
|
-
* The unique key of the agent within the workspace
|
|
910
|
-
*/
|
|
911
|
-
key: string;
|
|
912
|
-
/**
|
|
913
|
-
* 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.
|
|
914
|
-
*/
|
|
915
|
-
role?: string | undefined;
|
|
916
|
-
};
|
|
917
|
-
|
|
918
|
-
export type ListAgentsMetrics = {
|
|
919
|
-
totalCost?: number | undefined;
|
|
920
|
-
};
|
|
921
|
-
|
|
922
|
-
export type ListAgentsKnowledgeBases = {
|
|
923
|
-
/**
|
|
924
|
-
* Unique identifier of the knowledge base to search
|
|
925
|
-
*/
|
|
926
|
-
knowledgeId: string;
|
|
927
|
-
};
|
|
928
|
-
|
|
929
|
-
export type ListAgentsData = {
|
|
930
|
-
id: string;
|
|
931
|
-
key: string;
|
|
932
|
-
displayName: string;
|
|
933
|
-
createdById?: string | null | undefined;
|
|
934
|
-
updatedById?: string | null | undefined;
|
|
935
|
-
created?: string | undefined;
|
|
936
|
-
updated?: string | undefined;
|
|
937
|
-
role: string;
|
|
938
|
-
description: string;
|
|
939
|
-
systemPrompt?: string | undefined;
|
|
940
|
-
instructions: string;
|
|
941
|
-
/**
|
|
942
|
-
* 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.
|
|
943
|
-
*/
|
|
944
|
-
status: ListAgentsStatus;
|
|
945
|
-
settings?: ListAgentsSettings | undefined;
|
|
946
|
-
model: ListAgentsModel;
|
|
947
|
-
versionHash?: string | undefined;
|
|
948
|
-
/**
|
|
949
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
950
|
-
*
|
|
951
|
-
* @remarks
|
|
952
|
-
*
|
|
953
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
954
|
-
*
|
|
955
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
956
|
-
*/
|
|
957
|
-
path: string;
|
|
958
|
-
/**
|
|
959
|
-
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
960
|
-
*/
|
|
961
|
-
memoryStores: Array<string>;
|
|
962
|
-
/**
|
|
963
|
-
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
964
|
-
*/
|
|
965
|
-
teamOfAgents: Array<ListAgentsTeamOfAgents>;
|
|
966
|
-
metrics?: ListAgentsMetrics | undefined;
|
|
967
|
-
/**
|
|
968
|
-
* Extracted variables from agent instructions
|
|
969
|
-
*/
|
|
970
|
-
variables?: { [k: string]: any } | undefined;
|
|
971
|
-
/**
|
|
972
|
-
* Agent knowledge bases reference
|
|
973
|
-
*/
|
|
974
|
-
knowledgeBases?: Array<ListAgentsKnowledgeBases> | undefined;
|
|
975
|
-
};
|
|
976
|
-
|
|
977
|
-
/**
|
|
978
|
-
* Successfully retrieved the list of agents. Returns a paginated response containing agent manifests with complete configurations, including primary and fallback models, tools, knowledge bases, and execution settings.
|
|
979
|
-
*/
|
|
980
|
-
export type ListAgentsResponseBody = {
|
|
981
|
-
object: ListAgentsObject;
|
|
982
|
-
data: Array<ListAgentsData>;
|
|
983
|
-
hasMore: boolean;
|
|
984
|
-
};
|
|
985
|
-
|
|
986
|
-
/** @internal */
|
|
987
|
-
export const ListAgentsRequest$inboundSchema: z.ZodType<
|
|
988
|
-
ListAgentsRequest,
|
|
989
|
-
z.ZodTypeDef,
|
|
990
|
-
unknown
|
|
991
|
-
> = z.object({
|
|
992
|
-
limit: z.number().optional(),
|
|
993
|
-
starting_after: z.string().optional(),
|
|
994
|
-
ending_before: z.string().optional(),
|
|
995
|
-
}).transform((v) => {
|
|
996
|
-
return remap$(v, {
|
|
997
|
-
"starting_after": "startingAfter",
|
|
998
|
-
"ending_before": "endingBefore",
|
|
999
|
-
});
|
|
1000
|
-
});
|
|
1001
|
-
/** @internal */
|
|
1002
|
-
export type ListAgentsRequest$Outbound = {
|
|
1003
|
-
limit?: number | undefined;
|
|
1004
|
-
starting_after?: string | undefined;
|
|
1005
|
-
ending_before?: string | undefined;
|
|
1006
|
-
};
|
|
1007
|
-
|
|
1008
|
-
/** @internal */
|
|
1009
|
-
export const ListAgentsRequest$outboundSchema: z.ZodType<
|
|
1010
|
-
ListAgentsRequest$Outbound,
|
|
1011
|
-
z.ZodTypeDef,
|
|
1012
|
-
ListAgentsRequest
|
|
1013
|
-
> = z.object({
|
|
1014
|
-
limit: z.number().optional(),
|
|
1015
|
-
startingAfter: z.string().optional(),
|
|
1016
|
-
endingBefore: z.string().optional(),
|
|
1017
|
-
}).transform((v) => {
|
|
1018
|
-
return remap$(v, {
|
|
1019
|
-
startingAfter: "starting_after",
|
|
1020
|
-
endingBefore: "ending_before",
|
|
1021
|
-
});
|
|
1022
|
-
});
|
|
1023
|
-
|
|
1024
|
-
export function listAgentsRequestToJSON(
|
|
1025
|
-
listAgentsRequest: ListAgentsRequest,
|
|
1026
|
-
): string {
|
|
1027
|
-
return JSON.stringify(
|
|
1028
|
-
ListAgentsRequest$outboundSchema.parse(listAgentsRequest),
|
|
1029
|
-
);
|
|
1030
|
-
}
|
|
1031
|
-
export function listAgentsRequestFromJSON(
|
|
1032
|
-
jsonString: string,
|
|
1033
|
-
): SafeParseResult<ListAgentsRequest, SDKValidationError> {
|
|
1034
|
-
return safeParse(
|
|
1035
|
-
jsonString,
|
|
1036
|
-
(x) => ListAgentsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
1037
|
-
`Failed to parse 'ListAgentsRequest' from JSON`,
|
|
1038
|
-
);
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
/** @internal */
|
|
1042
|
-
export const ListAgentsObject$inboundSchema: z.ZodNativeEnum<
|
|
1043
|
-
typeof ListAgentsObject
|
|
1044
|
-
> = z.nativeEnum(ListAgentsObject);
|
|
1045
|
-
/** @internal */
|
|
1046
|
-
export const ListAgentsObject$outboundSchema: z.ZodNativeEnum<
|
|
1047
|
-
typeof ListAgentsObject
|
|
1048
|
-
> = ListAgentsObject$inboundSchema;
|
|
1049
|
-
|
|
1050
|
-
/** @internal */
|
|
1051
|
-
export const ListAgentsStatus$inboundSchema: z.ZodNativeEnum<
|
|
1052
|
-
typeof ListAgentsStatus
|
|
1053
|
-
> = z.nativeEnum(ListAgentsStatus);
|
|
1054
|
-
/** @internal */
|
|
1055
|
-
export const ListAgentsStatus$outboundSchema: z.ZodNativeEnum<
|
|
1056
|
-
typeof ListAgentsStatus
|
|
1057
|
-
> = ListAgentsStatus$inboundSchema;
|
|
1058
|
-
|
|
1059
|
-
/** @internal */
|
|
1060
|
-
export const ListAgentsToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
|
|
1061
|
-
typeof ListAgentsToolApprovalRequired
|
|
1062
|
-
> = z.nativeEnum(ListAgentsToolApprovalRequired);
|
|
1063
|
-
/** @internal */
|
|
1064
|
-
export const ListAgentsToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
|
|
1065
|
-
typeof ListAgentsToolApprovalRequired
|
|
1066
|
-
> = ListAgentsToolApprovalRequired$inboundSchema;
|
|
1067
|
-
|
|
1068
|
-
/** @internal */
|
|
1069
|
-
export const ListAgentsConditions$inboundSchema: z.ZodType<
|
|
1070
|
-
ListAgentsConditions,
|
|
1071
|
-
z.ZodTypeDef,
|
|
1072
|
-
unknown
|
|
1073
|
-
> = z.object({
|
|
1074
|
-
condition: z.string(),
|
|
1075
|
-
operator: z.string(),
|
|
1076
|
-
value: z.string(),
|
|
1077
|
-
});
|
|
1078
|
-
/** @internal */
|
|
1079
|
-
export type ListAgentsConditions$Outbound = {
|
|
1080
|
-
condition: string;
|
|
1081
|
-
operator: string;
|
|
1082
|
-
value: string;
|
|
1083
|
-
};
|
|
1084
|
-
|
|
1085
|
-
/** @internal */
|
|
1086
|
-
export const ListAgentsConditions$outboundSchema: z.ZodType<
|
|
1087
|
-
ListAgentsConditions$Outbound,
|
|
1088
|
-
z.ZodTypeDef,
|
|
1089
|
-
ListAgentsConditions
|
|
1090
|
-
> = z.object({
|
|
1091
|
-
condition: z.string(),
|
|
1092
|
-
operator: z.string(),
|
|
1093
|
-
value: z.string(),
|
|
1094
|
-
});
|
|
1095
|
-
|
|
1096
|
-
export function listAgentsConditionsToJSON(
|
|
1097
|
-
listAgentsConditions: ListAgentsConditions,
|
|
1098
|
-
): string {
|
|
1099
|
-
return JSON.stringify(
|
|
1100
|
-
ListAgentsConditions$outboundSchema.parse(listAgentsConditions),
|
|
1101
|
-
);
|
|
1102
|
-
}
|
|
1103
|
-
export function listAgentsConditionsFromJSON(
|
|
1104
|
-
jsonString: string,
|
|
1105
|
-
): SafeParseResult<ListAgentsConditions, SDKValidationError> {
|
|
1106
|
-
return safeParse(
|
|
1107
|
-
jsonString,
|
|
1108
|
-
(x) => ListAgentsConditions$inboundSchema.parse(JSON.parse(x)),
|
|
1109
|
-
`Failed to parse 'ListAgentsConditions' from JSON`,
|
|
1110
|
-
);
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
/** @internal */
|
|
1114
|
-
export const ListAgentsTools$inboundSchema: z.ZodType<
|
|
1115
|
-
ListAgentsTools,
|
|
1116
|
-
z.ZodTypeDef,
|
|
1117
|
-
unknown
|
|
1118
|
-
> = z.object({
|
|
1119
|
-
id: z.string(),
|
|
1120
|
-
key: z.string().optional(),
|
|
1121
|
-
action_type: z.string(),
|
|
1122
|
-
display_name: z.string().optional(),
|
|
1123
|
-
description: z.string().optional(),
|
|
1124
|
-
requires_approval: z.boolean().default(false),
|
|
1125
|
-
tool_id: z.string().optional(),
|
|
1126
|
-
conditions: z.array(z.lazy(() => ListAgentsConditions$inboundSchema))
|
|
1127
|
-
.optional(),
|
|
1128
|
-
timeout: z.number().default(120),
|
|
1129
|
-
}).transform((v) => {
|
|
1130
|
-
return remap$(v, {
|
|
1131
|
-
"action_type": "actionType",
|
|
1132
|
-
"display_name": "displayName",
|
|
1133
|
-
"requires_approval": "requiresApproval",
|
|
1134
|
-
"tool_id": "toolId",
|
|
1135
|
-
});
|
|
1136
|
-
});
|
|
1137
|
-
/** @internal */
|
|
1138
|
-
export type ListAgentsTools$Outbound = {
|
|
1139
|
-
id: string;
|
|
1140
|
-
key?: string | undefined;
|
|
1141
|
-
action_type: string;
|
|
1142
|
-
display_name?: string | undefined;
|
|
1143
|
-
description?: string | undefined;
|
|
1144
|
-
requires_approval: boolean;
|
|
1145
|
-
tool_id?: string | undefined;
|
|
1146
|
-
conditions?: Array<ListAgentsConditions$Outbound> | undefined;
|
|
1147
|
-
timeout: number;
|
|
1148
|
-
};
|
|
1149
|
-
|
|
1150
|
-
/** @internal */
|
|
1151
|
-
export const ListAgentsTools$outboundSchema: z.ZodType<
|
|
1152
|
-
ListAgentsTools$Outbound,
|
|
1153
|
-
z.ZodTypeDef,
|
|
1154
|
-
ListAgentsTools
|
|
1155
|
-
> = z.object({
|
|
1156
|
-
id: z.string(),
|
|
1157
|
-
key: z.string().optional(),
|
|
1158
|
-
actionType: z.string(),
|
|
1159
|
-
displayName: z.string().optional(),
|
|
1160
|
-
description: z.string().optional(),
|
|
1161
|
-
requiresApproval: z.boolean().default(false),
|
|
1162
|
-
toolId: z.string().optional(),
|
|
1163
|
-
conditions: z.array(z.lazy(() => ListAgentsConditions$outboundSchema))
|
|
1164
|
-
.optional(),
|
|
1165
|
-
timeout: z.number().default(120),
|
|
1166
|
-
}).transform((v) => {
|
|
1167
|
-
return remap$(v, {
|
|
1168
|
-
actionType: "action_type",
|
|
1169
|
-
displayName: "display_name",
|
|
1170
|
-
requiresApproval: "requires_approval",
|
|
1171
|
-
toolId: "tool_id",
|
|
1172
|
-
});
|
|
1173
|
-
});
|
|
1174
|
-
|
|
1175
|
-
export function listAgentsToolsToJSON(
|
|
1176
|
-
listAgentsTools: ListAgentsTools,
|
|
1177
|
-
): string {
|
|
1178
|
-
return JSON.stringify(ListAgentsTools$outboundSchema.parse(listAgentsTools));
|
|
1179
|
-
}
|
|
1180
|
-
export function listAgentsToolsFromJSON(
|
|
1181
|
-
jsonString: string,
|
|
1182
|
-
): SafeParseResult<ListAgentsTools, SDKValidationError> {
|
|
1183
|
-
return safeParse(
|
|
1184
|
-
jsonString,
|
|
1185
|
-
(x) => ListAgentsTools$inboundSchema.parse(JSON.parse(x)),
|
|
1186
|
-
`Failed to parse 'ListAgentsTools' from JSON`,
|
|
1187
|
-
);
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
/** @internal */
|
|
1191
|
-
export const ListAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
1192
|
-
typeof ListAgentsExecuteOn
|
|
1193
|
-
> = z.nativeEnum(ListAgentsExecuteOn);
|
|
1194
|
-
/** @internal */
|
|
1195
|
-
export const ListAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<
|
|
1196
|
-
typeof ListAgentsExecuteOn
|
|
1197
|
-
> = ListAgentsExecuteOn$inboundSchema;
|
|
1198
|
-
|
|
1199
|
-
/** @internal */
|
|
1200
|
-
export const ListAgentsEvaluators$inboundSchema: z.ZodType<
|
|
1201
|
-
ListAgentsEvaluators,
|
|
1202
|
-
z.ZodTypeDef,
|
|
1203
|
-
unknown
|
|
1204
|
-
> = z.object({
|
|
1205
|
-
id: z.string(),
|
|
1206
|
-
sample_rate: z.number().default(50),
|
|
1207
|
-
execute_on: ListAgentsExecuteOn$inboundSchema,
|
|
1208
|
-
}).transform((v) => {
|
|
1209
|
-
return remap$(v, {
|
|
1210
|
-
"sample_rate": "sampleRate",
|
|
1211
|
-
"execute_on": "executeOn",
|
|
1212
|
-
});
|
|
1213
|
-
});
|
|
1214
|
-
/** @internal */
|
|
1215
|
-
export type ListAgentsEvaluators$Outbound = {
|
|
1216
|
-
id: string;
|
|
1217
|
-
sample_rate: number;
|
|
1218
|
-
execute_on: string;
|
|
1219
|
-
};
|
|
1220
|
-
|
|
1221
|
-
/** @internal */
|
|
1222
|
-
export const ListAgentsEvaluators$outboundSchema: z.ZodType<
|
|
1223
|
-
ListAgentsEvaluators$Outbound,
|
|
1224
|
-
z.ZodTypeDef,
|
|
1225
|
-
ListAgentsEvaluators
|
|
1226
|
-
> = z.object({
|
|
1227
|
-
id: z.string(),
|
|
1228
|
-
sampleRate: z.number().default(50),
|
|
1229
|
-
executeOn: ListAgentsExecuteOn$outboundSchema,
|
|
1230
|
-
}).transform((v) => {
|
|
1231
|
-
return remap$(v, {
|
|
1232
|
-
sampleRate: "sample_rate",
|
|
1233
|
-
executeOn: "execute_on",
|
|
1234
|
-
});
|
|
1235
|
-
});
|
|
1236
|
-
|
|
1237
|
-
export function listAgentsEvaluatorsToJSON(
|
|
1238
|
-
listAgentsEvaluators: ListAgentsEvaluators,
|
|
1239
|
-
): string {
|
|
1240
|
-
return JSON.stringify(
|
|
1241
|
-
ListAgentsEvaluators$outboundSchema.parse(listAgentsEvaluators),
|
|
1242
|
-
);
|
|
1243
|
-
}
|
|
1244
|
-
export function listAgentsEvaluatorsFromJSON(
|
|
1245
|
-
jsonString: string,
|
|
1246
|
-
): SafeParseResult<ListAgentsEvaluators, SDKValidationError> {
|
|
1247
|
-
return safeParse(
|
|
1248
|
-
jsonString,
|
|
1249
|
-
(x) => ListAgentsEvaluators$inboundSchema.parse(JSON.parse(x)),
|
|
1250
|
-
`Failed to parse 'ListAgentsEvaluators' from JSON`,
|
|
1251
|
-
);
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
/** @internal */
|
|
1255
|
-
export const ListAgentsAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
1256
|
-
typeof ListAgentsAgentsExecuteOn
|
|
1257
|
-
> = z.nativeEnum(ListAgentsAgentsExecuteOn);
|
|
1258
|
-
/** @internal */
|
|
1259
|
-
export const ListAgentsAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<
|
|
1260
|
-
typeof ListAgentsAgentsExecuteOn
|
|
1261
|
-
> = ListAgentsAgentsExecuteOn$inboundSchema;
|
|
1262
|
-
|
|
1263
|
-
/** @internal */
|
|
1264
|
-
export const ListAgentsGuardrails$inboundSchema: z.ZodType<
|
|
1265
|
-
ListAgentsGuardrails,
|
|
1266
|
-
z.ZodTypeDef,
|
|
1267
|
-
unknown
|
|
1268
|
-
> = z.object({
|
|
1269
|
-
id: z.string(),
|
|
1270
|
-
sample_rate: z.number().default(50),
|
|
1271
|
-
execute_on: ListAgentsAgentsExecuteOn$inboundSchema,
|
|
1272
|
-
}).transform((v) => {
|
|
1273
|
-
return remap$(v, {
|
|
1274
|
-
"sample_rate": "sampleRate",
|
|
1275
|
-
"execute_on": "executeOn",
|
|
1276
|
-
});
|
|
1277
|
-
});
|
|
1278
|
-
/** @internal */
|
|
1279
|
-
export type ListAgentsGuardrails$Outbound = {
|
|
1280
|
-
id: string;
|
|
1281
|
-
sample_rate: number;
|
|
1282
|
-
execute_on: string;
|
|
1283
|
-
};
|
|
1284
|
-
|
|
1285
|
-
/** @internal */
|
|
1286
|
-
export const ListAgentsGuardrails$outboundSchema: z.ZodType<
|
|
1287
|
-
ListAgentsGuardrails$Outbound,
|
|
1288
|
-
z.ZodTypeDef,
|
|
1289
|
-
ListAgentsGuardrails
|
|
1290
|
-
> = z.object({
|
|
1291
|
-
id: z.string(),
|
|
1292
|
-
sampleRate: z.number().default(50),
|
|
1293
|
-
executeOn: ListAgentsAgentsExecuteOn$outboundSchema,
|
|
1294
|
-
}).transform((v) => {
|
|
1295
|
-
return remap$(v, {
|
|
1296
|
-
sampleRate: "sample_rate",
|
|
1297
|
-
executeOn: "execute_on",
|
|
1298
|
-
});
|
|
1299
|
-
});
|
|
1300
|
-
|
|
1301
|
-
export function listAgentsGuardrailsToJSON(
|
|
1302
|
-
listAgentsGuardrails: ListAgentsGuardrails,
|
|
1303
|
-
): string {
|
|
1304
|
-
return JSON.stringify(
|
|
1305
|
-
ListAgentsGuardrails$outboundSchema.parse(listAgentsGuardrails),
|
|
1306
|
-
);
|
|
1307
|
-
}
|
|
1308
|
-
export function listAgentsGuardrailsFromJSON(
|
|
1309
|
-
jsonString: string,
|
|
1310
|
-
): SafeParseResult<ListAgentsGuardrails, SDKValidationError> {
|
|
1311
|
-
return safeParse(
|
|
1312
|
-
jsonString,
|
|
1313
|
-
(x) => ListAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
1314
|
-
`Failed to parse 'ListAgentsGuardrails' from JSON`,
|
|
1315
|
-
);
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
/** @internal */
|
|
1319
|
-
export const ListAgentsSettings$inboundSchema: z.ZodType<
|
|
1320
|
-
ListAgentsSettings,
|
|
1321
|
-
z.ZodTypeDef,
|
|
1322
|
-
unknown
|
|
1323
|
-
> = z.object({
|
|
1324
|
-
max_iterations: z.number().int().default(100),
|
|
1325
|
-
max_execution_time: z.number().int().default(300),
|
|
1326
|
-
tool_approval_required: ListAgentsToolApprovalRequired$inboundSchema.default(
|
|
1327
|
-
"respect_tool",
|
|
1328
|
-
),
|
|
1329
|
-
tools: z.array(z.lazy(() => ListAgentsTools$inboundSchema)).optional(),
|
|
1330
|
-
evaluators: z.array(z.lazy(() => ListAgentsEvaluators$inboundSchema))
|
|
1331
|
-
.optional(),
|
|
1332
|
-
guardrails: z.array(z.lazy(() => ListAgentsGuardrails$inboundSchema))
|
|
1333
|
-
.optional(),
|
|
1334
|
-
}).transform((v) => {
|
|
1335
|
-
return remap$(v, {
|
|
1336
|
-
"max_iterations": "maxIterations",
|
|
1337
|
-
"max_execution_time": "maxExecutionTime",
|
|
1338
|
-
"tool_approval_required": "toolApprovalRequired",
|
|
1339
|
-
});
|
|
1340
|
-
});
|
|
1341
|
-
/** @internal */
|
|
1342
|
-
export type ListAgentsSettings$Outbound = {
|
|
1343
|
-
max_iterations: number;
|
|
1344
|
-
max_execution_time: number;
|
|
1345
|
-
tool_approval_required: string;
|
|
1346
|
-
tools?: Array<ListAgentsTools$Outbound> | undefined;
|
|
1347
|
-
evaluators?: Array<ListAgentsEvaluators$Outbound> | undefined;
|
|
1348
|
-
guardrails?: Array<ListAgentsGuardrails$Outbound> | undefined;
|
|
1349
|
-
};
|
|
1350
|
-
|
|
1351
|
-
/** @internal */
|
|
1352
|
-
export const ListAgentsSettings$outboundSchema: z.ZodType<
|
|
1353
|
-
ListAgentsSettings$Outbound,
|
|
1354
|
-
z.ZodTypeDef,
|
|
1355
|
-
ListAgentsSettings
|
|
1356
|
-
> = z.object({
|
|
1357
|
-
maxIterations: z.number().int().default(100),
|
|
1358
|
-
maxExecutionTime: z.number().int().default(300),
|
|
1359
|
-
toolApprovalRequired: ListAgentsToolApprovalRequired$outboundSchema.default(
|
|
1360
|
-
"respect_tool",
|
|
1361
|
-
),
|
|
1362
|
-
tools: z.array(z.lazy(() => ListAgentsTools$outboundSchema)).optional(),
|
|
1363
|
-
evaluators: z.array(z.lazy(() => ListAgentsEvaluators$outboundSchema))
|
|
1364
|
-
.optional(),
|
|
1365
|
-
guardrails: z.array(z.lazy(() => ListAgentsGuardrails$outboundSchema))
|
|
1366
|
-
.optional(),
|
|
1367
|
-
}).transform((v) => {
|
|
1368
|
-
return remap$(v, {
|
|
1369
|
-
maxIterations: "max_iterations",
|
|
1370
|
-
maxExecutionTime: "max_execution_time",
|
|
1371
|
-
toolApprovalRequired: "tool_approval_required",
|
|
1372
|
-
});
|
|
1373
|
-
});
|
|
1374
|
-
|
|
1375
|
-
export function listAgentsSettingsToJSON(
|
|
1376
|
-
listAgentsSettings: ListAgentsSettings,
|
|
1377
|
-
): string {
|
|
1378
|
-
return JSON.stringify(
|
|
1379
|
-
ListAgentsSettings$outboundSchema.parse(listAgentsSettings),
|
|
1380
|
-
);
|
|
1381
|
-
}
|
|
1382
|
-
export function listAgentsSettingsFromJSON(
|
|
1383
|
-
jsonString: string,
|
|
1384
|
-
): SafeParseResult<ListAgentsSettings, SDKValidationError> {
|
|
1385
|
-
return safeParse(
|
|
1386
|
-
jsonString,
|
|
1387
|
-
(x) => ListAgentsSettings$inboundSchema.parse(JSON.parse(x)),
|
|
1388
|
-
`Failed to parse 'ListAgentsSettings' from JSON`,
|
|
1389
|
-
);
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
|
-
/** @internal */
|
|
1393
|
-
export const ListAgentsVoice$inboundSchema: z.ZodNativeEnum<
|
|
1394
|
-
typeof ListAgentsVoice
|
|
1395
|
-
> = z.nativeEnum(ListAgentsVoice);
|
|
1396
|
-
/** @internal */
|
|
1397
|
-
export const ListAgentsVoice$outboundSchema: z.ZodNativeEnum<
|
|
1398
|
-
typeof ListAgentsVoice
|
|
1399
|
-
> = ListAgentsVoice$inboundSchema;
|
|
1400
|
-
|
|
1401
|
-
/** @internal */
|
|
1402
|
-
export const ListAgentsFormat$inboundSchema: z.ZodNativeEnum<
|
|
1403
|
-
typeof ListAgentsFormat
|
|
1404
|
-
> = z.nativeEnum(ListAgentsFormat);
|
|
1405
|
-
/** @internal */
|
|
1406
|
-
export const ListAgentsFormat$outboundSchema: z.ZodNativeEnum<
|
|
1407
|
-
typeof ListAgentsFormat
|
|
1408
|
-
> = ListAgentsFormat$inboundSchema;
|
|
1409
|
-
|
|
1410
|
-
/** @internal */
|
|
1411
|
-
export const ListAgentsAudio$inboundSchema: z.ZodType<
|
|
1412
|
-
ListAgentsAudio,
|
|
1413
|
-
z.ZodTypeDef,
|
|
1414
|
-
unknown
|
|
1415
|
-
> = z.object({
|
|
1416
|
-
voice: ListAgentsVoice$inboundSchema,
|
|
1417
|
-
format: ListAgentsFormat$inboundSchema,
|
|
1418
|
-
});
|
|
1419
|
-
/** @internal */
|
|
1420
|
-
export type ListAgentsAudio$Outbound = {
|
|
1421
|
-
voice: string;
|
|
1422
|
-
format: string;
|
|
1423
|
-
};
|
|
1424
|
-
|
|
1425
|
-
/** @internal */
|
|
1426
|
-
export const ListAgentsAudio$outboundSchema: z.ZodType<
|
|
1427
|
-
ListAgentsAudio$Outbound,
|
|
1428
|
-
z.ZodTypeDef,
|
|
1429
|
-
ListAgentsAudio
|
|
1430
|
-
> = z.object({
|
|
1431
|
-
voice: ListAgentsVoice$outboundSchema,
|
|
1432
|
-
format: ListAgentsFormat$outboundSchema,
|
|
1433
|
-
});
|
|
1434
|
-
|
|
1435
|
-
export function listAgentsAudioToJSON(
|
|
1436
|
-
listAgentsAudio: ListAgentsAudio,
|
|
1437
|
-
): string {
|
|
1438
|
-
return JSON.stringify(ListAgentsAudio$outboundSchema.parse(listAgentsAudio));
|
|
1439
|
-
}
|
|
1440
|
-
export function listAgentsAudioFromJSON(
|
|
1441
|
-
jsonString: string,
|
|
1442
|
-
): SafeParseResult<ListAgentsAudio, SDKValidationError> {
|
|
1443
|
-
return safeParse(
|
|
1444
|
-
jsonString,
|
|
1445
|
-
(x) => ListAgentsAudio$inboundSchema.parse(JSON.parse(x)),
|
|
1446
|
-
`Failed to parse 'ListAgentsAudio' from JSON`,
|
|
1447
|
-
);
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
/** @internal */
|
|
1451
|
-
export const ListAgentsResponseFormatAgentsResponseType$inboundSchema:
|
|
1452
|
-
z.ZodNativeEnum<typeof ListAgentsResponseFormatAgentsResponseType> = z
|
|
1453
|
-
.nativeEnum(ListAgentsResponseFormatAgentsResponseType);
|
|
1454
|
-
/** @internal */
|
|
1455
|
-
export const ListAgentsResponseFormatAgentsResponseType$outboundSchema:
|
|
1456
|
-
z.ZodNativeEnum<typeof ListAgentsResponseFormatAgentsResponseType> =
|
|
1457
|
-
ListAgentsResponseFormatAgentsResponseType$inboundSchema;
|
|
1458
|
-
|
|
1459
|
-
/** @internal */
|
|
1460
|
-
export const ListAgentsResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
1461
|
-
ListAgentsResponseFormatJsonSchema,
|
|
1462
|
-
z.ZodTypeDef,
|
|
1463
|
-
unknown
|
|
1464
|
-
> = z.object({
|
|
1465
|
-
description: z.string().optional(),
|
|
1466
|
-
name: z.string(),
|
|
1467
|
-
schema: z.any().optional(),
|
|
1468
|
-
strict: z.boolean().default(false),
|
|
1469
|
-
});
|
|
1470
|
-
/** @internal */
|
|
1471
|
-
export type ListAgentsResponseFormatJsonSchema$Outbound = {
|
|
1472
|
-
description?: string | undefined;
|
|
1473
|
-
name: string;
|
|
1474
|
-
schema?: any | undefined;
|
|
1475
|
-
strict: boolean;
|
|
1476
|
-
};
|
|
1477
|
-
|
|
1478
|
-
/** @internal */
|
|
1479
|
-
export const ListAgentsResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
1480
|
-
ListAgentsResponseFormatJsonSchema$Outbound,
|
|
1481
|
-
z.ZodTypeDef,
|
|
1482
|
-
ListAgentsResponseFormatJsonSchema
|
|
1483
|
-
> = z.object({
|
|
1484
|
-
description: z.string().optional(),
|
|
1485
|
-
name: z.string(),
|
|
1486
|
-
schema: z.any().optional(),
|
|
1487
|
-
strict: z.boolean().default(false),
|
|
1488
|
-
});
|
|
1489
|
-
|
|
1490
|
-
export function listAgentsResponseFormatJsonSchemaToJSON(
|
|
1491
|
-
listAgentsResponseFormatJsonSchema: ListAgentsResponseFormatJsonSchema,
|
|
1492
|
-
): string {
|
|
1493
|
-
return JSON.stringify(
|
|
1494
|
-
ListAgentsResponseFormatJsonSchema$outboundSchema.parse(
|
|
1495
|
-
listAgentsResponseFormatJsonSchema,
|
|
1496
|
-
),
|
|
1497
|
-
);
|
|
1498
|
-
}
|
|
1499
|
-
export function listAgentsResponseFormatJsonSchemaFromJSON(
|
|
1500
|
-
jsonString: string,
|
|
1501
|
-
): SafeParseResult<ListAgentsResponseFormatJsonSchema, SDKValidationError> {
|
|
1502
|
-
return safeParse(
|
|
1503
|
-
jsonString,
|
|
1504
|
-
(x) =>
|
|
1505
|
-
ListAgentsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1506
|
-
`Failed to parse 'ListAgentsResponseFormatJsonSchema' from JSON`,
|
|
1507
|
-
);
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
/** @internal */
|
|
1511
|
-
export const ListAgentsResponseFormatAgentsJSONSchema$inboundSchema: z.ZodType<
|
|
1512
|
-
ListAgentsResponseFormatAgentsJSONSchema,
|
|
1513
|
-
z.ZodTypeDef,
|
|
1514
|
-
unknown
|
|
1515
|
-
> = z.object({
|
|
1516
|
-
type: ListAgentsResponseFormatAgentsResponseType$inboundSchema,
|
|
1517
|
-
json_schema: z.lazy(() => ListAgentsResponseFormatJsonSchema$inboundSchema),
|
|
1518
|
-
}).transform((v) => {
|
|
1519
|
-
return remap$(v, {
|
|
1520
|
-
"json_schema": "jsonSchema",
|
|
1521
|
-
});
|
|
1522
|
-
});
|
|
1523
|
-
/** @internal */
|
|
1524
|
-
export type ListAgentsResponseFormatAgentsJSONSchema$Outbound = {
|
|
1525
|
-
type: string;
|
|
1526
|
-
json_schema: ListAgentsResponseFormatJsonSchema$Outbound;
|
|
1527
|
-
};
|
|
1528
|
-
|
|
1529
|
-
/** @internal */
|
|
1530
|
-
export const ListAgentsResponseFormatAgentsJSONSchema$outboundSchema: z.ZodType<
|
|
1531
|
-
ListAgentsResponseFormatAgentsJSONSchema$Outbound,
|
|
1532
|
-
z.ZodTypeDef,
|
|
1533
|
-
ListAgentsResponseFormatAgentsJSONSchema
|
|
1534
|
-
> = z.object({
|
|
1535
|
-
type: ListAgentsResponseFormatAgentsResponseType$outboundSchema,
|
|
1536
|
-
jsonSchema: z.lazy(() => ListAgentsResponseFormatJsonSchema$outboundSchema),
|
|
1537
|
-
}).transform((v) => {
|
|
1538
|
-
return remap$(v, {
|
|
1539
|
-
jsonSchema: "json_schema",
|
|
1540
|
-
});
|
|
1541
|
-
});
|
|
1542
|
-
|
|
1543
|
-
export function listAgentsResponseFormatAgentsJSONSchemaToJSON(
|
|
1544
|
-
listAgentsResponseFormatAgentsJSONSchema:
|
|
1545
|
-
ListAgentsResponseFormatAgentsJSONSchema,
|
|
1546
|
-
): string {
|
|
1547
|
-
return JSON.stringify(
|
|
1548
|
-
ListAgentsResponseFormatAgentsJSONSchema$outboundSchema.parse(
|
|
1549
|
-
listAgentsResponseFormatAgentsJSONSchema,
|
|
1550
|
-
),
|
|
1551
|
-
);
|
|
1552
|
-
}
|
|
1553
|
-
export function listAgentsResponseFormatAgentsJSONSchemaFromJSON(
|
|
1554
|
-
jsonString: string,
|
|
1555
|
-
): SafeParseResult<
|
|
1556
|
-
ListAgentsResponseFormatAgentsJSONSchema,
|
|
1557
|
-
SDKValidationError
|
|
1558
|
-
> {
|
|
1559
|
-
return safeParse(
|
|
1560
|
-
jsonString,
|
|
1561
|
-
(x) =>
|
|
1562
|
-
ListAgentsResponseFormatAgentsJSONSchema$inboundSchema.parse(
|
|
1563
|
-
JSON.parse(x),
|
|
1564
|
-
),
|
|
1565
|
-
`Failed to parse 'ListAgentsResponseFormatAgentsJSONSchema' from JSON`,
|
|
1566
|
-
);
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
/** @internal */
|
|
1570
|
-
export const ListAgentsResponseFormatAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
1571
|
-
typeof ListAgentsResponseFormatAgentsType
|
|
1572
|
-
> = z.nativeEnum(ListAgentsResponseFormatAgentsType);
|
|
1573
|
-
/** @internal */
|
|
1574
|
-
export const ListAgentsResponseFormatAgentsType$outboundSchema: z.ZodNativeEnum<
|
|
1575
|
-
typeof ListAgentsResponseFormatAgentsType
|
|
1576
|
-
> = ListAgentsResponseFormatAgentsType$inboundSchema;
|
|
1577
|
-
|
|
1578
|
-
/** @internal */
|
|
1579
|
-
export const ListAgentsResponseFormatJSONObject$inboundSchema: z.ZodType<
|
|
1580
|
-
ListAgentsResponseFormatJSONObject,
|
|
1581
|
-
z.ZodTypeDef,
|
|
1582
|
-
unknown
|
|
1583
|
-
> = z.object({
|
|
1584
|
-
type: ListAgentsResponseFormatAgentsType$inboundSchema,
|
|
1585
|
-
});
|
|
1586
|
-
/** @internal */
|
|
1587
|
-
export type ListAgentsResponseFormatJSONObject$Outbound = {
|
|
1588
|
-
type: string;
|
|
1589
|
-
};
|
|
1590
|
-
|
|
1591
|
-
/** @internal */
|
|
1592
|
-
export const ListAgentsResponseFormatJSONObject$outboundSchema: z.ZodType<
|
|
1593
|
-
ListAgentsResponseFormatJSONObject$Outbound,
|
|
1594
|
-
z.ZodTypeDef,
|
|
1595
|
-
ListAgentsResponseFormatJSONObject
|
|
1596
|
-
> = z.object({
|
|
1597
|
-
type: ListAgentsResponseFormatAgentsType$outboundSchema,
|
|
1598
|
-
});
|
|
1599
|
-
|
|
1600
|
-
export function listAgentsResponseFormatJSONObjectToJSON(
|
|
1601
|
-
listAgentsResponseFormatJSONObject: ListAgentsResponseFormatJSONObject,
|
|
1602
|
-
): string {
|
|
1603
|
-
return JSON.stringify(
|
|
1604
|
-
ListAgentsResponseFormatJSONObject$outboundSchema.parse(
|
|
1605
|
-
listAgentsResponseFormatJSONObject,
|
|
1606
|
-
),
|
|
1607
|
-
);
|
|
1608
|
-
}
|
|
1609
|
-
export function listAgentsResponseFormatJSONObjectFromJSON(
|
|
1610
|
-
jsonString: string,
|
|
1611
|
-
): SafeParseResult<ListAgentsResponseFormatJSONObject, SDKValidationError> {
|
|
1612
|
-
return safeParse(
|
|
1613
|
-
jsonString,
|
|
1614
|
-
(x) =>
|
|
1615
|
-
ListAgentsResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)),
|
|
1616
|
-
`Failed to parse 'ListAgentsResponseFormatJSONObject' from JSON`,
|
|
1617
|
-
);
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
/** @internal */
|
|
1621
|
-
export const ListAgentsResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
1622
|
-
typeof ListAgentsResponseFormatType
|
|
1623
|
-
> = z.nativeEnum(ListAgentsResponseFormatType);
|
|
1624
|
-
/** @internal */
|
|
1625
|
-
export const ListAgentsResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
1626
|
-
typeof ListAgentsResponseFormatType
|
|
1627
|
-
> = ListAgentsResponseFormatType$inboundSchema;
|
|
1628
|
-
|
|
1629
|
-
/** @internal */
|
|
1630
|
-
export const ListAgentsResponseFormatText$inboundSchema: z.ZodType<
|
|
1631
|
-
ListAgentsResponseFormatText,
|
|
1632
|
-
z.ZodTypeDef,
|
|
1633
|
-
unknown
|
|
1634
|
-
> = z.object({
|
|
1635
|
-
type: ListAgentsResponseFormatType$inboundSchema,
|
|
1636
|
-
});
|
|
1637
|
-
/** @internal */
|
|
1638
|
-
export type ListAgentsResponseFormatText$Outbound = {
|
|
1639
|
-
type: string;
|
|
1640
|
-
};
|
|
1641
|
-
|
|
1642
|
-
/** @internal */
|
|
1643
|
-
export const ListAgentsResponseFormatText$outboundSchema: z.ZodType<
|
|
1644
|
-
ListAgentsResponseFormatText$Outbound,
|
|
1645
|
-
z.ZodTypeDef,
|
|
1646
|
-
ListAgentsResponseFormatText
|
|
1647
|
-
> = z.object({
|
|
1648
|
-
type: ListAgentsResponseFormatType$outboundSchema,
|
|
1649
|
-
});
|
|
1650
|
-
|
|
1651
|
-
export function listAgentsResponseFormatTextToJSON(
|
|
1652
|
-
listAgentsResponseFormatText: ListAgentsResponseFormatText,
|
|
1653
|
-
): string {
|
|
1654
|
-
return JSON.stringify(
|
|
1655
|
-
ListAgentsResponseFormatText$outboundSchema.parse(
|
|
1656
|
-
listAgentsResponseFormatText,
|
|
1657
|
-
),
|
|
1658
|
-
);
|
|
1659
|
-
}
|
|
1660
|
-
export function listAgentsResponseFormatTextFromJSON(
|
|
1661
|
-
jsonString: string,
|
|
1662
|
-
): SafeParseResult<ListAgentsResponseFormatText, SDKValidationError> {
|
|
1663
|
-
return safeParse(
|
|
1664
|
-
jsonString,
|
|
1665
|
-
(x) => ListAgentsResponseFormatText$inboundSchema.parse(JSON.parse(x)),
|
|
1666
|
-
`Failed to parse 'ListAgentsResponseFormatText' from JSON`,
|
|
1667
|
-
);
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
/** @internal */
|
|
1671
|
-
export const ListAgentsResponseFormat$inboundSchema: z.ZodType<
|
|
1672
|
-
ListAgentsResponseFormat,
|
|
1673
|
-
z.ZodTypeDef,
|
|
1674
|
-
unknown
|
|
1675
|
-
> = z.union([
|
|
1676
|
-
z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
|
|
1677
|
-
z.lazy(() => ListAgentsResponseFormatText$inboundSchema),
|
|
1678
|
-
z.lazy(() => ListAgentsResponseFormatJSONObject$inboundSchema),
|
|
1679
|
-
]);
|
|
1680
|
-
/** @internal */
|
|
1681
|
-
export type ListAgentsResponseFormat$Outbound =
|
|
1682
|
-
| ListAgentsResponseFormatAgentsJSONSchema$Outbound
|
|
1683
|
-
| ListAgentsResponseFormatText$Outbound
|
|
1684
|
-
| ListAgentsResponseFormatJSONObject$Outbound;
|
|
1685
|
-
|
|
1686
|
-
/** @internal */
|
|
1687
|
-
export const ListAgentsResponseFormat$outboundSchema: z.ZodType<
|
|
1688
|
-
ListAgentsResponseFormat$Outbound,
|
|
1689
|
-
z.ZodTypeDef,
|
|
1690
|
-
ListAgentsResponseFormat
|
|
1691
|
-
> = z.union([
|
|
1692
|
-
z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$outboundSchema),
|
|
1693
|
-
z.lazy(() => ListAgentsResponseFormatText$outboundSchema),
|
|
1694
|
-
z.lazy(() => ListAgentsResponseFormatJSONObject$outboundSchema),
|
|
1695
|
-
]);
|
|
1696
|
-
|
|
1697
|
-
export function listAgentsResponseFormatToJSON(
|
|
1698
|
-
listAgentsResponseFormat: ListAgentsResponseFormat,
|
|
1699
|
-
): string {
|
|
1700
|
-
return JSON.stringify(
|
|
1701
|
-
ListAgentsResponseFormat$outboundSchema.parse(listAgentsResponseFormat),
|
|
1702
|
-
);
|
|
1703
|
-
}
|
|
1704
|
-
export function listAgentsResponseFormatFromJSON(
|
|
1705
|
-
jsonString: string,
|
|
1706
|
-
): SafeParseResult<ListAgentsResponseFormat, SDKValidationError> {
|
|
1707
|
-
return safeParse(
|
|
1708
|
-
jsonString,
|
|
1709
|
-
(x) => ListAgentsResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1710
|
-
`Failed to parse 'ListAgentsResponseFormat' from JSON`,
|
|
1711
|
-
);
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
/** @internal */
|
|
1715
|
-
export const ListAgentsStop$inboundSchema: z.ZodType<
|
|
1716
|
-
ListAgentsStop,
|
|
1717
|
-
z.ZodTypeDef,
|
|
1718
|
-
unknown
|
|
1719
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
1720
|
-
/** @internal */
|
|
1721
|
-
export type ListAgentsStop$Outbound = string | Array<string>;
|
|
1722
|
-
|
|
1723
|
-
/** @internal */
|
|
1724
|
-
export const ListAgentsStop$outboundSchema: z.ZodType<
|
|
1725
|
-
ListAgentsStop$Outbound,
|
|
1726
|
-
z.ZodTypeDef,
|
|
1727
|
-
ListAgentsStop
|
|
1728
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
1729
|
-
|
|
1730
|
-
export function listAgentsStopToJSON(listAgentsStop: ListAgentsStop): string {
|
|
1731
|
-
return JSON.stringify(ListAgentsStop$outboundSchema.parse(listAgentsStop));
|
|
1732
|
-
}
|
|
1733
|
-
export function listAgentsStopFromJSON(
|
|
1734
|
-
jsonString: string,
|
|
1735
|
-
): SafeParseResult<ListAgentsStop, SDKValidationError> {
|
|
1736
|
-
return safeParse(
|
|
1737
|
-
jsonString,
|
|
1738
|
-
(x) => ListAgentsStop$inboundSchema.parse(JSON.parse(x)),
|
|
1739
|
-
`Failed to parse 'ListAgentsStop' from JSON`,
|
|
1740
|
-
);
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
|
-
/** @internal */
|
|
1744
|
-
export const ListAgentsStreamOptions$inboundSchema: z.ZodType<
|
|
1745
|
-
ListAgentsStreamOptions,
|
|
1746
|
-
z.ZodTypeDef,
|
|
1747
|
-
unknown
|
|
1748
|
-
> = z.object({
|
|
1749
|
-
include_usage: z.boolean().optional(),
|
|
1750
|
-
}).transform((v) => {
|
|
1751
|
-
return remap$(v, {
|
|
1752
|
-
"include_usage": "includeUsage",
|
|
1753
|
-
});
|
|
1754
|
-
});
|
|
1755
|
-
/** @internal */
|
|
1756
|
-
export type ListAgentsStreamOptions$Outbound = {
|
|
1757
|
-
include_usage?: boolean | undefined;
|
|
1758
|
-
};
|
|
1759
|
-
|
|
1760
|
-
/** @internal */
|
|
1761
|
-
export const ListAgentsStreamOptions$outboundSchema: z.ZodType<
|
|
1762
|
-
ListAgentsStreamOptions$Outbound,
|
|
1763
|
-
z.ZodTypeDef,
|
|
1764
|
-
ListAgentsStreamOptions
|
|
1765
|
-
> = z.object({
|
|
1766
|
-
includeUsage: z.boolean().optional(),
|
|
1767
|
-
}).transform((v) => {
|
|
1768
|
-
return remap$(v, {
|
|
1769
|
-
includeUsage: "include_usage",
|
|
1770
|
-
});
|
|
1771
|
-
});
|
|
1772
|
-
|
|
1773
|
-
export function listAgentsStreamOptionsToJSON(
|
|
1774
|
-
listAgentsStreamOptions: ListAgentsStreamOptions,
|
|
1775
|
-
): string {
|
|
1776
|
-
return JSON.stringify(
|
|
1777
|
-
ListAgentsStreamOptions$outboundSchema.parse(listAgentsStreamOptions),
|
|
1778
|
-
);
|
|
1779
|
-
}
|
|
1780
|
-
export function listAgentsStreamOptionsFromJSON(
|
|
1781
|
-
jsonString: string,
|
|
1782
|
-
): SafeParseResult<ListAgentsStreamOptions, SDKValidationError> {
|
|
1783
|
-
return safeParse(
|
|
1784
|
-
jsonString,
|
|
1785
|
-
(x) => ListAgentsStreamOptions$inboundSchema.parse(JSON.parse(x)),
|
|
1786
|
-
`Failed to parse 'ListAgentsStreamOptions' from JSON`,
|
|
1787
|
-
);
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
/** @internal */
|
|
1791
|
-
export const ListAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
1792
|
-
typeof ListAgentsType
|
|
1793
|
-
> = z.nativeEnum(ListAgentsType);
|
|
1794
|
-
/** @internal */
|
|
1795
|
-
export const ListAgentsType$outboundSchema: z.ZodNativeEnum<
|
|
1796
|
-
typeof ListAgentsType
|
|
1797
|
-
> = ListAgentsType$inboundSchema;
|
|
1798
|
-
|
|
1799
|
-
/** @internal */
|
|
1800
|
-
export const ListAgentsThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
1801
|
-
typeof ListAgentsThinkingLevel
|
|
1802
|
-
> = z.nativeEnum(ListAgentsThinkingLevel);
|
|
1803
|
-
/** @internal */
|
|
1804
|
-
export const ListAgentsThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
1805
|
-
typeof ListAgentsThinkingLevel
|
|
1806
|
-
> = ListAgentsThinkingLevel$inboundSchema;
|
|
1807
|
-
|
|
1808
|
-
/** @internal */
|
|
1809
|
-
export const ListAgentsThinking$inboundSchema: z.ZodType<
|
|
1810
|
-
ListAgentsThinking,
|
|
1811
|
-
z.ZodTypeDef,
|
|
1812
|
-
unknown
|
|
1813
|
-
> = z.object({
|
|
1814
|
-
type: ListAgentsType$inboundSchema,
|
|
1815
|
-
budget_tokens: z.number(),
|
|
1816
|
-
thinking_level: ListAgentsThinkingLevel$inboundSchema.optional(),
|
|
1817
|
-
}).transform((v) => {
|
|
1818
|
-
return remap$(v, {
|
|
1819
|
-
"budget_tokens": "budgetTokens",
|
|
1820
|
-
"thinking_level": "thinkingLevel",
|
|
1821
|
-
});
|
|
1822
|
-
});
|
|
1823
|
-
/** @internal */
|
|
1824
|
-
export type ListAgentsThinking$Outbound = {
|
|
1825
|
-
type: string;
|
|
1826
|
-
budget_tokens: number;
|
|
1827
|
-
thinking_level?: string | undefined;
|
|
1828
|
-
};
|
|
1829
|
-
|
|
1830
|
-
/** @internal */
|
|
1831
|
-
export const ListAgentsThinking$outboundSchema: z.ZodType<
|
|
1832
|
-
ListAgentsThinking$Outbound,
|
|
1833
|
-
z.ZodTypeDef,
|
|
1834
|
-
ListAgentsThinking
|
|
1835
|
-
> = z.object({
|
|
1836
|
-
type: ListAgentsType$outboundSchema,
|
|
1837
|
-
budgetTokens: z.number(),
|
|
1838
|
-
thinkingLevel: ListAgentsThinkingLevel$outboundSchema.optional(),
|
|
1839
|
-
}).transform((v) => {
|
|
1840
|
-
return remap$(v, {
|
|
1841
|
-
budgetTokens: "budget_tokens",
|
|
1842
|
-
thinkingLevel: "thinking_level",
|
|
1843
|
-
});
|
|
1844
|
-
});
|
|
1845
|
-
|
|
1846
|
-
export function listAgentsThinkingToJSON(
|
|
1847
|
-
listAgentsThinking: ListAgentsThinking,
|
|
1848
|
-
): string {
|
|
1849
|
-
return JSON.stringify(
|
|
1850
|
-
ListAgentsThinking$outboundSchema.parse(listAgentsThinking),
|
|
1851
|
-
);
|
|
1852
|
-
}
|
|
1853
|
-
export function listAgentsThinkingFromJSON(
|
|
1854
|
-
jsonString: string,
|
|
1855
|
-
): SafeParseResult<ListAgentsThinking, SDKValidationError> {
|
|
1856
|
-
return safeParse(
|
|
1857
|
-
jsonString,
|
|
1858
|
-
(x) => ListAgentsThinking$inboundSchema.parse(JSON.parse(x)),
|
|
1859
|
-
`Failed to parse 'ListAgentsThinking' from JSON`,
|
|
1860
|
-
);
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
/** @internal */
|
|
1864
|
-
export const ListAgentsToolChoiceType$inboundSchema: z.ZodNativeEnum<
|
|
1865
|
-
typeof ListAgentsToolChoiceType
|
|
1866
|
-
> = z.nativeEnum(ListAgentsToolChoiceType);
|
|
1867
|
-
/** @internal */
|
|
1868
|
-
export const ListAgentsToolChoiceType$outboundSchema: z.ZodNativeEnum<
|
|
1869
|
-
typeof ListAgentsToolChoiceType
|
|
1870
|
-
> = ListAgentsToolChoiceType$inboundSchema;
|
|
1871
|
-
|
|
1872
|
-
/** @internal */
|
|
1873
|
-
export const ListAgentsToolChoiceFunction$inboundSchema: z.ZodType<
|
|
1874
|
-
ListAgentsToolChoiceFunction,
|
|
1875
|
-
z.ZodTypeDef,
|
|
1876
|
-
unknown
|
|
1877
|
-
> = z.object({
|
|
1878
|
-
name: z.string().optional(),
|
|
1879
|
-
});
|
|
1880
|
-
/** @internal */
|
|
1881
|
-
export type ListAgentsToolChoiceFunction$Outbound = {
|
|
1882
|
-
name?: string | undefined;
|
|
1883
|
-
};
|
|
1884
|
-
|
|
1885
|
-
/** @internal */
|
|
1886
|
-
export const ListAgentsToolChoiceFunction$outboundSchema: z.ZodType<
|
|
1887
|
-
ListAgentsToolChoiceFunction$Outbound,
|
|
1888
|
-
z.ZodTypeDef,
|
|
1889
|
-
ListAgentsToolChoiceFunction
|
|
1890
|
-
> = z.object({
|
|
1891
|
-
name: z.string().optional(),
|
|
1892
|
-
});
|
|
1893
|
-
|
|
1894
|
-
export function listAgentsToolChoiceFunctionToJSON(
|
|
1895
|
-
listAgentsToolChoiceFunction: ListAgentsToolChoiceFunction,
|
|
1896
|
-
): string {
|
|
1897
|
-
return JSON.stringify(
|
|
1898
|
-
ListAgentsToolChoiceFunction$outboundSchema.parse(
|
|
1899
|
-
listAgentsToolChoiceFunction,
|
|
1900
|
-
),
|
|
1901
|
-
);
|
|
1902
|
-
}
|
|
1903
|
-
export function listAgentsToolChoiceFunctionFromJSON(
|
|
1904
|
-
jsonString: string,
|
|
1905
|
-
): SafeParseResult<ListAgentsToolChoiceFunction, SDKValidationError> {
|
|
1906
|
-
return safeParse(
|
|
1907
|
-
jsonString,
|
|
1908
|
-
(x) => ListAgentsToolChoiceFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1909
|
-
`Failed to parse 'ListAgentsToolChoiceFunction' from JSON`,
|
|
1910
|
-
);
|
|
1911
|
-
}
|
|
1912
|
-
|
|
1913
|
-
/** @internal */
|
|
1914
|
-
export const ListAgentsToolChoice2$inboundSchema: z.ZodType<
|
|
1915
|
-
ListAgentsToolChoice2,
|
|
1916
|
-
z.ZodTypeDef,
|
|
1917
|
-
unknown
|
|
1918
|
-
> = z.object({
|
|
1919
|
-
type: ListAgentsToolChoiceType$inboundSchema.optional(),
|
|
1920
|
-
function: z.lazy(() => ListAgentsToolChoiceFunction$inboundSchema),
|
|
1921
|
-
});
|
|
1922
|
-
/** @internal */
|
|
1923
|
-
export type ListAgentsToolChoice2$Outbound = {
|
|
1924
|
-
type?: string | undefined;
|
|
1925
|
-
function: ListAgentsToolChoiceFunction$Outbound;
|
|
1926
|
-
};
|
|
1927
|
-
|
|
1928
|
-
/** @internal */
|
|
1929
|
-
export const ListAgentsToolChoice2$outboundSchema: z.ZodType<
|
|
1930
|
-
ListAgentsToolChoice2$Outbound,
|
|
1931
|
-
z.ZodTypeDef,
|
|
1932
|
-
ListAgentsToolChoice2
|
|
1933
|
-
> = z.object({
|
|
1934
|
-
type: ListAgentsToolChoiceType$outboundSchema.optional(),
|
|
1935
|
-
function: z.lazy(() => ListAgentsToolChoiceFunction$outboundSchema),
|
|
1936
|
-
});
|
|
1937
|
-
|
|
1938
|
-
export function listAgentsToolChoice2ToJSON(
|
|
1939
|
-
listAgentsToolChoice2: ListAgentsToolChoice2,
|
|
1940
|
-
): string {
|
|
1941
|
-
return JSON.stringify(
|
|
1942
|
-
ListAgentsToolChoice2$outboundSchema.parse(listAgentsToolChoice2),
|
|
1943
|
-
);
|
|
1944
|
-
}
|
|
1945
|
-
export function listAgentsToolChoice2FromJSON(
|
|
1946
|
-
jsonString: string,
|
|
1947
|
-
): SafeParseResult<ListAgentsToolChoice2, SDKValidationError> {
|
|
1948
|
-
return safeParse(
|
|
1949
|
-
jsonString,
|
|
1950
|
-
(x) => ListAgentsToolChoice2$inboundSchema.parse(JSON.parse(x)),
|
|
1951
|
-
`Failed to parse 'ListAgentsToolChoice2' from JSON`,
|
|
1952
|
-
);
|
|
1953
|
-
}
|
|
1954
|
-
|
|
1955
|
-
/** @internal */
|
|
1956
|
-
export const ListAgentsToolChoice1$inboundSchema: z.ZodNativeEnum<
|
|
1957
|
-
typeof ListAgentsToolChoice1
|
|
1958
|
-
> = z.nativeEnum(ListAgentsToolChoice1);
|
|
1959
|
-
/** @internal */
|
|
1960
|
-
export const ListAgentsToolChoice1$outboundSchema: z.ZodNativeEnum<
|
|
1961
|
-
typeof ListAgentsToolChoice1
|
|
1962
|
-
> = ListAgentsToolChoice1$inboundSchema;
|
|
1963
|
-
|
|
1964
|
-
/** @internal */
|
|
1965
|
-
export const ListAgentsToolChoice$inboundSchema: z.ZodType<
|
|
1966
|
-
ListAgentsToolChoice,
|
|
1967
|
-
z.ZodTypeDef,
|
|
1968
|
-
unknown
|
|
1969
|
-
> = z.union([
|
|
1970
|
-
z.lazy(() => ListAgentsToolChoice2$inboundSchema),
|
|
1971
|
-
ListAgentsToolChoice1$inboundSchema,
|
|
1972
|
-
]);
|
|
1973
|
-
/** @internal */
|
|
1974
|
-
export type ListAgentsToolChoice$Outbound =
|
|
1975
|
-
| ListAgentsToolChoice2$Outbound
|
|
1976
|
-
| string;
|
|
1977
|
-
|
|
1978
|
-
/** @internal */
|
|
1979
|
-
export const ListAgentsToolChoice$outboundSchema: z.ZodType<
|
|
1980
|
-
ListAgentsToolChoice$Outbound,
|
|
1981
|
-
z.ZodTypeDef,
|
|
1982
|
-
ListAgentsToolChoice
|
|
1983
|
-
> = z.union([
|
|
1984
|
-
z.lazy(() => ListAgentsToolChoice2$outboundSchema),
|
|
1985
|
-
ListAgentsToolChoice1$outboundSchema,
|
|
1986
|
-
]);
|
|
1987
|
-
|
|
1988
|
-
export function listAgentsToolChoiceToJSON(
|
|
1989
|
-
listAgentsToolChoice: ListAgentsToolChoice,
|
|
1990
|
-
): string {
|
|
1991
|
-
return JSON.stringify(
|
|
1992
|
-
ListAgentsToolChoice$outboundSchema.parse(listAgentsToolChoice),
|
|
1993
|
-
);
|
|
1994
|
-
}
|
|
1995
|
-
export function listAgentsToolChoiceFromJSON(
|
|
1996
|
-
jsonString: string,
|
|
1997
|
-
): SafeParseResult<ListAgentsToolChoice, SDKValidationError> {
|
|
1998
|
-
return safeParse(
|
|
1999
|
-
jsonString,
|
|
2000
|
-
(x) => ListAgentsToolChoice$inboundSchema.parse(JSON.parse(x)),
|
|
2001
|
-
`Failed to parse 'ListAgentsToolChoice' from JSON`,
|
|
2002
|
-
);
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
/** @internal */
|
|
2006
|
-
export const ListAgentsModalities$inboundSchema: z.ZodNativeEnum<
|
|
2007
|
-
typeof ListAgentsModalities
|
|
2008
|
-
> = z.nativeEnum(ListAgentsModalities);
|
|
2009
|
-
/** @internal */
|
|
2010
|
-
export const ListAgentsModalities$outboundSchema: z.ZodNativeEnum<
|
|
2011
|
-
typeof ListAgentsModalities
|
|
2012
|
-
> = ListAgentsModalities$inboundSchema;
|
|
2013
|
-
|
|
2014
|
-
/** @internal */
|
|
2015
|
-
export const ListAgentsParameters$inboundSchema: z.ZodType<
|
|
2016
|
-
ListAgentsParameters,
|
|
2017
|
-
z.ZodTypeDef,
|
|
2018
|
-
unknown
|
|
2019
|
-
> = z.object({
|
|
2020
|
-
audio: z.nullable(z.lazy(() => ListAgentsAudio$inboundSchema)).optional(),
|
|
2021
|
-
frequency_penalty: z.nullable(z.number()).optional(),
|
|
2022
|
-
max_tokens: z.nullable(z.number().int()).optional(),
|
|
2023
|
-
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
2024
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
2025
|
-
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
2026
|
-
n: z.nullable(z.number().int()).optional(),
|
|
2027
|
-
presence_penalty: z.nullable(z.number()).optional(),
|
|
2028
|
-
response_format: z.union([
|
|
2029
|
-
z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
|
|
2030
|
-
z.lazy(() => ListAgentsResponseFormatText$inboundSchema),
|
|
2031
|
-
z.lazy(() => ListAgentsResponseFormatJSONObject$inboundSchema),
|
|
2032
|
-
]).optional(),
|
|
2033
|
-
reasoning_effort: z.string().optional(),
|
|
2034
|
-
verbosity: z.string().optional(),
|
|
2035
|
-
seed: z.nullable(z.number()).optional(),
|
|
2036
|
-
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2037
|
-
stream_options: z.nullable(
|
|
2038
|
-
z.lazy(() => ListAgentsStreamOptions$inboundSchema),
|
|
2039
|
-
).optional(),
|
|
2040
|
-
thinking: z.lazy(() => ListAgentsThinking$inboundSchema).optional(),
|
|
2041
|
-
temperature: z.nullable(z.number()).optional(),
|
|
2042
|
-
top_p: z.nullable(z.number()).optional(),
|
|
2043
|
-
top_k: z.nullable(z.number()).optional(),
|
|
2044
|
-
tool_choice: z.union([
|
|
2045
|
-
z.lazy(() => ListAgentsToolChoice2$inboundSchema),
|
|
2046
|
-
ListAgentsToolChoice1$inboundSchema,
|
|
2047
|
-
]).optional(),
|
|
2048
|
-
parallel_tool_calls: z.boolean().optional(),
|
|
2049
|
-
modalities: z.nullable(z.array(ListAgentsModalities$inboundSchema))
|
|
2050
|
-
.optional(),
|
|
2051
|
-
}).transform((v) => {
|
|
2052
|
-
return remap$(v, {
|
|
2053
|
-
"frequency_penalty": "frequencyPenalty",
|
|
2054
|
-
"max_tokens": "maxTokens",
|
|
2055
|
-
"max_completion_tokens": "maxCompletionTokens",
|
|
2056
|
-
"top_logprobs": "topLogprobs",
|
|
2057
|
-
"presence_penalty": "presencePenalty",
|
|
2058
|
-
"response_format": "responseFormat",
|
|
2059
|
-
"reasoning_effort": "reasoningEffort",
|
|
2060
|
-
"stream_options": "streamOptions",
|
|
2061
|
-
"top_p": "topP",
|
|
2062
|
-
"top_k": "topK",
|
|
2063
|
-
"tool_choice": "toolChoice",
|
|
2064
|
-
"parallel_tool_calls": "parallelToolCalls",
|
|
2065
|
-
});
|
|
2066
|
-
});
|
|
2067
|
-
/** @internal */
|
|
2068
|
-
export type ListAgentsParameters$Outbound = {
|
|
2069
|
-
audio?: ListAgentsAudio$Outbound | null | undefined;
|
|
2070
|
-
frequency_penalty?: number | null | undefined;
|
|
2071
|
-
max_tokens?: number | null | undefined;
|
|
2072
|
-
max_completion_tokens?: number | null | undefined;
|
|
2073
|
-
logprobs?: boolean | null | undefined;
|
|
2074
|
-
top_logprobs?: number | null | undefined;
|
|
2075
|
-
n?: number | null | undefined;
|
|
2076
|
-
presence_penalty?: number | null | undefined;
|
|
2077
|
-
response_format?:
|
|
2078
|
-
| ListAgentsResponseFormatAgentsJSONSchema$Outbound
|
|
2079
|
-
| ListAgentsResponseFormatText$Outbound
|
|
2080
|
-
| ListAgentsResponseFormatJSONObject$Outbound
|
|
2081
|
-
| undefined;
|
|
2082
|
-
reasoning_effort?: string | undefined;
|
|
2083
|
-
verbosity?: string | undefined;
|
|
2084
|
-
seed?: number | null | undefined;
|
|
2085
|
-
stop?: string | Array<string> | null | undefined;
|
|
2086
|
-
stream_options?: ListAgentsStreamOptions$Outbound | null | undefined;
|
|
2087
|
-
thinking?: ListAgentsThinking$Outbound | undefined;
|
|
2088
|
-
temperature?: number | null | undefined;
|
|
2089
|
-
top_p?: number | null | undefined;
|
|
2090
|
-
top_k?: number | null | undefined;
|
|
2091
|
-
tool_choice?: ListAgentsToolChoice2$Outbound | string | undefined;
|
|
2092
|
-
parallel_tool_calls?: boolean | undefined;
|
|
2093
|
-
modalities?: Array<string> | null | undefined;
|
|
2094
|
-
};
|
|
2095
|
-
|
|
2096
|
-
/** @internal */
|
|
2097
|
-
export const ListAgentsParameters$outboundSchema: z.ZodType<
|
|
2098
|
-
ListAgentsParameters$Outbound,
|
|
2099
|
-
z.ZodTypeDef,
|
|
2100
|
-
ListAgentsParameters
|
|
2101
|
-
> = z.object({
|
|
2102
|
-
audio: z.nullable(z.lazy(() => ListAgentsAudio$outboundSchema)).optional(),
|
|
2103
|
-
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
2104
|
-
maxTokens: z.nullable(z.number().int()).optional(),
|
|
2105
|
-
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
2106
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
2107
|
-
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
2108
|
-
n: z.nullable(z.number().int()).optional(),
|
|
2109
|
-
presencePenalty: z.nullable(z.number()).optional(),
|
|
2110
|
-
responseFormat: z.union([
|
|
2111
|
-
z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$outboundSchema),
|
|
2112
|
-
z.lazy(() => ListAgentsResponseFormatText$outboundSchema),
|
|
2113
|
-
z.lazy(() => ListAgentsResponseFormatJSONObject$outboundSchema),
|
|
2114
|
-
]).optional(),
|
|
2115
|
-
reasoningEffort: z.string().optional(),
|
|
2116
|
-
verbosity: z.string().optional(),
|
|
2117
|
-
seed: z.nullable(z.number()).optional(),
|
|
2118
|
-
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2119
|
-
streamOptions: z.nullable(
|
|
2120
|
-
z.lazy(() => ListAgentsStreamOptions$outboundSchema),
|
|
2121
|
-
).optional(),
|
|
2122
|
-
thinking: z.lazy(() => ListAgentsThinking$outboundSchema).optional(),
|
|
2123
|
-
temperature: z.nullable(z.number()).optional(),
|
|
2124
|
-
topP: z.nullable(z.number()).optional(),
|
|
2125
|
-
topK: z.nullable(z.number()).optional(),
|
|
2126
|
-
toolChoice: z.union([
|
|
2127
|
-
z.lazy(() => ListAgentsToolChoice2$outboundSchema),
|
|
2128
|
-
ListAgentsToolChoice1$outboundSchema,
|
|
2129
|
-
]).optional(),
|
|
2130
|
-
parallelToolCalls: z.boolean().optional(),
|
|
2131
|
-
modalities: z.nullable(z.array(ListAgentsModalities$outboundSchema))
|
|
2132
|
-
.optional(),
|
|
2133
|
-
}).transform((v) => {
|
|
2134
|
-
return remap$(v, {
|
|
2135
|
-
frequencyPenalty: "frequency_penalty",
|
|
2136
|
-
maxTokens: "max_tokens",
|
|
2137
|
-
maxCompletionTokens: "max_completion_tokens",
|
|
2138
|
-
topLogprobs: "top_logprobs",
|
|
2139
|
-
presencePenalty: "presence_penalty",
|
|
2140
|
-
responseFormat: "response_format",
|
|
2141
|
-
reasoningEffort: "reasoning_effort",
|
|
2142
|
-
streamOptions: "stream_options",
|
|
2143
|
-
topP: "top_p",
|
|
2144
|
-
topK: "top_k",
|
|
2145
|
-
toolChoice: "tool_choice",
|
|
2146
|
-
parallelToolCalls: "parallel_tool_calls",
|
|
2147
|
-
});
|
|
2148
|
-
});
|
|
2149
|
-
|
|
2150
|
-
export function listAgentsParametersToJSON(
|
|
2151
|
-
listAgentsParameters: ListAgentsParameters,
|
|
2152
|
-
): string {
|
|
2153
|
-
return JSON.stringify(
|
|
2154
|
-
ListAgentsParameters$outboundSchema.parse(listAgentsParameters),
|
|
2155
|
-
);
|
|
2156
|
-
}
|
|
2157
|
-
export function listAgentsParametersFromJSON(
|
|
2158
|
-
jsonString: string,
|
|
2159
|
-
): SafeParseResult<ListAgentsParameters, SDKValidationError> {
|
|
2160
|
-
return safeParse(
|
|
2161
|
-
jsonString,
|
|
2162
|
-
(x) => ListAgentsParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2163
|
-
`Failed to parse 'ListAgentsParameters' from JSON`,
|
|
2164
|
-
);
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
/** @internal */
|
|
2168
|
-
export const ListAgentsRetry$inboundSchema: z.ZodType<
|
|
2169
|
-
ListAgentsRetry,
|
|
2170
|
-
z.ZodTypeDef,
|
|
2171
|
-
unknown
|
|
2172
|
-
> = z.object({
|
|
2173
|
-
count: z.number().default(3),
|
|
2174
|
-
on_codes: z.array(z.number()).optional(),
|
|
2175
|
-
}).transform((v) => {
|
|
2176
|
-
return remap$(v, {
|
|
2177
|
-
"on_codes": "onCodes",
|
|
2178
|
-
});
|
|
2179
|
-
});
|
|
2180
|
-
/** @internal */
|
|
2181
|
-
export type ListAgentsRetry$Outbound = {
|
|
2182
|
-
count: number;
|
|
2183
|
-
on_codes?: Array<number> | undefined;
|
|
2184
|
-
};
|
|
2185
|
-
|
|
2186
|
-
/** @internal */
|
|
2187
|
-
export const ListAgentsRetry$outboundSchema: z.ZodType<
|
|
2188
|
-
ListAgentsRetry$Outbound,
|
|
2189
|
-
z.ZodTypeDef,
|
|
2190
|
-
ListAgentsRetry
|
|
2191
|
-
> = z.object({
|
|
2192
|
-
count: z.number().default(3),
|
|
2193
|
-
onCodes: z.array(z.number()).optional(),
|
|
2194
|
-
}).transform((v) => {
|
|
2195
|
-
return remap$(v, {
|
|
2196
|
-
onCodes: "on_codes",
|
|
2197
|
-
});
|
|
2198
|
-
});
|
|
2199
|
-
|
|
2200
|
-
export function listAgentsRetryToJSON(
|
|
2201
|
-
listAgentsRetry: ListAgentsRetry,
|
|
2202
|
-
): string {
|
|
2203
|
-
return JSON.stringify(ListAgentsRetry$outboundSchema.parse(listAgentsRetry));
|
|
2204
|
-
}
|
|
2205
|
-
export function listAgentsRetryFromJSON(
|
|
2206
|
-
jsonString: string,
|
|
2207
|
-
): SafeParseResult<ListAgentsRetry, SDKValidationError> {
|
|
2208
|
-
return safeParse(
|
|
2209
|
-
jsonString,
|
|
2210
|
-
(x) => ListAgentsRetry$inboundSchema.parse(JSON.parse(x)),
|
|
2211
|
-
`Failed to parse 'ListAgentsRetry' from JSON`,
|
|
2212
|
-
);
|
|
2213
|
-
}
|
|
2214
|
-
|
|
2215
|
-
/** @internal */
|
|
2216
|
-
export const ListAgentsFallbackModelConfigurationVoice$inboundSchema:
|
|
2217
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationVoice> = z
|
|
2218
|
-
.nativeEnum(ListAgentsFallbackModelConfigurationVoice);
|
|
2219
|
-
/** @internal */
|
|
2220
|
-
export const ListAgentsFallbackModelConfigurationVoice$outboundSchema:
|
|
2221
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationVoice> =
|
|
2222
|
-
ListAgentsFallbackModelConfigurationVoice$inboundSchema;
|
|
2223
|
-
|
|
2224
|
-
/** @internal */
|
|
2225
|
-
export const ListAgentsFallbackModelConfigurationFormat$inboundSchema:
|
|
2226
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationFormat> = z
|
|
2227
|
-
.nativeEnum(ListAgentsFallbackModelConfigurationFormat);
|
|
2228
|
-
/** @internal */
|
|
2229
|
-
export const ListAgentsFallbackModelConfigurationFormat$outboundSchema:
|
|
2230
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationFormat> =
|
|
2231
|
-
ListAgentsFallbackModelConfigurationFormat$inboundSchema;
|
|
2232
|
-
|
|
2233
|
-
/** @internal */
|
|
2234
|
-
export const ListAgentsFallbackModelConfigurationAudio$inboundSchema: z.ZodType<
|
|
2235
|
-
ListAgentsFallbackModelConfigurationAudio,
|
|
2236
|
-
z.ZodTypeDef,
|
|
2237
|
-
unknown
|
|
2238
|
-
> = z.object({
|
|
2239
|
-
voice: ListAgentsFallbackModelConfigurationVoice$inboundSchema,
|
|
2240
|
-
format: ListAgentsFallbackModelConfigurationFormat$inboundSchema,
|
|
2241
|
-
});
|
|
2242
|
-
/** @internal */
|
|
2243
|
-
export type ListAgentsFallbackModelConfigurationAudio$Outbound = {
|
|
2244
|
-
voice: string;
|
|
2245
|
-
format: string;
|
|
2246
|
-
};
|
|
2247
|
-
|
|
2248
|
-
/** @internal */
|
|
2249
|
-
export const ListAgentsFallbackModelConfigurationAudio$outboundSchema:
|
|
2250
|
-
z.ZodType<
|
|
2251
|
-
ListAgentsFallbackModelConfigurationAudio$Outbound,
|
|
2252
|
-
z.ZodTypeDef,
|
|
2253
|
-
ListAgentsFallbackModelConfigurationAudio
|
|
2254
|
-
> = z.object({
|
|
2255
|
-
voice: ListAgentsFallbackModelConfigurationVoice$outboundSchema,
|
|
2256
|
-
format: ListAgentsFallbackModelConfigurationFormat$outboundSchema,
|
|
2257
|
-
});
|
|
2258
|
-
|
|
2259
|
-
export function listAgentsFallbackModelConfigurationAudioToJSON(
|
|
2260
|
-
listAgentsFallbackModelConfigurationAudio:
|
|
2261
|
-
ListAgentsFallbackModelConfigurationAudio,
|
|
2262
|
-
): string {
|
|
2263
|
-
return JSON.stringify(
|
|
2264
|
-
ListAgentsFallbackModelConfigurationAudio$outboundSchema.parse(
|
|
2265
|
-
listAgentsFallbackModelConfigurationAudio,
|
|
2266
|
-
),
|
|
2267
|
-
);
|
|
2268
|
-
}
|
|
2269
|
-
export function listAgentsFallbackModelConfigurationAudioFromJSON(
|
|
2270
|
-
jsonString: string,
|
|
2271
|
-
): SafeParseResult<
|
|
2272
|
-
ListAgentsFallbackModelConfigurationAudio,
|
|
2273
|
-
SDKValidationError
|
|
2274
|
-
> {
|
|
2275
|
-
return safeParse(
|
|
2276
|
-
jsonString,
|
|
2277
|
-
(x) =>
|
|
2278
|
-
ListAgentsFallbackModelConfigurationAudio$inboundSchema.parse(
|
|
2279
|
-
JSON.parse(x),
|
|
2280
|
-
),
|
|
2281
|
-
`Failed to parse 'ListAgentsFallbackModelConfigurationAudio' from JSON`,
|
|
2282
|
-
);
|
|
2283
|
-
}
|
|
2284
|
-
|
|
2285
|
-
/** @internal */
|
|
2286
|
-
export const ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema:
|
|
2287
|
-
z.ZodNativeEnum<
|
|
2288
|
-
typeof ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType
|
|
2289
|
-
> = z.nativeEnum(
|
|
2290
|
-
ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType,
|
|
2291
|
-
);
|
|
2292
|
-
/** @internal */
|
|
2293
|
-
export const ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema:
|
|
2294
|
-
z.ZodNativeEnum<
|
|
2295
|
-
typeof ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType
|
|
2296
|
-
> =
|
|
2297
|
-
ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
2298
|
-
|
|
2299
|
-
/** @internal */
|
|
2300
|
-
export const ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema:
|
|
2301
|
-
z.ZodType<
|
|
2302
|
-
ListAgentsResponseFormatAgentsResponseJsonSchema,
|
|
2303
|
-
z.ZodTypeDef,
|
|
2304
|
-
unknown
|
|
2305
|
-
> = z.object({
|
|
2306
|
-
description: z.string().optional(),
|
|
2307
|
-
name: z.string(),
|
|
2308
|
-
schema: z.any().optional(),
|
|
2309
|
-
strict: z.boolean().default(false),
|
|
2310
|
-
});
|
|
2311
|
-
/** @internal */
|
|
2312
|
-
export type ListAgentsResponseFormatAgentsResponseJsonSchema$Outbound = {
|
|
2313
|
-
description?: string | undefined;
|
|
2314
|
-
name: string;
|
|
2315
|
-
schema?: any | undefined;
|
|
2316
|
-
strict: boolean;
|
|
2317
|
-
};
|
|
2318
|
-
|
|
2319
|
-
/** @internal */
|
|
2320
|
-
export const ListAgentsResponseFormatAgentsResponseJsonSchema$outboundSchema:
|
|
2321
|
-
z.ZodType<
|
|
2322
|
-
ListAgentsResponseFormatAgentsResponseJsonSchema$Outbound,
|
|
2323
|
-
z.ZodTypeDef,
|
|
2324
|
-
ListAgentsResponseFormatAgentsResponseJsonSchema
|
|
2325
|
-
> = z.object({
|
|
2326
|
-
description: z.string().optional(),
|
|
2327
|
-
name: z.string(),
|
|
2328
|
-
schema: z.any().optional(),
|
|
2329
|
-
strict: z.boolean().default(false),
|
|
2330
|
-
});
|
|
2331
|
-
|
|
2332
|
-
export function listAgentsResponseFormatAgentsResponseJsonSchemaToJSON(
|
|
2333
|
-
listAgentsResponseFormatAgentsResponseJsonSchema:
|
|
2334
|
-
ListAgentsResponseFormatAgentsResponseJsonSchema,
|
|
2335
|
-
): string {
|
|
2336
|
-
return JSON.stringify(
|
|
2337
|
-
ListAgentsResponseFormatAgentsResponseJsonSchema$outboundSchema.parse(
|
|
2338
|
-
listAgentsResponseFormatAgentsResponseJsonSchema,
|
|
2339
|
-
),
|
|
2340
|
-
);
|
|
2341
|
-
}
|
|
2342
|
-
export function listAgentsResponseFormatAgentsResponseJsonSchemaFromJSON(
|
|
2343
|
-
jsonString: string,
|
|
2344
|
-
): SafeParseResult<
|
|
2345
|
-
ListAgentsResponseFormatAgentsResponseJsonSchema,
|
|
2346
|
-
SDKValidationError
|
|
2347
|
-
> {
|
|
2348
|
-
return safeParse(
|
|
2349
|
-
jsonString,
|
|
2350
|
-
(x) =>
|
|
2351
|
-
ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema.parse(
|
|
2352
|
-
JSON.parse(x),
|
|
2353
|
-
),
|
|
2354
|
-
`Failed to parse 'ListAgentsResponseFormatAgentsResponseJsonSchema' from JSON`,
|
|
2355
|
-
);
|
|
2356
|
-
}
|
|
2357
|
-
|
|
2358
|
-
/** @internal */
|
|
2359
|
-
export const ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema:
|
|
2360
|
-
z.ZodType<
|
|
2361
|
-
ListAgentsResponseFormatAgentsResponse200JSONSchema,
|
|
2362
|
-
z.ZodTypeDef,
|
|
2363
|
-
unknown
|
|
2364
|
-
> = z.object({
|
|
2365
|
-
type:
|
|
2366
|
-
ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
2367
|
-
json_schema: z.lazy(() =>
|
|
2368
|
-
ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema
|
|
2369
|
-
),
|
|
2370
|
-
}).transform((v) => {
|
|
2371
|
-
return remap$(v, {
|
|
2372
|
-
"json_schema": "jsonSchema",
|
|
2373
|
-
});
|
|
2374
|
-
});
|
|
2375
|
-
/** @internal */
|
|
2376
|
-
export type ListAgentsResponseFormatAgentsResponse200JSONSchema$Outbound = {
|
|
2377
|
-
type: string;
|
|
2378
|
-
json_schema: ListAgentsResponseFormatAgentsResponseJsonSchema$Outbound;
|
|
2379
|
-
};
|
|
2380
|
-
|
|
2381
|
-
/** @internal */
|
|
2382
|
-
export const ListAgentsResponseFormatAgentsResponse200JSONSchema$outboundSchema:
|
|
2383
|
-
z.ZodType<
|
|
2384
|
-
ListAgentsResponseFormatAgentsResponse200JSONSchema$Outbound,
|
|
2385
|
-
z.ZodTypeDef,
|
|
2386
|
-
ListAgentsResponseFormatAgentsResponse200JSONSchema
|
|
2387
|
-
> = z.object({
|
|
2388
|
-
type:
|
|
2389
|
-
ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema,
|
|
2390
|
-
jsonSchema: z.lazy(() =>
|
|
2391
|
-
ListAgentsResponseFormatAgentsResponseJsonSchema$outboundSchema
|
|
2392
|
-
),
|
|
2393
|
-
}).transform((v) => {
|
|
2394
|
-
return remap$(v, {
|
|
2395
|
-
jsonSchema: "json_schema",
|
|
2396
|
-
});
|
|
2397
|
-
});
|
|
2398
|
-
|
|
2399
|
-
export function listAgentsResponseFormatAgentsResponse200JSONSchemaToJSON(
|
|
2400
|
-
listAgentsResponseFormatAgentsResponse200JSONSchema:
|
|
2401
|
-
ListAgentsResponseFormatAgentsResponse200JSONSchema,
|
|
2402
|
-
): string {
|
|
2403
|
-
return JSON.stringify(
|
|
2404
|
-
ListAgentsResponseFormatAgentsResponse200JSONSchema$outboundSchema.parse(
|
|
2405
|
-
listAgentsResponseFormatAgentsResponse200JSONSchema,
|
|
2406
|
-
),
|
|
2407
|
-
);
|
|
2408
|
-
}
|
|
2409
|
-
export function listAgentsResponseFormatAgentsResponse200JSONSchemaFromJSON(
|
|
2410
|
-
jsonString: string,
|
|
2411
|
-
): SafeParseResult<
|
|
2412
|
-
ListAgentsResponseFormatAgentsResponse200JSONSchema,
|
|
2413
|
-
SDKValidationError
|
|
2414
|
-
> {
|
|
2415
|
-
return safeParse(
|
|
2416
|
-
jsonString,
|
|
2417
|
-
(x) =>
|
|
2418
|
-
ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema.parse(
|
|
2419
|
-
JSON.parse(x),
|
|
2420
|
-
),
|
|
2421
|
-
`Failed to parse 'ListAgentsResponseFormatAgentsResponse200JSONSchema' from JSON`,
|
|
2422
|
-
);
|
|
2423
|
-
}
|
|
2424
|
-
|
|
2425
|
-
/** @internal */
|
|
2426
|
-
export const ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema:
|
|
2427
|
-
z.ZodNativeEnum<
|
|
2428
|
-
typeof ListAgentsResponseFormatAgentsResponse200ApplicationJSONType
|
|
2429
|
-
> = z.nativeEnum(
|
|
2430
|
-
ListAgentsResponseFormatAgentsResponse200ApplicationJSONType,
|
|
2431
|
-
);
|
|
2432
|
-
/** @internal */
|
|
2433
|
-
export const ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema:
|
|
2434
|
-
z.ZodNativeEnum<
|
|
2435
|
-
typeof ListAgentsResponseFormatAgentsResponse200ApplicationJSONType
|
|
2436
|
-
> =
|
|
2437
|
-
ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema;
|
|
2438
|
-
|
|
2439
|
-
/** @internal */
|
|
2440
|
-
export const ListAgentsResponseFormatAgentsJSONObject$inboundSchema: z.ZodType<
|
|
2441
|
-
ListAgentsResponseFormatAgentsJSONObject,
|
|
2442
|
-
z.ZodTypeDef,
|
|
2443
|
-
unknown
|
|
2444
|
-
> = z.object({
|
|
2445
|
-
type:
|
|
2446
|
-
ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema,
|
|
2447
|
-
});
|
|
2448
|
-
/** @internal */
|
|
2449
|
-
export type ListAgentsResponseFormatAgentsJSONObject$Outbound = {
|
|
2450
|
-
type: string;
|
|
2451
|
-
};
|
|
2452
|
-
|
|
2453
|
-
/** @internal */
|
|
2454
|
-
export const ListAgentsResponseFormatAgentsJSONObject$outboundSchema: z.ZodType<
|
|
2455
|
-
ListAgentsResponseFormatAgentsJSONObject$Outbound,
|
|
2456
|
-
z.ZodTypeDef,
|
|
2457
|
-
ListAgentsResponseFormatAgentsJSONObject
|
|
2458
|
-
> = z.object({
|
|
2459
|
-
type:
|
|
2460
|
-
ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema,
|
|
2461
|
-
});
|
|
2462
|
-
|
|
2463
|
-
export function listAgentsResponseFormatAgentsJSONObjectToJSON(
|
|
2464
|
-
listAgentsResponseFormatAgentsJSONObject:
|
|
2465
|
-
ListAgentsResponseFormatAgentsJSONObject,
|
|
2466
|
-
): string {
|
|
2467
|
-
return JSON.stringify(
|
|
2468
|
-
ListAgentsResponseFormatAgentsJSONObject$outboundSchema.parse(
|
|
2469
|
-
listAgentsResponseFormatAgentsJSONObject,
|
|
2470
|
-
),
|
|
2471
|
-
);
|
|
2472
|
-
}
|
|
2473
|
-
export function listAgentsResponseFormatAgentsJSONObjectFromJSON(
|
|
2474
|
-
jsonString: string,
|
|
2475
|
-
): SafeParseResult<
|
|
2476
|
-
ListAgentsResponseFormatAgentsJSONObject,
|
|
2477
|
-
SDKValidationError
|
|
2478
|
-
> {
|
|
2479
|
-
return safeParse(
|
|
2480
|
-
jsonString,
|
|
2481
|
-
(x) =>
|
|
2482
|
-
ListAgentsResponseFormatAgentsJSONObject$inboundSchema.parse(
|
|
2483
|
-
JSON.parse(x),
|
|
2484
|
-
),
|
|
2485
|
-
`Failed to parse 'ListAgentsResponseFormatAgentsJSONObject' from JSON`,
|
|
2486
|
-
);
|
|
2487
|
-
}
|
|
2488
|
-
|
|
2489
|
-
/** @internal */
|
|
2490
|
-
export const ListAgentsResponseFormatAgentsResponse200Type$inboundSchema:
|
|
2491
|
-
z.ZodNativeEnum<typeof ListAgentsResponseFormatAgentsResponse200Type> = z
|
|
2492
|
-
.nativeEnum(ListAgentsResponseFormatAgentsResponse200Type);
|
|
2493
|
-
/** @internal */
|
|
2494
|
-
export const ListAgentsResponseFormatAgentsResponse200Type$outboundSchema:
|
|
2495
|
-
z.ZodNativeEnum<typeof ListAgentsResponseFormatAgentsResponse200Type> =
|
|
2496
|
-
ListAgentsResponseFormatAgentsResponse200Type$inboundSchema;
|
|
2497
|
-
|
|
2498
|
-
/** @internal */
|
|
2499
|
-
export const ListAgentsResponseFormatAgentsText$inboundSchema: z.ZodType<
|
|
2500
|
-
ListAgentsResponseFormatAgentsText,
|
|
2501
|
-
z.ZodTypeDef,
|
|
2502
|
-
unknown
|
|
2503
|
-
> = z.object({
|
|
2504
|
-
type: ListAgentsResponseFormatAgentsResponse200Type$inboundSchema,
|
|
2505
|
-
});
|
|
2506
|
-
/** @internal */
|
|
2507
|
-
export type ListAgentsResponseFormatAgentsText$Outbound = {
|
|
2508
|
-
type: string;
|
|
2509
|
-
};
|
|
2510
|
-
|
|
2511
|
-
/** @internal */
|
|
2512
|
-
export const ListAgentsResponseFormatAgentsText$outboundSchema: z.ZodType<
|
|
2513
|
-
ListAgentsResponseFormatAgentsText$Outbound,
|
|
2514
|
-
z.ZodTypeDef,
|
|
2515
|
-
ListAgentsResponseFormatAgentsText
|
|
2516
|
-
> = z.object({
|
|
2517
|
-
type: ListAgentsResponseFormatAgentsResponse200Type$outboundSchema,
|
|
2518
|
-
});
|
|
2519
|
-
|
|
2520
|
-
export function listAgentsResponseFormatAgentsTextToJSON(
|
|
2521
|
-
listAgentsResponseFormatAgentsText: ListAgentsResponseFormatAgentsText,
|
|
2522
|
-
): string {
|
|
2523
|
-
return JSON.stringify(
|
|
2524
|
-
ListAgentsResponseFormatAgentsText$outboundSchema.parse(
|
|
2525
|
-
listAgentsResponseFormatAgentsText,
|
|
2526
|
-
),
|
|
2527
|
-
);
|
|
2528
|
-
}
|
|
2529
|
-
export function listAgentsResponseFormatAgentsTextFromJSON(
|
|
2530
|
-
jsonString: string,
|
|
2531
|
-
): SafeParseResult<ListAgentsResponseFormatAgentsText, SDKValidationError> {
|
|
2532
|
-
return safeParse(
|
|
2533
|
-
jsonString,
|
|
2534
|
-
(x) =>
|
|
2535
|
-
ListAgentsResponseFormatAgentsText$inboundSchema.parse(JSON.parse(x)),
|
|
2536
|
-
`Failed to parse 'ListAgentsResponseFormatAgentsText' from JSON`,
|
|
2537
|
-
);
|
|
2538
|
-
}
|
|
2539
|
-
|
|
2540
|
-
/** @internal */
|
|
2541
|
-
export const ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema:
|
|
2542
|
-
z.ZodType<
|
|
2543
|
-
ListAgentsFallbackModelConfigurationResponseFormat,
|
|
2544
|
-
z.ZodTypeDef,
|
|
2545
|
-
unknown
|
|
2546
|
-
> = z.union([
|
|
2547
|
-
z.lazy(() =>
|
|
2548
|
-
ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema
|
|
2549
|
-
),
|
|
2550
|
-
z.lazy(() => ListAgentsResponseFormatAgentsText$inboundSchema),
|
|
2551
|
-
z.lazy(() => ListAgentsResponseFormatAgentsJSONObject$inboundSchema),
|
|
2552
|
-
]);
|
|
2553
|
-
/** @internal */
|
|
2554
|
-
export type ListAgentsFallbackModelConfigurationResponseFormat$Outbound =
|
|
2555
|
-
| ListAgentsResponseFormatAgentsResponse200JSONSchema$Outbound
|
|
2556
|
-
| ListAgentsResponseFormatAgentsText$Outbound
|
|
2557
|
-
| ListAgentsResponseFormatAgentsJSONObject$Outbound;
|
|
2558
|
-
|
|
2559
|
-
/** @internal */
|
|
2560
|
-
export const ListAgentsFallbackModelConfigurationResponseFormat$outboundSchema:
|
|
2561
|
-
z.ZodType<
|
|
2562
|
-
ListAgentsFallbackModelConfigurationResponseFormat$Outbound,
|
|
2563
|
-
z.ZodTypeDef,
|
|
2564
|
-
ListAgentsFallbackModelConfigurationResponseFormat
|
|
2565
|
-
> = z.union([
|
|
2566
|
-
z.lazy(() =>
|
|
2567
|
-
ListAgentsResponseFormatAgentsResponse200JSONSchema$outboundSchema
|
|
2568
|
-
),
|
|
2569
|
-
z.lazy(() => ListAgentsResponseFormatAgentsText$outboundSchema),
|
|
2570
|
-
z.lazy(() => ListAgentsResponseFormatAgentsJSONObject$outboundSchema),
|
|
2571
|
-
]);
|
|
2572
|
-
|
|
2573
|
-
export function listAgentsFallbackModelConfigurationResponseFormatToJSON(
|
|
2574
|
-
listAgentsFallbackModelConfigurationResponseFormat:
|
|
2575
|
-
ListAgentsFallbackModelConfigurationResponseFormat,
|
|
2576
|
-
): string {
|
|
2577
|
-
return JSON.stringify(
|
|
2578
|
-
ListAgentsFallbackModelConfigurationResponseFormat$outboundSchema.parse(
|
|
2579
|
-
listAgentsFallbackModelConfigurationResponseFormat,
|
|
2580
|
-
),
|
|
2581
|
-
);
|
|
2582
|
-
}
|
|
2583
|
-
export function listAgentsFallbackModelConfigurationResponseFormatFromJSON(
|
|
2584
|
-
jsonString: string,
|
|
2585
|
-
): SafeParseResult<
|
|
2586
|
-
ListAgentsFallbackModelConfigurationResponseFormat,
|
|
2587
|
-
SDKValidationError
|
|
2588
|
-
> {
|
|
2589
|
-
return safeParse(
|
|
2590
|
-
jsonString,
|
|
2591
|
-
(x) =>
|
|
2592
|
-
ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema.parse(
|
|
2593
|
-
JSON.parse(x),
|
|
2594
|
-
),
|
|
2595
|
-
`Failed to parse 'ListAgentsFallbackModelConfigurationResponseFormat' from JSON`,
|
|
2596
|
-
);
|
|
2597
|
-
}
|
|
2598
|
-
|
|
2599
|
-
/** @internal */
|
|
2600
|
-
export const ListAgentsFallbackModelConfigurationStop$inboundSchema: z.ZodType<
|
|
2601
|
-
ListAgentsFallbackModelConfigurationStop,
|
|
2602
|
-
z.ZodTypeDef,
|
|
2603
|
-
unknown
|
|
2604
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
2605
|
-
/** @internal */
|
|
2606
|
-
export type ListAgentsFallbackModelConfigurationStop$Outbound =
|
|
2607
|
-
| string
|
|
2608
|
-
| Array<string>;
|
|
2609
|
-
|
|
2610
|
-
/** @internal */
|
|
2611
|
-
export const ListAgentsFallbackModelConfigurationStop$outboundSchema: z.ZodType<
|
|
2612
|
-
ListAgentsFallbackModelConfigurationStop$Outbound,
|
|
2613
|
-
z.ZodTypeDef,
|
|
2614
|
-
ListAgentsFallbackModelConfigurationStop
|
|
2615
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
2616
|
-
|
|
2617
|
-
export function listAgentsFallbackModelConfigurationStopToJSON(
|
|
2618
|
-
listAgentsFallbackModelConfigurationStop:
|
|
2619
|
-
ListAgentsFallbackModelConfigurationStop,
|
|
2620
|
-
): string {
|
|
2621
|
-
return JSON.stringify(
|
|
2622
|
-
ListAgentsFallbackModelConfigurationStop$outboundSchema.parse(
|
|
2623
|
-
listAgentsFallbackModelConfigurationStop,
|
|
2624
|
-
),
|
|
2625
|
-
);
|
|
2626
|
-
}
|
|
2627
|
-
export function listAgentsFallbackModelConfigurationStopFromJSON(
|
|
2628
|
-
jsonString: string,
|
|
2629
|
-
): SafeParseResult<
|
|
2630
|
-
ListAgentsFallbackModelConfigurationStop,
|
|
2631
|
-
SDKValidationError
|
|
2632
|
-
> {
|
|
2633
|
-
return safeParse(
|
|
2634
|
-
jsonString,
|
|
2635
|
-
(x) =>
|
|
2636
|
-
ListAgentsFallbackModelConfigurationStop$inboundSchema.parse(
|
|
2637
|
-
JSON.parse(x),
|
|
2638
|
-
),
|
|
2639
|
-
`Failed to parse 'ListAgentsFallbackModelConfigurationStop' from JSON`,
|
|
2640
|
-
);
|
|
2641
|
-
}
|
|
2642
|
-
|
|
2643
|
-
/** @internal */
|
|
2644
|
-
export const ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema:
|
|
2645
|
-
z.ZodType<
|
|
2646
|
-
ListAgentsFallbackModelConfigurationStreamOptions,
|
|
2647
|
-
z.ZodTypeDef,
|
|
2648
|
-
unknown
|
|
2649
|
-
> = z.object({
|
|
2650
|
-
include_usage: z.boolean().optional(),
|
|
2651
|
-
}).transform((v) => {
|
|
2652
|
-
return remap$(v, {
|
|
2653
|
-
"include_usage": "includeUsage",
|
|
2654
|
-
});
|
|
2655
|
-
});
|
|
2656
|
-
/** @internal */
|
|
2657
|
-
export type ListAgentsFallbackModelConfigurationStreamOptions$Outbound = {
|
|
2658
|
-
include_usage?: boolean | undefined;
|
|
2659
|
-
};
|
|
2660
|
-
|
|
2661
|
-
/** @internal */
|
|
2662
|
-
export const ListAgentsFallbackModelConfigurationStreamOptions$outboundSchema:
|
|
2663
|
-
z.ZodType<
|
|
2664
|
-
ListAgentsFallbackModelConfigurationStreamOptions$Outbound,
|
|
2665
|
-
z.ZodTypeDef,
|
|
2666
|
-
ListAgentsFallbackModelConfigurationStreamOptions
|
|
2667
|
-
> = z.object({
|
|
2668
|
-
includeUsage: z.boolean().optional(),
|
|
2669
|
-
}).transform((v) => {
|
|
2670
|
-
return remap$(v, {
|
|
2671
|
-
includeUsage: "include_usage",
|
|
2672
|
-
});
|
|
2673
|
-
});
|
|
2674
|
-
|
|
2675
|
-
export function listAgentsFallbackModelConfigurationStreamOptionsToJSON(
|
|
2676
|
-
listAgentsFallbackModelConfigurationStreamOptions:
|
|
2677
|
-
ListAgentsFallbackModelConfigurationStreamOptions,
|
|
2678
|
-
): string {
|
|
2679
|
-
return JSON.stringify(
|
|
2680
|
-
ListAgentsFallbackModelConfigurationStreamOptions$outboundSchema.parse(
|
|
2681
|
-
listAgentsFallbackModelConfigurationStreamOptions,
|
|
2682
|
-
),
|
|
2683
|
-
);
|
|
2684
|
-
}
|
|
2685
|
-
export function listAgentsFallbackModelConfigurationStreamOptionsFromJSON(
|
|
2686
|
-
jsonString: string,
|
|
2687
|
-
): SafeParseResult<
|
|
2688
|
-
ListAgentsFallbackModelConfigurationStreamOptions,
|
|
2689
|
-
SDKValidationError
|
|
2690
|
-
> {
|
|
2691
|
-
return safeParse(
|
|
2692
|
-
jsonString,
|
|
2693
|
-
(x) =>
|
|
2694
|
-
ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema.parse(
|
|
2695
|
-
JSON.parse(x),
|
|
2696
|
-
),
|
|
2697
|
-
`Failed to parse 'ListAgentsFallbackModelConfigurationStreamOptions' from JSON`,
|
|
2698
|
-
);
|
|
2699
|
-
}
|
|
2700
|
-
|
|
2701
|
-
/** @internal */
|
|
2702
|
-
export const ListAgentsFallbackModelConfigurationType$inboundSchema:
|
|
2703
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationType> = z
|
|
2704
|
-
.nativeEnum(ListAgentsFallbackModelConfigurationType);
|
|
2705
|
-
/** @internal */
|
|
2706
|
-
export const ListAgentsFallbackModelConfigurationType$outboundSchema:
|
|
2707
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationType> =
|
|
2708
|
-
ListAgentsFallbackModelConfigurationType$inboundSchema;
|
|
2709
|
-
|
|
2710
|
-
/** @internal */
|
|
2711
|
-
export const ListAgentsFallbackModelConfigurationThinkingLevel$inboundSchema:
|
|
2712
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationThinkingLevel> = z
|
|
2713
|
-
.nativeEnum(ListAgentsFallbackModelConfigurationThinkingLevel);
|
|
2714
|
-
/** @internal */
|
|
2715
|
-
export const ListAgentsFallbackModelConfigurationThinkingLevel$outboundSchema:
|
|
2716
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationThinkingLevel> =
|
|
2717
|
-
ListAgentsFallbackModelConfigurationThinkingLevel$inboundSchema;
|
|
2718
|
-
|
|
2719
|
-
/** @internal */
|
|
2720
|
-
export const ListAgentsFallbackModelConfigurationThinking$inboundSchema:
|
|
2721
|
-
z.ZodType<
|
|
2722
|
-
ListAgentsFallbackModelConfigurationThinking,
|
|
2723
|
-
z.ZodTypeDef,
|
|
2724
|
-
unknown
|
|
2725
|
-
> = z.object({
|
|
2726
|
-
type: ListAgentsFallbackModelConfigurationType$inboundSchema,
|
|
2727
|
-
budget_tokens: z.number(),
|
|
2728
|
-
thinking_level:
|
|
2729
|
-
ListAgentsFallbackModelConfigurationThinkingLevel$inboundSchema
|
|
2730
|
-
.optional(),
|
|
2731
|
-
}).transform((v) => {
|
|
2732
|
-
return remap$(v, {
|
|
2733
|
-
"budget_tokens": "budgetTokens",
|
|
2734
|
-
"thinking_level": "thinkingLevel",
|
|
2735
|
-
});
|
|
2736
|
-
});
|
|
2737
|
-
/** @internal */
|
|
2738
|
-
export type ListAgentsFallbackModelConfigurationThinking$Outbound = {
|
|
2739
|
-
type: string;
|
|
2740
|
-
budget_tokens: number;
|
|
2741
|
-
thinking_level?: string | undefined;
|
|
2742
|
-
};
|
|
2743
|
-
|
|
2744
|
-
/** @internal */
|
|
2745
|
-
export const ListAgentsFallbackModelConfigurationThinking$outboundSchema:
|
|
2746
|
-
z.ZodType<
|
|
2747
|
-
ListAgentsFallbackModelConfigurationThinking$Outbound,
|
|
2748
|
-
z.ZodTypeDef,
|
|
2749
|
-
ListAgentsFallbackModelConfigurationThinking
|
|
2750
|
-
> = z.object({
|
|
2751
|
-
type: ListAgentsFallbackModelConfigurationType$outboundSchema,
|
|
2752
|
-
budgetTokens: z.number(),
|
|
2753
|
-
thinkingLevel:
|
|
2754
|
-
ListAgentsFallbackModelConfigurationThinkingLevel$outboundSchema
|
|
2755
|
-
.optional(),
|
|
2756
|
-
}).transform((v) => {
|
|
2757
|
-
return remap$(v, {
|
|
2758
|
-
budgetTokens: "budget_tokens",
|
|
2759
|
-
thinkingLevel: "thinking_level",
|
|
2760
|
-
});
|
|
2761
|
-
});
|
|
2762
|
-
|
|
2763
|
-
export function listAgentsFallbackModelConfigurationThinkingToJSON(
|
|
2764
|
-
listAgentsFallbackModelConfigurationThinking:
|
|
2765
|
-
ListAgentsFallbackModelConfigurationThinking,
|
|
2766
|
-
): string {
|
|
2767
|
-
return JSON.stringify(
|
|
2768
|
-
ListAgentsFallbackModelConfigurationThinking$outboundSchema.parse(
|
|
2769
|
-
listAgentsFallbackModelConfigurationThinking,
|
|
2770
|
-
),
|
|
2771
|
-
);
|
|
2772
|
-
}
|
|
2773
|
-
export function listAgentsFallbackModelConfigurationThinkingFromJSON(
|
|
2774
|
-
jsonString: string,
|
|
2775
|
-
): SafeParseResult<
|
|
2776
|
-
ListAgentsFallbackModelConfigurationThinking,
|
|
2777
|
-
SDKValidationError
|
|
2778
|
-
> {
|
|
2779
|
-
return safeParse(
|
|
2780
|
-
jsonString,
|
|
2781
|
-
(x) =>
|
|
2782
|
-
ListAgentsFallbackModelConfigurationThinking$inboundSchema.parse(
|
|
2783
|
-
JSON.parse(x),
|
|
2784
|
-
),
|
|
2785
|
-
`Failed to parse 'ListAgentsFallbackModelConfigurationThinking' from JSON`,
|
|
2786
|
-
);
|
|
2787
|
-
}
|
|
2788
|
-
|
|
2789
|
-
/** @internal */
|
|
2790
|
-
export const ListAgentsToolChoiceAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
2791
|
-
typeof ListAgentsToolChoiceAgentsType
|
|
2792
|
-
> = z.nativeEnum(ListAgentsToolChoiceAgentsType);
|
|
2793
|
-
/** @internal */
|
|
2794
|
-
export const ListAgentsToolChoiceAgentsType$outboundSchema: z.ZodNativeEnum<
|
|
2795
|
-
typeof ListAgentsToolChoiceAgentsType
|
|
2796
|
-
> = ListAgentsToolChoiceAgentsType$inboundSchema;
|
|
2797
|
-
|
|
2798
|
-
/** @internal */
|
|
2799
|
-
export const ListAgentsToolChoiceAgentsFunction$inboundSchema: z.ZodType<
|
|
2800
|
-
ListAgentsToolChoiceAgentsFunction,
|
|
2801
|
-
z.ZodTypeDef,
|
|
2802
|
-
unknown
|
|
2803
|
-
> = z.object({
|
|
2804
|
-
name: z.string().optional(),
|
|
2805
|
-
});
|
|
2806
|
-
/** @internal */
|
|
2807
|
-
export type ListAgentsToolChoiceAgentsFunction$Outbound = {
|
|
2808
|
-
name?: string | undefined;
|
|
2809
|
-
};
|
|
2810
|
-
|
|
2811
|
-
/** @internal */
|
|
2812
|
-
export const ListAgentsToolChoiceAgentsFunction$outboundSchema: z.ZodType<
|
|
2813
|
-
ListAgentsToolChoiceAgentsFunction$Outbound,
|
|
2814
|
-
z.ZodTypeDef,
|
|
2815
|
-
ListAgentsToolChoiceAgentsFunction
|
|
2816
|
-
> = z.object({
|
|
2817
|
-
name: z.string().optional(),
|
|
2818
|
-
});
|
|
2819
|
-
|
|
2820
|
-
export function listAgentsToolChoiceAgentsFunctionToJSON(
|
|
2821
|
-
listAgentsToolChoiceAgentsFunction: ListAgentsToolChoiceAgentsFunction,
|
|
2822
|
-
): string {
|
|
2823
|
-
return JSON.stringify(
|
|
2824
|
-
ListAgentsToolChoiceAgentsFunction$outboundSchema.parse(
|
|
2825
|
-
listAgentsToolChoiceAgentsFunction,
|
|
2826
|
-
),
|
|
2827
|
-
);
|
|
2828
|
-
}
|
|
2829
|
-
export function listAgentsToolChoiceAgentsFunctionFromJSON(
|
|
2830
|
-
jsonString: string,
|
|
2831
|
-
): SafeParseResult<ListAgentsToolChoiceAgentsFunction, SDKValidationError> {
|
|
2832
|
-
return safeParse(
|
|
2833
|
-
jsonString,
|
|
2834
|
-
(x) =>
|
|
2835
|
-
ListAgentsToolChoiceAgentsFunction$inboundSchema.parse(JSON.parse(x)),
|
|
2836
|
-
`Failed to parse 'ListAgentsToolChoiceAgentsFunction' from JSON`,
|
|
2837
|
-
);
|
|
2838
|
-
}
|
|
2839
|
-
|
|
2840
|
-
/** @internal */
|
|
2841
|
-
export const ListAgentsToolChoiceAgents2$inboundSchema: z.ZodType<
|
|
2842
|
-
ListAgentsToolChoiceAgents2,
|
|
2843
|
-
z.ZodTypeDef,
|
|
2844
|
-
unknown
|
|
2845
|
-
> = z.object({
|
|
2846
|
-
type: ListAgentsToolChoiceAgentsType$inboundSchema.optional(),
|
|
2847
|
-
function: z.lazy(() => ListAgentsToolChoiceAgentsFunction$inboundSchema),
|
|
2848
|
-
});
|
|
2849
|
-
/** @internal */
|
|
2850
|
-
export type ListAgentsToolChoiceAgents2$Outbound = {
|
|
2851
|
-
type?: string | undefined;
|
|
2852
|
-
function: ListAgentsToolChoiceAgentsFunction$Outbound;
|
|
2853
|
-
};
|
|
2854
|
-
|
|
2855
|
-
/** @internal */
|
|
2856
|
-
export const ListAgentsToolChoiceAgents2$outboundSchema: z.ZodType<
|
|
2857
|
-
ListAgentsToolChoiceAgents2$Outbound,
|
|
2858
|
-
z.ZodTypeDef,
|
|
2859
|
-
ListAgentsToolChoiceAgents2
|
|
2860
|
-
> = z.object({
|
|
2861
|
-
type: ListAgentsToolChoiceAgentsType$outboundSchema.optional(),
|
|
2862
|
-
function: z.lazy(() => ListAgentsToolChoiceAgentsFunction$outboundSchema),
|
|
2863
|
-
});
|
|
2864
|
-
|
|
2865
|
-
export function listAgentsToolChoiceAgents2ToJSON(
|
|
2866
|
-
listAgentsToolChoiceAgents2: ListAgentsToolChoiceAgents2,
|
|
2867
|
-
): string {
|
|
2868
|
-
return JSON.stringify(
|
|
2869
|
-
ListAgentsToolChoiceAgents2$outboundSchema.parse(
|
|
2870
|
-
listAgentsToolChoiceAgents2,
|
|
2871
|
-
),
|
|
2872
|
-
);
|
|
2873
|
-
}
|
|
2874
|
-
export function listAgentsToolChoiceAgents2FromJSON(
|
|
2875
|
-
jsonString: string,
|
|
2876
|
-
): SafeParseResult<ListAgentsToolChoiceAgents2, SDKValidationError> {
|
|
2877
|
-
return safeParse(
|
|
2878
|
-
jsonString,
|
|
2879
|
-
(x) => ListAgentsToolChoiceAgents2$inboundSchema.parse(JSON.parse(x)),
|
|
2880
|
-
`Failed to parse 'ListAgentsToolChoiceAgents2' from JSON`,
|
|
2881
|
-
);
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
/** @internal */
|
|
2885
|
-
export const ListAgentsToolChoiceAgents1$inboundSchema: z.ZodNativeEnum<
|
|
2886
|
-
typeof ListAgentsToolChoiceAgents1
|
|
2887
|
-
> = z.nativeEnum(ListAgentsToolChoiceAgents1);
|
|
2888
|
-
/** @internal */
|
|
2889
|
-
export const ListAgentsToolChoiceAgents1$outboundSchema: z.ZodNativeEnum<
|
|
2890
|
-
typeof ListAgentsToolChoiceAgents1
|
|
2891
|
-
> = ListAgentsToolChoiceAgents1$inboundSchema;
|
|
2892
|
-
|
|
2893
|
-
/** @internal */
|
|
2894
|
-
export const ListAgentsFallbackModelConfigurationToolChoice$inboundSchema:
|
|
2895
|
-
z.ZodType<
|
|
2896
|
-
ListAgentsFallbackModelConfigurationToolChoice,
|
|
2897
|
-
z.ZodTypeDef,
|
|
2898
|
-
unknown
|
|
2899
|
-
> = z.union([
|
|
2900
|
-
z.lazy(() => ListAgentsToolChoiceAgents2$inboundSchema),
|
|
2901
|
-
ListAgentsToolChoiceAgents1$inboundSchema,
|
|
2902
|
-
]);
|
|
2903
|
-
/** @internal */
|
|
2904
|
-
export type ListAgentsFallbackModelConfigurationToolChoice$Outbound =
|
|
2905
|
-
| ListAgentsToolChoiceAgents2$Outbound
|
|
2906
|
-
| string;
|
|
2907
|
-
|
|
2908
|
-
/** @internal */
|
|
2909
|
-
export const ListAgentsFallbackModelConfigurationToolChoice$outboundSchema:
|
|
2910
|
-
z.ZodType<
|
|
2911
|
-
ListAgentsFallbackModelConfigurationToolChoice$Outbound,
|
|
2912
|
-
z.ZodTypeDef,
|
|
2913
|
-
ListAgentsFallbackModelConfigurationToolChoice
|
|
2914
|
-
> = z.union([
|
|
2915
|
-
z.lazy(() => ListAgentsToolChoiceAgents2$outboundSchema),
|
|
2916
|
-
ListAgentsToolChoiceAgents1$outboundSchema,
|
|
2917
|
-
]);
|
|
2918
|
-
|
|
2919
|
-
export function listAgentsFallbackModelConfigurationToolChoiceToJSON(
|
|
2920
|
-
listAgentsFallbackModelConfigurationToolChoice:
|
|
2921
|
-
ListAgentsFallbackModelConfigurationToolChoice,
|
|
2922
|
-
): string {
|
|
2923
|
-
return JSON.stringify(
|
|
2924
|
-
ListAgentsFallbackModelConfigurationToolChoice$outboundSchema.parse(
|
|
2925
|
-
listAgentsFallbackModelConfigurationToolChoice,
|
|
2926
|
-
),
|
|
2927
|
-
);
|
|
2928
|
-
}
|
|
2929
|
-
export function listAgentsFallbackModelConfigurationToolChoiceFromJSON(
|
|
2930
|
-
jsonString: string,
|
|
2931
|
-
): SafeParseResult<
|
|
2932
|
-
ListAgentsFallbackModelConfigurationToolChoice,
|
|
2933
|
-
SDKValidationError
|
|
2934
|
-
> {
|
|
2935
|
-
return safeParse(
|
|
2936
|
-
jsonString,
|
|
2937
|
-
(x) =>
|
|
2938
|
-
ListAgentsFallbackModelConfigurationToolChoice$inboundSchema.parse(
|
|
2939
|
-
JSON.parse(x),
|
|
2940
|
-
),
|
|
2941
|
-
`Failed to parse 'ListAgentsFallbackModelConfigurationToolChoice' from JSON`,
|
|
2942
|
-
);
|
|
2943
|
-
}
|
|
2944
|
-
|
|
2945
|
-
/** @internal */
|
|
2946
|
-
export const ListAgentsFallbackModelConfigurationModalities$inboundSchema:
|
|
2947
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationModalities> = z
|
|
2948
|
-
.nativeEnum(ListAgentsFallbackModelConfigurationModalities);
|
|
2949
|
-
/** @internal */
|
|
2950
|
-
export const ListAgentsFallbackModelConfigurationModalities$outboundSchema:
|
|
2951
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationModalities> =
|
|
2952
|
-
ListAgentsFallbackModelConfigurationModalities$inboundSchema;
|
|
2953
|
-
|
|
2954
|
-
/** @internal */
|
|
2955
|
-
export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
2956
|
-
z.ZodType<
|
|
2957
|
-
ListAgentsFallbackModelConfigurationParameters,
|
|
2958
|
-
z.ZodTypeDef,
|
|
2959
|
-
unknown
|
|
2960
|
-
> = z.object({
|
|
2961
|
-
audio: z.nullable(
|
|
2962
|
-
z.lazy(() => ListAgentsFallbackModelConfigurationAudio$inboundSchema),
|
|
2963
|
-
).optional(),
|
|
2964
|
-
frequency_penalty: z.nullable(z.number()).optional(),
|
|
2965
|
-
max_tokens: z.nullable(z.number().int()).optional(),
|
|
2966
|
-
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
2967
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
2968
|
-
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
2969
|
-
n: z.nullable(z.number().int()).optional(),
|
|
2970
|
-
presence_penalty: z.nullable(z.number()).optional(),
|
|
2971
|
-
response_format: z.union([
|
|
2972
|
-
z.lazy(() =>
|
|
2973
|
-
ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema
|
|
2974
|
-
),
|
|
2975
|
-
z.lazy(() => ListAgentsResponseFormatAgentsText$inboundSchema),
|
|
2976
|
-
z.lazy(() => ListAgentsResponseFormatAgentsJSONObject$inboundSchema),
|
|
2977
|
-
]).optional(),
|
|
2978
|
-
reasoning_effort: z.string().optional(),
|
|
2979
|
-
verbosity: z.string().optional(),
|
|
2980
|
-
seed: z.nullable(z.number()).optional(),
|
|
2981
|
-
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2982
|
-
stream_options: z.nullable(
|
|
2983
|
-
z.lazy(() =>
|
|
2984
|
-
ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema
|
|
2985
|
-
),
|
|
2986
|
-
).optional(),
|
|
2987
|
-
thinking: z.lazy(() =>
|
|
2988
|
-
ListAgentsFallbackModelConfigurationThinking$inboundSchema
|
|
2989
|
-
).optional(),
|
|
2990
|
-
temperature: z.nullable(z.number()).optional(),
|
|
2991
|
-
top_p: z.nullable(z.number()).optional(),
|
|
2992
|
-
top_k: z.nullable(z.number()).optional(),
|
|
2993
|
-
tool_choice: z.union([
|
|
2994
|
-
z.lazy(() => ListAgentsToolChoiceAgents2$inboundSchema),
|
|
2995
|
-
ListAgentsToolChoiceAgents1$inboundSchema,
|
|
2996
|
-
]).optional(),
|
|
2997
|
-
parallel_tool_calls: z.boolean().optional(),
|
|
2998
|
-
modalities: z.nullable(
|
|
2999
|
-
z.array(ListAgentsFallbackModelConfigurationModalities$inboundSchema),
|
|
3000
|
-
).optional(),
|
|
3001
|
-
}).transform((v) => {
|
|
3002
|
-
return remap$(v, {
|
|
3003
|
-
"frequency_penalty": "frequencyPenalty",
|
|
3004
|
-
"max_tokens": "maxTokens",
|
|
3005
|
-
"max_completion_tokens": "maxCompletionTokens",
|
|
3006
|
-
"top_logprobs": "topLogprobs",
|
|
3007
|
-
"presence_penalty": "presencePenalty",
|
|
3008
|
-
"response_format": "responseFormat",
|
|
3009
|
-
"reasoning_effort": "reasoningEffort",
|
|
3010
|
-
"stream_options": "streamOptions",
|
|
3011
|
-
"top_p": "topP",
|
|
3012
|
-
"top_k": "topK",
|
|
3013
|
-
"tool_choice": "toolChoice",
|
|
3014
|
-
"parallel_tool_calls": "parallelToolCalls",
|
|
3015
|
-
});
|
|
3016
|
-
});
|
|
3017
|
-
/** @internal */
|
|
3018
|
-
export type ListAgentsFallbackModelConfigurationParameters$Outbound = {
|
|
3019
|
-
audio?: ListAgentsFallbackModelConfigurationAudio$Outbound | null | undefined;
|
|
3020
|
-
frequency_penalty?: number | null | undefined;
|
|
3021
|
-
max_tokens?: number | null | undefined;
|
|
3022
|
-
max_completion_tokens?: number | null | undefined;
|
|
3023
|
-
logprobs?: boolean | null | undefined;
|
|
3024
|
-
top_logprobs?: number | null | undefined;
|
|
3025
|
-
n?: number | null | undefined;
|
|
3026
|
-
presence_penalty?: number | null | undefined;
|
|
3027
|
-
response_format?:
|
|
3028
|
-
| ListAgentsResponseFormatAgentsResponse200JSONSchema$Outbound
|
|
3029
|
-
| ListAgentsResponseFormatAgentsText$Outbound
|
|
3030
|
-
| ListAgentsResponseFormatAgentsJSONObject$Outbound
|
|
3031
|
-
| undefined;
|
|
3032
|
-
reasoning_effort?: string | undefined;
|
|
3033
|
-
verbosity?: string | undefined;
|
|
3034
|
-
seed?: number | null | undefined;
|
|
3035
|
-
stop?: string | Array<string> | null | undefined;
|
|
3036
|
-
stream_options?:
|
|
3037
|
-
| ListAgentsFallbackModelConfigurationStreamOptions$Outbound
|
|
3038
|
-
| null
|
|
3039
|
-
| undefined;
|
|
3040
|
-
thinking?: ListAgentsFallbackModelConfigurationThinking$Outbound | undefined;
|
|
3041
|
-
temperature?: number | null | undefined;
|
|
3042
|
-
top_p?: number | null | undefined;
|
|
3043
|
-
top_k?: number | null | undefined;
|
|
3044
|
-
tool_choice?: ListAgentsToolChoiceAgents2$Outbound | string | undefined;
|
|
3045
|
-
parallel_tool_calls?: boolean | undefined;
|
|
3046
|
-
modalities?: Array<string> | null | undefined;
|
|
3047
|
-
};
|
|
3048
|
-
|
|
3049
|
-
/** @internal */
|
|
3050
|
-
export const ListAgentsFallbackModelConfigurationParameters$outboundSchema:
|
|
3051
|
-
z.ZodType<
|
|
3052
|
-
ListAgentsFallbackModelConfigurationParameters$Outbound,
|
|
3053
|
-
z.ZodTypeDef,
|
|
3054
|
-
ListAgentsFallbackModelConfigurationParameters
|
|
3055
|
-
> = z.object({
|
|
3056
|
-
audio: z.nullable(
|
|
3057
|
-
z.lazy(() => ListAgentsFallbackModelConfigurationAudio$outboundSchema),
|
|
3058
|
-
).optional(),
|
|
3059
|
-
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
3060
|
-
maxTokens: z.nullable(z.number().int()).optional(),
|
|
3061
|
-
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
3062
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
3063
|
-
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
3064
|
-
n: z.nullable(z.number().int()).optional(),
|
|
3065
|
-
presencePenalty: z.nullable(z.number()).optional(),
|
|
3066
|
-
responseFormat: z.union([
|
|
3067
|
-
z.lazy(() =>
|
|
3068
|
-
ListAgentsResponseFormatAgentsResponse200JSONSchema$outboundSchema
|
|
3069
|
-
),
|
|
3070
|
-
z.lazy(() => ListAgentsResponseFormatAgentsText$outboundSchema),
|
|
3071
|
-
z.lazy(() => ListAgentsResponseFormatAgentsJSONObject$outboundSchema),
|
|
3072
|
-
]).optional(),
|
|
3073
|
-
reasoningEffort: z.string().optional(),
|
|
3074
|
-
verbosity: z.string().optional(),
|
|
3075
|
-
seed: z.nullable(z.number()).optional(),
|
|
3076
|
-
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
3077
|
-
streamOptions: z.nullable(
|
|
3078
|
-
z.lazy(() =>
|
|
3079
|
-
ListAgentsFallbackModelConfigurationStreamOptions$outboundSchema
|
|
3080
|
-
),
|
|
3081
|
-
).optional(),
|
|
3082
|
-
thinking: z.lazy(() =>
|
|
3083
|
-
ListAgentsFallbackModelConfigurationThinking$outboundSchema
|
|
3084
|
-
).optional(),
|
|
3085
|
-
temperature: z.nullable(z.number()).optional(),
|
|
3086
|
-
topP: z.nullable(z.number()).optional(),
|
|
3087
|
-
topK: z.nullable(z.number()).optional(),
|
|
3088
|
-
toolChoice: z.union([
|
|
3089
|
-
z.lazy(() => ListAgentsToolChoiceAgents2$outboundSchema),
|
|
3090
|
-
ListAgentsToolChoiceAgents1$outboundSchema,
|
|
3091
|
-
]).optional(),
|
|
3092
|
-
parallelToolCalls: z.boolean().optional(),
|
|
3093
|
-
modalities: z.nullable(
|
|
3094
|
-
z.array(ListAgentsFallbackModelConfigurationModalities$outboundSchema),
|
|
3095
|
-
).optional(),
|
|
3096
|
-
}).transform((v) => {
|
|
3097
|
-
return remap$(v, {
|
|
3098
|
-
frequencyPenalty: "frequency_penalty",
|
|
3099
|
-
maxTokens: "max_tokens",
|
|
3100
|
-
maxCompletionTokens: "max_completion_tokens",
|
|
3101
|
-
topLogprobs: "top_logprobs",
|
|
3102
|
-
presencePenalty: "presence_penalty",
|
|
3103
|
-
responseFormat: "response_format",
|
|
3104
|
-
reasoningEffort: "reasoning_effort",
|
|
3105
|
-
streamOptions: "stream_options",
|
|
3106
|
-
topP: "top_p",
|
|
3107
|
-
topK: "top_k",
|
|
3108
|
-
toolChoice: "tool_choice",
|
|
3109
|
-
parallelToolCalls: "parallel_tool_calls",
|
|
3110
|
-
});
|
|
3111
|
-
});
|
|
3112
|
-
|
|
3113
|
-
export function listAgentsFallbackModelConfigurationParametersToJSON(
|
|
3114
|
-
listAgentsFallbackModelConfigurationParameters:
|
|
3115
|
-
ListAgentsFallbackModelConfigurationParameters,
|
|
3116
|
-
): string {
|
|
3117
|
-
return JSON.stringify(
|
|
3118
|
-
ListAgentsFallbackModelConfigurationParameters$outboundSchema.parse(
|
|
3119
|
-
listAgentsFallbackModelConfigurationParameters,
|
|
3120
|
-
),
|
|
3121
|
-
);
|
|
3122
|
-
}
|
|
3123
|
-
export function listAgentsFallbackModelConfigurationParametersFromJSON(
|
|
3124
|
-
jsonString: string,
|
|
3125
|
-
): SafeParseResult<
|
|
3126
|
-
ListAgentsFallbackModelConfigurationParameters,
|
|
3127
|
-
SDKValidationError
|
|
3128
|
-
> {
|
|
3129
|
-
return safeParse(
|
|
3130
|
-
jsonString,
|
|
3131
|
-
(x) =>
|
|
3132
|
-
ListAgentsFallbackModelConfigurationParameters$inboundSchema.parse(
|
|
3133
|
-
JSON.parse(x),
|
|
3134
|
-
),
|
|
3135
|
-
`Failed to parse 'ListAgentsFallbackModelConfigurationParameters' from JSON`,
|
|
3136
|
-
);
|
|
3137
|
-
}
|
|
3138
|
-
|
|
3139
|
-
/** @internal */
|
|
3140
|
-
export const ListAgentsFallbackModelConfiguration2$inboundSchema: z.ZodType<
|
|
3141
|
-
ListAgentsFallbackModelConfiguration2,
|
|
3142
|
-
z.ZodTypeDef,
|
|
3143
|
-
unknown
|
|
3144
|
-
> = z.object({
|
|
3145
|
-
id: z.string(),
|
|
3146
|
-
parameters: z.lazy(() =>
|
|
3147
|
-
ListAgentsFallbackModelConfigurationParameters$inboundSchema
|
|
3148
|
-
).optional(),
|
|
3149
|
-
});
|
|
3150
|
-
/** @internal */
|
|
3151
|
-
export type ListAgentsFallbackModelConfiguration2$Outbound = {
|
|
3152
|
-
id: string;
|
|
3153
|
-
parameters?:
|
|
3154
|
-
| ListAgentsFallbackModelConfigurationParameters$Outbound
|
|
3155
|
-
| undefined;
|
|
3156
|
-
};
|
|
3157
|
-
|
|
3158
|
-
/** @internal */
|
|
3159
|
-
export const ListAgentsFallbackModelConfiguration2$outboundSchema: z.ZodType<
|
|
3160
|
-
ListAgentsFallbackModelConfiguration2$Outbound,
|
|
3161
|
-
z.ZodTypeDef,
|
|
3162
|
-
ListAgentsFallbackModelConfiguration2
|
|
3163
|
-
> = z.object({
|
|
3164
|
-
id: z.string(),
|
|
3165
|
-
parameters: z.lazy(() =>
|
|
3166
|
-
ListAgentsFallbackModelConfigurationParameters$outboundSchema
|
|
3167
|
-
).optional(),
|
|
3168
|
-
});
|
|
3169
|
-
|
|
3170
|
-
export function listAgentsFallbackModelConfiguration2ToJSON(
|
|
3171
|
-
listAgentsFallbackModelConfiguration2: ListAgentsFallbackModelConfiguration2,
|
|
3172
|
-
): string {
|
|
3173
|
-
return JSON.stringify(
|
|
3174
|
-
ListAgentsFallbackModelConfiguration2$outboundSchema.parse(
|
|
3175
|
-
listAgentsFallbackModelConfiguration2,
|
|
3176
|
-
),
|
|
3177
|
-
);
|
|
3178
|
-
}
|
|
3179
|
-
export function listAgentsFallbackModelConfiguration2FromJSON(
|
|
3180
|
-
jsonString: string,
|
|
3181
|
-
): SafeParseResult<ListAgentsFallbackModelConfiguration2, SDKValidationError> {
|
|
3182
|
-
return safeParse(
|
|
3183
|
-
jsonString,
|
|
3184
|
-
(x) =>
|
|
3185
|
-
ListAgentsFallbackModelConfiguration2$inboundSchema.parse(JSON.parse(x)),
|
|
3186
|
-
`Failed to parse 'ListAgentsFallbackModelConfiguration2' from JSON`,
|
|
3187
|
-
);
|
|
3188
|
-
}
|
|
3189
|
-
|
|
3190
|
-
/** @internal */
|
|
3191
|
-
export const ListAgentsFallbackModelConfiguration$inboundSchema: z.ZodType<
|
|
3192
|
-
ListAgentsFallbackModelConfiguration,
|
|
3193
|
-
z.ZodTypeDef,
|
|
3194
|
-
unknown
|
|
3195
|
-
> = z.union([
|
|
3196
|
-
z.lazy(() => ListAgentsFallbackModelConfiguration2$inboundSchema),
|
|
3197
|
-
z.string(),
|
|
3198
|
-
]);
|
|
3199
|
-
/** @internal */
|
|
3200
|
-
export type ListAgentsFallbackModelConfiguration$Outbound =
|
|
3201
|
-
| ListAgentsFallbackModelConfiguration2$Outbound
|
|
3202
|
-
| string;
|
|
3203
|
-
|
|
3204
|
-
/** @internal */
|
|
3205
|
-
export const ListAgentsFallbackModelConfiguration$outboundSchema: z.ZodType<
|
|
3206
|
-
ListAgentsFallbackModelConfiguration$Outbound,
|
|
3207
|
-
z.ZodTypeDef,
|
|
3208
|
-
ListAgentsFallbackModelConfiguration
|
|
3209
|
-
> = z.union([
|
|
3210
|
-
z.lazy(() => ListAgentsFallbackModelConfiguration2$outboundSchema),
|
|
3211
|
-
z.string(),
|
|
3212
|
-
]);
|
|
3213
|
-
|
|
3214
|
-
export function listAgentsFallbackModelConfigurationToJSON(
|
|
3215
|
-
listAgentsFallbackModelConfiguration: ListAgentsFallbackModelConfiguration,
|
|
3216
|
-
): string {
|
|
3217
|
-
return JSON.stringify(
|
|
3218
|
-
ListAgentsFallbackModelConfiguration$outboundSchema.parse(
|
|
3219
|
-
listAgentsFallbackModelConfiguration,
|
|
3220
|
-
),
|
|
3221
|
-
);
|
|
3222
|
-
}
|
|
3223
|
-
export function listAgentsFallbackModelConfigurationFromJSON(
|
|
3224
|
-
jsonString: string,
|
|
3225
|
-
): SafeParseResult<ListAgentsFallbackModelConfiguration, SDKValidationError> {
|
|
3226
|
-
return safeParse(
|
|
3227
|
-
jsonString,
|
|
3228
|
-
(x) =>
|
|
3229
|
-
ListAgentsFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
3230
|
-
`Failed to parse 'ListAgentsFallbackModelConfiguration' from JSON`,
|
|
3231
|
-
);
|
|
3232
|
-
}
|
|
3233
|
-
|
|
3234
|
-
/** @internal */
|
|
3235
|
-
export const ListAgentsModel$inboundSchema: z.ZodType<
|
|
3236
|
-
ListAgentsModel,
|
|
3237
|
-
z.ZodTypeDef,
|
|
3238
|
-
unknown
|
|
3239
|
-
> = z.object({
|
|
3240
|
-
id: z.string(),
|
|
3241
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
3242
|
-
parameters: z.lazy(() => ListAgentsParameters$inboundSchema).optional(),
|
|
3243
|
-
retry: z.lazy(() => ListAgentsRetry$inboundSchema).optional(),
|
|
3244
|
-
fallback_models: z.nullable(
|
|
3245
|
-
z.array(z.union([
|
|
3246
|
-
z.lazy(() => ListAgentsFallbackModelConfiguration2$inboundSchema),
|
|
3247
|
-
z.string(),
|
|
3248
|
-
])),
|
|
3249
|
-
).optional(),
|
|
3250
|
-
}).transform((v) => {
|
|
3251
|
-
return remap$(v, {
|
|
3252
|
-
"integration_id": "integrationId",
|
|
3253
|
-
"fallback_models": "fallbackModels",
|
|
3254
|
-
});
|
|
3255
|
-
});
|
|
3256
|
-
/** @internal */
|
|
3257
|
-
export type ListAgentsModel$Outbound = {
|
|
3258
|
-
id: string;
|
|
3259
|
-
integration_id?: string | null | undefined;
|
|
3260
|
-
parameters?: ListAgentsParameters$Outbound | undefined;
|
|
3261
|
-
retry?: ListAgentsRetry$Outbound | undefined;
|
|
3262
|
-
fallback_models?:
|
|
3263
|
-
| Array<ListAgentsFallbackModelConfiguration2$Outbound | string>
|
|
3264
|
-
| null
|
|
3265
|
-
| undefined;
|
|
3266
|
-
};
|
|
3267
|
-
|
|
3268
|
-
/** @internal */
|
|
3269
|
-
export const ListAgentsModel$outboundSchema: z.ZodType<
|
|
3270
|
-
ListAgentsModel$Outbound,
|
|
3271
|
-
z.ZodTypeDef,
|
|
3272
|
-
ListAgentsModel
|
|
3273
|
-
> = z.object({
|
|
3274
|
-
id: z.string(),
|
|
3275
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
3276
|
-
parameters: z.lazy(() => ListAgentsParameters$outboundSchema).optional(),
|
|
3277
|
-
retry: z.lazy(() => ListAgentsRetry$outboundSchema).optional(),
|
|
3278
|
-
fallbackModels: z.nullable(
|
|
3279
|
-
z.array(z.union([
|
|
3280
|
-
z.lazy(() => ListAgentsFallbackModelConfiguration2$outboundSchema),
|
|
3281
|
-
z.string(),
|
|
3282
|
-
])),
|
|
3283
|
-
).optional(),
|
|
3284
|
-
}).transform((v) => {
|
|
3285
|
-
return remap$(v, {
|
|
3286
|
-
integrationId: "integration_id",
|
|
3287
|
-
fallbackModels: "fallback_models",
|
|
3288
|
-
});
|
|
3289
|
-
});
|
|
3290
|
-
|
|
3291
|
-
export function listAgentsModelToJSON(
|
|
3292
|
-
listAgentsModel: ListAgentsModel,
|
|
3293
|
-
): string {
|
|
3294
|
-
return JSON.stringify(ListAgentsModel$outboundSchema.parse(listAgentsModel));
|
|
3295
|
-
}
|
|
3296
|
-
export function listAgentsModelFromJSON(
|
|
3297
|
-
jsonString: string,
|
|
3298
|
-
): SafeParseResult<ListAgentsModel, SDKValidationError> {
|
|
3299
|
-
return safeParse(
|
|
3300
|
-
jsonString,
|
|
3301
|
-
(x) => ListAgentsModel$inboundSchema.parse(JSON.parse(x)),
|
|
3302
|
-
`Failed to parse 'ListAgentsModel' from JSON`,
|
|
3303
|
-
);
|
|
3304
|
-
}
|
|
3305
|
-
|
|
3306
|
-
/** @internal */
|
|
3307
|
-
export const ListAgentsTeamOfAgents$inboundSchema: z.ZodType<
|
|
3308
|
-
ListAgentsTeamOfAgents,
|
|
3309
|
-
z.ZodTypeDef,
|
|
3310
|
-
unknown
|
|
3311
|
-
> = z.object({
|
|
3312
|
-
key: z.string(),
|
|
3313
|
-
role: z.string().optional(),
|
|
3314
|
-
});
|
|
3315
|
-
/** @internal */
|
|
3316
|
-
export type ListAgentsTeamOfAgents$Outbound = {
|
|
3317
|
-
key: string;
|
|
3318
|
-
role?: string | undefined;
|
|
3319
|
-
};
|
|
3320
|
-
|
|
3321
|
-
/** @internal */
|
|
3322
|
-
export const ListAgentsTeamOfAgents$outboundSchema: z.ZodType<
|
|
3323
|
-
ListAgentsTeamOfAgents$Outbound,
|
|
3324
|
-
z.ZodTypeDef,
|
|
3325
|
-
ListAgentsTeamOfAgents
|
|
3326
|
-
> = z.object({
|
|
3327
|
-
key: z.string(),
|
|
3328
|
-
role: z.string().optional(),
|
|
3329
|
-
});
|
|
3330
|
-
|
|
3331
|
-
export function listAgentsTeamOfAgentsToJSON(
|
|
3332
|
-
listAgentsTeamOfAgents: ListAgentsTeamOfAgents,
|
|
3333
|
-
): string {
|
|
3334
|
-
return JSON.stringify(
|
|
3335
|
-
ListAgentsTeamOfAgents$outboundSchema.parse(listAgentsTeamOfAgents),
|
|
3336
|
-
);
|
|
3337
|
-
}
|
|
3338
|
-
export function listAgentsTeamOfAgentsFromJSON(
|
|
3339
|
-
jsonString: string,
|
|
3340
|
-
): SafeParseResult<ListAgentsTeamOfAgents, SDKValidationError> {
|
|
3341
|
-
return safeParse(
|
|
3342
|
-
jsonString,
|
|
3343
|
-
(x) => ListAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
3344
|
-
`Failed to parse 'ListAgentsTeamOfAgents' from JSON`,
|
|
3345
|
-
);
|
|
3346
|
-
}
|
|
3347
|
-
|
|
3348
|
-
/** @internal */
|
|
3349
|
-
export const ListAgentsMetrics$inboundSchema: z.ZodType<
|
|
3350
|
-
ListAgentsMetrics,
|
|
3351
|
-
z.ZodTypeDef,
|
|
3352
|
-
unknown
|
|
3353
|
-
> = z.object({
|
|
3354
|
-
total_cost: z.number().default(0),
|
|
3355
|
-
}).transform((v) => {
|
|
3356
|
-
return remap$(v, {
|
|
3357
|
-
"total_cost": "totalCost",
|
|
3358
|
-
});
|
|
3359
|
-
});
|
|
3360
|
-
/** @internal */
|
|
3361
|
-
export type ListAgentsMetrics$Outbound = {
|
|
3362
|
-
total_cost: number;
|
|
3363
|
-
};
|
|
3364
|
-
|
|
3365
|
-
/** @internal */
|
|
3366
|
-
export const ListAgentsMetrics$outboundSchema: z.ZodType<
|
|
3367
|
-
ListAgentsMetrics$Outbound,
|
|
3368
|
-
z.ZodTypeDef,
|
|
3369
|
-
ListAgentsMetrics
|
|
3370
|
-
> = z.object({
|
|
3371
|
-
totalCost: z.number().default(0),
|
|
3372
|
-
}).transform((v) => {
|
|
3373
|
-
return remap$(v, {
|
|
3374
|
-
totalCost: "total_cost",
|
|
3375
|
-
});
|
|
3376
|
-
});
|
|
3377
|
-
|
|
3378
|
-
export function listAgentsMetricsToJSON(
|
|
3379
|
-
listAgentsMetrics: ListAgentsMetrics,
|
|
3380
|
-
): string {
|
|
3381
|
-
return JSON.stringify(
|
|
3382
|
-
ListAgentsMetrics$outboundSchema.parse(listAgentsMetrics),
|
|
3383
|
-
);
|
|
3384
|
-
}
|
|
3385
|
-
export function listAgentsMetricsFromJSON(
|
|
3386
|
-
jsonString: string,
|
|
3387
|
-
): SafeParseResult<ListAgentsMetrics, SDKValidationError> {
|
|
3388
|
-
return safeParse(
|
|
3389
|
-
jsonString,
|
|
3390
|
-
(x) => ListAgentsMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
3391
|
-
`Failed to parse 'ListAgentsMetrics' from JSON`,
|
|
3392
|
-
);
|
|
3393
|
-
}
|
|
3394
|
-
|
|
3395
|
-
/** @internal */
|
|
3396
|
-
export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
|
|
3397
|
-
ListAgentsKnowledgeBases,
|
|
3398
|
-
z.ZodTypeDef,
|
|
3399
|
-
unknown
|
|
3400
|
-
> = z.object({
|
|
3401
|
-
knowledge_id: z.string(),
|
|
3402
|
-
}).transform((v) => {
|
|
3403
|
-
return remap$(v, {
|
|
3404
|
-
"knowledge_id": "knowledgeId",
|
|
3405
|
-
});
|
|
3406
|
-
});
|
|
3407
|
-
/** @internal */
|
|
3408
|
-
export type ListAgentsKnowledgeBases$Outbound = {
|
|
3409
|
-
knowledge_id: string;
|
|
3410
|
-
};
|
|
3411
|
-
|
|
3412
|
-
/** @internal */
|
|
3413
|
-
export const ListAgentsKnowledgeBases$outboundSchema: z.ZodType<
|
|
3414
|
-
ListAgentsKnowledgeBases$Outbound,
|
|
3415
|
-
z.ZodTypeDef,
|
|
3416
|
-
ListAgentsKnowledgeBases
|
|
3417
|
-
> = z.object({
|
|
3418
|
-
knowledgeId: z.string(),
|
|
3419
|
-
}).transform((v) => {
|
|
3420
|
-
return remap$(v, {
|
|
3421
|
-
knowledgeId: "knowledge_id",
|
|
3422
|
-
});
|
|
3423
|
-
});
|
|
3424
|
-
|
|
3425
|
-
export function listAgentsKnowledgeBasesToJSON(
|
|
3426
|
-
listAgentsKnowledgeBases: ListAgentsKnowledgeBases,
|
|
3427
|
-
): string {
|
|
3428
|
-
return JSON.stringify(
|
|
3429
|
-
ListAgentsKnowledgeBases$outboundSchema.parse(listAgentsKnowledgeBases),
|
|
3430
|
-
);
|
|
3431
|
-
}
|
|
3432
|
-
export function listAgentsKnowledgeBasesFromJSON(
|
|
3433
|
-
jsonString: string,
|
|
3434
|
-
): SafeParseResult<ListAgentsKnowledgeBases, SDKValidationError> {
|
|
3435
|
-
return safeParse(
|
|
3436
|
-
jsonString,
|
|
3437
|
-
(x) => ListAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
3438
|
-
`Failed to parse 'ListAgentsKnowledgeBases' from JSON`,
|
|
3439
|
-
);
|
|
3440
|
-
}
|
|
3441
|
-
|
|
3442
|
-
/** @internal */
|
|
3443
|
-
export const ListAgentsData$inboundSchema: z.ZodType<
|
|
3444
|
-
ListAgentsData,
|
|
3445
|
-
z.ZodTypeDef,
|
|
3446
|
-
unknown
|
|
3447
|
-
> = z.object({
|
|
3448
|
-
_id: z.string(),
|
|
3449
|
-
key: z.string(),
|
|
3450
|
-
display_name: z.string(),
|
|
3451
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
3452
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
3453
|
-
created: z.string().optional(),
|
|
3454
|
-
updated: z.string().optional(),
|
|
3455
|
-
role: z.string(),
|
|
3456
|
-
description: z.string(),
|
|
3457
|
-
system_prompt: z.string().optional(),
|
|
3458
|
-
instructions: z.string(),
|
|
3459
|
-
status: ListAgentsStatus$inboundSchema,
|
|
3460
|
-
settings: z.lazy(() => ListAgentsSettings$inboundSchema).optional(),
|
|
3461
|
-
model: z.lazy(() => ListAgentsModel$inboundSchema),
|
|
3462
|
-
version_hash: z.string().optional(),
|
|
3463
|
-
path: z.string(),
|
|
3464
|
-
memory_stores: z.array(z.string()),
|
|
3465
|
-
team_of_agents: z.array(z.lazy(() => ListAgentsTeamOfAgents$inboundSchema)),
|
|
3466
|
-
metrics: z.lazy(() => ListAgentsMetrics$inboundSchema).optional(),
|
|
3467
|
-
variables: z.record(z.any()).optional(),
|
|
3468
|
-
knowledge_bases: z.array(z.lazy(() => ListAgentsKnowledgeBases$inboundSchema))
|
|
3469
|
-
.optional(),
|
|
3470
|
-
}).transform((v) => {
|
|
3471
|
-
return remap$(v, {
|
|
3472
|
-
"_id": "id",
|
|
3473
|
-
"display_name": "displayName",
|
|
3474
|
-
"created_by_id": "createdById",
|
|
3475
|
-
"updated_by_id": "updatedById",
|
|
3476
|
-
"system_prompt": "systemPrompt",
|
|
3477
|
-
"version_hash": "versionHash",
|
|
3478
|
-
"memory_stores": "memoryStores",
|
|
3479
|
-
"team_of_agents": "teamOfAgents",
|
|
3480
|
-
"knowledge_bases": "knowledgeBases",
|
|
3481
|
-
});
|
|
3482
|
-
});
|
|
3483
|
-
/** @internal */
|
|
3484
|
-
export type ListAgentsData$Outbound = {
|
|
3485
|
-
_id: string;
|
|
3486
|
-
key: string;
|
|
3487
|
-
display_name: string;
|
|
3488
|
-
created_by_id?: string | null | undefined;
|
|
3489
|
-
updated_by_id?: string | null | undefined;
|
|
3490
|
-
created?: string | undefined;
|
|
3491
|
-
updated?: string | undefined;
|
|
3492
|
-
role: string;
|
|
3493
|
-
description: string;
|
|
3494
|
-
system_prompt?: string | undefined;
|
|
3495
|
-
instructions: string;
|
|
3496
|
-
status: string;
|
|
3497
|
-
settings?: ListAgentsSettings$Outbound | undefined;
|
|
3498
|
-
model: ListAgentsModel$Outbound;
|
|
3499
|
-
version_hash?: string | undefined;
|
|
3500
|
-
path: string;
|
|
3501
|
-
memory_stores: Array<string>;
|
|
3502
|
-
team_of_agents: Array<ListAgentsTeamOfAgents$Outbound>;
|
|
3503
|
-
metrics?: ListAgentsMetrics$Outbound | undefined;
|
|
3504
|
-
variables?: { [k: string]: any } | undefined;
|
|
3505
|
-
knowledge_bases?: Array<ListAgentsKnowledgeBases$Outbound> | undefined;
|
|
3506
|
-
};
|
|
3507
|
-
|
|
3508
|
-
/** @internal */
|
|
3509
|
-
export const ListAgentsData$outboundSchema: z.ZodType<
|
|
3510
|
-
ListAgentsData$Outbound,
|
|
3511
|
-
z.ZodTypeDef,
|
|
3512
|
-
ListAgentsData
|
|
3513
|
-
> = z.object({
|
|
3514
|
-
id: z.string(),
|
|
3515
|
-
key: z.string(),
|
|
3516
|
-
displayName: z.string(),
|
|
3517
|
-
createdById: z.nullable(z.string()).optional(),
|
|
3518
|
-
updatedById: z.nullable(z.string()).optional(),
|
|
3519
|
-
created: z.string().optional(),
|
|
3520
|
-
updated: z.string().optional(),
|
|
3521
|
-
role: z.string(),
|
|
3522
|
-
description: z.string(),
|
|
3523
|
-
systemPrompt: z.string().optional(),
|
|
3524
|
-
instructions: z.string(),
|
|
3525
|
-
status: ListAgentsStatus$outboundSchema,
|
|
3526
|
-
settings: z.lazy(() => ListAgentsSettings$outboundSchema).optional(),
|
|
3527
|
-
model: z.lazy(() => ListAgentsModel$outboundSchema),
|
|
3528
|
-
versionHash: z.string().optional(),
|
|
3529
|
-
path: z.string(),
|
|
3530
|
-
memoryStores: z.array(z.string()),
|
|
3531
|
-
teamOfAgents: z.array(z.lazy(() => ListAgentsTeamOfAgents$outboundSchema)),
|
|
3532
|
-
metrics: z.lazy(() => ListAgentsMetrics$outboundSchema).optional(),
|
|
3533
|
-
variables: z.record(z.any()).optional(),
|
|
3534
|
-
knowledgeBases: z.array(z.lazy(() => ListAgentsKnowledgeBases$outboundSchema))
|
|
3535
|
-
.optional(),
|
|
3536
|
-
}).transform((v) => {
|
|
3537
|
-
return remap$(v, {
|
|
3538
|
-
id: "_id",
|
|
3539
|
-
displayName: "display_name",
|
|
3540
|
-
createdById: "created_by_id",
|
|
3541
|
-
updatedById: "updated_by_id",
|
|
3542
|
-
systemPrompt: "system_prompt",
|
|
3543
|
-
versionHash: "version_hash",
|
|
3544
|
-
memoryStores: "memory_stores",
|
|
3545
|
-
teamOfAgents: "team_of_agents",
|
|
3546
|
-
knowledgeBases: "knowledge_bases",
|
|
3547
|
-
});
|
|
3548
|
-
});
|
|
3549
|
-
|
|
3550
|
-
export function listAgentsDataToJSON(listAgentsData: ListAgentsData): string {
|
|
3551
|
-
return JSON.stringify(ListAgentsData$outboundSchema.parse(listAgentsData));
|
|
3552
|
-
}
|
|
3553
|
-
export function listAgentsDataFromJSON(
|
|
3554
|
-
jsonString: string,
|
|
3555
|
-
): SafeParseResult<ListAgentsData, SDKValidationError> {
|
|
3556
|
-
return safeParse(
|
|
3557
|
-
jsonString,
|
|
3558
|
-
(x) => ListAgentsData$inboundSchema.parse(JSON.parse(x)),
|
|
3559
|
-
`Failed to parse 'ListAgentsData' from JSON`,
|
|
3560
|
-
);
|
|
3561
|
-
}
|
|
3562
|
-
|
|
3563
|
-
/** @internal */
|
|
3564
|
-
export const ListAgentsResponseBody$inboundSchema: z.ZodType<
|
|
3565
|
-
ListAgentsResponseBody,
|
|
3566
|
-
z.ZodTypeDef,
|
|
3567
|
-
unknown
|
|
3568
|
-
> = z.object({
|
|
3569
|
-
object: ListAgentsObject$inboundSchema,
|
|
3570
|
-
data: z.array(z.lazy(() => ListAgentsData$inboundSchema)),
|
|
3571
|
-
has_more: z.boolean(),
|
|
3572
|
-
}).transform((v) => {
|
|
3573
|
-
return remap$(v, {
|
|
3574
|
-
"has_more": "hasMore",
|
|
3575
|
-
});
|
|
3576
|
-
});
|
|
3577
|
-
/** @internal */
|
|
3578
|
-
export type ListAgentsResponseBody$Outbound = {
|
|
3579
|
-
object: string;
|
|
3580
|
-
data: Array<ListAgentsData$Outbound>;
|
|
3581
|
-
has_more: boolean;
|
|
3582
|
-
};
|
|
3583
|
-
|
|
3584
|
-
/** @internal */
|
|
3585
|
-
export const ListAgentsResponseBody$outboundSchema: z.ZodType<
|
|
3586
|
-
ListAgentsResponseBody$Outbound,
|
|
3587
|
-
z.ZodTypeDef,
|
|
3588
|
-
ListAgentsResponseBody
|
|
3589
|
-
> = z.object({
|
|
3590
|
-
object: ListAgentsObject$outboundSchema,
|
|
3591
|
-
data: z.array(z.lazy(() => ListAgentsData$outboundSchema)),
|
|
3592
|
-
hasMore: z.boolean(),
|
|
3593
|
-
}).transform((v) => {
|
|
3594
|
-
return remap$(v, {
|
|
3595
|
-
hasMore: "has_more",
|
|
3596
|
-
});
|
|
3597
|
-
});
|
|
3598
|
-
|
|
3599
|
-
export function listAgentsResponseBodyToJSON(
|
|
3600
|
-
listAgentsResponseBody: ListAgentsResponseBody,
|
|
3601
|
-
): string {
|
|
3602
|
-
return JSON.stringify(
|
|
3603
|
-
ListAgentsResponseBody$outboundSchema.parse(listAgentsResponseBody),
|
|
3604
|
-
);
|
|
3605
|
-
}
|
|
3606
|
-
export function listAgentsResponseBodyFromJSON(
|
|
3607
|
-
jsonString: string,
|
|
3608
|
-
): SafeParseResult<ListAgentsResponseBody, SDKValidationError> {
|
|
3609
|
-
return safeParse(
|
|
3610
|
-
jsonString,
|
|
3611
|
-
(x) => ListAgentsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
3612
|
-
`Failed to parse 'ListAgentsResponseBody' from JSON`,
|
|
3613
|
-
);
|
|
3614
|
-
}
|