@orq-ai/node 3.14.8 → 4.0.0-rc.0
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 +210 -213
- package/bin/mcp-server.js.map +38 -38
- package/docs/sdks/agents/README.md +8 -4
- package/docs/sdks/budgets/README.md +4 -2
- package/docs/sdks/tools/README.md +4 -2
- package/examples/package-lock.json +5 -6
- 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 +10 -10
- package/models/operations/duplicatetool.js +10 -10
- 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 +10 -10
- 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 +10 -10
- 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 +10 -10
- package/package.json +4 -4
- 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 +10 -10
- package/src/models/operations/duplicatetool.ts +10 -10
- 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 +10 -10
- 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 +10 -10
- 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 +10 -10
- package/packages/orq-rc/FUNCTIONS.md +0 -103
- package/packages/orq-rc/README.md +0 -909
- package/packages/orq-rc/RUNTIMES.md +0 -48
- package/packages/orq-rc/docs/sdks/agents/README.md +0 -1319
- package/packages/orq-rc/docs/sdks/budgets/README.md +0 -401
- package/packages/orq-rc/docs/sdks/chunking/README.md +0 -95
- 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 -1489
- package/packages/orq-rc/docs/sdks/memorystores/README.md +0 -1172
- 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/tools/README.md +0 -490
- 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 -627
- 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 -3071
- package/packages/orq-rc/package.json +0 -43
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -172
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -167
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -167
- package/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -163
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -190
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -188
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -176
- 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 -171
- 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 -163
- package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +0 -175
- 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 -259
- 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 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.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 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -37
- 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/toolsDuplicate.ts +0 -37
- 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/deployments.ts +0 -8147
- package/packages/orq-rc/src/models/components/index.ts +0 -6
- package/packages/orq-rc/src/models/components/security.ts +0 -71
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -91
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/duplicatetool.ts +0 -91
- package/packages/orq-rc/src/models/errors/getagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/getagenttask.ts +0 -80
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -80
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -80
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -90
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -29
- package/packages/orq-rc/src/models/errors/listagenttasks.ts +0 -80
- 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/retrievecontact.ts +0 -91
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/streamagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/updateagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -83
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -80
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -91
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -78
- package/packages/orq-rc/src/models/operations/createagent.ts +0 -3104
- package/packages/orq-rc/src/models/operations/createbudget.ts +0 -745
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -428
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -267
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -302
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -6943
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -9341
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1850
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -274
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -287
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -2032
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -7812
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -4077
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -78
- package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -69
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
- package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -243
- package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -69
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -87
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -78
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -66
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -87
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -98
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -78
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
- package/packages/orq-rc/src/models/operations/deletetool.ts +0 -75
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -6547
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -10532
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1266
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2606
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -10655
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +0 -2349
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
- package/packages/orq-rc/src/models/operations/getagent.ts +0 -957
- package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -259
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -318
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -338
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -1277
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2572
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2308
- package/packages/orq-rc/src/models/operations/getbudget.ts +0 -441
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -230
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -7486
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1292
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -2437
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2444
- package/packages/orq-rc/src/models/operations/index.ts +0 -102
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -1569
- package/packages/orq-rc/src/models/operations/listactions.ts +0 -526
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -1077
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -1106
- package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -617
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -507
- package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -500
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -4086
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -454
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1303
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2580
- package/packages/orq-rc/src/models/operations/parse.ts +0 -1295
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
- package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -426
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -210
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -3853
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -291
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -201
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -220
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -1160
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2333
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -4342
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -3573
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -1367
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -4355
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -3321
- package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -628
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
- package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -325
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -6934
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -386
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -9704
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -2341
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -283
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -296
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -1363
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -8176
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4288
- package/packages/orq-rc/src/sdk/agents.ts +0 -238
- 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/sdk.ts +0 -97
- package/packages/orq-rc/src/sdk/tools.ts +0 -117
- 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 -16
- 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/tsconfig.json +0 -41
|
@@ -1,4342 +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
|
-
/**
|
|
13
|
-
* Tool message
|
|
14
|
-
*/
|
|
15
|
-
export const RunAgentRoleToolMessage = {
|
|
16
|
-
Tool: "tool",
|
|
17
|
-
} as const;
|
|
18
|
-
/**
|
|
19
|
-
* Tool message
|
|
20
|
-
*/
|
|
21
|
-
export type RunAgentRoleToolMessage = ClosedEnum<
|
|
22
|
-
typeof RunAgentRoleToolMessage
|
|
23
|
-
>;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* User message
|
|
27
|
-
*/
|
|
28
|
-
export const RunAgentRoleUserMessage = {
|
|
29
|
-
User: "user",
|
|
30
|
-
} as const;
|
|
31
|
-
/**
|
|
32
|
-
* User message
|
|
33
|
-
*/
|
|
34
|
-
export type RunAgentRoleUserMessage = ClosedEnum<
|
|
35
|
-
typeof RunAgentRoleUserMessage
|
|
36
|
-
>;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Message role (user or tool for continuing executions)
|
|
40
|
-
*/
|
|
41
|
-
export type RunAgentRole = RunAgentRoleUserMessage | RunAgentRoleToolMessage;
|
|
42
|
-
|
|
43
|
-
export const RunAgentPublicMessagePartAgentsRequestKind = {
|
|
44
|
-
ToolResult: "tool_result",
|
|
45
|
-
} as const;
|
|
46
|
-
export type RunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<
|
|
47
|
-
typeof RunAgentPublicMessagePartAgentsRequestKind
|
|
48
|
-
>;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
|
|
52
|
-
*/
|
|
53
|
-
export type PublicMessagePartToolResultPart = {
|
|
54
|
-
kind: RunAgentPublicMessagePartAgentsRequestKind;
|
|
55
|
-
toolCallId: string;
|
|
56
|
-
result?: any | undefined;
|
|
57
|
-
metadata?: { [k: string]: any } | undefined;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export const RunAgentPublicMessagePartAgentsKind = {
|
|
61
|
-
File: "file",
|
|
62
|
-
} as const;
|
|
63
|
-
export type RunAgentPublicMessagePartAgentsKind = ClosedEnum<
|
|
64
|
-
typeof RunAgentPublicMessagePartAgentsKind
|
|
65
|
-
>;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
69
|
-
*/
|
|
70
|
-
export type FileFileInURIFormat = {
|
|
71
|
-
/**
|
|
72
|
-
* URL for the File content
|
|
73
|
-
*/
|
|
74
|
-
uri: string;
|
|
75
|
-
/**
|
|
76
|
-
* Optional mimeType for the file
|
|
77
|
-
*/
|
|
78
|
-
mimeType?: string | undefined;
|
|
79
|
-
/**
|
|
80
|
-
* Optional name for the file
|
|
81
|
-
*/
|
|
82
|
-
name?: string | undefined;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
87
|
-
*/
|
|
88
|
-
export type FileBinaryFormat = {
|
|
89
|
-
/**
|
|
90
|
-
* base64 encoded content of the file
|
|
91
|
-
*/
|
|
92
|
-
bytes: string;
|
|
93
|
-
/**
|
|
94
|
-
* Optional mimeType for the file
|
|
95
|
-
*/
|
|
96
|
-
mimeType?: string | undefined;
|
|
97
|
-
/**
|
|
98
|
-
* Optional name for the file
|
|
99
|
-
*/
|
|
100
|
-
name?: string | undefined;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export type RunAgentPublicMessagePartFile =
|
|
104
|
-
| FileBinaryFormat
|
|
105
|
-
| FileFileInURIFormat;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
109
|
-
*/
|
|
110
|
-
export type PublicMessagePartFilePart = {
|
|
111
|
-
kind: RunAgentPublicMessagePartAgentsKind;
|
|
112
|
-
file: FileBinaryFormat | FileFileInURIFormat;
|
|
113
|
-
metadata?: { [k: string]: any } | undefined;
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export const RunAgentPublicMessagePartKind = {
|
|
117
|
-
Text: "text",
|
|
118
|
-
} as const;
|
|
119
|
-
export type RunAgentPublicMessagePartKind = ClosedEnum<
|
|
120
|
-
typeof RunAgentPublicMessagePartKind
|
|
121
|
-
>;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Text content part. Use this to send text messages to the agent.
|
|
125
|
-
*/
|
|
126
|
-
export type PublicMessagePartTextPart = {
|
|
127
|
-
kind: RunAgentPublicMessagePartKind;
|
|
128
|
-
text: string;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
|
|
133
|
-
*/
|
|
134
|
-
export type RunAgentPublicMessagePart =
|
|
135
|
-
| PublicMessagePartTextPart
|
|
136
|
-
| PublicMessagePartFilePart
|
|
137
|
-
| PublicMessagePartToolResultPart;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* The A2A format message containing the task for the agent to perform.
|
|
141
|
-
*/
|
|
142
|
-
export type RunAgentMessage = {
|
|
143
|
-
/**
|
|
144
|
-
* Optional A2A message ID in ULID format
|
|
145
|
-
*/
|
|
146
|
-
messageId?: string | undefined;
|
|
147
|
-
/**
|
|
148
|
-
* Message role (user or tool for continuing executions)
|
|
149
|
-
*/
|
|
150
|
-
role: RunAgentRoleUserMessage | RunAgentRoleToolMessage;
|
|
151
|
-
/**
|
|
152
|
-
* A2A message parts (text, file, or tool_result only)
|
|
153
|
-
*/
|
|
154
|
-
parts: Array<
|
|
155
|
-
| PublicMessagePartTextPart
|
|
156
|
-
| PublicMessagePartFilePart
|
|
157
|
-
| PublicMessagePartToolResultPart
|
|
158
|
-
>;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
163
|
-
*/
|
|
164
|
-
export type RunAgentContact = {
|
|
165
|
-
/**
|
|
166
|
-
* Unique identifier for the contact
|
|
167
|
-
*/
|
|
168
|
-
id: string;
|
|
169
|
-
/**
|
|
170
|
-
* Display name of the contact
|
|
171
|
-
*/
|
|
172
|
-
displayName?: string | undefined;
|
|
173
|
-
/**
|
|
174
|
-
* Email address of the contact
|
|
175
|
-
*/
|
|
176
|
-
email?: string | undefined;
|
|
177
|
-
/**
|
|
178
|
-
* A hash of key/value pairs containing any other data about the contact
|
|
179
|
-
*/
|
|
180
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
181
|
-
/**
|
|
182
|
-
* URL to the contact's avatar or logo
|
|
183
|
-
*/
|
|
184
|
-
logoUrl?: string | undefined;
|
|
185
|
-
/**
|
|
186
|
-
* A list of tags associated with the contact
|
|
187
|
-
*/
|
|
188
|
-
tags?: Array<string> | undefined;
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Thread information to group related requests
|
|
193
|
-
*/
|
|
194
|
-
export type RunAgentThread = {
|
|
195
|
-
/**
|
|
196
|
-
* Unique thread identifier to group related invocations.
|
|
197
|
-
*/
|
|
198
|
-
id: string;
|
|
199
|
-
/**
|
|
200
|
-
* Optional tags to differentiate or categorize threads
|
|
201
|
-
*/
|
|
202
|
-
tags?: Array<string> | undefined;
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
207
|
-
*/
|
|
208
|
-
export type RunAgentMemory = {
|
|
209
|
-
/**
|
|
210
|
-
* An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
|
|
211
|
-
*/
|
|
212
|
-
entityId: string;
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
export type RunAgentKnowledgeBases = {
|
|
216
|
-
/**
|
|
217
|
-
* Unique identifier of the knowledge base to search
|
|
218
|
-
*/
|
|
219
|
-
knowledgeId: string;
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
export type RunAgentTeamOfAgents = {
|
|
223
|
-
/**
|
|
224
|
-
* The unique key of the agent within the workspace
|
|
225
|
-
*/
|
|
226
|
-
key: string;
|
|
227
|
-
/**
|
|
228
|
-
* 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.
|
|
229
|
-
*/
|
|
230
|
-
role?: string | undefined;
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
|
|
234
|
-
{
|
|
235
|
-
Function: "function",
|
|
236
|
-
} as const;
|
|
237
|
-
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
|
|
238
|
-
ClosedEnum<
|
|
239
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
240
|
-
>;
|
|
241
|
-
|
|
242
|
-
export type AgentToolInputRunFunction = {
|
|
243
|
-
/**
|
|
244
|
-
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
245
|
-
*/
|
|
246
|
-
name: string;
|
|
247
|
-
/**
|
|
248
|
-
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
249
|
-
*/
|
|
250
|
-
description?: string | undefined;
|
|
251
|
-
/**
|
|
252
|
-
* Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
|
|
253
|
-
*/
|
|
254
|
-
strict?: boolean | undefined;
|
|
255
|
-
/**
|
|
256
|
-
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
257
|
-
*/
|
|
258
|
-
parameters?: { [k: string]: any } | undefined;
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Function tool with inline definition for on-the-fly creation in run endpoint
|
|
263
|
-
*/
|
|
264
|
-
export type FunctionToolRun = {
|
|
265
|
-
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type;
|
|
266
|
-
/**
|
|
267
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
268
|
-
*/
|
|
269
|
-
key: string;
|
|
270
|
-
id?: string | undefined;
|
|
271
|
-
displayName?: string | undefined;
|
|
272
|
-
description?: string | undefined;
|
|
273
|
-
function: AgentToolInputRunFunction;
|
|
274
|
-
requiresApproval?: boolean | undefined;
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
|
|
278
|
-
{
|
|
279
|
-
Code: "code",
|
|
280
|
-
} as const;
|
|
281
|
-
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
|
|
282
|
-
ClosedEnum<
|
|
283
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
284
|
-
>;
|
|
285
|
-
|
|
286
|
-
export const Language = {
|
|
287
|
-
Python: "python",
|
|
288
|
-
} as const;
|
|
289
|
-
export type Language = ClosedEnum<typeof Language>;
|
|
290
|
-
|
|
291
|
-
export type CodeTool = {
|
|
292
|
-
/**
|
|
293
|
-
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
294
|
-
*/
|
|
295
|
-
parameters?: { [k: string]: any } | undefined;
|
|
296
|
-
language: Language;
|
|
297
|
-
/**
|
|
298
|
-
* The code to execute.
|
|
299
|
-
*/
|
|
300
|
-
code: string;
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* Code execution tool with inline definition for on-the-fly creation in run endpoint
|
|
305
|
-
*/
|
|
306
|
-
export type CodeToolRun = {
|
|
307
|
-
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type;
|
|
308
|
-
/**
|
|
309
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
310
|
-
*/
|
|
311
|
-
key: string;
|
|
312
|
-
id?: string | undefined;
|
|
313
|
-
displayName?: string | undefined;
|
|
314
|
-
/**
|
|
315
|
-
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
316
|
-
*/
|
|
317
|
-
description: string;
|
|
318
|
-
codeTool: CodeTool;
|
|
319
|
-
requiresApproval?: boolean | undefined;
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
|
|
323
|
-
{
|
|
324
|
-
Http: "http",
|
|
325
|
-
} as const;
|
|
326
|
-
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
|
|
327
|
-
ClosedEnum<
|
|
328
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
|
|
329
|
-
>;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* The HTTP method to use.
|
|
333
|
-
*/
|
|
334
|
-
export const Method = {
|
|
335
|
-
Get: "GET",
|
|
336
|
-
Post: "POST",
|
|
337
|
-
Put: "PUT",
|
|
338
|
-
Delete: "DELETE",
|
|
339
|
-
} as const;
|
|
340
|
-
/**
|
|
341
|
-
* The HTTP method to use.
|
|
342
|
-
*/
|
|
343
|
-
export type Method = ClosedEnum<typeof Method>;
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
347
|
-
*/
|
|
348
|
-
export type Blueprint = {
|
|
349
|
-
/**
|
|
350
|
-
* The URL to send the request to.
|
|
351
|
-
*/
|
|
352
|
-
url: string;
|
|
353
|
-
/**
|
|
354
|
-
* The HTTP method to use.
|
|
355
|
-
*/
|
|
356
|
-
method: Method;
|
|
357
|
-
/**
|
|
358
|
-
* The headers to send with the request.
|
|
359
|
-
*/
|
|
360
|
-
headers?: { [k: string]: string } | undefined;
|
|
361
|
-
/**
|
|
362
|
-
* The body to send with the request.
|
|
363
|
-
*/
|
|
364
|
-
body?: { [k: string]: any } | undefined;
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* The type of the argument.
|
|
369
|
-
*/
|
|
370
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
|
|
371
|
-
{
|
|
372
|
-
String: "string",
|
|
373
|
-
Number: "number",
|
|
374
|
-
Boolean: "boolean",
|
|
375
|
-
} as const;
|
|
376
|
-
/**
|
|
377
|
-
* The type of the argument.
|
|
378
|
-
*/
|
|
379
|
-
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
|
|
380
|
-
ClosedEnum<
|
|
381
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
|
|
382
|
-
>;
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* The default value of the argument.
|
|
386
|
-
*/
|
|
387
|
-
export type DefaultValue = string | number | boolean;
|
|
388
|
-
|
|
389
|
-
export type Arguments = {
|
|
390
|
-
/**
|
|
391
|
-
* The type of the argument.
|
|
392
|
-
*/
|
|
393
|
-
type:
|
|
394
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType;
|
|
395
|
-
/**
|
|
396
|
-
* A description of the argument.
|
|
397
|
-
*/
|
|
398
|
-
description: string;
|
|
399
|
-
/**
|
|
400
|
-
* Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
|
|
401
|
-
*/
|
|
402
|
-
sendToModel?: boolean | undefined;
|
|
403
|
-
/**
|
|
404
|
-
* The default value of the argument.
|
|
405
|
-
*/
|
|
406
|
-
defaultValue?: string | number | boolean | undefined;
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
export type Http = {
|
|
410
|
-
/**
|
|
411
|
-
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
412
|
-
*/
|
|
413
|
-
blueprint: Blueprint;
|
|
414
|
-
/**
|
|
415
|
-
* The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
|
|
416
|
-
*/
|
|
417
|
-
arguments?: { [k: string]: Arguments } | undefined;
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* HTTP tool with inline definition for on-the-fly creation in run endpoint
|
|
422
|
-
*/
|
|
423
|
-
export type HTTPToolRun = {
|
|
424
|
-
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type;
|
|
425
|
-
/**
|
|
426
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
427
|
-
*/
|
|
428
|
-
key: string;
|
|
429
|
-
id?: string | undefined;
|
|
430
|
-
displayName?: string | undefined;
|
|
431
|
-
/**
|
|
432
|
-
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
433
|
-
*/
|
|
434
|
-
description: string;
|
|
435
|
-
http: Http;
|
|
436
|
-
requiresApproval?: boolean | undefined;
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
|
|
440
|
-
{
|
|
441
|
-
CurrentDate: "current_date",
|
|
442
|
-
} as const;
|
|
443
|
-
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
|
|
444
|
-
ClosedEnum<
|
|
445
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
446
|
-
>;
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* Returns the current date and time
|
|
450
|
-
*/
|
|
451
|
-
export type AgentToolInputRunCurrentDateTool = {
|
|
452
|
-
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type;
|
|
453
|
-
/**
|
|
454
|
-
* Whether this tool requires approval before execution
|
|
455
|
-
*/
|
|
456
|
-
requiresApproval?: boolean | undefined;
|
|
457
|
-
};
|
|
458
|
-
|
|
459
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
|
|
460
|
-
{
|
|
461
|
-
QueryKnowledgeBase: "query_knowledge_base",
|
|
462
|
-
} as const;
|
|
463
|
-
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
|
|
464
|
-
ClosedEnum<
|
|
465
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
466
|
-
>;
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Queries knowledge bases for information
|
|
470
|
-
*/
|
|
471
|
-
export type AgentToolInputRunQueryKnowledgeBaseTool = {
|
|
472
|
-
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type;
|
|
473
|
-
/**
|
|
474
|
-
* Whether this tool requires approval before execution
|
|
475
|
-
*/
|
|
476
|
-
requiresApproval?: boolean | undefined;
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
|
|
480
|
-
{
|
|
481
|
-
RetrieveKnowledgeBases: "retrieve_knowledge_bases",
|
|
482
|
-
} as const;
|
|
483
|
-
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
|
|
484
|
-
ClosedEnum<
|
|
485
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
486
|
-
>;
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* Lists available knowledge bases
|
|
490
|
-
*/
|
|
491
|
-
export type AgentToolInputRunRetrieveKnowledgeBasesTool = {
|
|
492
|
-
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type;
|
|
493
|
-
/**
|
|
494
|
-
* Whether this tool requires approval before execution
|
|
495
|
-
*/
|
|
496
|
-
requiresApproval?: boolean | undefined;
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
|
|
500
|
-
{
|
|
501
|
-
DeleteMemoryDocument: "delete_memory_document",
|
|
502
|
-
} as const;
|
|
503
|
-
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
|
|
504
|
-
ClosedEnum<
|
|
505
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
506
|
-
>;
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* Deletes documents from memory stores
|
|
510
|
-
*/
|
|
511
|
-
export type AgentToolInputRunDeleteMemoryDocumentTool = {
|
|
512
|
-
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type;
|
|
513
|
-
/**
|
|
514
|
-
* Whether this tool requires approval before execution
|
|
515
|
-
*/
|
|
516
|
-
requiresApproval?: boolean | undefined;
|
|
517
|
-
};
|
|
518
|
-
|
|
519
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
|
|
520
|
-
{
|
|
521
|
-
RetrieveMemoryStores: "retrieve_memory_stores",
|
|
522
|
-
} as const;
|
|
523
|
-
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
|
|
524
|
-
ClosedEnum<
|
|
525
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
526
|
-
>;
|
|
527
|
-
|
|
528
|
-
/**
|
|
529
|
-
* Lists available memory stores
|
|
530
|
-
*/
|
|
531
|
-
export type AgentToolInputRunRetrieveMemoryStoresTool = {
|
|
532
|
-
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType;
|
|
533
|
-
/**
|
|
534
|
-
* Whether this tool requires approval before execution
|
|
535
|
-
*/
|
|
536
|
-
requiresApproval?: boolean | undefined;
|
|
537
|
-
};
|
|
538
|
-
|
|
539
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType = {
|
|
540
|
-
WriteMemoryStore: "write_memory_store",
|
|
541
|
-
} as const;
|
|
542
|
-
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
|
|
543
|
-
ClosedEnum<
|
|
544
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
545
|
-
>;
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* Writes information to agent memory stores
|
|
549
|
-
*/
|
|
550
|
-
export type AgentToolInputRunWriteMemoryStoreTool = {
|
|
551
|
-
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
|
|
552
|
-
/**
|
|
553
|
-
* Whether this tool requires approval before execution
|
|
554
|
-
*/
|
|
555
|
-
requiresApproval?: boolean | undefined;
|
|
556
|
-
};
|
|
557
|
-
|
|
558
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType = {
|
|
559
|
-
QueryMemoryStore: "query_memory_store",
|
|
560
|
-
} as const;
|
|
561
|
-
export type RunAgentAgentToolInputRunAgentsRequestRequestBodyType = ClosedEnum<
|
|
562
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
563
|
-
>;
|
|
564
|
-
|
|
565
|
-
/**
|
|
566
|
-
* Queries agent memory stores for context
|
|
567
|
-
*/
|
|
568
|
-
export type AgentToolInputRunQueryMemoryStoreTool = {
|
|
569
|
-
type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType;
|
|
570
|
-
/**
|
|
571
|
-
* Whether this tool requires approval before execution
|
|
572
|
-
*/
|
|
573
|
-
requiresApproval?: boolean | undefined;
|
|
574
|
-
};
|
|
575
|
-
|
|
576
|
-
export const RunAgentAgentToolInputRunAgentsRequestType = {
|
|
577
|
-
RetrieveAgents: "retrieve_agents",
|
|
578
|
-
} as const;
|
|
579
|
-
export type RunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<
|
|
580
|
-
typeof RunAgentAgentToolInputRunAgentsRequestType
|
|
581
|
-
>;
|
|
582
|
-
|
|
583
|
-
/**
|
|
584
|
-
* Retrieves available agents in the system
|
|
585
|
-
*/
|
|
586
|
-
export type AgentToolInputRunRetrieveAgentsTool = {
|
|
587
|
-
type: RunAgentAgentToolInputRunAgentsRequestType;
|
|
588
|
-
/**
|
|
589
|
-
* Whether this tool requires approval before execution
|
|
590
|
-
*/
|
|
591
|
-
requiresApproval?: boolean | undefined;
|
|
592
|
-
};
|
|
593
|
-
|
|
594
|
-
export const RunAgentAgentToolInputRunAgentsType = {
|
|
595
|
-
CallSubAgent: "call_sub_agent",
|
|
596
|
-
} as const;
|
|
597
|
-
export type RunAgentAgentToolInputRunAgentsType = ClosedEnum<
|
|
598
|
-
typeof RunAgentAgentToolInputRunAgentsType
|
|
599
|
-
>;
|
|
600
|
-
|
|
601
|
-
/**
|
|
602
|
-
* Delegates tasks to specialized sub-agents
|
|
603
|
-
*/
|
|
604
|
-
export type AgentToolInputRunCallSubAgentTool = {
|
|
605
|
-
type: RunAgentAgentToolInputRunAgentsType;
|
|
606
|
-
/**
|
|
607
|
-
* Whether this tool requires approval before execution
|
|
608
|
-
*/
|
|
609
|
-
requiresApproval?: boolean | undefined;
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
export const RunAgentAgentToolInputRunType = {
|
|
613
|
-
WebScraper: "web_scraper",
|
|
614
|
-
} as const;
|
|
615
|
-
export type RunAgentAgentToolInputRunType = ClosedEnum<
|
|
616
|
-
typeof RunAgentAgentToolInputRunType
|
|
617
|
-
>;
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* Scrapes and extracts content from web pages
|
|
621
|
-
*/
|
|
622
|
-
export type AgentToolInputRunWebScraperTool = {
|
|
623
|
-
type: RunAgentAgentToolInputRunType;
|
|
624
|
-
/**
|
|
625
|
-
* Whether this tool requires approval before execution
|
|
626
|
-
*/
|
|
627
|
-
requiresApproval?: boolean | undefined;
|
|
628
|
-
};
|
|
629
|
-
|
|
630
|
-
export const AgentToolInputRunType = {
|
|
631
|
-
GoogleSearch: "google_search",
|
|
632
|
-
} as const;
|
|
633
|
-
export type AgentToolInputRunType = ClosedEnum<typeof AgentToolInputRunType>;
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* Performs Google searches to retrieve web content
|
|
637
|
-
*/
|
|
638
|
-
export type AgentToolInputRunGoogleSearchTool = {
|
|
639
|
-
type: AgentToolInputRunType;
|
|
640
|
-
/**
|
|
641
|
-
* Whether this tool requires approval before execution
|
|
642
|
-
*/
|
|
643
|
-
requiresApproval?: boolean | undefined;
|
|
644
|
-
};
|
|
645
|
-
|
|
646
|
-
/**
|
|
647
|
-
* Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (HTTP, Code, Function) support full inline definitions for on-the-fly creation.
|
|
648
|
-
*/
|
|
649
|
-
export type AgentToolInputRun =
|
|
650
|
-
| HTTPToolRun
|
|
651
|
-
| CodeToolRun
|
|
652
|
-
| FunctionToolRun
|
|
653
|
-
| AgentToolInputRunGoogleSearchTool
|
|
654
|
-
| AgentToolInputRunWebScraperTool
|
|
655
|
-
| AgentToolInputRunCallSubAgentTool
|
|
656
|
-
| AgentToolInputRunRetrieveAgentsTool
|
|
657
|
-
| AgentToolInputRunQueryMemoryStoreTool
|
|
658
|
-
| AgentToolInputRunWriteMemoryStoreTool
|
|
659
|
-
| AgentToolInputRunRetrieveMemoryStoresTool
|
|
660
|
-
| AgentToolInputRunDeleteMemoryDocumentTool
|
|
661
|
-
| AgentToolInputRunRetrieveKnowledgeBasesTool
|
|
662
|
-
| AgentToolInputRunQueryKnowledgeBaseTool
|
|
663
|
-
| AgentToolInputRunCurrentDateTool;
|
|
664
|
-
|
|
665
|
-
/**
|
|
666
|
-
* 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.
|
|
667
|
-
*/
|
|
668
|
-
export const RunAgentToolApprovalRequired = {
|
|
669
|
-
All: "all",
|
|
670
|
-
RespectTool: "respect_tool",
|
|
671
|
-
None: "none",
|
|
672
|
-
} as const;
|
|
673
|
-
/**
|
|
674
|
-
* 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.
|
|
675
|
-
*/
|
|
676
|
-
export type RunAgentToolApprovalRequired = ClosedEnum<
|
|
677
|
-
typeof RunAgentToolApprovalRequired
|
|
678
|
-
>;
|
|
679
|
-
|
|
680
|
-
export type RunAgentSettings = {
|
|
681
|
-
/**
|
|
682
|
-
* Tools available to the agent
|
|
683
|
-
*/
|
|
684
|
-
tools?:
|
|
685
|
-
| Array<
|
|
686
|
-
| HTTPToolRun
|
|
687
|
-
| CodeToolRun
|
|
688
|
-
| FunctionToolRun
|
|
689
|
-
| AgentToolInputRunGoogleSearchTool
|
|
690
|
-
| AgentToolInputRunWebScraperTool
|
|
691
|
-
| AgentToolInputRunCallSubAgentTool
|
|
692
|
-
| AgentToolInputRunRetrieveAgentsTool
|
|
693
|
-
| AgentToolInputRunQueryMemoryStoreTool
|
|
694
|
-
| AgentToolInputRunWriteMemoryStoreTool
|
|
695
|
-
| AgentToolInputRunRetrieveMemoryStoresTool
|
|
696
|
-
| AgentToolInputRunDeleteMemoryDocumentTool
|
|
697
|
-
| AgentToolInputRunRetrieveKnowledgeBasesTool
|
|
698
|
-
| AgentToolInputRunQueryKnowledgeBaseTool
|
|
699
|
-
| AgentToolInputRunCurrentDateTool
|
|
700
|
-
>
|
|
701
|
-
| undefined;
|
|
702
|
-
/**
|
|
703
|
-
* 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.
|
|
704
|
-
*/
|
|
705
|
-
toolApprovalRequired?: RunAgentToolApprovalRequired | undefined;
|
|
706
|
-
/**
|
|
707
|
-
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
708
|
-
*/
|
|
709
|
-
maxIterations?: number | undefined;
|
|
710
|
-
/**
|
|
711
|
-
* 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.
|
|
712
|
-
*/
|
|
713
|
-
maxExecutionTime?: number | undefined;
|
|
714
|
-
};
|
|
715
|
-
|
|
716
|
-
export type RunAgentRequestBody = {
|
|
717
|
-
/**
|
|
718
|
-
* A unique identifier for the agent. This key must be unique within the same workspace and cannot be reused. When executing the agent, this key determines if the agent already exists. If the agent version differs, a new version is created at the end of the execution, except for the task. All agent parameters are evaluated to decide if a new version is needed.
|
|
719
|
-
*/
|
|
720
|
-
key: string;
|
|
721
|
-
/**
|
|
722
|
-
* Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
|
|
723
|
-
*/
|
|
724
|
-
taskId?: string | undefined;
|
|
725
|
-
/**
|
|
726
|
-
* The language model that powers the agent. The model must support tool calling capabilities.
|
|
727
|
-
*/
|
|
728
|
-
model: string;
|
|
729
|
-
/**
|
|
730
|
-
* Optional array of fallback model IDs to use when the primary model fails. Models are tried in order. All models must support tool calling capabilities.
|
|
731
|
-
*/
|
|
732
|
-
fallbackModels?: Array<string> | undefined;
|
|
733
|
-
/**
|
|
734
|
-
* Specifies the agent's function and area of expertise.
|
|
735
|
-
*/
|
|
736
|
-
role: string;
|
|
737
|
-
/**
|
|
738
|
-
* Provides context and purpose for the agent. Combined with the system prompt template to generate the agent's instructions.
|
|
739
|
-
*/
|
|
740
|
-
instructions: string;
|
|
741
|
-
/**
|
|
742
|
-
* The A2A format message containing the task for the agent to perform.
|
|
743
|
-
*/
|
|
744
|
-
message: RunAgentMessage;
|
|
745
|
-
/**
|
|
746
|
-
* Optional variables for template replacement in system prompt, instructions, and messages
|
|
747
|
-
*/
|
|
748
|
-
variables?: { [k: string]: any } | undefined;
|
|
749
|
-
/**
|
|
750
|
-
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
751
|
-
*/
|
|
752
|
-
contact?: RunAgentContact | undefined;
|
|
753
|
-
/**
|
|
754
|
-
* Thread information to group related requests
|
|
755
|
-
*/
|
|
756
|
-
thread?: RunAgentThread | undefined;
|
|
757
|
-
/**
|
|
758
|
-
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
759
|
-
*/
|
|
760
|
-
memory?: RunAgentMemory | undefined;
|
|
761
|
-
/**
|
|
762
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
763
|
-
*
|
|
764
|
-
* @remarks
|
|
765
|
-
*
|
|
766
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
767
|
-
*
|
|
768
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
769
|
-
*/
|
|
770
|
-
path: string;
|
|
771
|
-
/**
|
|
772
|
-
* A brief summary of the agent's purpose.
|
|
773
|
-
*/
|
|
774
|
-
description?: string | undefined;
|
|
775
|
-
/**
|
|
776
|
-
* A custom system prompt template for the agent. If omitted, the default template is used.
|
|
777
|
-
*/
|
|
778
|
-
systemPrompt?: string | undefined;
|
|
779
|
-
/**
|
|
780
|
-
* The list of keys of the memory stores that are accessible to the agent.
|
|
781
|
-
*/
|
|
782
|
-
memoryStores?: Array<string> | undefined;
|
|
783
|
-
/**
|
|
784
|
-
* Knowledge base configurations for the agent to access
|
|
785
|
-
*/
|
|
786
|
-
knowledgeBases?: Array<RunAgentKnowledgeBases> | undefined;
|
|
787
|
-
/**
|
|
788
|
-
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
789
|
-
*/
|
|
790
|
-
teamOfAgents?: Array<RunAgentTeamOfAgents> | undefined;
|
|
791
|
-
settings: RunAgentSettings;
|
|
792
|
-
/**
|
|
793
|
-
* Optional metadata for the agent run as key-value pairs that will be included in traces
|
|
794
|
-
*/
|
|
795
|
-
metadata?: { [k: string]: any } | undefined;
|
|
796
|
-
};
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* A2A entity type
|
|
800
|
-
*/
|
|
801
|
-
export const RunAgentKind = {
|
|
802
|
-
Task: "task",
|
|
803
|
-
} as const;
|
|
804
|
-
/**
|
|
805
|
-
* A2A entity type
|
|
806
|
-
*/
|
|
807
|
-
export type RunAgentKind = ClosedEnum<typeof RunAgentKind>;
|
|
808
|
-
|
|
809
|
-
/**
|
|
810
|
-
* Current task state
|
|
811
|
-
*/
|
|
812
|
-
export const RunAgentState = {
|
|
813
|
-
Submitted: "submitted",
|
|
814
|
-
Working: "working",
|
|
815
|
-
InputRequired: "input-required",
|
|
816
|
-
Completed: "completed",
|
|
817
|
-
Failed: "failed",
|
|
818
|
-
Canceled: "canceled",
|
|
819
|
-
Rejected: "rejected",
|
|
820
|
-
AuthRequired: "auth-required",
|
|
821
|
-
Unknown: "unknown",
|
|
822
|
-
} as const;
|
|
823
|
-
/**
|
|
824
|
-
* Current task state
|
|
825
|
-
*/
|
|
826
|
-
export type RunAgentState = ClosedEnum<typeof RunAgentState>;
|
|
827
|
-
|
|
828
|
-
export const RunAgentAgentsKind = {
|
|
829
|
-
Message: "message",
|
|
830
|
-
} as const;
|
|
831
|
-
export type RunAgentAgentsKind = ClosedEnum<typeof RunAgentAgentsKind>;
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* Extended A2A message role
|
|
835
|
-
*/
|
|
836
|
-
export const RunAgentAgentsRole = {
|
|
837
|
-
User: "user",
|
|
838
|
-
Agent: "agent",
|
|
839
|
-
Tool: "tool",
|
|
840
|
-
System: "system",
|
|
841
|
-
} as const;
|
|
842
|
-
/**
|
|
843
|
-
* Extended A2A message role
|
|
844
|
-
*/
|
|
845
|
-
export type RunAgentAgentsRole = ClosedEnum<typeof RunAgentAgentsRole>;
|
|
846
|
-
|
|
847
|
-
/**
|
|
848
|
-
* Optional status message
|
|
849
|
-
*/
|
|
850
|
-
export type RunAgentAgentsMessage = {
|
|
851
|
-
kind: RunAgentAgentsKind;
|
|
852
|
-
messageId: string;
|
|
853
|
-
/**
|
|
854
|
-
* Extended A2A message role
|
|
855
|
-
*/
|
|
856
|
-
role: RunAgentAgentsRole;
|
|
857
|
-
parts: Array<any>;
|
|
858
|
-
};
|
|
859
|
-
|
|
860
|
-
/**
|
|
861
|
-
* Task status information
|
|
862
|
-
*/
|
|
863
|
-
export type RunAgentStatus = {
|
|
864
|
-
/**
|
|
865
|
-
* Current task state
|
|
866
|
-
*/
|
|
867
|
-
state: RunAgentState;
|
|
868
|
-
/**
|
|
869
|
-
* ISO timestamp of status update
|
|
870
|
-
*/
|
|
871
|
-
timestamp?: string | undefined;
|
|
872
|
-
/**
|
|
873
|
-
* Optional status message
|
|
874
|
-
*/
|
|
875
|
-
message?: RunAgentAgentsMessage | undefined;
|
|
876
|
-
};
|
|
877
|
-
|
|
878
|
-
/**
|
|
879
|
-
* A2A Task response format
|
|
880
|
-
*/
|
|
881
|
-
export type RunAgentResponseBody = {
|
|
882
|
-
/**
|
|
883
|
-
* The ID of the created agent execution task
|
|
884
|
-
*/
|
|
885
|
-
id: string;
|
|
886
|
-
/**
|
|
887
|
-
* The correlation ID for this execution
|
|
888
|
-
*/
|
|
889
|
-
contextId: string;
|
|
890
|
-
/**
|
|
891
|
-
* A2A entity type
|
|
892
|
-
*/
|
|
893
|
-
kind: RunAgentKind;
|
|
894
|
-
/**
|
|
895
|
-
* Task status information
|
|
896
|
-
*/
|
|
897
|
-
status: RunAgentStatus;
|
|
898
|
-
/**
|
|
899
|
-
* Task metadata containing workspace_id and trace_id for feedback
|
|
900
|
-
*/
|
|
901
|
-
metadata?: { [k: string]: any } | undefined;
|
|
902
|
-
};
|
|
903
|
-
|
|
904
|
-
/** @internal */
|
|
905
|
-
export const RunAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<
|
|
906
|
-
typeof RunAgentRoleToolMessage
|
|
907
|
-
> = z.nativeEnum(RunAgentRoleToolMessage);
|
|
908
|
-
|
|
909
|
-
/** @internal */
|
|
910
|
-
export const RunAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<
|
|
911
|
-
typeof RunAgentRoleToolMessage
|
|
912
|
-
> = RunAgentRoleToolMessage$inboundSchema;
|
|
913
|
-
|
|
914
|
-
/**
|
|
915
|
-
* @internal
|
|
916
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
917
|
-
*/
|
|
918
|
-
export namespace RunAgentRoleToolMessage$ {
|
|
919
|
-
/** @deprecated use `RunAgentRoleToolMessage$inboundSchema` instead. */
|
|
920
|
-
export const inboundSchema = RunAgentRoleToolMessage$inboundSchema;
|
|
921
|
-
/** @deprecated use `RunAgentRoleToolMessage$outboundSchema` instead. */
|
|
922
|
-
export const outboundSchema = RunAgentRoleToolMessage$outboundSchema;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
/** @internal */
|
|
926
|
-
export const RunAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<
|
|
927
|
-
typeof RunAgentRoleUserMessage
|
|
928
|
-
> = z.nativeEnum(RunAgentRoleUserMessage);
|
|
929
|
-
|
|
930
|
-
/** @internal */
|
|
931
|
-
export const RunAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<
|
|
932
|
-
typeof RunAgentRoleUserMessage
|
|
933
|
-
> = RunAgentRoleUserMessage$inboundSchema;
|
|
934
|
-
|
|
935
|
-
/**
|
|
936
|
-
* @internal
|
|
937
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
938
|
-
*/
|
|
939
|
-
export namespace RunAgentRoleUserMessage$ {
|
|
940
|
-
/** @deprecated use `RunAgentRoleUserMessage$inboundSchema` instead. */
|
|
941
|
-
export const inboundSchema = RunAgentRoleUserMessage$inboundSchema;
|
|
942
|
-
/** @deprecated use `RunAgentRoleUserMessage$outboundSchema` instead. */
|
|
943
|
-
export const outboundSchema = RunAgentRoleUserMessage$outboundSchema;
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
/** @internal */
|
|
947
|
-
export const RunAgentRole$inboundSchema: z.ZodType<
|
|
948
|
-
RunAgentRole,
|
|
949
|
-
z.ZodTypeDef,
|
|
950
|
-
unknown
|
|
951
|
-
> = z.union([
|
|
952
|
-
RunAgentRoleUserMessage$inboundSchema,
|
|
953
|
-
RunAgentRoleToolMessage$inboundSchema,
|
|
954
|
-
]);
|
|
955
|
-
|
|
956
|
-
/** @internal */
|
|
957
|
-
export type RunAgentRole$Outbound = string | string;
|
|
958
|
-
|
|
959
|
-
/** @internal */
|
|
960
|
-
export const RunAgentRole$outboundSchema: z.ZodType<
|
|
961
|
-
RunAgentRole$Outbound,
|
|
962
|
-
z.ZodTypeDef,
|
|
963
|
-
RunAgentRole
|
|
964
|
-
> = z.union([
|
|
965
|
-
RunAgentRoleUserMessage$outboundSchema,
|
|
966
|
-
RunAgentRoleToolMessage$outboundSchema,
|
|
967
|
-
]);
|
|
968
|
-
|
|
969
|
-
/**
|
|
970
|
-
* @internal
|
|
971
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
972
|
-
*/
|
|
973
|
-
export namespace RunAgentRole$ {
|
|
974
|
-
/** @deprecated use `RunAgentRole$inboundSchema` instead. */
|
|
975
|
-
export const inboundSchema = RunAgentRole$inboundSchema;
|
|
976
|
-
/** @deprecated use `RunAgentRole$outboundSchema` instead. */
|
|
977
|
-
export const outboundSchema = RunAgentRole$outboundSchema;
|
|
978
|
-
/** @deprecated use `RunAgentRole$Outbound` instead. */
|
|
979
|
-
export type Outbound = RunAgentRole$Outbound;
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
export function runAgentRoleToJSON(runAgentRole: RunAgentRole): string {
|
|
983
|
-
return JSON.stringify(RunAgentRole$outboundSchema.parse(runAgentRole));
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
export function runAgentRoleFromJSON(
|
|
987
|
-
jsonString: string,
|
|
988
|
-
): SafeParseResult<RunAgentRole, SDKValidationError> {
|
|
989
|
-
return safeParse(
|
|
990
|
-
jsonString,
|
|
991
|
-
(x) => RunAgentRole$inboundSchema.parse(JSON.parse(x)),
|
|
992
|
-
`Failed to parse 'RunAgentRole' from JSON`,
|
|
993
|
-
);
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
/** @internal */
|
|
997
|
-
export const RunAgentPublicMessagePartAgentsRequestKind$inboundSchema:
|
|
998
|
-
z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind> = z
|
|
999
|
-
.nativeEnum(RunAgentPublicMessagePartAgentsRequestKind);
|
|
1000
|
-
|
|
1001
|
-
/** @internal */
|
|
1002
|
-
export const RunAgentPublicMessagePartAgentsRequestKind$outboundSchema:
|
|
1003
|
-
z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind> =
|
|
1004
|
-
RunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
|
|
1005
|
-
|
|
1006
|
-
/**
|
|
1007
|
-
* @internal
|
|
1008
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1009
|
-
*/
|
|
1010
|
-
export namespace RunAgentPublicMessagePartAgentsRequestKind$ {
|
|
1011
|
-
/** @deprecated use `RunAgentPublicMessagePartAgentsRequestKind$inboundSchema` instead. */
|
|
1012
|
-
export const inboundSchema =
|
|
1013
|
-
RunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
|
|
1014
|
-
/** @deprecated use `RunAgentPublicMessagePartAgentsRequestKind$outboundSchema` instead. */
|
|
1015
|
-
export const outboundSchema =
|
|
1016
|
-
RunAgentPublicMessagePartAgentsRequestKind$outboundSchema;
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
/** @internal */
|
|
1020
|
-
export const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<
|
|
1021
|
-
PublicMessagePartToolResultPart,
|
|
1022
|
-
z.ZodTypeDef,
|
|
1023
|
-
unknown
|
|
1024
|
-
> = z.object({
|
|
1025
|
-
kind: RunAgentPublicMessagePartAgentsRequestKind$inboundSchema,
|
|
1026
|
-
tool_call_id: z.string(),
|
|
1027
|
-
result: z.any().optional(),
|
|
1028
|
-
metadata: z.record(z.any()).optional(),
|
|
1029
|
-
}).transform((v) => {
|
|
1030
|
-
return remap$(v, {
|
|
1031
|
-
"tool_call_id": "toolCallId",
|
|
1032
|
-
});
|
|
1033
|
-
});
|
|
1034
|
-
|
|
1035
|
-
/** @internal */
|
|
1036
|
-
export type PublicMessagePartToolResultPart$Outbound = {
|
|
1037
|
-
kind: string;
|
|
1038
|
-
tool_call_id: string;
|
|
1039
|
-
result?: any | undefined;
|
|
1040
|
-
metadata?: { [k: string]: any } | undefined;
|
|
1041
|
-
};
|
|
1042
|
-
|
|
1043
|
-
/** @internal */
|
|
1044
|
-
export const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<
|
|
1045
|
-
PublicMessagePartToolResultPart$Outbound,
|
|
1046
|
-
z.ZodTypeDef,
|
|
1047
|
-
PublicMessagePartToolResultPart
|
|
1048
|
-
> = z.object({
|
|
1049
|
-
kind: RunAgentPublicMessagePartAgentsRequestKind$outboundSchema,
|
|
1050
|
-
toolCallId: z.string(),
|
|
1051
|
-
result: z.any().optional(),
|
|
1052
|
-
metadata: z.record(z.any()).optional(),
|
|
1053
|
-
}).transform((v) => {
|
|
1054
|
-
return remap$(v, {
|
|
1055
|
-
toolCallId: "tool_call_id",
|
|
1056
|
-
});
|
|
1057
|
-
});
|
|
1058
|
-
|
|
1059
|
-
/**
|
|
1060
|
-
* @internal
|
|
1061
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1062
|
-
*/
|
|
1063
|
-
export namespace PublicMessagePartToolResultPart$ {
|
|
1064
|
-
/** @deprecated use `PublicMessagePartToolResultPart$inboundSchema` instead. */
|
|
1065
|
-
export const inboundSchema = PublicMessagePartToolResultPart$inboundSchema;
|
|
1066
|
-
/** @deprecated use `PublicMessagePartToolResultPart$outboundSchema` instead. */
|
|
1067
|
-
export const outboundSchema = PublicMessagePartToolResultPart$outboundSchema;
|
|
1068
|
-
/** @deprecated use `PublicMessagePartToolResultPart$Outbound` instead. */
|
|
1069
|
-
export type Outbound = PublicMessagePartToolResultPart$Outbound;
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
export function publicMessagePartToolResultPartToJSON(
|
|
1073
|
-
publicMessagePartToolResultPart: PublicMessagePartToolResultPart,
|
|
1074
|
-
): string {
|
|
1075
|
-
return JSON.stringify(
|
|
1076
|
-
PublicMessagePartToolResultPart$outboundSchema.parse(
|
|
1077
|
-
publicMessagePartToolResultPart,
|
|
1078
|
-
),
|
|
1079
|
-
);
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
export function publicMessagePartToolResultPartFromJSON(
|
|
1083
|
-
jsonString: string,
|
|
1084
|
-
): SafeParseResult<PublicMessagePartToolResultPart, SDKValidationError> {
|
|
1085
|
-
return safeParse(
|
|
1086
|
-
jsonString,
|
|
1087
|
-
(x) => PublicMessagePartToolResultPart$inboundSchema.parse(JSON.parse(x)),
|
|
1088
|
-
`Failed to parse 'PublicMessagePartToolResultPart' from JSON`,
|
|
1089
|
-
);
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
/** @internal */
|
|
1093
|
-
export const RunAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<
|
|
1094
|
-
typeof RunAgentPublicMessagePartAgentsKind
|
|
1095
|
-
> = z.nativeEnum(RunAgentPublicMessagePartAgentsKind);
|
|
1096
|
-
|
|
1097
|
-
/** @internal */
|
|
1098
|
-
export const RunAgentPublicMessagePartAgentsKind$outboundSchema:
|
|
1099
|
-
z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind> =
|
|
1100
|
-
RunAgentPublicMessagePartAgentsKind$inboundSchema;
|
|
1101
|
-
|
|
1102
|
-
/**
|
|
1103
|
-
* @internal
|
|
1104
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1105
|
-
*/
|
|
1106
|
-
export namespace RunAgentPublicMessagePartAgentsKind$ {
|
|
1107
|
-
/** @deprecated use `RunAgentPublicMessagePartAgentsKind$inboundSchema` instead. */
|
|
1108
|
-
export const inboundSchema =
|
|
1109
|
-
RunAgentPublicMessagePartAgentsKind$inboundSchema;
|
|
1110
|
-
/** @deprecated use `RunAgentPublicMessagePartAgentsKind$outboundSchema` instead. */
|
|
1111
|
-
export const outboundSchema =
|
|
1112
|
-
RunAgentPublicMessagePartAgentsKind$outboundSchema;
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
/** @internal */
|
|
1116
|
-
export const FileFileInURIFormat$inboundSchema: z.ZodType<
|
|
1117
|
-
FileFileInURIFormat,
|
|
1118
|
-
z.ZodTypeDef,
|
|
1119
|
-
unknown
|
|
1120
|
-
> = z.object({
|
|
1121
|
-
uri: z.string(),
|
|
1122
|
-
mimeType: z.string().optional(),
|
|
1123
|
-
name: z.string().optional(),
|
|
1124
|
-
});
|
|
1125
|
-
|
|
1126
|
-
/** @internal */
|
|
1127
|
-
export type FileFileInURIFormat$Outbound = {
|
|
1128
|
-
uri: string;
|
|
1129
|
-
mimeType?: string | undefined;
|
|
1130
|
-
name?: string | undefined;
|
|
1131
|
-
};
|
|
1132
|
-
|
|
1133
|
-
/** @internal */
|
|
1134
|
-
export const FileFileInURIFormat$outboundSchema: z.ZodType<
|
|
1135
|
-
FileFileInURIFormat$Outbound,
|
|
1136
|
-
z.ZodTypeDef,
|
|
1137
|
-
FileFileInURIFormat
|
|
1138
|
-
> = z.object({
|
|
1139
|
-
uri: z.string(),
|
|
1140
|
-
mimeType: z.string().optional(),
|
|
1141
|
-
name: z.string().optional(),
|
|
1142
|
-
});
|
|
1143
|
-
|
|
1144
|
-
/**
|
|
1145
|
-
* @internal
|
|
1146
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1147
|
-
*/
|
|
1148
|
-
export namespace FileFileInURIFormat$ {
|
|
1149
|
-
/** @deprecated use `FileFileInURIFormat$inboundSchema` instead. */
|
|
1150
|
-
export const inboundSchema = FileFileInURIFormat$inboundSchema;
|
|
1151
|
-
/** @deprecated use `FileFileInURIFormat$outboundSchema` instead. */
|
|
1152
|
-
export const outboundSchema = FileFileInURIFormat$outboundSchema;
|
|
1153
|
-
/** @deprecated use `FileFileInURIFormat$Outbound` instead. */
|
|
1154
|
-
export type Outbound = FileFileInURIFormat$Outbound;
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
export function fileFileInURIFormatToJSON(
|
|
1158
|
-
fileFileInURIFormat: FileFileInURIFormat,
|
|
1159
|
-
): string {
|
|
1160
|
-
return JSON.stringify(
|
|
1161
|
-
FileFileInURIFormat$outboundSchema.parse(fileFileInURIFormat),
|
|
1162
|
-
);
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
export function fileFileInURIFormatFromJSON(
|
|
1166
|
-
jsonString: string,
|
|
1167
|
-
): SafeParseResult<FileFileInURIFormat, SDKValidationError> {
|
|
1168
|
-
return safeParse(
|
|
1169
|
-
jsonString,
|
|
1170
|
-
(x) => FileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1171
|
-
`Failed to parse 'FileFileInURIFormat' from JSON`,
|
|
1172
|
-
);
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
/** @internal */
|
|
1176
|
-
export const FileBinaryFormat$inboundSchema: z.ZodType<
|
|
1177
|
-
FileBinaryFormat,
|
|
1178
|
-
z.ZodTypeDef,
|
|
1179
|
-
unknown
|
|
1180
|
-
> = z.object({
|
|
1181
|
-
bytes: z.string(),
|
|
1182
|
-
mimeType: z.string().optional(),
|
|
1183
|
-
name: z.string().optional(),
|
|
1184
|
-
});
|
|
1185
|
-
|
|
1186
|
-
/** @internal */
|
|
1187
|
-
export type FileBinaryFormat$Outbound = {
|
|
1188
|
-
bytes: string;
|
|
1189
|
-
mimeType?: string | undefined;
|
|
1190
|
-
name?: string | undefined;
|
|
1191
|
-
};
|
|
1192
|
-
|
|
1193
|
-
/** @internal */
|
|
1194
|
-
export const FileBinaryFormat$outboundSchema: z.ZodType<
|
|
1195
|
-
FileBinaryFormat$Outbound,
|
|
1196
|
-
z.ZodTypeDef,
|
|
1197
|
-
FileBinaryFormat
|
|
1198
|
-
> = z.object({
|
|
1199
|
-
bytes: z.string(),
|
|
1200
|
-
mimeType: z.string().optional(),
|
|
1201
|
-
name: z.string().optional(),
|
|
1202
|
-
});
|
|
1203
|
-
|
|
1204
|
-
/**
|
|
1205
|
-
* @internal
|
|
1206
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1207
|
-
*/
|
|
1208
|
-
export namespace FileBinaryFormat$ {
|
|
1209
|
-
/** @deprecated use `FileBinaryFormat$inboundSchema` instead. */
|
|
1210
|
-
export const inboundSchema = FileBinaryFormat$inboundSchema;
|
|
1211
|
-
/** @deprecated use `FileBinaryFormat$outboundSchema` instead. */
|
|
1212
|
-
export const outboundSchema = FileBinaryFormat$outboundSchema;
|
|
1213
|
-
/** @deprecated use `FileBinaryFormat$Outbound` instead. */
|
|
1214
|
-
export type Outbound = FileBinaryFormat$Outbound;
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
export function fileBinaryFormatToJSON(
|
|
1218
|
-
fileBinaryFormat: FileBinaryFormat,
|
|
1219
|
-
): string {
|
|
1220
|
-
return JSON.stringify(
|
|
1221
|
-
FileBinaryFormat$outboundSchema.parse(fileBinaryFormat),
|
|
1222
|
-
);
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
export function fileBinaryFormatFromJSON(
|
|
1226
|
-
jsonString: string,
|
|
1227
|
-
): SafeParseResult<FileBinaryFormat, SDKValidationError> {
|
|
1228
|
-
return safeParse(
|
|
1229
|
-
jsonString,
|
|
1230
|
-
(x) => FileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1231
|
-
`Failed to parse 'FileBinaryFormat' from JSON`,
|
|
1232
|
-
);
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
/** @internal */
|
|
1236
|
-
export const RunAgentPublicMessagePartFile$inboundSchema: z.ZodType<
|
|
1237
|
-
RunAgentPublicMessagePartFile,
|
|
1238
|
-
z.ZodTypeDef,
|
|
1239
|
-
unknown
|
|
1240
|
-
> = z.union([
|
|
1241
|
-
z.lazy(() => FileBinaryFormat$inboundSchema),
|
|
1242
|
-
z.lazy(() => FileFileInURIFormat$inboundSchema),
|
|
1243
|
-
]);
|
|
1244
|
-
|
|
1245
|
-
/** @internal */
|
|
1246
|
-
export type RunAgentPublicMessagePartFile$Outbound =
|
|
1247
|
-
| FileBinaryFormat$Outbound
|
|
1248
|
-
| FileFileInURIFormat$Outbound;
|
|
1249
|
-
|
|
1250
|
-
/** @internal */
|
|
1251
|
-
export const RunAgentPublicMessagePartFile$outboundSchema: z.ZodType<
|
|
1252
|
-
RunAgentPublicMessagePartFile$Outbound,
|
|
1253
|
-
z.ZodTypeDef,
|
|
1254
|
-
RunAgentPublicMessagePartFile
|
|
1255
|
-
> = z.union([
|
|
1256
|
-
z.lazy(() => FileBinaryFormat$outboundSchema),
|
|
1257
|
-
z.lazy(() => FileFileInURIFormat$outboundSchema),
|
|
1258
|
-
]);
|
|
1259
|
-
|
|
1260
|
-
/**
|
|
1261
|
-
* @internal
|
|
1262
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1263
|
-
*/
|
|
1264
|
-
export namespace RunAgentPublicMessagePartFile$ {
|
|
1265
|
-
/** @deprecated use `RunAgentPublicMessagePartFile$inboundSchema` instead. */
|
|
1266
|
-
export const inboundSchema = RunAgentPublicMessagePartFile$inboundSchema;
|
|
1267
|
-
/** @deprecated use `RunAgentPublicMessagePartFile$outboundSchema` instead. */
|
|
1268
|
-
export const outboundSchema = RunAgentPublicMessagePartFile$outboundSchema;
|
|
1269
|
-
/** @deprecated use `RunAgentPublicMessagePartFile$Outbound` instead. */
|
|
1270
|
-
export type Outbound = RunAgentPublicMessagePartFile$Outbound;
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
export function runAgentPublicMessagePartFileToJSON(
|
|
1274
|
-
runAgentPublicMessagePartFile: RunAgentPublicMessagePartFile,
|
|
1275
|
-
): string {
|
|
1276
|
-
return JSON.stringify(
|
|
1277
|
-
RunAgentPublicMessagePartFile$outboundSchema.parse(
|
|
1278
|
-
runAgentPublicMessagePartFile,
|
|
1279
|
-
),
|
|
1280
|
-
);
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
export function runAgentPublicMessagePartFileFromJSON(
|
|
1284
|
-
jsonString: string,
|
|
1285
|
-
): SafeParseResult<RunAgentPublicMessagePartFile, SDKValidationError> {
|
|
1286
|
-
return safeParse(
|
|
1287
|
-
jsonString,
|
|
1288
|
-
(x) => RunAgentPublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
|
|
1289
|
-
`Failed to parse 'RunAgentPublicMessagePartFile' from JSON`,
|
|
1290
|
-
);
|
|
1291
|
-
}
|
|
1292
|
-
|
|
1293
|
-
/** @internal */
|
|
1294
|
-
export const PublicMessagePartFilePart$inboundSchema: z.ZodType<
|
|
1295
|
-
PublicMessagePartFilePart,
|
|
1296
|
-
z.ZodTypeDef,
|
|
1297
|
-
unknown
|
|
1298
|
-
> = z.object({
|
|
1299
|
-
kind: RunAgentPublicMessagePartAgentsKind$inboundSchema,
|
|
1300
|
-
file: z.union([
|
|
1301
|
-
z.lazy(() => FileBinaryFormat$inboundSchema),
|
|
1302
|
-
z.lazy(() => FileFileInURIFormat$inboundSchema),
|
|
1303
|
-
]),
|
|
1304
|
-
metadata: z.record(z.any()).optional(),
|
|
1305
|
-
});
|
|
1306
|
-
|
|
1307
|
-
/** @internal */
|
|
1308
|
-
export type PublicMessagePartFilePart$Outbound = {
|
|
1309
|
-
kind: string;
|
|
1310
|
-
file: FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
|
|
1311
|
-
metadata?: { [k: string]: any } | undefined;
|
|
1312
|
-
};
|
|
1313
|
-
|
|
1314
|
-
/** @internal */
|
|
1315
|
-
export const PublicMessagePartFilePart$outboundSchema: z.ZodType<
|
|
1316
|
-
PublicMessagePartFilePart$Outbound,
|
|
1317
|
-
z.ZodTypeDef,
|
|
1318
|
-
PublicMessagePartFilePart
|
|
1319
|
-
> = z.object({
|
|
1320
|
-
kind: RunAgentPublicMessagePartAgentsKind$outboundSchema,
|
|
1321
|
-
file: z.union([
|
|
1322
|
-
z.lazy(() => FileBinaryFormat$outboundSchema),
|
|
1323
|
-
z.lazy(() => FileFileInURIFormat$outboundSchema),
|
|
1324
|
-
]),
|
|
1325
|
-
metadata: z.record(z.any()).optional(),
|
|
1326
|
-
});
|
|
1327
|
-
|
|
1328
|
-
/**
|
|
1329
|
-
* @internal
|
|
1330
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1331
|
-
*/
|
|
1332
|
-
export namespace PublicMessagePartFilePart$ {
|
|
1333
|
-
/** @deprecated use `PublicMessagePartFilePart$inboundSchema` instead. */
|
|
1334
|
-
export const inboundSchema = PublicMessagePartFilePart$inboundSchema;
|
|
1335
|
-
/** @deprecated use `PublicMessagePartFilePart$outboundSchema` instead. */
|
|
1336
|
-
export const outboundSchema = PublicMessagePartFilePart$outboundSchema;
|
|
1337
|
-
/** @deprecated use `PublicMessagePartFilePart$Outbound` instead. */
|
|
1338
|
-
export type Outbound = PublicMessagePartFilePart$Outbound;
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
export function publicMessagePartFilePartToJSON(
|
|
1342
|
-
publicMessagePartFilePart: PublicMessagePartFilePart,
|
|
1343
|
-
): string {
|
|
1344
|
-
return JSON.stringify(
|
|
1345
|
-
PublicMessagePartFilePart$outboundSchema.parse(publicMessagePartFilePart),
|
|
1346
|
-
);
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
export function publicMessagePartFilePartFromJSON(
|
|
1350
|
-
jsonString: string,
|
|
1351
|
-
): SafeParseResult<PublicMessagePartFilePart, SDKValidationError> {
|
|
1352
|
-
return safeParse(
|
|
1353
|
-
jsonString,
|
|
1354
|
-
(x) => PublicMessagePartFilePart$inboundSchema.parse(JSON.parse(x)),
|
|
1355
|
-
`Failed to parse 'PublicMessagePartFilePart' from JSON`,
|
|
1356
|
-
);
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
/** @internal */
|
|
1360
|
-
export const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
|
|
1361
|
-
typeof RunAgentPublicMessagePartKind
|
|
1362
|
-
> = z.nativeEnum(RunAgentPublicMessagePartKind);
|
|
1363
|
-
|
|
1364
|
-
/** @internal */
|
|
1365
|
-
export const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
|
|
1366
|
-
typeof RunAgentPublicMessagePartKind
|
|
1367
|
-
> = RunAgentPublicMessagePartKind$inboundSchema;
|
|
1368
|
-
|
|
1369
|
-
/**
|
|
1370
|
-
* @internal
|
|
1371
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1372
|
-
*/
|
|
1373
|
-
export namespace RunAgentPublicMessagePartKind$ {
|
|
1374
|
-
/** @deprecated use `RunAgentPublicMessagePartKind$inboundSchema` instead. */
|
|
1375
|
-
export const inboundSchema = RunAgentPublicMessagePartKind$inboundSchema;
|
|
1376
|
-
/** @deprecated use `RunAgentPublicMessagePartKind$outboundSchema` instead. */
|
|
1377
|
-
export const outboundSchema = RunAgentPublicMessagePartKind$outboundSchema;
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
/** @internal */
|
|
1381
|
-
export const PublicMessagePartTextPart$inboundSchema: z.ZodType<
|
|
1382
|
-
PublicMessagePartTextPart,
|
|
1383
|
-
z.ZodTypeDef,
|
|
1384
|
-
unknown
|
|
1385
|
-
> = z.object({
|
|
1386
|
-
kind: RunAgentPublicMessagePartKind$inboundSchema,
|
|
1387
|
-
text: z.string(),
|
|
1388
|
-
});
|
|
1389
|
-
|
|
1390
|
-
/** @internal */
|
|
1391
|
-
export type PublicMessagePartTextPart$Outbound = {
|
|
1392
|
-
kind: string;
|
|
1393
|
-
text: string;
|
|
1394
|
-
};
|
|
1395
|
-
|
|
1396
|
-
/** @internal */
|
|
1397
|
-
export const PublicMessagePartTextPart$outboundSchema: z.ZodType<
|
|
1398
|
-
PublicMessagePartTextPart$Outbound,
|
|
1399
|
-
z.ZodTypeDef,
|
|
1400
|
-
PublicMessagePartTextPart
|
|
1401
|
-
> = z.object({
|
|
1402
|
-
kind: RunAgentPublicMessagePartKind$outboundSchema,
|
|
1403
|
-
text: z.string(),
|
|
1404
|
-
});
|
|
1405
|
-
|
|
1406
|
-
/**
|
|
1407
|
-
* @internal
|
|
1408
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1409
|
-
*/
|
|
1410
|
-
export namespace PublicMessagePartTextPart$ {
|
|
1411
|
-
/** @deprecated use `PublicMessagePartTextPart$inboundSchema` instead. */
|
|
1412
|
-
export const inboundSchema = PublicMessagePartTextPart$inboundSchema;
|
|
1413
|
-
/** @deprecated use `PublicMessagePartTextPart$outboundSchema` instead. */
|
|
1414
|
-
export const outboundSchema = PublicMessagePartTextPart$outboundSchema;
|
|
1415
|
-
/** @deprecated use `PublicMessagePartTextPart$Outbound` instead. */
|
|
1416
|
-
export type Outbound = PublicMessagePartTextPart$Outbound;
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
export function publicMessagePartTextPartToJSON(
|
|
1420
|
-
publicMessagePartTextPart: PublicMessagePartTextPart,
|
|
1421
|
-
): string {
|
|
1422
|
-
return JSON.stringify(
|
|
1423
|
-
PublicMessagePartTextPart$outboundSchema.parse(publicMessagePartTextPart),
|
|
1424
|
-
);
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
export function publicMessagePartTextPartFromJSON(
|
|
1428
|
-
jsonString: string,
|
|
1429
|
-
): SafeParseResult<PublicMessagePartTextPart, SDKValidationError> {
|
|
1430
|
-
return safeParse(
|
|
1431
|
-
jsonString,
|
|
1432
|
-
(x) => PublicMessagePartTextPart$inboundSchema.parse(JSON.parse(x)),
|
|
1433
|
-
`Failed to parse 'PublicMessagePartTextPart' from JSON`,
|
|
1434
|
-
);
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
/** @internal */
|
|
1438
|
-
export const RunAgentPublicMessagePart$inboundSchema: z.ZodType<
|
|
1439
|
-
RunAgentPublicMessagePart,
|
|
1440
|
-
z.ZodTypeDef,
|
|
1441
|
-
unknown
|
|
1442
|
-
> = z.union([
|
|
1443
|
-
z.lazy(() => PublicMessagePartTextPart$inboundSchema),
|
|
1444
|
-
z.lazy(() => PublicMessagePartFilePart$inboundSchema),
|
|
1445
|
-
z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
|
|
1446
|
-
]);
|
|
1447
|
-
|
|
1448
|
-
/** @internal */
|
|
1449
|
-
export type RunAgentPublicMessagePart$Outbound =
|
|
1450
|
-
| PublicMessagePartTextPart$Outbound
|
|
1451
|
-
| PublicMessagePartFilePart$Outbound
|
|
1452
|
-
| PublicMessagePartToolResultPart$Outbound;
|
|
1453
|
-
|
|
1454
|
-
/** @internal */
|
|
1455
|
-
export const RunAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
1456
|
-
RunAgentPublicMessagePart$Outbound,
|
|
1457
|
-
z.ZodTypeDef,
|
|
1458
|
-
RunAgentPublicMessagePart
|
|
1459
|
-
> = z.union([
|
|
1460
|
-
z.lazy(() => PublicMessagePartTextPart$outboundSchema),
|
|
1461
|
-
z.lazy(() => PublicMessagePartFilePart$outboundSchema),
|
|
1462
|
-
z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
|
|
1463
|
-
]);
|
|
1464
|
-
|
|
1465
|
-
/**
|
|
1466
|
-
* @internal
|
|
1467
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1468
|
-
*/
|
|
1469
|
-
export namespace RunAgentPublicMessagePart$ {
|
|
1470
|
-
/** @deprecated use `RunAgentPublicMessagePart$inboundSchema` instead. */
|
|
1471
|
-
export const inboundSchema = RunAgentPublicMessagePart$inboundSchema;
|
|
1472
|
-
/** @deprecated use `RunAgentPublicMessagePart$outboundSchema` instead. */
|
|
1473
|
-
export const outboundSchema = RunAgentPublicMessagePart$outboundSchema;
|
|
1474
|
-
/** @deprecated use `RunAgentPublicMessagePart$Outbound` instead. */
|
|
1475
|
-
export type Outbound = RunAgentPublicMessagePart$Outbound;
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
export function runAgentPublicMessagePartToJSON(
|
|
1479
|
-
runAgentPublicMessagePart: RunAgentPublicMessagePart,
|
|
1480
|
-
): string {
|
|
1481
|
-
return JSON.stringify(
|
|
1482
|
-
RunAgentPublicMessagePart$outboundSchema.parse(runAgentPublicMessagePart),
|
|
1483
|
-
);
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
export function runAgentPublicMessagePartFromJSON(
|
|
1487
|
-
jsonString: string,
|
|
1488
|
-
): SafeParseResult<RunAgentPublicMessagePart, SDKValidationError> {
|
|
1489
|
-
return safeParse(
|
|
1490
|
-
jsonString,
|
|
1491
|
-
(x) => RunAgentPublicMessagePart$inboundSchema.parse(JSON.parse(x)),
|
|
1492
|
-
`Failed to parse 'RunAgentPublicMessagePart' from JSON`,
|
|
1493
|
-
);
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
/** @internal */
|
|
1497
|
-
export const RunAgentMessage$inboundSchema: z.ZodType<
|
|
1498
|
-
RunAgentMessage,
|
|
1499
|
-
z.ZodTypeDef,
|
|
1500
|
-
unknown
|
|
1501
|
-
> = z.object({
|
|
1502
|
-
messageId: z.string().optional(),
|
|
1503
|
-
role: z.union([
|
|
1504
|
-
RunAgentRoleUserMessage$inboundSchema,
|
|
1505
|
-
RunAgentRoleToolMessage$inboundSchema,
|
|
1506
|
-
]),
|
|
1507
|
-
parts: z.array(
|
|
1508
|
-
z.union([
|
|
1509
|
-
z.lazy(() => PublicMessagePartTextPart$inboundSchema),
|
|
1510
|
-
z.lazy(() => PublicMessagePartFilePart$inboundSchema),
|
|
1511
|
-
z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
|
|
1512
|
-
]),
|
|
1513
|
-
),
|
|
1514
|
-
});
|
|
1515
|
-
|
|
1516
|
-
/** @internal */
|
|
1517
|
-
export type RunAgentMessage$Outbound = {
|
|
1518
|
-
messageId?: string | undefined;
|
|
1519
|
-
role: string | string;
|
|
1520
|
-
parts: Array<
|
|
1521
|
-
| PublicMessagePartTextPart$Outbound
|
|
1522
|
-
| PublicMessagePartFilePart$Outbound
|
|
1523
|
-
| PublicMessagePartToolResultPart$Outbound
|
|
1524
|
-
>;
|
|
1525
|
-
};
|
|
1526
|
-
|
|
1527
|
-
/** @internal */
|
|
1528
|
-
export const RunAgentMessage$outboundSchema: z.ZodType<
|
|
1529
|
-
RunAgentMessage$Outbound,
|
|
1530
|
-
z.ZodTypeDef,
|
|
1531
|
-
RunAgentMessage
|
|
1532
|
-
> = z.object({
|
|
1533
|
-
messageId: z.string().optional(),
|
|
1534
|
-
role: z.union([
|
|
1535
|
-
RunAgentRoleUserMessage$outboundSchema,
|
|
1536
|
-
RunAgentRoleToolMessage$outboundSchema,
|
|
1537
|
-
]),
|
|
1538
|
-
parts: z.array(
|
|
1539
|
-
z.union([
|
|
1540
|
-
z.lazy(() => PublicMessagePartTextPart$outboundSchema),
|
|
1541
|
-
z.lazy(() => PublicMessagePartFilePart$outboundSchema),
|
|
1542
|
-
z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
|
|
1543
|
-
]),
|
|
1544
|
-
),
|
|
1545
|
-
});
|
|
1546
|
-
|
|
1547
|
-
/**
|
|
1548
|
-
* @internal
|
|
1549
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1550
|
-
*/
|
|
1551
|
-
export namespace RunAgentMessage$ {
|
|
1552
|
-
/** @deprecated use `RunAgentMessage$inboundSchema` instead. */
|
|
1553
|
-
export const inboundSchema = RunAgentMessage$inboundSchema;
|
|
1554
|
-
/** @deprecated use `RunAgentMessage$outboundSchema` instead. */
|
|
1555
|
-
export const outboundSchema = RunAgentMessage$outboundSchema;
|
|
1556
|
-
/** @deprecated use `RunAgentMessage$Outbound` instead. */
|
|
1557
|
-
export type Outbound = RunAgentMessage$Outbound;
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
export function runAgentMessageToJSON(
|
|
1561
|
-
runAgentMessage: RunAgentMessage,
|
|
1562
|
-
): string {
|
|
1563
|
-
return JSON.stringify(RunAgentMessage$outboundSchema.parse(runAgentMessage));
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
|
-
export function runAgentMessageFromJSON(
|
|
1567
|
-
jsonString: string,
|
|
1568
|
-
): SafeParseResult<RunAgentMessage, SDKValidationError> {
|
|
1569
|
-
return safeParse(
|
|
1570
|
-
jsonString,
|
|
1571
|
-
(x) => RunAgentMessage$inboundSchema.parse(JSON.parse(x)),
|
|
1572
|
-
`Failed to parse 'RunAgentMessage' from JSON`,
|
|
1573
|
-
);
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
|
-
/** @internal */
|
|
1577
|
-
export const RunAgentContact$inboundSchema: z.ZodType<
|
|
1578
|
-
RunAgentContact,
|
|
1579
|
-
z.ZodTypeDef,
|
|
1580
|
-
unknown
|
|
1581
|
-
> = z.object({
|
|
1582
|
-
id: z.string(),
|
|
1583
|
-
display_name: z.string().optional(),
|
|
1584
|
-
email: z.string().optional(),
|
|
1585
|
-
metadata: z.array(z.record(z.any())).optional(),
|
|
1586
|
-
logo_url: z.string().optional(),
|
|
1587
|
-
tags: z.array(z.string()).optional(),
|
|
1588
|
-
}).transform((v) => {
|
|
1589
|
-
return remap$(v, {
|
|
1590
|
-
"display_name": "displayName",
|
|
1591
|
-
"logo_url": "logoUrl",
|
|
1592
|
-
});
|
|
1593
|
-
});
|
|
1594
|
-
|
|
1595
|
-
/** @internal */
|
|
1596
|
-
export type RunAgentContact$Outbound = {
|
|
1597
|
-
id: string;
|
|
1598
|
-
display_name?: string | undefined;
|
|
1599
|
-
email?: string | undefined;
|
|
1600
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
1601
|
-
logo_url?: string | undefined;
|
|
1602
|
-
tags?: Array<string> | undefined;
|
|
1603
|
-
};
|
|
1604
|
-
|
|
1605
|
-
/** @internal */
|
|
1606
|
-
export const RunAgentContact$outboundSchema: z.ZodType<
|
|
1607
|
-
RunAgentContact$Outbound,
|
|
1608
|
-
z.ZodTypeDef,
|
|
1609
|
-
RunAgentContact
|
|
1610
|
-
> = z.object({
|
|
1611
|
-
id: z.string(),
|
|
1612
|
-
displayName: z.string().optional(),
|
|
1613
|
-
email: z.string().optional(),
|
|
1614
|
-
metadata: z.array(z.record(z.any())).optional(),
|
|
1615
|
-
logoUrl: z.string().optional(),
|
|
1616
|
-
tags: z.array(z.string()).optional(),
|
|
1617
|
-
}).transform((v) => {
|
|
1618
|
-
return remap$(v, {
|
|
1619
|
-
displayName: "display_name",
|
|
1620
|
-
logoUrl: "logo_url",
|
|
1621
|
-
});
|
|
1622
|
-
});
|
|
1623
|
-
|
|
1624
|
-
/**
|
|
1625
|
-
* @internal
|
|
1626
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1627
|
-
*/
|
|
1628
|
-
export namespace RunAgentContact$ {
|
|
1629
|
-
/** @deprecated use `RunAgentContact$inboundSchema` instead. */
|
|
1630
|
-
export const inboundSchema = RunAgentContact$inboundSchema;
|
|
1631
|
-
/** @deprecated use `RunAgentContact$outboundSchema` instead. */
|
|
1632
|
-
export const outboundSchema = RunAgentContact$outboundSchema;
|
|
1633
|
-
/** @deprecated use `RunAgentContact$Outbound` instead. */
|
|
1634
|
-
export type Outbound = RunAgentContact$Outbound;
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
export function runAgentContactToJSON(
|
|
1638
|
-
runAgentContact: RunAgentContact,
|
|
1639
|
-
): string {
|
|
1640
|
-
return JSON.stringify(RunAgentContact$outboundSchema.parse(runAgentContact));
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
export function runAgentContactFromJSON(
|
|
1644
|
-
jsonString: string,
|
|
1645
|
-
): SafeParseResult<RunAgentContact, SDKValidationError> {
|
|
1646
|
-
return safeParse(
|
|
1647
|
-
jsonString,
|
|
1648
|
-
(x) => RunAgentContact$inboundSchema.parse(JSON.parse(x)),
|
|
1649
|
-
`Failed to parse 'RunAgentContact' from JSON`,
|
|
1650
|
-
);
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
/** @internal */
|
|
1654
|
-
export const RunAgentThread$inboundSchema: z.ZodType<
|
|
1655
|
-
RunAgentThread,
|
|
1656
|
-
z.ZodTypeDef,
|
|
1657
|
-
unknown
|
|
1658
|
-
> = z.object({
|
|
1659
|
-
id: z.string(),
|
|
1660
|
-
tags: z.array(z.string()).optional(),
|
|
1661
|
-
});
|
|
1662
|
-
|
|
1663
|
-
/** @internal */
|
|
1664
|
-
export type RunAgentThread$Outbound = {
|
|
1665
|
-
id: string;
|
|
1666
|
-
tags?: Array<string> | undefined;
|
|
1667
|
-
};
|
|
1668
|
-
|
|
1669
|
-
/** @internal */
|
|
1670
|
-
export const RunAgentThread$outboundSchema: z.ZodType<
|
|
1671
|
-
RunAgentThread$Outbound,
|
|
1672
|
-
z.ZodTypeDef,
|
|
1673
|
-
RunAgentThread
|
|
1674
|
-
> = z.object({
|
|
1675
|
-
id: z.string(),
|
|
1676
|
-
tags: z.array(z.string()).optional(),
|
|
1677
|
-
});
|
|
1678
|
-
|
|
1679
|
-
/**
|
|
1680
|
-
* @internal
|
|
1681
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1682
|
-
*/
|
|
1683
|
-
export namespace RunAgentThread$ {
|
|
1684
|
-
/** @deprecated use `RunAgentThread$inboundSchema` instead. */
|
|
1685
|
-
export const inboundSchema = RunAgentThread$inboundSchema;
|
|
1686
|
-
/** @deprecated use `RunAgentThread$outboundSchema` instead. */
|
|
1687
|
-
export const outboundSchema = RunAgentThread$outboundSchema;
|
|
1688
|
-
/** @deprecated use `RunAgentThread$Outbound` instead. */
|
|
1689
|
-
export type Outbound = RunAgentThread$Outbound;
|
|
1690
|
-
}
|
|
1691
|
-
|
|
1692
|
-
export function runAgentThreadToJSON(runAgentThread: RunAgentThread): string {
|
|
1693
|
-
return JSON.stringify(RunAgentThread$outboundSchema.parse(runAgentThread));
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
|
-
export function runAgentThreadFromJSON(
|
|
1697
|
-
jsonString: string,
|
|
1698
|
-
): SafeParseResult<RunAgentThread, SDKValidationError> {
|
|
1699
|
-
return safeParse(
|
|
1700
|
-
jsonString,
|
|
1701
|
-
(x) => RunAgentThread$inboundSchema.parse(JSON.parse(x)),
|
|
1702
|
-
`Failed to parse 'RunAgentThread' from JSON`,
|
|
1703
|
-
);
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
/** @internal */
|
|
1707
|
-
export const RunAgentMemory$inboundSchema: z.ZodType<
|
|
1708
|
-
RunAgentMemory,
|
|
1709
|
-
z.ZodTypeDef,
|
|
1710
|
-
unknown
|
|
1711
|
-
> = z.object({
|
|
1712
|
-
entity_id: z.string(),
|
|
1713
|
-
}).transform((v) => {
|
|
1714
|
-
return remap$(v, {
|
|
1715
|
-
"entity_id": "entityId",
|
|
1716
|
-
});
|
|
1717
|
-
});
|
|
1718
|
-
|
|
1719
|
-
/** @internal */
|
|
1720
|
-
export type RunAgentMemory$Outbound = {
|
|
1721
|
-
entity_id: string;
|
|
1722
|
-
};
|
|
1723
|
-
|
|
1724
|
-
/** @internal */
|
|
1725
|
-
export const RunAgentMemory$outboundSchema: z.ZodType<
|
|
1726
|
-
RunAgentMemory$Outbound,
|
|
1727
|
-
z.ZodTypeDef,
|
|
1728
|
-
RunAgentMemory
|
|
1729
|
-
> = z.object({
|
|
1730
|
-
entityId: z.string(),
|
|
1731
|
-
}).transform((v) => {
|
|
1732
|
-
return remap$(v, {
|
|
1733
|
-
entityId: "entity_id",
|
|
1734
|
-
});
|
|
1735
|
-
});
|
|
1736
|
-
|
|
1737
|
-
/**
|
|
1738
|
-
* @internal
|
|
1739
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1740
|
-
*/
|
|
1741
|
-
export namespace RunAgentMemory$ {
|
|
1742
|
-
/** @deprecated use `RunAgentMemory$inboundSchema` instead. */
|
|
1743
|
-
export const inboundSchema = RunAgentMemory$inboundSchema;
|
|
1744
|
-
/** @deprecated use `RunAgentMemory$outboundSchema` instead. */
|
|
1745
|
-
export const outboundSchema = RunAgentMemory$outboundSchema;
|
|
1746
|
-
/** @deprecated use `RunAgentMemory$Outbound` instead. */
|
|
1747
|
-
export type Outbound = RunAgentMemory$Outbound;
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
|
-
export function runAgentMemoryToJSON(runAgentMemory: RunAgentMemory): string {
|
|
1751
|
-
return JSON.stringify(RunAgentMemory$outboundSchema.parse(runAgentMemory));
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
export function runAgentMemoryFromJSON(
|
|
1755
|
-
jsonString: string,
|
|
1756
|
-
): SafeParseResult<RunAgentMemory, SDKValidationError> {
|
|
1757
|
-
return safeParse(
|
|
1758
|
-
jsonString,
|
|
1759
|
-
(x) => RunAgentMemory$inboundSchema.parse(JSON.parse(x)),
|
|
1760
|
-
`Failed to parse 'RunAgentMemory' from JSON`,
|
|
1761
|
-
);
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
|
-
/** @internal */
|
|
1765
|
-
export const RunAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
1766
|
-
RunAgentKnowledgeBases,
|
|
1767
|
-
z.ZodTypeDef,
|
|
1768
|
-
unknown
|
|
1769
|
-
> = z.object({
|
|
1770
|
-
knowledge_id: z.string(),
|
|
1771
|
-
}).transform((v) => {
|
|
1772
|
-
return remap$(v, {
|
|
1773
|
-
"knowledge_id": "knowledgeId",
|
|
1774
|
-
});
|
|
1775
|
-
});
|
|
1776
|
-
|
|
1777
|
-
/** @internal */
|
|
1778
|
-
export type RunAgentKnowledgeBases$Outbound = {
|
|
1779
|
-
knowledge_id: string;
|
|
1780
|
-
};
|
|
1781
|
-
|
|
1782
|
-
/** @internal */
|
|
1783
|
-
export const RunAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
1784
|
-
RunAgentKnowledgeBases$Outbound,
|
|
1785
|
-
z.ZodTypeDef,
|
|
1786
|
-
RunAgentKnowledgeBases
|
|
1787
|
-
> = z.object({
|
|
1788
|
-
knowledgeId: z.string(),
|
|
1789
|
-
}).transform((v) => {
|
|
1790
|
-
return remap$(v, {
|
|
1791
|
-
knowledgeId: "knowledge_id",
|
|
1792
|
-
});
|
|
1793
|
-
});
|
|
1794
|
-
|
|
1795
|
-
/**
|
|
1796
|
-
* @internal
|
|
1797
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1798
|
-
*/
|
|
1799
|
-
export namespace RunAgentKnowledgeBases$ {
|
|
1800
|
-
/** @deprecated use `RunAgentKnowledgeBases$inboundSchema` instead. */
|
|
1801
|
-
export const inboundSchema = RunAgentKnowledgeBases$inboundSchema;
|
|
1802
|
-
/** @deprecated use `RunAgentKnowledgeBases$outboundSchema` instead. */
|
|
1803
|
-
export const outboundSchema = RunAgentKnowledgeBases$outboundSchema;
|
|
1804
|
-
/** @deprecated use `RunAgentKnowledgeBases$Outbound` instead. */
|
|
1805
|
-
export type Outbound = RunAgentKnowledgeBases$Outbound;
|
|
1806
|
-
}
|
|
1807
|
-
|
|
1808
|
-
export function runAgentKnowledgeBasesToJSON(
|
|
1809
|
-
runAgentKnowledgeBases: RunAgentKnowledgeBases,
|
|
1810
|
-
): string {
|
|
1811
|
-
return JSON.stringify(
|
|
1812
|
-
RunAgentKnowledgeBases$outboundSchema.parse(runAgentKnowledgeBases),
|
|
1813
|
-
);
|
|
1814
|
-
}
|
|
1815
|
-
|
|
1816
|
-
export function runAgentKnowledgeBasesFromJSON(
|
|
1817
|
-
jsonString: string,
|
|
1818
|
-
): SafeParseResult<RunAgentKnowledgeBases, SDKValidationError> {
|
|
1819
|
-
return safeParse(
|
|
1820
|
-
jsonString,
|
|
1821
|
-
(x) => RunAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1822
|
-
`Failed to parse 'RunAgentKnowledgeBases' from JSON`,
|
|
1823
|
-
);
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
/** @internal */
|
|
1827
|
-
export const RunAgentTeamOfAgents$inboundSchema: z.ZodType<
|
|
1828
|
-
RunAgentTeamOfAgents,
|
|
1829
|
-
z.ZodTypeDef,
|
|
1830
|
-
unknown
|
|
1831
|
-
> = z.object({
|
|
1832
|
-
key: z.string(),
|
|
1833
|
-
role: z.string().optional(),
|
|
1834
|
-
});
|
|
1835
|
-
|
|
1836
|
-
/** @internal */
|
|
1837
|
-
export type RunAgentTeamOfAgents$Outbound = {
|
|
1838
|
-
key: string;
|
|
1839
|
-
role?: string | undefined;
|
|
1840
|
-
};
|
|
1841
|
-
|
|
1842
|
-
/** @internal */
|
|
1843
|
-
export const RunAgentTeamOfAgents$outboundSchema: z.ZodType<
|
|
1844
|
-
RunAgentTeamOfAgents$Outbound,
|
|
1845
|
-
z.ZodTypeDef,
|
|
1846
|
-
RunAgentTeamOfAgents
|
|
1847
|
-
> = z.object({
|
|
1848
|
-
key: z.string(),
|
|
1849
|
-
role: z.string().optional(),
|
|
1850
|
-
});
|
|
1851
|
-
|
|
1852
|
-
/**
|
|
1853
|
-
* @internal
|
|
1854
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1855
|
-
*/
|
|
1856
|
-
export namespace RunAgentTeamOfAgents$ {
|
|
1857
|
-
/** @deprecated use `RunAgentTeamOfAgents$inboundSchema` instead. */
|
|
1858
|
-
export const inboundSchema = RunAgentTeamOfAgents$inboundSchema;
|
|
1859
|
-
/** @deprecated use `RunAgentTeamOfAgents$outboundSchema` instead. */
|
|
1860
|
-
export const outboundSchema = RunAgentTeamOfAgents$outboundSchema;
|
|
1861
|
-
/** @deprecated use `RunAgentTeamOfAgents$Outbound` instead. */
|
|
1862
|
-
export type Outbound = RunAgentTeamOfAgents$Outbound;
|
|
1863
|
-
}
|
|
1864
|
-
|
|
1865
|
-
export function runAgentTeamOfAgentsToJSON(
|
|
1866
|
-
runAgentTeamOfAgents: RunAgentTeamOfAgents,
|
|
1867
|
-
): string {
|
|
1868
|
-
return JSON.stringify(
|
|
1869
|
-
RunAgentTeamOfAgents$outboundSchema.parse(runAgentTeamOfAgents),
|
|
1870
|
-
);
|
|
1871
|
-
}
|
|
1872
|
-
|
|
1873
|
-
export function runAgentTeamOfAgentsFromJSON(
|
|
1874
|
-
jsonString: string,
|
|
1875
|
-
): SafeParseResult<RunAgentTeamOfAgents, SDKValidationError> {
|
|
1876
|
-
return safeParse(
|
|
1877
|
-
jsonString,
|
|
1878
|
-
(x) => RunAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
1879
|
-
`Failed to parse 'RunAgentTeamOfAgents' from JSON`,
|
|
1880
|
-
);
|
|
1881
|
-
}
|
|
1882
|
-
|
|
1883
|
-
/** @internal */
|
|
1884
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
|
|
1885
|
-
z.ZodNativeEnum<
|
|
1886
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
1887
|
-
> = z.nativeEnum(
|
|
1888
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type,
|
|
1889
|
-
);
|
|
1890
|
-
|
|
1891
|
-
/** @internal */
|
|
1892
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
|
|
1893
|
-
z.ZodNativeEnum<
|
|
1894
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
1895
|
-
> =
|
|
1896
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
1897
|
-
|
|
1898
|
-
/**
|
|
1899
|
-
* @internal
|
|
1900
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1901
|
-
*/
|
|
1902
|
-
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ {
|
|
1903
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
|
|
1904
|
-
export const inboundSchema =
|
|
1905
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
1906
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
|
|
1907
|
-
export const outboundSchema =
|
|
1908
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
/** @internal */
|
|
1912
|
-
export const AgentToolInputRunFunction$inboundSchema: z.ZodType<
|
|
1913
|
-
AgentToolInputRunFunction,
|
|
1914
|
-
z.ZodTypeDef,
|
|
1915
|
-
unknown
|
|
1916
|
-
> = z.object({
|
|
1917
|
-
name: z.string(),
|
|
1918
|
-
description: z.string().optional(),
|
|
1919
|
-
strict: z.boolean().optional(),
|
|
1920
|
-
parameters: z.record(z.any()).optional(),
|
|
1921
|
-
});
|
|
1922
|
-
|
|
1923
|
-
/** @internal */
|
|
1924
|
-
export type AgentToolInputRunFunction$Outbound = {
|
|
1925
|
-
name: string;
|
|
1926
|
-
description?: string | undefined;
|
|
1927
|
-
strict?: boolean | undefined;
|
|
1928
|
-
parameters?: { [k: string]: any } | undefined;
|
|
1929
|
-
};
|
|
1930
|
-
|
|
1931
|
-
/** @internal */
|
|
1932
|
-
export const AgentToolInputRunFunction$outboundSchema: z.ZodType<
|
|
1933
|
-
AgentToolInputRunFunction$Outbound,
|
|
1934
|
-
z.ZodTypeDef,
|
|
1935
|
-
AgentToolInputRunFunction
|
|
1936
|
-
> = z.object({
|
|
1937
|
-
name: z.string(),
|
|
1938
|
-
description: z.string().optional(),
|
|
1939
|
-
strict: z.boolean().optional(),
|
|
1940
|
-
parameters: z.record(z.any()).optional(),
|
|
1941
|
-
});
|
|
1942
|
-
|
|
1943
|
-
/**
|
|
1944
|
-
* @internal
|
|
1945
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1946
|
-
*/
|
|
1947
|
-
export namespace AgentToolInputRunFunction$ {
|
|
1948
|
-
/** @deprecated use `AgentToolInputRunFunction$inboundSchema` instead. */
|
|
1949
|
-
export const inboundSchema = AgentToolInputRunFunction$inboundSchema;
|
|
1950
|
-
/** @deprecated use `AgentToolInputRunFunction$outboundSchema` instead. */
|
|
1951
|
-
export const outboundSchema = AgentToolInputRunFunction$outboundSchema;
|
|
1952
|
-
/** @deprecated use `AgentToolInputRunFunction$Outbound` instead. */
|
|
1953
|
-
export type Outbound = AgentToolInputRunFunction$Outbound;
|
|
1954
|
-
}
|
|
1955
|
-
|
|
1956
|
-
export function agentToolInputRunFunctionToJSON(
|
|
1957
|
-
agentToolInputRunFunction: AgentToolInputRunFunction,
|
|
1958
|
-
): string {
|
|
1959
|
-
return JSON.stringify(
|
|
1960
|
-
AgentToolInputRunFunction$outboundSchema.parse(agentToolInputRunFunction),
|
|
1961
|
-
);
|
|
1962
|
-
}
|
|
1963
|
-
|
|
1964
|
-
export function agentToolInputRunFunctionFromJSON(
|
|
1965
|
-
jsonString: string,
|
|
1966
|
-
): SafeParseResult<AgentToolInputRunFunction, SDKValidationError> {
|
|
1967
|
-
return safeParse(
|
|
1968
|
-
jsonString,
|
|
1969
|
-
(x) => AgentToolInputRunFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1970
|
-
`Failed to parse 'AgentToolInputRunFunction' from JSON`,
|
|
1971
|
-
);
|
|
1972
|
-
}
|
|
1973
|
-
|
|
1974
|
-
/** @internal */
|
|
1975
|
-
export const FunctionToolRun$inboundSchema: z.ZodType<
|
|
1976
|
-
FunctionToolRun,
|
|
1977
|
-
z.ZodTypeDef,
|
|
1978
|
-
unknown
|
|
1979
|
-
> = z.object({
|
|
1980
|
-
type:
|
|
1981
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
|
|
1982
|
-
key: z.string(),
|
|
1983
|
-
_id: z.string().optional(),
|
|
1984
|
-
display_name: z.string().optional(),
|
|
1985
|
-
description: z.string().optional(),
|
|
1986
|
-
function: z.lazy(() => AgentToolInputRunFunction$inboundSchema),
|
|
1987
|
-
requires_approval: z.boolean().default(false),
|
|
1988
|
-
}).transform((v) => {
|
|
1989
|
-
return remap$(v, {
|
|
1990
|
-
"_id": "id",
|
|
1991
|
-
"display_name": "displayName",
|
|
1992
|
-
"requires_approval": "requiresApproval",
|
|
1993
|
-
});
|
|
1994
|
-
});
|
|
1995
|
-
|
|
1996
|
-
/** @internal */
|
|
1997
|
-
export type FunctionToolRun$Outbound = {
|
|
1998
|
-
type: string;
|
|
1999
|
-
key: string;
|
|
2000
|
-
_id?: string | undefined;
|
|
2001
|
-
display_name?: string | undefined;
|
|
2002
|
-
description?: string | undefined;
|
|
2003
|
-
function: AgentToolInputRunFunction$Outbound;
|
|
2004
|
-
requires_approval: boolean;
|
|
2005
|
-
};
|
|
2006
|
-
|
|
2007
|
-
/** @internal */
|
|
2008
|
-
export const FunctionToolRun$outboundSchema: z.ZodType<
|
|
2009
|
-
FunctionToolRun$Outbound,
|
|
2010
|
-
z.ZodTypeDef,
|
|
2011
|
-
FunctionToolRun
|
|
2012
|
-
> = z.object({
|
|
2013
|
-
type:
|
|
2014
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
|
|
2015
|
-
key: z.string(),
|
|
2016
|
-
id: z.string().optional(),
|
|
2017
|
-
displayName: z.string().optional(),
|
|
2018
|
-
description: z.string().optional(),
|
|
2019
|
-
function: z.lazy(() => AgentToolInputRunFunction$outboundSchema),
|
|
2020
|
-
requiresApproval: z.boolean().default(false),
|
|
2021
|
-
}).transform((v) => {
|
|
2022
|
-
return remap$(v, {
|
|
2023
|
-
id: "_id",
|
|
2024
|
-
displayName: "display_name",
|
|
2025
|
-
requiresApproval: "requires_approval",
|
|
2026
|
-
});
|
|
2027
|
-
});
|
|
2028
|
-
|
|
2029
|
-
/**
|
|
2030
|
-
* @internal
|
|
2031
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2032
|
-
*/
|
|
2033
|
-
export namespace FunctionToolRun$ {
|
|
2034
|
-
/** @deprecated use `FunctionToolRun$inboundSchema` instead. */
|
|
2035
|
-
export const inboundSchema = FunctionToolRun$inboundSchema;
|
|
2036
|
-
/** @deprecated use `FunctionToolRun$outboundSchema` instead. */
|
|
2037
|
-
export const outboundSchema = FunctionToolRun$outboundSchema;
|
|
2038
|
-
/** @deprecated use `FunctionToolRun$Outbound` instead. */
|
|
2039
|
-
export type Outbound = FunctionToolRun$Outbound;
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
export function functionToolRunToJSON(
|
|
2043
|
-
functionToolRun: FunctionToolRun,
|
|
2044
|
-
): string {
|
|
2045
|
-
return JSON.stringify(FunctionToolRun$outboundSchema.parse(functionToolRun));
|
|
2046
|
-
}
|
|
2047
|
-
|
|
2048
|
-
export function functionToolRunFromJSON(
|
|
2049
|
-
jsonString: string,
|
|
2050
|
-
): SafeParseResult<FunctionToolRun, SDKValidationError> {
|
|
2051
|
-
return safeParse(
|
|
2052
|
-
jsonString,
|
|
2053
|
-
(x) => FunctionToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2054
|
-
`Failed to parse 'FunctionToolRun' from JSON`,
|
|
2055
|
-
);
|
|
2056
|
-
}
|
|
2057
|
-
|
|
2058
|
-
/** @internal */
|
|
2059
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
|
|
2060
|
-
z.ZodNativeEnum<
|
|
2061
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
2062
|
-
> = z.nativeEnum(
|
|
2063
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type,
|
|
2064
|
-
);
|
|
2065
|
-
|
|
2066
|
-
/** @internal */
|
|
2067
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
|
|
2068
|
-
z.ZodNativeEnum<
|
|
2069
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
2070
|
-
> =
|
|
2071
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
2072
|
-
|
|
2073
|
-
/**
|
|
2074
|
-
* @internal
|
|
2075
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2076
|
-
*/
|
|
2077
|
-
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ {
|
|
2078
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
|
|
2079
|
-
export const inboundSchema =
|
|
2080
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
2081
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
|
|
2082
|
-
export const outboundSchema =
|
|
2083
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
|
|
2084
|
-
}
|
|
2085
|
-
|
|
2086
|
-
/** @internal */
|
|
2087
|
-
export const Language$inboundSchema: z.ZodNativeEnum<typeof Language> = z
|
|
2088
|
-
.nativeEnum(Language);
|
|
2089
|
-
|
|
2090
|
-
/** @internal */
|
|
2091
|
-
export const Language$outboundSchema: z.ZodNativeEnum<typeof Language> =
|
|
2092
|
-
Language$inboundSchema;
|
|
2093
|
-
|
|
2094
|
-
/**
|
|
2095
|
-
* @internal
|
|
2096
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2097
|
-
*/
|
|
2098
|
-
export namespace Language$ {
|
|
2099
|
-
/** @deprecated use `Language$inboundSchema` instead. */
|
|
2100
|
-
export const inboundSchema = Language$inboundSchema;
|
|
2101
|
-
/** @deprecated use `Language$outboundSchema` instead. */
|
|
2102
|
-
export const outboundSchema = Language$outboundSchema;
|
|
2103
|
-
}
|
|
2104
|
-
|
|
2105
|
-
/** @internal */
|
|
2106
|
-
export const CodeTool$inboundSchema: z.ZodType<
|
|
2107
|
-
CodeTool,
|
|
2108
|
-
z.ZodTypeDef,
|
|
2109
|
-
unknown
|
|
2110
|
-
> = z.object({
|
|
2111
|
-
parameters: z.record(z.any()).optional(),
|
|
2112
|
-
language: Language$inboundSchema,
|
|
2113
|
-
code: z.string(),
|
|
2114
|
-
});
|
|
2115
|
-
|
|
2116
|
-
/** @internal */
|
|
2117
|
-
export type CodeTool$Outbound = {
|
|
2118
|
-
parameters?: { [k: string]: any } | undefined;
|
|
2119
|
-
language: string;
|
|
2120
|
-
code: string;
|
|
2121
|
-
};
|
|
2122
|
-
|
|
2123
|
-
/** @internal */
|
|
2124
|
-
export const CodeTool$outboundSchema: z.ZodType<
|
|
2125
|
-
CodeTool$Outbound,
|
|
2126
|
-
z.ZodTypeDef,
|
|
2127
|
-
CodeTool
|
|
2128
|
-
> = z.object({
|
|
2129
|
-
parameters: z.record(z.any()).optional(),
|
|
2130
|
-
language: Language$outboundSchema,
|
|
2131
|
-
code: z.string(),
|
|
2132
|
-
});
|
|
2133
|
-
|
|
2134
|
-
/**
|
|
2135
|
-
* @internal
|
|
2136
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2137
|
-
*/
|
|
2138
|
-
export namespace CodeTool$ {
|
|
2139
|
-
/** @deprecated use `CodeTool$inboundSchema` instead. */
|
|
2140
|
-
export const inboundSchema = CodeTool$inboundSchema;
|
|
2141
|
-
/** @deprecated use `CodeTool$outboundSchema` instead. */
|
|
2142
|
-
export const outboundSchema = CodeTool$outboundSchema;
|
|
2143
|
-
/** @deprecated use `CodeTool$Outbound` instead. */
|
|
2144
|
-
export type Outbound = CodeTool$Outbound;
|
|
2145
|
-
}
|
|
2146
|
-
|
|
2147
|
-
export function codeToolToJSON(codeTool: CodeTool): string {
|
|
2148
|
-
return JSON.stringify(CodeTool$outboundSchema.parse(codeTool));
|
|
2149
|
-
}
|
|
2150
|
-
|
|
2151
|
-
export function codeToolFromJSON(
|
|
2152
|
-
jsonString: string,
|
|
2153
|
-
): SafeParseResult<CodeTool, SDKValidationError> {
|
|
2154
|
-
return safeParse(
|
|
2155
|
-
jsonString,
|
|
2156
|
-
(x) => CodeTool$inboundSchema.parse(JSON.parse(x)),
|
|
2157
|
-
`Failed to parse 'CodeTool' from JSON`,
|
|
2158
|
-
);
|
|
2159
|
-
}
|
|
2160
|
-
|
|
2161
|
-
/** @internal */
|
|
2162
|
-
export const CodeToolRun$inboundSchema: z.ZodType<
|
|
2163
|
-
CodeToolRun,
|
|
2164
|
-
z.ZodTypeDef,
|
|
2165
|
-
unknown
|
|
2166
|
-
> = z.object({
|
|
2167
|
-
type:
|
|
2168
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
|
|
2169
|
-
key: z.string(),
|
|
2170
|
-
_id: z.string().optional(),
|
|
2171
|
-
display_name: z.string().optional(),
|
|
2172
|
-
description: z.string(),
|
|
2173
|
-
code_tool: z.lazy(() => CodeTool$inboundSchema),
|
|
2174
|
-
requires_approval: z.boolean().default(false),
|
|
2175
|
-
}).transform((v) => {
|
|
2176
|
-
return remap$(v, {
|
|
2177
|
-
"_id": "id",
|
|
2178
|
-
"display_name": "displayName",
|
|
2179
|
-
"code_tool": "codeTool",
|
|
2180
|
-
"requires_approval": "requiresApproval",
|
|
2181
|
-
});
|
|
2182
|
-
});
|
|
2183
|
-
|
|
2184
|
-
/** @internal */
|
|
2185
|
-
export type CodeToolRun$Outbound = {
|
|
2186
|
-
type: string;
|
|
2187
|
-
key: string;
|
|
2188
|
-
_id?: string | undefined;
|
|
2189
|
-
display_name?: string | undefined;
|
|
2190
|
-
description: string;
|
|
2191
|
-
code_tool: CodeTool$Outbound;
|
|
2192
|
-
requires_approval: boolean;
|
|
2193
|
-
};
|
|
2194
|
-
|
|
2195
|
-
/** @internal */
|
|
2196
|
-
export const CodeToolRun$outboundSchema: z.ZodType<
|
|
2197
|
-
CodeToolRun$Outbound,
|
|
2198
|
-
z.ZodTypeDef,
|
|
2199
|
-
CodeToolRun
|
|
2200
|
-
> = z.object({
|
|
2201
|
-
type:
|
|
2202
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
|
|
2203
|
-
key: z.string(),
|
|
2204
|
-
id: z.string().optional(),
|
|
2205
|
-
displayName: z.string().optional(),
|
|
2206
|
-
description: z.string(),
|
|
2207
|
-
codeTool: z.lazy(() => CodeTool$outboundSchema),
|
|
2208
|
-
requiresApproval: z.boolean().default(false),
|
|
2209
|
-
}).transform((v) => {
|
|
2210
|
-
return remap$(v, {
|
|
2211
|
-
id: "_id",
|
|
2212
|
-
displayName: "display_name",
|
|
2213
|
-
codeTool: "code_tool",
|
|
2214
|
-
requiresApproval: "requires_approval",
|
|
2215
|
-
});
|
|
2216
|
-
});
|
|
2217
|
-
|
|
2218
|
-
/**
|
|
2219
|
-
* @internal
|
|
2220
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2221
|
-
*/
|
|
2222
|
-
export namespace CodeToolRun$ {
|
|
2223
|
-
/** @deprecated use `CodeToolRun$inboundSchema` instead. */
|
|
2224
|
-
export const inboundSchema = CodeToolRun$inboundSchema;
|
|
2225
|
-
/** @deprecated use `CodeToolRun$outboundSchema` instead. */
|
|
2226
|
-
export const outboundSchema = CodeToolRun$outboundSchema;
|
|
2227
|
-
/** @deprecated use `CodeToolRun$Outbound` instead. */
|
|
2228
|
-
export type Outbound = CodeToolRun$Outbound;
|
|
2229
|
-
}
|
|
2230
|
-
|
|
2231
|
-
export function codeToolRunToJSON(codeToolRun: CodeToolRun): string {
|
|
2232
|
-
return JSON.stringify(CodeToolRun$outboundSchema.parse(codeToolRun));
|
|
2233
|
-
}
|
|
2234
|
-
|
|
2235
|
-
export function codeToolRunFromJSON(
|
|
2236
|
-
jsonString: string,
|
|
2237
|
-
): SafeParseResult<CodeToolRun, SDKValidationError> {
|
|
2238
|
-
return safeParse(
|
|
2239
|
-
jsonString,
|
|
2240
|
-
(x) => CodeToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2241
|
-
`Failed to parse 'CodeToolRun' from JSON`,
|
|
2242
|
-
);
|
|
2243
|
-
}
|
|
2244
|
-
|
|
2245
|
-
/** @internal */
|
|
2246
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
|
|
2247
|
-
z.ZodNativeEnum<
|
|
2248
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
|
|
2249
|
-
> = z.nativeEnum(
|
|
2250
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type,
|
|
2251
|
-
);
|
|
2252
|
-
|
|
2253
|
-
/** @internal */
|
|
2254
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
|
|
2255
|
-
z.ZodNativeEnum<
|
|
2256
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
|
|
2257
|
-
> =
|
|
2258
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
2259
|
-
|
|
2260
|
-
/**
|
|
2261
|
-
* @internal
|
|
2262
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2263
|
-
*/
|
|
2264
|
-
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ {
|
|
2265
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
|
|
2266
|
-
export const inboundSchema =
|
|
2267
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
2268
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
|
|
2269
|
-
export const outboundSchema =
|
|
2270
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
|
|
2271
|
-
}
|
|
2272
|
-
|
|
2273
|
-
/** @internal */
|
|
2274
|
-
export const Method$inboundSchema: z.ZodNativeEnum<typeof Method> = z
|
|
2275
|
-
.nativeEnum(Method);
|
|
2276
|
-
|
|
2277
|
-
/** @internal */
|
|
2278
|
-
export const Method$outboundSchema: z.ZodNativeEnum<typeof Method> =
|
|
2279
|
-
Method$inboundSchema;
|
|
2280
|
-
|
|
2281
|
-
/**
|
|
2282
|
-
* @internal
|
|
2283
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2284
|
-
*/
|
|
2285
|
-
export namespace Method$ {
|
|
2286
|
-
/** @deprecated use `Method$inboundSchema` instead. */
|
|
2287
|
-
export const inboundSchema = Method$inboundSchema;
|
|
2288
|
-
/** @deprecated use `Method$outboundSchema` instead. */
|
|
2289
|
-
export const outboundSchema = Method$outboundSchema;
|
|
2290
|
-
}
|
|
2291
|
-
|
|
2292
|
-
/** @internal */
|
|
2293
|
-
export const Blueprint$inboundSchema: z.ZodType<
|
|
2294
|
-
Blueprint,
|
|
2295
|
-
z.ZodTypeDef,
|
|
2296
|
-
unknown
|
|
2297
|
-
> = z.object({
|
|
2298
|
-
url: z.string(),
|
|
2299
|
-
method: Method$inboundSchema,
|
|
2300
|
-
headers: z.record(z.string()).optional(),
|
|
2301
|
-
body: z.record(z.any()).optional(),
|
|
2302
|
-
});
|
|
2303
|
-
|
|
2304
|
-
/** @internal */
|
|
2305
|
-
export type Blueprint$Outbound = {
|
|
2306
|
-
url: string;
|
|
2307
|
-
method: string;
|
|
2308
|
-
headers?: { [k: string]: string } | undefined;
|
|
2309
|
-
body?: { [k: string]: any } | undefined;
|
|
2310
|
-
};
|
|
2311
|
-
|
|
2312
|
-
/** @internal */
|
|
2313
|
-
export const Blueprint$outboundSchema: z.ZodType<
|
|
2314
|
-
Blueprint$Outbound,
|
|
2315
|
-
z.ZodTypeDef,
|
|
2316
|
-
Blueprint
|
|
2317
|
-
> = z.object({
|
|
2318
|
-
url: z.string(),
|
|
2319
|
-
method: Method$outboundSchema,
|
|
2320
|
-
headers: z.record(z.string()).optional(),
|
|
2321
|
-
body: z.record(z.any()).optional(),
|
|
2322
|
-
});
|
|
2323
|
-
|
|
2324
|
-
/**
|
|
2325
|
-
* @internal
|
|
2326
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2327
|
-
*/
|
|
2328
|
-
export namespace Blueprint$ {
|
|
2329
|
-
/** @deprecated use `Blueprint$inboundSchema` instead. */
|
|
2330
|
-
export const inboundSchema = Blueprint$inboundSchema;
|
|
2331
|
-
/** @deprecated use `Blueprint$outboundSchema` instead. */
|
|
2332
|
-
export const outboundSchema = Blueprint$outboundSchema;
|
|
2333
|
-
/** @deprecated use `Blueprint$Outbound` instead. */
|
|
2334
|
-
export type Outbound = Blueprint$Outbound;
|
|
2335
|
-
}
|
|
2336
|
-
|
|
2337
|
-
export function blueprintToJSON(blueprint: Blueprint): string {
|
|
2338
|
-
return JSON.stringify(Blueprint$outboundSchema.parse(blueprint));
|
|
2339
|
-
}
|
|
2340
|
-
|
|
2341
|
-
export function blueprintFromJSON(
|
|
2342
|
-
jsonString: string,
|
|
2343
|
-
): SafeParseResult<Blueprint, SDKValidationError> {
|
|
2344
|
-
return safeParse(
|
|
2345
|
-
jsonString,
|
|
2346
|
-
(x) => Blueprint$inboundSchema.parse(JSON.parse(x)),
|
|
2347
|
-
`Failed to parse 'Blueprint' from JSON`,
|
|
2348
|
-
);
|
|
2349
|
-
}
|
|
2350
|
-
|
|
2351
|
-
/** @internal */
|
|
2352
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema:
|
|
2353
|
-
z.ZodNativeEnum<
|
|
2354
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
|
|
2355
|
-
> = z.nativeEnum(
|
|
2356
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType,
|
|
2357
|
-
);
|
|
2358
|
-
|
|
2359
|
-
/** @internal */
|
|
2360
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
|
|
2361
|
-
z.ZodNativeEnum<
|
|
2362
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
|
|
2363
|
-
> =
|
|
2364
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
|
|
2365
|
-
|
|
2366
|
-
/**
|
|
2367
|
-
* @internal
|
|
2368
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2369
|
-
*/
|
|
2370
|
-
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ {
|
|
2371
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
|
|
2372
|
-
export const inboundSchema =
|
|
2373
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
|
|
2374
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
|
|
2375
|
-
export const outboundSchema =
|
|
2376
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
|
|
2377
|
-
}
|
|
2378
|
-
|
|
2379
|
-
/** @internal */
|
|
2380
|
-
export const DefaultValue$inboundSchema: z.ZodType<
|
|
2381
|
-
DefaultValue,
|
|
2382
|
-
z.ZodTypeDef,
|
|
2383
|
-
unknown
|
|
2384
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2385
|
-
|
|
2386
|
-
/** @internal */
|
|
2387
|
-
export type DefaultValue$Outbound = string | number | boolean;
|
|
2388
|
-
|
|
2389
|
-
/** @internal */
|
|
2390
|
-
export const DefaultValue$outboundSchema: z.ZodType<
|
|
2391
|
-
DefaultValue$Outbound,
|
|
2392
|
-
z.ZodTypeDef,
|
|
2393
|
-
DefaultValue
|
|
2394
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2395
|
-
|
|
2396
|
-
/**
|
|
2397
|
-
* @internal
|
|
2398
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2399
|
-
*/
|
|
2400
|
-
export namespace DefaultValue$ {
|
|
2401
|
-
/** @deprecated use `DefaultValue$inboundSchema` instead. */
|
|
2402
|
-
export const inboundSchema = DefaultValue$inboundSchema;
|
|
2403
|
-
/** @deprecated use `DefaultValue$outboundSchema` instead. */
|
|
2404
|
-
export const outboundSchema = DefaultValue$outboundSchema;
|
|
2405
|
-
/** @deprecated use `DefaultValue$Outbound` instead. */
|
|
2406
|
-
export type Outbound = DefaultValue$Outbound;
|
|
2407
|
-
}
|
|
2408
|
-
|
|
2409
|
-
export function defaultValueToJSON(defaultValue: DefaultValue): string {
|
|
2410
|
-
return JSON.stringify(DefaultValue$outboundSchema.parse(defaultValue));
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
|
-
export function defaultValueFromJSON(
|
|
2414
|
-
jsonString: string,
|
|
2415
|
-
): SafeParseResult<DefaultValue, SDKValidationError> {
|
|
2416
|
-
return safeParse(
|
|
2417
|
-
jsonString,
|
|
2418
|
-
(x) => DefaultValue$inboundSchema.parse(JSON.parse(x)),
|
|
2419
|
-
`Failed to parse 'DefaultValue' from JSON`,
|
|
2420
|
-
);
|
|
2421
|
-
}
|
|
2422
|
-
|
|
2423
|
-
/** @internal */
|
|
2424
|
-
export const Arguments$inboundSchema: z.ZodType<
|
|
2425
|
-
Arguments,
|
|
2426
|
-
z.ZodTypeDef,
|
|
2427
|
-
unknown
|
|
2428
|
-
> = z.object({
|
|
2429
|
-
type:
|
|
2430
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
|
|
2431
|
-
description: z.string(),
|
|
2432
|
-
send_to_model: z.boolean().default(true),
|
|
2433
|
-
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
2434
|
-
}).transform((v) => {
|
|
2435
|
-
return remap$(v, {
|
|
2436
|
-
"send_to_model": "sendToModel",
|
|
2437
|
-
"default_value": "defaultValue",
|
|
2438
|
-
});
|
|
2439
|
-
});
|
|
2440
|
-
|
|
2441
|
-
/** @internal */
|
|
2442
|
-
export type Arguments$Outbound = {
|
|
2443
|
-
type: string;
|
|
2444
|
-
description: string;
|
|
2445
|
-
send_to_model: boolean;
|
|
2446
|
-
default_value?: string | number | boolean | undefined;
|
|
2447
|
-
};
|
|
2448
|
-
|
|
2449
|
-
/** @internal */
|
|
2450
|
-
export const Arguments$outboundSchema: z.ZodType<
|
|
2451
|
-
Arguments$Outbound,
|
|
2452
|
-
z.ZodTypeDef,
|
|
2453
|
-
Arguments
|
|
2454
|
-
> = z.object({
|
|
2455
|
-
type:
|
|
2456
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
|
|
2457
|
-
description: z.string(),
|
|
2458
|
-
sendToModel: z.boolean().default(true),
|
|
2459
|
-
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
2460
|
-
}).transform((v) => {
|
|
2461
|
-
return remap$(v, {
|
|
2462
|
-
sendToModel: "send_to_model",
|
|
2463
|
-
defaultValue: "default_value",
|
|
2464
|
-
});
|
|
2465
|
-
});
|
|
2466
|
-
|
|
2467
|
-
/**
|
|
2468
|
-
* @internal
|
|
2469
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2470
|
-
*/
|
|
2471
|
-
export namespace Arguments$ {
|
|
2472
|
-
/** @deprecated use `Arguments$inboundSchema` instead. */
|
|
2473
|
-
export const inboundSchema = Arguments$inboundSchema;
|
|
2474
|
-
/** @deprecated use `Arguments$outboundSchema` instead. */
|
|
2475
|
-
export const outboundSchema = Arguments$outboundSchema;
|
|
2476
|
-
/** @deprecated use `Arguments$Outbound` instead. */
|
|
2477
|
-
export type Outbound = Arguments$Outbound;
|
|
2478
|
-
}
|
|
2479
|
-
|
|
2480
|
-
export function argumentsToJSON(value: Arguments): string {
|
|
2481
|
-
return JSON.stringify(Arguments$outboundSchema.parse(value));
|
|
2482
|
-
}
|
|
2483
|
-
|
|
2484
|
-
export function argumentsFromJSON(
|
|
2485
|
-
jsonString: string,
|
|
2486
|
-
): SafeParseResult<Arguments, SDKValidationError> {
|
|
2487
|
-
return safeParse(
|
|
2488
|
-
jsonString,
|
|
2489
|
-
(x) => Arguments$inboundSchema.parse(JSON.parse(x)),
|
|
2490
|
-
`Failed to parse 'Arguments' from JSON`,
|
|
2491
|
-
);
|
|
2492
|
-
}
|
|
2493
|
-
|
|
2494
|
-
/** @internal */
|
|
2495
|
-
export const Http$inboundSchema: z.ZodType<Http, z.ZodTypeDef, unknown> = z
|
|
2496
|
-
.object({
|
|
2497
|
-
blueprint: z.lazy(() => Blueprint$inboundSchema),
|
|
2498
|
-
arguments: z.record(z.lazy(() => Arguments$inboundSchema)).optional(),
|
|
2499
|
-
});
|
|
2500
|
-
|
|
2501
|
-
/** @internal */
|
|
2502
|
-
export type Http$Outbound = {
|
|
2503
|
-
blueprint: Blueprint$Outbound;
|
|
2504
|
-
arguments?: { [k: string]: Arguments$Outbound } | undefined;
|
|
2505
|
-
};
|
|
2506
|
-
|
|
2507
|
-
/** @internal */
|
|
2508
|
-
export const Http$outboundSchema: z.ZodType<Http$Outbound, z.ZodTypeDef, Http> =
|
|
2509
|
-
z.object({
|
|
2510
|
-
blueprint: z.lazy(() => Blueprint$outboundSchema),
|
|
2511
|
-
arguments: z.record(z.lazy(() => Arguments$outboundSchema)).optional(),
|
|
2512
|
-
});
|
|
2513
|
-
|
|
2514
|
-
/**
|
|
2515
|
-
* @internal
|
|
2516
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2517
|
-
*/
|
|
2518
|
-
export namespace Http$ {
|
|
2519
|
-
/** @deprecated use `Http$inboundSchema` instead. */
|
|
2520
|
-
export const inboundSchema = Http$inboundSchema;
|
|
2521
|
-
/** @deprecated use `Http$outboundSchema` instead. */
|
|
2522
|
-
export const outboundSchema = Http$outboundSchema;
|
|
2523
|
-
/** @deprecated use `Http$Outbound` instead. */
|
|
2524
|
-
export type Outbound = Http$Outbound;
|
|
2525
|
-
}
|
|
2526
|
-
|
|
2527
|
-
export function httpToJSON(http: Http): string {
|
|
2528
|
-
return JSON.stringify(Http$outboundSchema.parse(http));
|
|
2529
|
-
}
|
|
2530
|
-
|
|
2531
|
-
export function httpFromJSON(
|
|
2532
|
-
jsonString: string,
|
|
2533
|
-
): SafeParseResult<Http, SDKValidationError> {
|
|
2534
|
-
return safeParse(
|
|
2535
|
-
jsonString,
|
|
2536
|
-
(x) => Http$inboundSchema.parse(JSON.parse(x)),
|
|
2537
|
-
`Failed to parse 'Http' from JSON`,
|
|
2538
|
-
);
|
|
2539
|
-
}
|
|
2540
|
-
|
|
2541
|
-
/** @internal */
|
|
2542
|
-
export const HTTPToolRun$inboundSchema: z.ZodType<
|
|
2543
|
-
HTTPToolRun,
|
|
2544
|
-
z.ZodTypeDef,
|
|
2545
|
-
unknown
|
|
2546
|
-
> = z.object({
|
|
2547
|
-
type:
|
|
2548
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
|
|
2549
|
-
key: z.string(),
|
|
2550
|
-
_id: z.string().optional(),
|
|
2551
|
-
display_name: z.string().optional(),
|
|
2552
|
-
description: z.string(),
|
|
2553
|
-
http: z.lazy(() => Http$inboundSchema),
|
|
2554
|
-
requires_approval: z.boolean().default(false),
|
|
2555
|
-
}).transform((v) => {
|
|
2556
|
-
return remap$(v, {
|
|
2557
|
-
"_id": "id",
|
|
2558
|
-
"display_name": "displayName",
|
|
2559
|
-
"requires_approval": "requiresApproval",
|
|
2560
|
-
});
|
|
2561
|
-
});
|
|
2562
|
-
|
|
2563
|
-
/** @internal */
|
|
2564
|
-
export type HTTPToolRun$Outbound = {
|
|
2565
|
-
type: string;
|
|
2566
|
-
key: string;
|
|
2567
|
-
_id?: string | undefined;
|
|
2568
|
-
display_name?: string | undefined;
|
|
2569
|
-
description: string;
|
|
2570
|
-
http: Http$Outbound;
|
|
2571
|
-
requires_approval: boolean;
|
|
2572
|
-
};
|
|
2573
|
-
|
|
2574
|
-
/** @internal */
|
|
2575
|
-
export const HTTPToolRun$outboundSchema: z.ZodType<
|
|
2576
|
-
HTTPToolRun$Outbound,
|
|
2577
|
-
z.ZodTypeDef,
|
|
2578
|
-
HTTPToolRun
|
|
2579
|
-
> = z.object({
|
|
2580
|
-
type:
|
|
2581
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
|
|
2582
|
-
key: z.string(),
|
|
2583
|
-
id: z.string().optional(),
|
|
2584
|
-
displayName: z.string().optional(),
|
|
2585
|
-
description: z.string(),
|
|
2586
|
-
http: z.lazy(() => Http$outboundSchema),
|
|
2587
|
-
requiresApproval: z.boolean().default(false),
|
|
2588
|
-
}).transform((v) => {
|
|
2589
|
-
return remap$(v, {
|
|
2590
|
-
id: "_id",
|
|
2591
|
-
displayName: "display_name",
|
|
2592
|
-
requiresApproval: "requires_approval",
|
|
2593
|
-
});
|
|
2594
|
-
});
|
|
2595
|
-
|
|
2596
|
-
/**
|
|
2597
|
-
* @internal
|
|
2598
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2599
|
-
*/
|
|
2600
|
-
export namespace HTTPToolRun$ {
|
|
2601
|
-
/** @deprecated use `HTTPToolRun$inboundSchema` instead. */
|
|
2602
|
-
export const inboundSchema = HTTPToolRun$inboundSchema;
|
|
2603
|
-
/** @deprecated use `HTTPToolRun$outboundSchema` instead. */
|
|
2604
|
-
export const outboundSchema = HTTPToolRun$outboundSchema;
|
|
2605
|
-
/** @deprecated use `HTTPToolRun$Outbound` instead. */
|
|
2606
|
-
export type Outbound = HTTPToolRun$Outbound;
|
|
2607
|
-
}
|
|
2608
|
-
|
|
2609
|
-
export function httpToolRunToJSON(httpToolRun: HTTPToolRun): string {
|
|
2610
|
-
return JSON.stringify(HTTPToolRun$outboundSchema.parse(httpToolRun));
|
|
2611
|
-
}
|
|
2612
|
-
|
|
2613
|
-
export function httpToolRunFromJSON(
|
|
2614
|
-
jsonString: string,
|
|
2615
|
-
): SafeParseResult<HTTPToolRun, SDKValidationError> {
|
|
2616
|
-
return safeParse(
|
|
2617
|
-
jsonString,
|
|
2618
|
-
(x) => HTTPToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2619
|
-
`Failed to parse 'HTTPToolRun' from JSON`,
|
|
2620
|
-
);
|
|
2621
|
-
}
|
|
2622
|
-
|
|
2623
|
-
/** @internal */
|
|
2624
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
|
|
2625
|
-
z.ZodNativeEnum<
|
|
2626
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
2627
|
-
> = z.nativeEnum(
|
|
2628
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type,
|
|
2629
|
-
);
|
|
2630
|
-
|
|
2631
|
-
/** @internal */
|
|
2632
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
|
|
2633
|
-
z.ZodNativeEnum<
|
|
2634
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
2635
|
-
> =
|
|
2636
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
2637
|
-
|
|
2638
|
-
/**
|
|
2639
|
-
* @internal
|
|
2640
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2641
|
-
*/
|
|
2642
|
-
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ {
|
|
2643
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
|
|
2644
|
-
export const inboundSchema =
|
|
2645
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
2646
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
|
|
2647
|
-
export const outboundSchema =
|
|
2648
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
|
|
2649
|
-
}
|
|
2650
|
-
|
|
2651
|
-
/** @internal */
|
|
2652
|
-
export const AgentToolInputRunCurrentDateTool$inboundSchema: z.ZodType<
|
|
2653
|
-
AgentToolInputRunCurrentDateTool,
|
|
2654
|
-
z.ZodTypeDef,
|
|
2655
|
-
unknown
|
|
2656
|
-
> = z.object({
|
|
2657
|
-
type:
|
|
2658
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
|
|
2659
|
-
requires_approval: z.boolean().default(false),
|
|
2660
|
-
}).transform((v) => {
|
|
2661
|
-
return remap$(v, {
|
|
2662
|
-
"requires_approval": "requiresApproval",
|
|
2663
|
-
});
|
|
2664
|
-
});
|
|
2665
|
-
|
|
2666
|
-
/** @internal */
|
|
2667
|
-
export type AgentToolInputRunCurrentDateTool$Outbound = {
|
|
2668
|
-
type: string;
|
|
2669
|
-
requires_approval: boolean;
|
|
2670
|
-
};
|
|
2671
|
-
|
|
2672
|
-
/** @internal */
|
|
2673
|
-
export const AgentToolInputRunCurrentDateTool$outboundSchema: z.ZodType<
|
|
2674
|
-
AgentToolInputRunCurrentDateTool$Outbound,
|
|
2675
|
-
z.ZodTypeDef,
|
|
2676
|
-
AgentToolInputRunCurrentDateTool
|
|
2677
|
-
> = z.object({
|
|
2678
|
-
type:
|
|
2679
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
|
|
2680
|
-
requiresApproval: z.boolean().default(false),
|
|
2681
|
-
}).transform((v) => {
|
|
2682
|
-
return remap$(v, {
|
|
2683
|
-
requiresApproval: "requires_approval",
|
|
2684
|
-
});
|
|
2685
|
-
});
|
|
2686
|
-
|
|
2687
|
-
/**
|
|
2688
|
-
* @internal
|
|
2689
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2690
|
-
*/
|
|
2691
|
-
export namespace AgentToolInputRunCurrentDateTool$ {
|
|
2692
|
-
/** @deprecated use `AgentToolInputRunCurrentDateTool$inboundSchema` instead. */
|
|
2693
|
-
export const inboundSchema = AgentToolInputRunCurrentDateTool$inboundSchema;
|
|
2694
|
-
/** @deprecated use `AgentToolInputRunCurrentDateTool$outboundSchema` instead. */
|
|
2695
|
-
export const outboundSchema = AgentToolInputRunCurrentDateTool$outboundSchema;
|
|
2696
|
-
/** @deprecated use `AgentToolInputRunCurrentDateTool$Outbound` instead. */
|
|
2697
|
-
export type Outbound = AgentToolInputRunCurrentDateTool$Outbound;
|
|
2698
|
-
}
|
|
2699
|
-
|
|
2700
|
-
export function agentToolInputRunCurrentDateToolToJSON(
|
|
2701
|
-
agentToolInputRunCurrentDateTool: AgentToolInputRunCurrentDateTool,
|
|
2702
|
-
): string {
|
|
2703
|
-
return JSON.stringify(
|
|
2704
|
-
AgentToolInputRunCurrentDateTool$outboundSchema.parse(
|
|
2705
|
-
agentToolInputRunCurrentDateTool,
|
|
2706
|
-
),
|
|
2707
|
-
);
|
|
2708
|
-
}
|
|
2709
|
-
|
|
2710
|
-
export function agentToolInputRunCurrentDateToolFromJSON(
|
|
2711
|
-
jsonString: string,
|
|
2712
|
-
): SafeParseResult<AgentToolInputRunCurrentDateTool, SDKValidationError> {
|
|
2713
|
-
return safeParse(
|
|
2714
|
-
jsonString,
|
|
2715
|
-
(x) => AgentToolInputRunCurrentDateTool$inboundSchema.parse(JSON.parse(x)),
|
|
2716
|
-
`Failed to parse 'AgentToolInputRunCurrentDateTool' from JSON`,
|
|
2717
|
-
);
|
|
2718
|
-
}
|
|
2719
|
-
|
|
2720
|
-
/** @internal */
|
|
2721
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
|
|
2722
|
-
z.ZodNativeEnum<
|
|
2723
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
2724
|
-
> = z.nativeEnum(
|
|
2725
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type,
|
|
2726
|
-
);
|
|
2727
|
-
|
|
2728
|
-
/** @internal */
|
|
2729
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
|
|
2730
|
-
z.ZodNativeEnum<
|
|
2731
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
2732
|
-
> =
|
|
2733
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
2734
|
-
|
|
2735
|
-
/**
|
|
2736
|
-
* @internal
|
|
2737
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2738
|
-
*/
|
|
2739
|
-
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ {
|
|
2740
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
|
|
2741
|
-
export const inboundSchema =
|
|
2742
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
2743
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
|
|
2744
|
-
export const outboundSchema =
|
|
2745
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
|
|
2746
|
-
}
|
|
2747
|
-
|
|
2748
|
-
/** @internal */
|
|
2749
|
-
export const AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
|
|
2750
|
-
AgentToolInputRunQueryKnowledgeBaseTool,
|
|
2751
|
-
z.ZodTypeDef,
|
|
2752
|
-
unknown
|
|
2753
|
-
> = z.object({
|
|
2754
|
-
type:
|
|
2755
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
|
|
2756
|
-
requires_approval: z.boolean().default(false),
|
|
2757
|
-
}).transform((v) => {
|
|
2758
|
-
return remap$(v, {
|
|
2759
|
-
"requires_approval": "requiresApproval",
|
|
2760
|
-
});
|
|
2761
|
-
});
|
|
2762
|
-
|
|
2763
|
-
/** @internal */
|
|
2764
|
-
export type AgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
|
|
2765
|
-
type: string;
|
|
2766
|
-
requires_approval: boolean;
|
|
2767
|
-
};
|
|
2768
|
-
|
|
2769
|
-
/** @internal */
|
|
2770
|
-
export const AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema: z.ZodType<
|
|
2771
|
-
AgentToolInputRunQueryKnowledgeBaseTool$Outbound,
|
|
2772
|
-
z.ZodTypeDef,
|
|
2773
|
-
AgentToolInputRunQueryKnowledgeBaseTool
|
|
2774
|
-
> = z.object({
|
|
2775
|
-
type:
|
|
2776
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
|
|
2777
|
-
requiresApproval: z.boolean().default(false),
|
|
2778
|
-
}).transform((v) => {
|
|
2779
|
-
return remap$(v, {
|
|
2780
|
-
requiresApproval: "requires_approval",
|
|
2781
|
-
});
|
|
2782
|
-
});
|
|
2783
|
-
|
|
2784
|
-
/**
|
|
2785
|
-
* @internal
|
|
2786
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2787
|
-
*/
|
|
2788
|
-
export namespace AgentToolInputRunQueryKnowledgeBaseTool$ {
|
|
2789
|
-
/** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema` instead. */
|
|
2790
|
-
export const inboundSchema =
|
|
2791
|
-
AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema;
|
|
2792
|
-
/** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema` instead. */
|
|
2793
|
-
export const outboundSchema =
|
|
2794
|
-
AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema;
|
|
2795
|
-
/** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$Outbound` instead. */
|
|
2796
|
-
export type Outbound = AgentToolInputRunQueryKnowledgeBaseTool$Outbound;
|
|
2797
|
-
}
|
|
2798
|
-
|
|
2799
|
-
export function agentToolInputRunQueryKnowledgeBaseToolToJSON(
|
|
2800
|
-
agentToolInputRunQueryKnowledgeBaseTool:
|
|
2801
|
-
AgentToolInputRunQueryKnowledgeBaseTool,
|
|
2802
|
-
): string {
|
|
2803
|
-
return JSON.stringify(
|
|
2804
|
-
AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema.parse(
|
|
2805
|
-
agentToolInputRunQueryKnowledgeBaseTool,
|
|
2806
|
-
),
|
|
2807
|
-
);
|
|
2808
|
-
}
|
|
2809
|
-
|
|
2810
|
-
export function agentToolInputRunQueryKnowledgeBaseToolFromJSON(
|
|
2811
|
-
jsonString: string,
|
|
2812
|
-
): SafeParseResult<
|
|
2813
|
-
AgentToolInputRunQueryKnowledgeBaseTool,
|
|
2814
|
-
SDKValidationError
|
|
2815
|
-
> {
|
|
2816
|
-
return safeParse(
|
|
2817
|
-
jsonString,
|
|
2818
|
-
(x) =>
|
|
2819
|
-
AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema.parse(
|
|
2820
|
-
JSON.parse(x),
|
|
2821
|
-
),
|
|
2822
|
-
`Failed to parse 'AgentToolInputRunQueryKnowledgeBaseTool' from JSON`,
|
|
2823
|
-
);
|
|
2824
|
-
}
|
|
2825
|
-
|
|
2826
|
-
/** @internal */
|
|
2827
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
|
|
2828
|
-
z.ZodNativeEnum<
|
|
2829
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
2830
|
-
> = z.nativeEnum(
|
|
2831
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type,
|
|
2832
|
-
);
|
|
2833
|
-
|
|
2834
|
-
/** @internal */
|
|
2835
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
|
|
2836
|
-
z.ZodNativeEnum<
|
|
2837
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
2838
|
-
> =
|
|
2839
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
2840
|
-
|
|
2841
|
-
/**
|
|
2842
|
-
* @internal
|
|
2843
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2844
|
-
*/
|
|
2845
|
-
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ {
|
|
2846
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
|
|
2847
|
-
export const inboundSchema =
|
|
2848
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
2849
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
|
|
2850
|
-
export const outboundSchema =
|
|
2851
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
|
|
2852
|
-
}
|
|
2853
|
-
|
|
2854
|
-
/** @internal */
|
|
2855
|
-
export const AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema:
|
|
2856
|
-
z.ZodType<
|
|
2857
|
-
AgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
2858
|
-
z.ZodTypeDef,
|
|
2859
|
-
unknown
|
|
2860
|
-
> = z.object({
|
|
2861
|
-
type:
|
|
2862
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
|
|
2863
|
-
requires_approval: z.boolean().default(false),
|
|
2864
|
-
}).transform((v) => {
|
|
2865
|
-
return remap$(v, {
|
|
2866
|
-
"requires_approval": "requiresApproval",
|
|
2867
|
-
});
|
|
2868
|
-
});
|
|
2869
|
-
|
|
2870
|
-
/** @internal */
|
|
2871
|
-
export type AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound = {
|
|
2872
|
-
type: string;
|
|
2873
|
-
requires_approval: boolean;
|
|
2874
|
-
};
|
|
2875
|
-
|
|
2876
|
-
/** @internal */
|
|
2877
|
-
export const AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema:
|
|
2878
|
-
z.ZodType<
|
|
2879
|
-
AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound,
|
|
2880
|
-
z.ZodTypeDef,
|
|
2881
|
-
AgentToolInputRunRetrieveKnowledgeBasesTool
|
|
2882
|
-
> = z.object({
|
|
2883
|
-
type:
|
|
2884
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
|
|
2885
|
-
requiresApproval: z.boolean().default(false),
|
|
2886
|
-
}).transform((v) => {
|
|
2887
|
-
return remap$(v, {
|
|
2888
|
-
requiresApproval: "requires_approval",
|
|
2889
|
-
});
|
|
2890
|
-
});
|
|
2891
|
-
|
|
2892
|
-
/**
|
|
2893
|
-
* @internal
|
|
2894
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2895
|
-
*/
|
|
2896
|
-
export namespace AgentToolInputRunRetrieveKnowledgeBasesTool$ {
|
|
2897
|
-
/** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema` instead. */
|
|
2898
|
-
export const inboundSchema =
|
|
2899
|
-
AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema;
|
|
2900
|
-
/** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema` instead. */
|
|
2901
|
-
export const outboundSchema =
|
|
2902
|
-
AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema;
|
|
2903
|
-
/** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound` instead. */
|
|
2904
|
-
export type Outbound = AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound;
|
|
2905
|
-
}
|
|
2906
|
-
|
|
2907
|
-
export function agentToolInputRunRetrieveKnowledgeBasesToolToJSON(
|
|
2908
|
-
agentToolInputRunRetrieveKnowledgeBasesTool:
|
|
2909
|
-
AgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
2910
|
-
): string {
|
|
2911
|
-
return JSON.stringify(
|
|
2912
|
-
AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema.parse(
|
|
2913
|
-
agentToolInputRunRetrieveKnowledgeBasesTool,
|
|
2914
|
-
),
|
|
2915
|
-
);
|
|
2916
|
-
}
|
|
2917
|
-
|
|
2918
|
-
export function agentToolInputRunRetrieveKnowledgeBasesToolFromJSON(
|
|
2919
|
-
jsonString: string,
|
|
2920
|
-
): SafeParseResult<
|
|
2921
|
-
AgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
2922
|
-
SDKValidationError
|
|
2923
|
-
> {
|
|
2924
|
-
return safeParse(
|
|
2925
|
-
jsonString,
|
|
2926
|
-
(x) =>
|
|
2927
|
-
AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema.parse(
|
|
2928
|
-
JSON.parse(x),
|
|
2929
|
-
),
|
|
2930
|
-
`Failed to parse 'AgentToolInputRunRetrieveKnowledgeBasesTool' from JSON`,
|
|
2931
|
-
);
|
|
2932
|
-
}
|
|
2933
|
-
|
|
2934
|
-
/** @internal */
|
|
2935
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
|
|
2936
|
-
z.ZodNativeEnum<
|
|
2937
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
2938
|
-
> = z.nativeEnum(
|
|
2939
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type,
|
|
2940
|
-
);
|
|
2941
|
-
|
|
2942
|
-
/** @internal */
|
|
2943
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
|
|
2944
|
-
z.ZodNativeEnum<
|
|
2945
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
2946
|
-
> =
|
|
2947
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
2948
|
-
|
|
2949
|
-
/**
|
|
2950
|
-
* @internal
|
|
2951
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2952
|
-
*/
|
|
2953
|
-
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ {
|
|
2954
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
|
|
2955
|
-
export const inboundSchema =
|
|
2956
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
2957
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
|
|
2958
|
-
export const outboundSchema =
|
|
2959
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
|
|
2960
|
-
}
|
|
2961
|
-
|
|
2962
|
-
/** @internal */
|
|
2963
|
-
export const AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema: z.ZodType<
|
|
2964
|
-
AgentToolInputRunDeleteMemoryDocumentTool,
|
|
2965
|
-
z.ZodTypeDef,
|
|
2966
|
-
unknown
|
|
2967
|
-
> = z.object({
|
|
2968
|
-
type:
|
|
2969
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
|
|
2970
|
-
requires_approval: z.boolean().default(false),
|
|
2971
|
-
}).transform((v) => {
|
|
2972
|
-
return remap$(v, {
|
|
2973
|
-
"requires_approval": "requiresApproval",
|
|
2974
|
-
});
|
|
2975
|
-
});
|
|
2976
|
-
|
|
2977
|
-
/** @internal */
|
|
2978
|
-
export type AgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
|
|
2979
|
-
type: string;
|
|
2980
|
-
requires_approval: boolean;
|
|
2981
|
-
};
|
|
2982
|
-
|
|
2983
|
-
/** @internal */
|
|
2984
|
-
export const AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema:
|
|
2985
|
-
z.ZodType<
|
|
2986
|
-
AgentToolInputRunDeleteMemoryDocumentTool$Outbound,
|
|
2987
|
-
z.ZodTypeDef,
|
|
2988
|
-
AgentToolInputRunDeleteMemoryDocumentTool
|
|
2989
|
-
> = z.object({
|
|
2990
|
-
type:
|
|
2991
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
|
|
2992
|
-
requiresApproval: z.boolean().default(false),
|
|
2993
|
-
}).transform((v) => {
|
|
2994
|
-
return remap$(v, {
|
|
2995
|
-
requiresApproval: "requires_approval",
|
|
2996
|
-
});
|
|
2997
|
-
});
|
|
2998
|
-
|
|
2999
|
-
/**
|
|
3000
|
-
* @internal
|
|
3001
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3002
|
-
*/
|
|
3003
|
-
export namespace AgentToolInputRunDeleteMemoryDocumentTool$ {
|
|
3004
|
-
/** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema` instead. */
|
|
3005
|
-
export const inboundSchema =
|
|
3006
|
-
AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema;
|
|
3007
|
-
/** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema` instead. */
|
|
3008
|
-
export const outboundSchema =
|
|
3009
|
-
AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema;
|
|
3010
|
-
/** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$Outbound` instead. */
|
|
3011
|
-
export type Outbound = AgentToolInputRunDeleteMemoryDocumentTool$Outbound;
|
|
3012
|
-
}
|
|
3013
|
-
|
|
3014
|
-
export function agentToolInputRunDeleteMemoryDocumentToolToJSON(
|
|
3015
|
-
agentToolInputRunDeleteMemoryDocumentTool:
|
|
3016
|
-
AgentToolInputRunDeleteMemoryDocumentTool,
|
|
3017
|
-
): string {
|
|
3018
|
-
return JSON.stringify(
|
|
3019
|
-
AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema.parse(
|
|
3020
|
-
agentToolInputRunDeleteMemoryDocumentTool,
|
|
3021
|
-
),
|
|
3022
|
-
);
|
|
3023
|
-
}
|
|
3024
|
-
|
|
3025
|
-
export function agentToolInputRunDeleteMemoryDocumentToolFromJSON(
|
|
3026
|
-
jsonString: string,
|
|
3027
|
-
): SafeParseResult<
|
|
3028
|
-
AgentToolInputRunDeleteMemoryDocumentTool,
|
|
3029
|
-
SDKValidationError
|
|
3030
|
-
> {
|
|
3031
|
-
return safeParse(
|
|
3032
|
-
jsonString,
|
|
3033
|
-
(x) =>
|
|
3034
|
-
AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema.parse(
|
|
3035
|
-
JSON.parse(x),
|
|
3036
|
-
),
|
|
3037
|
-
`Failed to parse 'AgentToolInputRunDeleteMemoryDocumentTool' from JSON`,
|
|
3038
|
-
);
|
|
3039
|
-
}
|
|
3040
|
-
|
|
3041
|
-
/** @internal */
|
|
3042
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema:
|
|
3043
|
-
z.ZodNativeEnum<
|
|
3044
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
3045
|
-
> = z.nativeEnum(
|
|
3046
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType,
|
|
3047
|
-
);
|
|
3048
|
-
|
|
3049
|
-
/** @internal */
|
|
3050
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema:
|
|
3051
|
-
z.ZodNativeEnum<
|
|
3052
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
3053
|
-
> =
|
|
3054
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
3055
|
-
|
|
3056
|
-
/**
|
|
3057
|
-
* @internal
|
|
3058
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3059
|
-
*/
|
|
3060
|
-
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ {
|
|
3061
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
|
|
3062
|
-
export const inboundSchema =
|
|
3063
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
3064
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
|
|
3065
|
-
export const outboundSchema =
|
|
3066
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema;
|
|
3067
|
-
}
|
|
3068
|
-
|
|
3069
|
-
/** @internal */
|
|
3070
|
-
export const AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema: z.ZodType<
|
|
3071
|
-
AgentToolInputRunRetrieveMemoryStoresTool,
|
|
3072
|
-
z.ZodTypeDef,
|
|
3073
|
-
unknown
|
|
3074
|
-
> = z.object({
|
|
3075
|
-
type:
|
|
3076
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema,
|
|
3077
|
-
requires_approval: z.boolean().default(false),
|
|
3078
|
-
}).transform((v) => {
|
|
3079
|
-
return remap$(v, {
|
|
3080
|
-
"requires_approval": "requiresApproval",
|
|
3081
|
-
});
|
|
3082
|
-
});
|
|
3083
|
-
|
|
3084
|
-
/** @internal */
|
|
3085
|
-
export type AgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
|
|
3086
|
-
type: string;
|
|
3087
|
-
requires_approval: boolean;
|
|
3088
|
-
};
|
|
3089
|
-
|
|
3090
|
-
/** @internal */
|
|
3091
|
-
export const AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema:
|
|
3092
|
-
z.ZodType<
|
|
3093
|
-
AgentToolInputRunRetrieveMemoryStoresTool$Outbound,
|
|
3094
|
-
z.ZodTypeDef,
|
|
3095
|
-
AgentToolInputRunRetrieveMemoryStoresTool
|
|
3096
|
-
> = z.object({
|
|
3097
|
-
type:
|
|
3098
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema,
|
|
3099
|
-
requiresApproval: z.boolean().default(false),
|
|
3100
|
-
}).transform((v) => {
|
|
3101
|
-
return remap$(v, {
|
|
3102
|
-
requiresApproval: "requires_approval",
|
|
3103
|
-
});
|
|
3104
|
-
});
|
|
3105
|
-
|
|
3106
|
-
/**
|
|
3107
|
-
* @internal
|
|
3108
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3109
|
-
*/
|
|
3110
|
-
export namespace AgentToolInputRunRetrieveMemoryStoresTool$ {
|
|
3111
|
-
/** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema` instead. */
|
|
3112
|
-
export const inboundSchema =
|
|
3113
|
-
AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema;
|
|
3114
|
-
/** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema` instead. */
|
|
3115
|
-
export const outboundSchema =
|
|
3116
|
-
AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema;
|
|
3117
|
-
/** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$Outbound` instead. */
|
|
3118
|
-
export type Outbound = AgentToolInputRunRetrieveMemoryStoresTool$Outbound;
|
|
3119
|
-
}
|
|
3120
|
-
|
|
3121
|
-
export function agentToolInputRunRetrieveMemoryStoresToolToJSON(
|
|
3122
|
-
agentToolInputRunRetrieveMemoryStoresTool:
|
|
3123
|
-
AgentToolInputRunRetrieveMemoryStoresTool,
|
|
3124
|
-
): string {
|
|
3125
|
-
return JSON.stringify(
|
|
3126
|
-
AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema.parse(
|
|
3127
|
-
agentToolInputRunRetrieveMemoryStoresTool,
|
|
3128
|
-
),
|
|
3129
|
-
);
|
|
3130
|
-
}
|
|
3131
|
-
|
|
3132
|
-
export function agentToolInputRunRetrieveMemoryStoresToolFromJSON(
|
|
3133
|
-
jsonString: string,
|
|
3134
|
-
): SafeParseResult<
|
|
3135
|
-
AgentToolInputRunRetrieveMemoryStoresTool,
|
|
3136
|
-
SDKValidationError
|
|
3137
|
-
> {
|
|
3138
|
-
return safeParse(
|
|
3139
|
-
jsonString,
|
|
3140
|
-
(x) =>
|
|
3141
|
-
AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema.parse(
|
|
3142
|
-
JSON.parse(x),
|
|
3143
|
-
),
|
|
3144
|
-
`Failed to parse 'AgentToolInputRunRetrieveMemoryStoresTool' from JSON`,
|
|
3145
|
-
);
|
|
3146
|
-
}
|
|
3147
|
-
|
|
3148
|
-
/** @internal */
|
|
3149
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema:
|
|
3150
|
-
z.ZodNativeEnum<
|
|
3151
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
3152
|
-
> = z.nativeEnum(
|
|
3153
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType,
|
|
3154
|
-
);
|
|
3155
|
-
|
|
3156
|
-
/** @internal */
|
|
3157
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema:
|
|
3158
|
-
z.ZodNativeEnum<
|
|
3159
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
3160
|
-
> =
|
|
3161
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
3162
|
-
|
|
3163
|
-
/**
|
|
3164
|
-
* @internal
|
|
3165
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3166
|
-
*/
|
|
3167
|
-
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ {
|
|
3168
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
|
|
3169
|
-
export const inboundSchema =
|
|
3170
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
3171
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
|
|
3172
|
-
export const outboundSchema =
|
|
3173
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema;
|
|
3174
|
-
}
|
|
3175
|
-
|
|
3176
|
-
/** @internal */
|
|
3177
|
-
export const AgentToolInputRunWriteMemoryStoreTool$inboundSchema: z.ZodType<
|
|
3178
|
-
AgentToolInputRunWriteMemoryStoreTool,
|
|
3179
|
-
z.ZodTypeDef,
|
|
3180
|
-
unknown
|
|
3181
|
-
> = z.object({
|
|
3182
|
-
type:
|
|
3183
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema,
|
|
3184
|
-
requires_approval: z.boolean().default(false),
|
|
3185
|
-
}).transform((v) => {
|
|
3186
|
-
return remap$(v, {
|
|
3187
|
-
"requires_approval": "requiresApproval",
|
|
3188
|
-
});
|
|
3189
|
-
});
|
|
3190
|
-
|
|
3191
|
-
/** @internal */
|
|
3192
|
-
export type AgentToolInputRunWriteMemoryStoreTool$Outbound = {
|
|
3193
|
-
type: string;
|
|
3194
|
-
requires_approval: boolean;
|
|
3195
|
-
};
|
|
3196
|
-
|
|
3197
|
-
/** @internal */
|
|
3198
|
-
export const AgentToolInputRunWriteMemoryStoreTool$outboundSchema: z.ZodType<
|
|
3199
|
-
AgentToolInputRunWriteMemoryStoreTool$Outbound,
|
|
3200
|
-
z.ZodTypeDef,
|
|
3201
|
-
AgentToolInputRunWriteMemoryStoreTool
|
|
3202
|
-
> = z.object({
|
|
3203
|
-
type:
|
|
3204
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema,
|
|
3205
|
-
requiresApproval: z.boolean().default(false),
|
|
3206
|
-
}).transform((v) => {
|
|
3207
|
-
return remap$(v, {
|
|
3208
|
-
requiresApproval: "requires_approval",
|
|
3209
|
-
});
|
|
3210
|
-
});
|
|
3211
|
-
|
|
3212
|
-
/**
|
|
3213
|
-
* @internal
|
|
3214
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3215
|
-
*/
|
|
3216
|
-
export namespace AgentToolInputRunWriteMemoryStoreTool$ {
|
|
3217
|
-
/** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$inboundSchema` instead. */
|
|
3218
|
-
export const inboundSchema =
|
|
3219
|
-
AgentToolInputRunWriteMemoryStoreTool$inboundSchema;
|
|
3220
|
-
/** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$outboundSchema` instead. */
|
|
3221
|
-
export const outboundSchema =
|
|
3222
|
-
AgentToolInputRunWriteMemoryStoreTool$outboundSchema;
|
|
3223
|
-
/** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$Outbound` instead. */
|
|
3224
|
-
export type Outbound = AgentToolInputRunWriteMemoryStoreTool$Outbound;
|
|
3225
|
-
}
|
|
3226
|
-
|
|
3227
|
-
export function agentToolInputRunWriteMemoryStoreToolToJSON(
|
|
3228
|
-
agentToolInputRunWriteMemoryStoreTool: AgentToolInputRunWriteMemoryStoreTool,
|
|
3229
|
-
): string {
|
|
3230
|
-
return JSON.stringify(
|
|
3231
|
-
AgentToolInputRunWriteMemoryStoreTool$outboundSchema.parse(
|
|
3232
|
-
agentToolInputRunWriteMemoryStoreTool,
|
|
3233
|
-
),
|
|
3234
|
-
);
|
|
3235
|
-
}
|
|
3236
|
-
|
|
3237
|
-
export function agentToolInputRunWriteMemoryStoreToolFromJSON(
|
|
3238
|
-
jsonString: string,
|
|
3239
|
-
): SafeParseResult<AgentToolInputRunWriteMemoryStoreTool, SDKValidationError> {
|
|
3240
|
-
return safeParse(
|
|
3241
|
-
jsonString,
|
|
3242
|
-
(x) =>
|
|
3243
|
-
AgentToolInputRunWriteMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
|
|
3244
|
-
`Failed to parse 'AgentToolInputRunWriteMemoryStoreTool' from JSON`,
|
|
3245
|
-
);
|
|
3246
|
-
}
|
|
3247
|
-
|
|
3248
|
-
/** @internal */
|
|
3249
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema:
|
|
3250
|
-
z.ZodNativeEnum<
|
|
3251
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
3252
|
-
> = z.nativeEnum(RunAgentAgentToolInputRunAgentsRequestRequestBodyType);
|
|
3253
|
-
|
|
3254
|
-
/** @internal */
|
|
3255
|
-
export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema:
|
|
3256
|
-
z.ZodNativeEnum<
|
|
3257
|
-
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
3258
|
-
> = RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
|
|
3259
|
-
|
|
3260
|
-
/**
|
|
3261
|
-
* @internal
|
|
3262
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3263
|
-
*/
|
|
3264
|
-
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodyType$ {
|
|
3265
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema` instead. */
|
|
3266
|
-
export const inboundSchema =
|
|
3267
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
|
|
3268
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema` instead. */
|
|
3269
|
-
export const outboundSchema =
|
|
3270
|
-
RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema;
|
|
3271
|
-
}
|
|
3272
|
-
|
|
3273
|
-
/** @internal */
|
|
3274
|
-
export const AgentToolInputRunQueryMemoryStoreTool$inboundSchema: z.ZodType<
|
|
3275
|
-
AgentToolInputRunQueryMemoryStoreTool,
|
|
3276
|
-
z.ZodTypeDef,
|
|
3277
|
-
unknown
|
|
3278
|
-
> = z.object({
|
|
3279
|
-
type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema,
|
|
3280
|
-
requires_approval: z.boolean().default(false),
|
|
3281
|
-
}).transform((v) => {
|
|
3282
|
-
return remap$(v, {
|
|
3283
|
-
"requires_approval": "requiresApproval",
|
|
3284
|
-
});
|
|
3285
|
-
});
|
|
3286
|
-
|
|
3287
|
-
/** @internal */
|
|
3288
|
-
export type AgentToolInputRunQueryMemoryStoreTool$Outbound = {
|
|
3289
|
-
type: string;
|
|
3290
|
-
requires_approval: boolean;
|
|
3291
|
-
};
|
|
3292
|
-
|
|
3293
|
-
/** @internal */
|
|
3294
|
-
export const AgentToolInputRunQueryMemoryStoreTool$outboundSchema: z.ZodType<
|
|
3295
|
-
AgentToolInputRunQueryMemoryStoreTool$Outbound,
|
|
3296
|
-
z.ZodTypeDef,
|
|
3297
|
-
AgentToolInputRunQueryMemoryStoreTool
|
|
3298
|
-
> = z.object({
|
|
3299
|
-
type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema,
|
|
3300
|
-
requiresApproval: z.boolean().default(false),
|
|
3301
|
-
}).transform((v) => {
|
|
3302
|
-
return remap$(v, {
|
|
3303
|
-
requiresApproval: "requires_approval",
|
|
3304
|
-
});
|
|
3305
|
-
});
|
|
3306
|
-
|
|
3307
|
-
/**
|
|
3308
|
-
* @internal
|
|
3309
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3310
|
-
*/
|
|
3311
|
-
export namespace AgentToolInputRunQueryMemoryStoreTool$ {
|
|
3312
|
-
/** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$inboundSchema` instead. */
|
|
3313
|
-
export const inboundSchema =
|
|
3314
|
-
AgentToolInputRunQueryMemoryStoreTool$inboundSchema;
|
|
3315
|
-
/** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$outboundSchema` instead. */
|
|
3316
|
-
export const outboundSchema =
|
|
3317
|
-
AgentToolInputRunQueryMemoryStoreTool$outboundSchema;
|
|
3318
|
-
/** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$Outbound` instead. */
|
|
3319
|
-
export type Outbound = AgentToolInputRunQueryMemoryStoreTool$Outbound;
|
|
3320
|
-
}
|
|
3321
|
-
|
|
3322
|
-
export function agentToolInputRunQueryMemoryStoreToolToJSON(
|
|
3323
|
-
agentToolInputRunQueryMemoryStoreTool: AgentToolInputRunQueryMemoryStoreTool,
|
|
3324
|
-
): string {
|
|
3325
|
-
return JSON.stringify(
|
|
3326
|
-
AgentToolInputRunQueryMemoryStoreTool$outboundSchema.parse(
|
|
3327
|
-
agentToolInputRunQueryMemoryStoreTool,
|
|
3328
|
-
),
|
|
3329
|
-
);
|
|
3330
|
-
}
|
|
3331
|
-
|
|
3332
|
-
export function agentToolInputRunQueryMemoryStoreToolFromJSON(
|
|
3333
|
-
jsonString: string,
|
|
3334
|
-
): SafeParseResult<AgentToolInputRunQueryMemoryStoreTool, SDKValidationError> {
|
|
3335
|
-
return safeParse(
|
|
3336
|
-
jsonString,
|
|
3337
|
-
(x) =>
|
|
3338
|
-
AgentToolInputRunQueryMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
|
|
3339
|
-
`Failed to parse 'AgentToolInputRunQueryMemoryStoreTool' from JSON`,
|
|
3340
|
-
);
|
|
3341
|
-
}
|
|
3342
|
-
|
|
3343
|
-
/** @internal */
|
|
3344
|
-
export const RunAgentAgentToolInputRunAgentsRequestType$inboundSchema:
|
|
3345
|
-
z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestType> = z
|
|
3346
|
-
.nativeEnum(RunAgentAgentToolInputRunAgentsRequestType);
|
|
3347
|
-
|
|
3348
|
-
/** @internal */
|
|
3349
|
-
export const RunAgentAgentToolInputRunAgentsRequestType$outboundSchema:
|
|
3350
|
-
z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestType> =
|
|
3351
|
-
RunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
|
|
3352
|
-
|
|
3353
|
-
/**
|
|
3354
|
-
* @internal
|
|
3355
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3356
|
-
*/
|
|
3357
|
-
export namespace RunAgentAgentToolInputRunAgentsRequestType$ {
|
|
3358
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestType$inboundSchema` instead. */
|
|
3359
|
-
export const inboundSchema =
|
|
3360
|
-
RunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
|
|
3361
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestType$outboundSchema` instead. */
|
|
3362
|
-
export const outboundSchema =
|
|
3363
|
-
RunAgentAgentToolInputRunAgentsRequestType$outboundSchema;
|
|
3364
|
-
}
|
|
3365
|
-
|
|
3366
|
-
/** @internal */
|
|
3367
|
-
export const AgentToolInputRunRetrieveAgentsTool$inboundSchema: z.ZodType<
|
|
3368
|
-
AgentToolInputRunRetrieveAgentsTool,
|
|
3369
|
-
z.ZodTypeDef,
|
|
3370
|
-
unknown
|
|
3371
|
-
> = z.object({
|
|
3372
|
-
type: RunAgentAgentToolInputRunAgentsRequestType$inboundSchema,
|
|
3373
|
-
requires_approval: z.boolean().default(false),
|
|
3374
|
-
}).transform((v) => {
|
|
3375
|
-
return remap$(v, {
|
|
3376
|
-
"requires_approval": "requiresApproval",
|
|
3377
|
-
});
|
|
3378
|
-
});
|
|
3379
|
-
|
|
3380
|
-
/** @internal */
|
|
3381
|
-
export type AgentToolInputRunRetrieveAgentsTool$Outbound = {
|
|
3382
|
-
type: string;
|
|
3383
|
-
requires_approval: boolean;
|
|
3384
|
-
};
|
|
3385
|
-
|
|
3386
|
-
/** @internal */
|
|
3387
|
-
export const AgentToolInputRunRetrieveAgentsTool$outboundSchema: z.ZodType<
|
|
3388
|
-
AgentToolInputRunRetrieveAgentsTool$Outbound,
|
|
3389
|
-
z.ZodTypeDef,
|
|
3390
|
-
AgentToolInputRunRetrieveAgentsTool
|
|
3391
|
-
> = z.object({
|
|
3392
|
-
type: RunAgentAgentToolInputRunAgentsRequestType$outboundSchema,
|
|
3393
|
-
requiresApproval: z.boolean().default(false),
|
|
3394
|
-
}).transform((v) => {
|
|
3395
|
-
return remap$(v, {
|
|
3396
|
-
requiresApproval: "requires_approval",
|
|
3397
|
-
});
|
|
3398
|
-
});
|
|
3399
|
-
|
|
3400
|
-
/**
|
|
3401
|
-
* @internal
|
|
3402
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3403
|
-
*/
|
|
3404
|
-
export namespace AgentToolInputRunRetrieveAgentsTool$ {
|
|
3405
|
-
/** @deprecated use `AgentToolInputRunRetrieveAgentsTool$inboundSchema` instead. */
|
|
3406
|
-
export const inboundSchema =
|
|
3407
|
-
AgentToolInputRunRetrieveAgentsTool$inboundSchema;
|
|
3408
|
-
/** @deprecated use `AgentToolInputRunRetrieveAgentsTool$outboundSchema` instead. */
|
|
3409
|
-
export const outboundSchema =
|
|
3410
|
-
AgentToolInputRunRetrieveAgentsTool$outboundSchema;
|
|
3411
|
-
/** @deprecated use `AgentToolInputRunRetrieveAgentsTool$Outbound` instead. */
|
|
3412
|
-
export type Outbound = AgentToolInputRunRetrieveAgentsTool$Outbound;
|
|
3413
|
-
}
|
|
3414
|
-
|
|
3415
|
-
export function agentToolInputRunRetrieveAgentsToolToJSON(
|
|
3416
|
-
agentToolInputRunRetrieveAgentsTool: AgentToolInputRunRetrieveAgentsTool,
|
|
3417
|
-
): string {
|
|
3418
|
-
return JSON.stringify(
|
|
3419
|
-
AgentToolInputRunRetrieveAgentsTool$outboundSchema.parse(
|
|
3420
|
-
agentToolInputRunRetrieveAgentsTool,
|
|
3421
|
-
),
|
|
3422
|
-
);
|
|
3423
|
-
}
|
|
3424
|
-
|
|
3425
|
-
export function agentToolInputRunRetrieveAgentsToolFromJSON(
|
|
3426
|
-
jsonString: string,
|
|
3427
|
-
): SafeParseResult<AgentToolInputRunRetrieveAgentsTool, SDKValidationError> {
|
|
3428
|
-
return safeParse(
|
|
3429
|
-
jsonString,
|
|
3430
|
-
(x) =>
|
|
3431
|
-
AgentToolInputRunRetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)),
|
|
3432
|
-
`Failed to parse 'AgentToolInputRunRetrieveAgentsTool' from JSON`,
|
|
3433
|
-
);
|
|
3434
|
-
}
|
|
3435
|
-
|
|
3436
|
-
/** @internal */
|
|
3437
|
-
export const RunAgentAgentToolInputRunAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
3438
|
-
typeof RunAgentAgentToolInputRunAgentsType
|
|
3439
|
-
> = z.nativeEnum(RunAgentAgentToolInputRunAgentsType);
|
|
3440
|
-
|
|
3441
|
-
/** @internal */
|
|
3442
|
-
export const RunAgentAgentToolInputRunAgentsType$outboundSchema:
|
|
3443
|
-
z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsType> =
|
|
3444
|
-
RunAgentAgentToolInputRunAgentsType$inboundSchema;
|
|
3445
|
-
|
|
3446
|
-
/**
|
|
3447
|
-
* @internal
|
|
3448
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3449
|
-
*/
|
|
3450
|
-
export namespace RunAgentAgentToolInputRunAgentsType$ {
|
|
3451
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsType$inboundSchema` instead. */
|
|
3452
|
-
export const inboundSchema =
|
|
3453
|
-
RunAgentAgentToolInputRunAgentsType$inboundSchema;
|
|
3454
|
-
/** @deprecated use `RunAgentAgentToolInputRunAgentsType$outboundSchema` instead. */
|
|
3455
|
-
export const outboundSchema =
|
|
3456
|
-
RunAgentAgentToolInputRunAgentsType$outboundSchema;
|
|
3457
|
-
}
|
|
3458
|
-
|
|
3459
|
-
/** @internal */
|
|
3460
|
-
export const AgentToolInputRunCallSubAgentTool$inboundSchema: z.ZodType<
|
|
3461
|
-
AgentToolInputRunCallSubAgentTool,
|
|
3462
|
-
z.ZodTypeDef,
|
|
3463
|
-
unknown
|
|
3464
|
-
> = z.object({
|
|
3465
|
-
type: RunAgentAgentToolInputRunAgentsType$inboundSchema,
|
|
3466
|
-
requires_approval: z.boolean().default(false),
|
|
3467
|
-
}).transform((v) => {
|
|
3468
|
-
return remap$(v, {
|
|
3469
|
-
"requires_approval": "requiresApproval",
|
|
3470
|
-
});
|
|
3471
|
-
});
|
|
3472
|
-
|
|
3473
|
-
/** @internal */
|
|
3474
|
-
export type AgentToolInputRunCallSubAgentTool$Outbound = {
|
|
3475
|
-
type: string;
|
|
3476
|
-
requires_approval: boolean;
|
|
3477
|
-
};
|
|
3478
|
-
|
|
3479
|
-
/** @internal */
|
|
3480
|
-
export const AgentToolInputRunCallSubAgentTool$outboundSchema: z.ZodType<
|
|
3481
|
-
AgentToolInputRunCallSubAgentTool$Outbound,
|
|
3482
|
-
z.ZodTypeDef,
|
|
3483
|
-
AgentToolInputRunCallSubAgentTool
|
|
3484
|
-
> = z.object({
|
|
3485
|
-
type: RunAgentAgentToolInputRunAgentsType$outboundSchema,
|
|
3486
|
-
requiresApproval: z.boolean().default(false),
|
|
3487
|
-
}).transform((v) => {
|
|
3488
|
-
return remap$(v, {
|
|
3489
|
-
requiresApproval: "requires_approval",
|
|
3490
|
-
});
|
|
3491
|
-
});
|
|
3492
|
-
|
|
3493
|
-
/**
|
|
3494
|
-
* @internal
|
|
3495
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3496
|
-
*/
|
|
3497
|
-
export namespace AgentToolInputRunCallSubAgentTool$ {
|
|
3498
|
-
/** @deprecated use `AgentToolInputRunCallSubAgentTool$inboundSchema` instead. */
|
|
3499
|
-
export const inboundSchema = AgentToolInputRunCallSubAgentTool$inboundSchema;
|
|
3500
|
-
/** @deprecated use `AgentToolInputRunCallSubAgentTool$outboundSchema` instead. */
|
|
3501
|
-
export const outboundSchema =
|
|
3502
|
-
AgentToolInputRunCallSubAgentTool$outboundSchema;
|
|
3503
|
-
/** @deprecated use `AgentToolInputRunCallSubAgentTool$Outbound` instead. */
|
|
3504
|
-
export type Outbound = AgentToolInputRunCallSubAgentTool$Outbound;
|
|
3505
|
-
}
|
|
3506
|
-
|
|
3507
|
-
export function agentToolInputRunCallSubAgentToolToJSON(
|
|
3508
|
-
agentToolInputRunCallSubAgentTool: AgentToolInputRunCallSubAgentTool,
|
|
3509
|
-
): string {
|
|
3510
|
-
return JSON.stringify(
|
|
3511
|
-
AgentToolInputRunCallSubAgentTool$outboundSchema.parse(
|
|
3512
|
-
agentToolInputRunCallSubAgentTool,
|
|
3513
|
-
),
|
|
3514
|
-
);
|
|
3515
|
-
}
|
|
3516
|
-
|
|
3517
|
-
export function agentToolInputRunCallSubAgentToolFromJSON(
|
|
3518
|
-
jsonString: string,
|
|
3519
|
-
): SafeParseResult<AgentToolInputRunCallSubAgentTool, SDKValidationError> {
|
|
3520
|
-
return safeParse(
|
|
3521
|
-
jsonString,
|
|
3522
|
-
(x) => AgentToolInputRunCallSubAgentTool$inboundSchema.parse(JSON.parse(x)),
|
|
3523
|
-
`Failed to parse 'AgentToolInputRunCallSubAgentTool' from JSON`,
|
|
3524
|
-
);
|
|
3525
|
-
}
|
|
3526
|
-
|
|
3527
|
-
/** @internal */
|
|
3528
|
-
export const RunAgentAgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
|
|
3529
|
-
typeof RunAgentAgentToolInputRunType
|
|
3530
|
-
> = z.nativeEnum(RunAgentAgentToolInputRunType);
|
|
3531
|
-
|
|
3532
|
-
/** @internal */
|
|
3533
|
-
export const RunAgentAgentToolInputRunType$outboundSchema: z.ZodNativeEnum<
|
|
3534
|
-
typeof RunAgentAgentToolInputRunType
|
|
3535
|
-
> = RunAgentAgentToolInputRunType$inboundSchema;
|
|
3536
|
-
|
|
3537
|
-
/**
|
|
3538
|
-
* @internal
|
|
3539
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3540
|
-
*/
|
|
3541
|
-
export namespace RunAgentAgentToolInputRunType$ {
|
|
3542
|
-
/** @deprecated use `RunAgentAgentToolInputRunType$inboundSchema` instead. */
|
|
3543
|
-
export const inboundSchema = RunAgentAgentToolInputRunType$inboundSchema;
|
|
3544
|
-
/** @deprecated use `RunAgentAgentToolInputRunType$outboundSchema` instead. */
|
|
3545
|
-
export const outboundSchema = RunAgentAgentToolInputRunType$outboundSchema;
|
|
3546
|
-
}
|
|
3547
|
-
|
|
3548
|
-
/** @internal */
|
|
3549
|
-
export const AgentToolInputRunWebScraperTool$inboundSchema: z.ZodType<
|
|
3550
|
-
AgentToolInputRunWebScraperTool,
|
|
3551
|
-
z.ZodTypeDef,
|
|
3552
|
-
unknown
|
|
3553
|
-
> = z.object({
|
|
3554
|
-
type: RunAgentAgentToolInputRunType$inboundSchema,
|
|
3555
|
-
requires_approval: z.boolean().default(false),
|
|
3556
|
-
}).transform((v) => {
|
|
3557
|
-
return remap$(v, {
|
|
3558
|
-
"requires_approval": "requiresApproval",
|
|
3559
|
-
});
|
|
3560
|
-
});
|
|
3561
|
-
|
|
3562
|
-
/** @internal */
|
|
3563
|
-
export type AgentToolInputRunWebScraperTool$Outbound = {
|
|
3564
|
-
type: string;
|
|
3565
|
-
requires_approval: boolean;
|
|
3566
|
-
};
|
|
3567
|
-
|
|
3568
|
-
/** @internal */
|
|
3569
|
-
export const AgentToolInputRunWebScraperTool$outboundSchema: z.ZodType<
|
|
3570
|
-
AgentToolInputRunWebScraperTool$Outbound,
|
|
3571
|
-
z.ZodTypeDef,
|
|
3572
|
-
AgentToolInputRunWebScraperTool
|
|
3573
|
-
> = z.object({
|
|
3574
|
-
type: RunAgentAgentToolInputRunType$outboundSchema,
|
|
3575
|
-
requiresApproval: z.boolean().default(false),
|
|
3576
|
-
}).transform((v) => {
|
|
3577
|
-
return remap$(v, {
|
|
3578
|
-
requiresApproval: "requires_approval",
|
|
3579
|
-
});
|
|
3580
|
-
});
|
|
3581
|
-
|
|
3582
|
-
/**
|
|
3583
|
-
* @internal
|
|
3584
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3585
|
-
*/
|
|
3586
|
-
export namespace AgentToolInputRunWebScraperTool$ {
|
|
3587
|
-
/** @deprecated use `AgentToolInputRunWebScraperTool$inboundSchema` instead. */
|
|
3588
|
-
export const inboundSchema = AgentToolInputRunWebScraperTool$inboundSchema;
|
|
3589
|
-
/** @deprecated use `AgentToolInputRunWebScraperTool$outboundSchema` instead. */
|
|
3590
|
-
export const outboundSchema = AgentToolInputRunWebScraperTool$outboundSchema;
|
|
3591
|
-
/** @deprecated use `AgentToolInputRunWebScraperTool$Outbound` instead. */
|
|
3592
|
-
export type Outbound = AgentToolInputRunWebScraperTool$Outbound;
|
|
3593
|
-
}
|
|
3594
|
-
|
|
3595
|
-
export function agentToolInputRunWebScraperToolToJSON(
|
|
3596
|
-
agentToolInputRunWebScraperTool: AgentToolInputRunWebScraperTool,
|
|
3597
|
-
): string {
|
|
3598
|
-
return JSON.stringify(
|
|
3599
|
-
AgentToolInputRunWebScraperTool$outboundSchema.parse(
|
|
3600
|
-
agentToolInputRunWebScraperTool,
|
|
3601
|
-
),
|
|
3602
|
-
);
|
|
3603
|
-
}
|
|
3604
|
-
|
|
3605
|
-
export function agentToolInputRunWebScraperToolFromJSON(
|
|
3606
|
-
jsonString: string,
|
|
3607
|
-
): SafeParseResult<AgentToolInputRunWebScraperTool, SDKValidationError> {
|
|
3608
|
-
return safeParse(
|
|
3609
|
-
jsonString,
|
|
3610
|
-
(x) => AgentToolInputRunWebScraperTool$inboundSchema.parse(JSON.parse(x)),
|
|
3611
|
-
`Failed to parse 'AgentToolInputRunWebScraperTool' from JSON`,
|
|
3612
|
-
);
|
|
3613
|
-
}
|
|
3614
|
-
|
|
3615
|
-
/** @internal */
|
|
3616
|
-
export const AgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
|
|
3617
|
-
typeof AgentToolInputRunType
|
|
3618
|
-
> = z.nativeEnum(AgentToolInputRunType);
|
|
3619
|
-
|
|
3620
|
-
/** @internal */
|
|
3621
|
-
export const AgentToolInputRunType$outboundSchema: z.ZodNativeEnum<
|
|
3622
|
-
typeof AgentToolInputRunType
|
|
3623
|
-
> = AgentToolInputRunType$inboundSchema;
|
|
3624
|
-
|
|
3625
|
-
/**
|
|
3626
|
-
* @internal
|
|
3627
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3628
|
-
*/
|
|
3629
|
-
export namespace AgentToolInputRunType$ {
|
|
3630
|
-
/** @deprecated use `AgentToolInputRunType$inboundSchema` instead. */
|
|
3631
|
-
export const inboundSchema = AgentToolInputRunType$inboundSchema;
|
|
3632
|
-
/** @deprecated use `AgentToolInputRunType$outboundSchema` instead. */
|
|
3633
|
-
export const outboundSchema = AgentToolInputRunType$outboundSchema;
|
|
3634
|
-
}
|
|
3635
|
-
|
|
3636
|
-
/** @internal */
|
|
3637
|
-
export const AgentToolInputRunGoogleSearchTool$inboundSchema: z.ZodType<
|
|
3638
|
-
AgentToolInputRunGoogleSearchTool,
|
|
3639
|
-
z.ZodTypeDef,
|
|
3640
|
-
unknown
|
|
3641
|
-
> = z.object({
|
|
3642
|
-
type: AgentToolInputRunType$inboundSchema,
|
|
3643
|
-
requires_approval: z.boolean().default(false),
|
|
3644
|
-
}).transform((v) => {
|
|
3645
|
-
return remap$(v, {
|
|
3646
|
-
"requires_approval": "requiresApproval",
|
|
3647
|
-
});
|
|
3648
|
-
});
|
|
3649
|
-
|
|
3650
|
-
/** @internal */
|
|
3651
|
-
export type AgentToolInputRunGoogleSearchTool$Outbound = {
|
|
3652
|
-
type: string;
|
|
3653
|
-
requires_approval: boolean;
|
|
3654
|
-
};
|
|
3655
|
-
|
|
3656
|
-
/** @internal */
|
|
3657
|
-
export const AgentToolInputRunGoogleSearchTool$outboundSchema: z.ZodType<
|
|
3658
|
-
AgentToolInputRunGoogleSearchTool$Outbound,
|
|
3659
|
-
z.ZodTypeDef,
|
|
3660
|
-
AgentToolInputRunGoogleSearchTool
|
|
3661
|
-
> = z.object({
|
|
3662
|
-
type: AgentToolInputRunType$outboundSchema,
|
|
3663
|
-
requiresApproval: z.boolean().default(false),
|
|
3664
|
-
}).transform((v) => {
|
|
3665
|
-
return remap$(v, {
|
|
3666
|
-
requiresApproval: "requires_approval",
|
|
3667
|
-
});
|
|
3668
|
-
});
|
|
3669
|
-
|
|
3670
|
-
/**
|
|
3671
|
-
* @internal
|
|
3672
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3673
|
-
*/
|
|
3674
|
-
export namespace AgentToolInputRunGoogleSearchTool$ {
|
|
3675
|
-
/** @deprecated use `AgentToolInputRunGoogleSearchTool$inboundSchema` instead. */
|
|
3676
|
-
export const inboundSchema = AgentToolInputRunGoogleSearchTool$inboundSchema;
|
|
3677
|
-
/** @deprecated use `AgentToolInputRunGoogleSearchTool$outboundSchema` instead. */
|
|
3678
|
-
export const outboundSchema =
|
|
3679
|
-
AgentToolInputRunGoogleSearchTool$outboundSchema;
|
|
3680
|
-
/** @deprecated use `AgentToolInputRunGoogleSearchTool$Outbound` instead. */
|
|
3681
|
-
export type Outbound = AgentToolInputRunGoogleSearchTool$Outbound;
|
|
3682
|
-
}
|
|
3683
|
-
|
|
3684
|
-
export function agentToolInputRunGoogleSearchToolToJSON(
|
|
3685
|
-
agentToolInputRunGoogleSearchTool: AgentToolInputRunGoogleSearchTool,
|
|
3686
|
-
): string {
|
|
3687
|
-
return JSON.stringify(
|
|
3688
|
-
AgentToolInputRunGoogleSearchTool$outboundSchema.parse(
|
|
3689
|
-
agentToolInputRunGoogleSearchTool,
|
|
3690
|
-
),
|
|
3691
|
-
);
|
|
3692
|
-
}
|
|
3693
|
-
|
|
3694
|
-
export function agentToolInputRunGoogleSearchToolFromJSON(
|
|
3695
|
-
jsonString: string,
|
|
3696
|
-
): SafeParseResult<AgentToolInputRunGoogleSearchTool, SDKValidationError> {
|
|
3697
|
-
return safeParse(
|
|
3698
|
-
jsonString,
|
|
3699
|
-
(x) => AgentToolInputRunGoogleSearchTool$inboundSchema.parse(JSON.parse(x)),
|
|
3700
|
-
`Failed to parse 'AgentToolInputRunGoogleSearchTool' from JSON`,
|
|
3701
|
-
);
|
|
3702
|
-
}
|
|
3703
|
-
|
|
3704
|
-
/** @internal */
|
|
3705
|
-
export const AgentToolInputRun$inboundSchema: z.ZodType<
|
|
3706
|
-
AgentToolInputRun,
|
|
3707
|
-
z.ZodTypeDef,
|
|
3708
|
-
unknown
|
|
3709
|
-
> = z.union([
|
|
3710
|
-
z.lazy(() => HTTPToolRun$inboundSchema),
|
|
3711
|
-
z.lazy(() => CodeToolRun$inboundSchema),
|
|
3712
|
-
z.lazy(() => FunctionToolRun$inboundSchema),
|
|
3713
|
-
z.lazy(() => AgentToolInputRunGoogleSearchTool$inboundSchema),
|
|
3714
|
-
z.lazy(() => AgentToolInputRunWebScraperTool$inboundSchema),
|
|
3715
|
-
z.lazy(() => AgentToolInputRunCallSubAgentTool$inboundSchema),
|
|
3716
|
-
z.lazy(() => AgentToolInputRunRetrieveAgentsTool$inboundSchema),
|
|
3717
|
-
z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$inboundSchema),
|
|
3718
|
-
z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$inboundSchema),
|
|
3719
|
-
z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema),
|
|
3720
|
-
z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema),
|
|
3721
|
-
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema),
|
|
3722
|
-
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema),
|
|
3723
|
-
z.lazy(() => AgentToolInputRunCurrentDateTool$inboundSchema),
|
|
3724
|
-
]);
|
|
3725
|
-
|
|
3726
|
-
/** @internal */
|
|
3727
|
-
export type AgentToolInputRun$Outbound =
|
|
3728
|
-
| HTTPToolRun$Outbound
|
|
3729
|
-
| CodeToolRun$Outbound
|
|
3730
|
-
| FunctionToolRun$Outbound
|
|
3731
|
-
| AgentToolInputRunGoogleSearchTool$Outbound
|
|
3732
|
-
| AgentToolInputRunWebScraperTool$Outbound
|
|
3733
|
-
| AgentToolInputRunCallSubAgentTool$Outbound
|
|
3734
|
-
| AgentToolInputRunRetrieveAgentsTool$Outbound
|
|
3735
|
-
| AgentToolInputRunQueryMemoryStoreTool$Outbound
|
|
3736
|
-
| AgentToolInputRunWriteMemoryStoreTool$Outbound
|
|
3737
|
-
| AgentToolInputRunRetrieveMemoryStoresTool$Outbound
|
|
3738
|
-
| AgentToolInputRunDeleteMemoryDocumentTool$Outbound
|
|
3739
|
-
| AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
|
|
3740
|
-
| AgentToolInputRunQueryKnowledgeBaseTool$Outbound
|
|
3741
|
-
| AgentToolInputRunCurrentDateTool$Outbound;
|
|
3742
|
-
|
|
3743
|
-
/** @internal */
|
|
3744
|
-
export const AgentToolInputRun$outboundSchema: z.ZodType<
|
|
3745
|
-
AgentToolInputRun$Outbound,
|
|
3746
|
-
z.ZodTypeDef,
|
|
3747
|
-
AgentToolInputRun
|
|
3748
|
-
> = z.union([
|
|
3749
|
-
z.lazy(() => HTTPToolRun$outboundSchema),
|
|
3750
|
-
z.lazy(() => CodeToolRun$outboundSchema),
|
|
3751
|
-
z.lazy(() => FunctionToolRun$outboundSchema),
|
|
3752
|
-
z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
|
|
3753
|
-
z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
|
|
3754
|
-
z.lazy(() => AgentToolInputRunCallSubAgentTool$outboundSchema),
|
|
3755
|
-
z.lazy(() => AgentToolInputRunRetrieveAgentsTool$outboundSchema),
|
|
3756
|
-
z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
|
|
3757
|
-
z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
|
|
3758
|
-
z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
|
|
3759
|
-
z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
|
|
3760
|
-
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
|
|
3761
|
-
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
|
|
3762
|
-
z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
|
|
3763
|
-
]);
|
|
3764
|
-
|
|
3765
|
-
/**
|
|
3766
|
-
* @internal
|
|
3767
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3768
|
-
*/
|
|
3769
|
-
export namespace AgentToolInputRun$ {
|
|
3770
|
-
/** @deprecated use `AgentToolInputRun$inboundSchema` instead. */
|
|
3771
|
-
export const inboundSchema = AgentToolInputRun$inboundSchema;
|
|
3772
|
-
/** @deprecated use `AgentToolInputRun$outboundSchema` instead. */
|
|
3773
|
-
export const outboundSchema = AgentToolInputRun$outboundSchema;
|
|
3774
|
-
/** @deprecated use `AgentToolInputRun$Outbound` instead. */
|
|
3775
|
-
export type Outbound = AgentToolInputRun$Outbound;
|
|
3776
|
-
}
|
|
3777
|
-
|
|
3778
|
-
export function agentToolInputRunToJSON(
|
|
3779
|
-
agentToolInputRun: AgentToolInputRun,
|
|
3780
|
-
): string {
|
|
3781
|
-
return JSON.stringify(
|
|
3782
|
-
AgentToolInputRun$outboundSchema.parse(agentToolInputRun),
|
|
3783
|
-
);
|
|
3784
|
-
}
|
|
3785
|
-
|
|
3786
|
-
export function agentToolInputRunFromJSON(
|
|
3787
|
-
jsonString: string,
|
|
3788
|
-
): SafeParseResult<AgentToolInputRun, SDKValidationError> {
|
|
3789
|
-
return safeParse(
|
|
3790
|
-
jsonString,
|
|
3791
|
-
(x) => AgentToolInputRun$inboundSchema.parse(JSON.parse(x)),
|
|
3792
|
-
`Failed to parse 'AgentToolInputRun' from JSON`,
|
|
3793
|
-
);
|
|
3794
|
-
}
|
|
3795
|
-
|
|
3796
|
-
/** @internal */
|
|
3797
|
-
export const RunAgentToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
|
|
3798
|
-
typeof RunAgentToolApprovalRequired
|
|
3799
|
-
> = z.nativeEnum(RunAgentToolApprovalRequired);
|
|
3800
|
-
|
|
3801
|
-
/** @internal */
|
|
3802
|
-
export const RunAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
|
|
3803
|
-
typeof RunAgentToolApprovalRequired
|
|
3804
|
-
> = RunAgentToolApprovalRequired$inboundSchema;
|
|
3805
|
-
|
|
3806
|
-
/**
|
|
3807
|
-
* @internal
|
|
3808
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3809
|
-
*/
|
|
3810
|
-
export namespace RunAgentToolApprovalRequired$ {
|
|
3811
|
-
/** @deprecated use `RunAgentToolApprovalRequired$inboundSchema` instead. */
|
|
3812
|
-
export const inboundSchema = RunAgentToolApprovalRequired$inboundSchema;
|
|
3813
|
-
/** @deprecated use `RunAgentToolApprovalRequired$outboundSchema` instead. */
|
|
3814
|
-
export const outboundSchema = RunAgentToolApprovalRequired$outboundSchema;
|
|
3815
|
-
}
|
|
3816
|
-
|
|
3817
|
-
/** @internal */
|
|
3818
|
-
export const RunAgentSettings$inboundSchema: z.ZodType<
|
|
3819
|
-
RunAgentSettings,
|
|
3820
|
-
z.ZodTypeDef,
|
|
3821
|
-
unknown
|
|
3822
|
-
> = z.object({
|
|
3823
|
-
tools: z.array(
|
|
3824
|
-
z.union([
|
|
3825
|
-
z.lazy(() => HTTPToolRun$inboundSchema),
|
|
3826
|
-
z.lazy(() => CodeToolRun$inboundSchema),
|
|
3827
|
-
z.lazy(() => FunctionToolRun$inboundSchema),
|
|
3828
|
-
z.lazy(() => AgentToolInputRunGoogleSearchTool$inboundSchema),
|
|
3829
|
-
z.lazy(() => AgentToolInputRunWebScraperTool$inboundSchema),
|
|
3830
|
-
z.lazy(() => AgentToolInputRunCallSubAgentTool$inboundSchema),
|
|
3831
|
-
z.lazy(() => AgentToolInputRunRetrieveAgentsTool$inboundSchema),
|
|
3832
|
-
z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$inboundSchema),
|
|
3833
|
-
z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$inboundSchema),
|
|
3834
|
-
z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema),
|
|
3835
|
-
z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema),
|
|
3836
|
-
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema),
|
|
3837
|
-
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema),
|
|
3838
|
-
z.lazy(() => AgentToolInputRunCurrentDateTool$inboundSchema),
|
|
3839
|
-
]),
|
|
3840
|
-
).optional(),
|
|
3841
|
-
tool_approval_required: RunAgentToolApprovalRequired$inboundSchema.default(
|
|
3842
|
-
"none",
|
|
3843
|
-
),
|
|
3844
|
-
max_iterations: z.number().int().default(15),
|
|
3845
|
-
max_execution_time: z.number().int().default(300),
|
|
3846
|
-
}).transform((v) => {
|
|
3847
|
-
return remap$(v, {
|
|
3848
|
-
"tool_approval_required": "toolApprovalRequired",
|
|
3849
|
-
"max_iterations": "maxIterations",
|
|
3850
|
-
"max_execution_time": "maxExecutionTime",
|
|
3851
|
-
});
|
|
3852
|
-
});
|
|
3853
|
-
|
|
3854
|
-
/** @internal */
|
|
3855
|
-
export type RunAgentSettings$Outbound = {
|
|
3856
|
-
tools?:
|
|
3857
|
-
| Array<
|
|
3858
|
-
| HTTPToolRun$Outbound
|
|
3859
|
-
| CodeToolRun$Outbound
|
|
3860
|
-
| FunctionToolRun$Outbound
|
|
3861
|
-
| AgentToolInputRunGoogleSearchTool$Outbound
|
|
3862
|
-
| AgentToolInputRunWebScraperTool$Outbound
|
|
3863
|
-
| AgentToolInputRunCallSubAgentTool$Outbound
|
|
3864
|
-
| AgentToolInputRunRetrieveAgentsTool$Outbound
|
|
3865
|
-
| AgentToolInputRunQueryMemoryStoreTool$Outbound
|
|
3866
|
-
| AgentToolInputRunWriteMemoryStoreTool$Outbound
|
|
3867
|
-
| AgentToolInputRunRetrieveMemoryStoresTool$Outbound
|
|
3868
|
-
| AgentToolInputRunDeleteMemoryDocumentTool$Outbound
|
|
3869
|
-
| AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
|
|
3870
|
-
| AgentToolInputRunQueryKnowledgeBaseTool$Outbound
|
|
3871
|
-
| AgentToolInputRunCurrentDateTool$Outbound
|
|
3872
|
-
>
|
|
3873
|
-
| undefined;
|
|
3874
|
-
tool_approval_required: string;
|
|
3875
|
-
max_iterations: number;
|
|
3876
|
-
max_execution_time: number;
|
|
3877
|
-
};
|
|
3878
|
-
|
|
3879
|
-
/** @internal */
|
|
3880
|
-
export const RunAgentSettings$outboundSchema: z.ZodType<
|
|
3881
|
-
RunAgentSettings$Outbound,
|
|
3882
|
-
z.ZodTypeDef,
|
|
3883
|
-
RunAgentSettings
|
|
3884
|
-
> = z.object({
|
|
3885
|
-
tools: z.array(
|
|
3886
|
-
z.union([
|
|
3887
|
-
z.lazy(() => HTTPToolRun$outboundSchema),
|
|
3888
|
-
z.lazy(() => CodeToolRun$outboundSchema),
|
|
3889
|
-
z.lazy(() => FunctionToolRun$outboundSchema),
|
|
3890
|
-
z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
|
|
3891
|
-
z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
|
|
3892
|
-
z.lazy(() => AgentToolInputRunCallSubAgentTool$outboundSchema),
|
|
3893
|
-
z.lazy(() => AgentToolInputRunRetrieveAgentsTool$outboundSchema),
|
|
3894
|
-
z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
|
|
3895
|
-
z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
|
|
3896
|
-
z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
|
|
3897
|
-
z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
|
|
3898
|
-
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
|
|
3899
|
-
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
|
|
3900
|
-
z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
|
|
3901
|
-
]),
|
|
3902
|
-
).optional(),
|
|
3903
|
-
toolApprovalRequired: RunAgentToolApprovalRequired$outboundSchema.default(
|
|
3904
|
-
"none",
|
|
3905
|
-
),
|
|
3906
|
-
maxIterations: z.number().int().default(15),
|
|
3907
|
-
maxExecutionTime: z.number().int().default(300),
|
|
3908
|
-
}).transform((v) => {
|
|
3909
|
-
return remap$(v, {
|
|
3910
|
-
toolApprovalRequired: "tool_approval_required",
|
|
3911
|
-
maxIterations: "max_iterations",
|
|
3912
|
-
maxExecutionTime: "max_execution_time",
|
|
3913
|
-
});
|
|
3914
|
-
});
|
|
3915
|
-
|
|
3916
|
-
/**
|
|
3917
|
-
* @internal
|
|
3918
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3919
|
-
*/
|
|
3920
|
-
export namespace RunAgentSettings$ {
|
|
3921
|
-
/** @deprecated use `RunAgentSettings$inboundSchema` instead. */
|
|
3922
|
-
export const inboundSchema = RunAgentSettings$inboundSchema;
|
|
3923
|
-
/** @deprecated use `RunAgentSettings$outboundSchema` instead. */
|
|
3924
|
-
export const outboundSchema = RunAgentSettings$outboundSchema;
|
|
3925
|
-
/** @deprecated use `RunAgentSettings$Outbound` instead. */
|
|
3926
|
-
export type Outbound = RunAgentSettings$Outbound;
|
|
3927
|
-
}
|
|
3928
|
-
|
|
3929
|
-
export function runAgentSettingsToJSON(
|
|
3930
|
-
runAgentSettings: RunAgentSettings,
|
|
3931
|
-
): string {
|
|
3932
|
-
return JSON.stringify(
|
|
3933
|
-
RunAgentSettings$outboundSchema.parse(runAgentSettings),
|
|
3934
|
-
);
|
|
3935
|
-
}
|
|
3936
|
-
|
|
3937
|
-
export function runAgentSettingsFromJSON(
|
|
3938
|
-
jsonString: string,
|
|
3939
|
-
): SafeParseResult<RunAgentSettings, SDKValidationError> {
|
|
3940
|
-
return safeParse(
|
|
3941
|
-
jsonString,
|
|
3942
|
-
(x) => RunAgentSettings$inboundSchema.parse(JSON.parse(x)),
|
|
3943
|
-
`Failed to parse 'RunAgentSettings' from JSON`,
|
|
3944
|
-
);
|
|
3945
|
-
}
|
|
3946
|
-
|
|
3947
|
-
/** @internal */
|
|
3948
|
-
export const RunAgentRequestBody$inboundSchema: z.ZodType<
|
|
3949
|
-
RunAgentRequestBody,
|
|
3950
|
-
z.ZodTypeDef,
|
|
3951
|
-
unknown
|
|
3952
|
-
> = z.object({
|
|
3953
|
-
key: z.string(),
|
|
3954
|
-
task_id: z.string().optional(),
|
|
3955
|
-
model: z.string(),
|
|
3956
|
-
fallback_models: z.array(z.string()).optional(),
|
|
3957
|
-
role: z.string(),
|
|
3958
|
-
instructions: z.string(),
|
|
3959
|
-
message: z.lazy(() => RunAgentMessage$inboundSchema),
|
|
3960
|
-
variables: z.record(z.any()).optional(),
|
|
3961
|
-
contact: z.lazy(() => RunAgentContact$inboundSchema).optional(),
|
|
3962
|
-
thread: z.lazy(() => RunAgentThread$inboundSchema).optional(),
|
|
3963
|
-
memory: z.lazy(() => RunAgentMemory$inboundSchema).optional(),
|
|
3964
|
-
path: z.string(),
|
|
3965
|
-
description: z.string().optional(),
|
|
3966
|
-
system_prompt: z.string().optional(),
|
|
3967
|
-
memory_stores: z.array(z.string()).optional(),
|
|
3968
|
-
knowledge_bases: z.array(z.lazy(() => RunAgentKnowledgeBases$inboundSchema))
|
|
3969
|
-
.optional(),
|
|
3970
|
-
team_of_agents: z.array(z.lazy(() => RunAgentTeamOfAgents$inboundSchema))
|
|
3971
|
-
.optional(),
|
|
3972
|
-
settings: z.lazy(() => RunAgentSettings$inboundSchema),
|
|
3973
|
-
metadata: z.record(z.any()).optional(),
|
|
3974
|
-
}).transform((v) => {
|
|
3975
|
-
return remap$(v, {
|
|
3976
|
-
"task_id": "taskId",
|
|
3977
|
-
"fallback_models": "fallbackModels",
|
|
3978
|
-
"system_prompt": "systemPrompt",
|
|
3979
|
-
"memory_stores": "memoryStores",
|
|
3980
|
-
"knowledge_bases": "knowledgeBases",
|
|
3981
|
-
"team_of_agents": "teamOfAgents",
|
|
3982
|
-
});
|
|
3983
|
-
});
|
|
3984
|
-
|
|
3985
|
-
/** @internal */
|
|
3986
|
-
export type RunAgentRequestBody$Outbound = {
|
|
3987
|
-
key: string;
|
|
3988
|
-
task_id?: string | undefined;
|
|
3989
|
-
model: string;
|
|
3990
|
-
fallback_models?: Array<string> | undefined;
|
|
3991
|
-
role: string;
|
|
3992
|
-
instructions: string;
|
|
3993
|
-
message: RunAgentMessage$Outbound;
|
|
3994
|
-
variables?: { [k: string]: any } | undefined;
|
|
3995
|
-
contact?: RunAgentContact$Outbound | undefined;
|
|
3996
|
-
thread?: RunAgentThread$Outbound | undefined;
|
|
3997
|
-
memory?: RunAgentMemory$Outbound | undefined;
|
|
3998
|
-
path: string;
|
|
3999
|
-
description?: string | undefined;
|
|
4000
|
-
system_prompt?: string | undefined;
|
|
4001
|
-
memory_stores?: Array<string> | undefined;
|
|
4002
|
-
knowledge_bases?: Array<RunAgentKnowledgeBases$Outbound> | undefined;
|
|
4003
|
-
team_of_agents?: Array<RunAgentTeamOfAgents$Outbound> | undefined;
|
|
4004
|
-
settings: RunAgentSettings$Outbound;
|
|
4005
|
-
metadata?: { [k: string]: any } | undefined;
|
|
4006
|
-
};
|
|
4007
|
-
|
|
4008
|
-
/** @internal */
|
|
4009
|
-
export const RunAgentRequestBody$outboundSchema: z.ZodType<
|
|
4010
|
-
RunAgentRequestBody$Outbound,
|
|
4011
|
-
z.ZodTypeDef,
|
|
4012
|
-
RunAgentRequestBody
|
|
4013
|
-
> = z.object({
|
|
4014
|
-
key: z.string(),
|
|
4015
|
-
taskId: z.string().optional(),
|
|
4016
|
-
model: z.string(),
|
|
4017
|
-
fallbackModels: z.array(z.string()).optional(),
|
|
4018
|
-
role: z.string(),
|
|
4019
|
-
instructions: z.string(),
|
|
4020
|
-
message: z.lazy(() => RunAgentMessage$outboundSchema),
|
|
4021
|
-
variables: z.record(z.any()).optional(),
|
|
4022
|
-
contact: z.lazy(() => RunAgentContact$outboundSchema).optional(),
|
|
4023
|
-
thread: z.lazy(() => RunAgentThread$outboundSchema).optional(),
|
|
4024
|
-
memory: z.lazy(() => RunAgentMemory$outboundSchema).optional(),
|
|
4025
|
-
path: z.string(),
|
|
4026
|
-
description: z.string().optional(),
|
|
4027
|
-
systemPrompt: z.string().optional(),
|
|
4028
|
-
memoryStores: z.array(z.string()).optional(),
|
|
4029
|
-
knowledgeBases: z.array(z.lazy(() => RunAgentKnowledgeBases$outboundSchema))
|
|
4030
|
-
.optional(),
|
|
4031
|
-
teamOfAgents: z.array(z.lazy(() => RunAgentTeamOfAgents$outboundSchema))
|
|
4032
|
-
.optional(),
|
|
4033
|
-
settings: z.lazy(() => RunAgentSettings$outboundSchema),
|
|
4034
|
-
metadata: z.record(z.any()).optional(),
|
|
4035
|
-
}).transform((v) => {
|
|
4036
|
-
return remap$(v, {
|
|
4037
|
-
taskId: "task_id",
|
|
4038
|
-
fallbackModels: "fallback_models",
|
|
4039
|
-
systemPrompt: "system_prompt",
|
|
4040
|
-
memoryStores: "memory_stores",
|
|
4041
|
-
knowledgeBases: "knowledge_bases",
|
|
4042
|
-
teamOfAgents: "team_of_agents",
|
|
4043
|
-
});
|
|
4044
|
-
});
|
|
4045
|
-
|
|
4046
|
-
/**
|
|
4047
|
-
* @internal
|
|
4048
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4049
|
-
*/
|
|
4050
|
-
export namespace RunAgentRequestBody$ {
|
|
4051
|
-
/** @deprecated use `RunAgentRequestBody$inboundSchema` instead. */
|
|
4052
|
-
export const inboundSchema = RunAgentRequestBody$inboundSchema;
|
|
4053
|
-
/** @deprecated use `RunAgentRequestBody$outboundSchema` instead. */
|
|
4054
|
-
export const outboundSchema = RunAgentRequestBody$outboundSchema;
|
|
4055
|
-
/** @deprecated use `RunAgentRequestBody$Outbound` instead. */
|
|
4056
|
-
export type Outbound = RunAgentRequestBody$Outbound;
|
|
4057
|
-
}
|
|
4058
|
-
|
|
4059
|
-
export function runAgentRequestBodyToJSON(
|
|
4060
|
-
runAgentRequestBody: RunAgentRequestBody,
|
|
4061
|
-
): string {
|
|
4062
|
-
return JSON.stringify(
|
|
4063
|
-
RunAgentRequestBody$outboundSchema.parse(runAgentRequestBody),
|
|
4064
|
-
);
|
|
4065
|
-
}
|
|
4066
|
-
|
|
4067
|
-
export function runAgentRequestBodyFromJSON(
|
|
4068
|
-
jsonString: string,
|
|
4069
|
-
): SafeParseResult<RunAgentRequestBody, SDKValidationError> {
|
|
4070
|
-
return safeParse(
|
|
4071
|
-
jsonString,
|
|
4072
|
-
(x) => RunAgentRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
4073
|
-
`Failed to parse 'RunAgentRequestBody' from JSON`,
|
|
4074
|
-
);
|
|
4075
|
-
}
|
|
4076
|
-
|
|
4077
|
-
/** @internal */
|
|
4078
|
-
export const RunAgentKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentKind> =
|
|
4079
|
-
z.nativeEnum(RunAgentKind);
|
|
4080
|
-
|
|
4081
|
-
/** @internal */
|
|
4082
|
-
export const RunAgentKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentKind> =
|
|
4083
|
-
RunAgentKind$inboundSchema;
|
|
4084
|
-
|
|
4085
|
-
/**
|
|
4086
|
-
* @internal
|
|
4087
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4088
|
-
*/
|
|
4089
|
-
export namespace RunAgentKind$ {
|
|
4090
|
-
/** @deprecated use `RunAgentKind$inboundSchema` instead. */
|
|
4091
|
-
export const inboundSchema = RunAgentKind$inboundSchema;
|
|
4092
|
-
/** @deprecated use `RunAgentKind$outboundSchema` instead. */
|
|
4093
|
-
export const outboundSchema = RunAgentKind$outboundSchema;
|
|
4094
|
-
}
|
|
4095
|
-
|
|
4096
|
-
/** @internal */
|
|
4097
|
-
export const RunAgentState$inboundSchema: z.ZodNativeEnum<
|
|
4098
|
-
typeof RunAgentState
|
|
4099
|
-
> = z.nativeEnum(RunAgentState);
|
|
4100
|
-
|
|
4101
|
-
/** @internal */
|
|
4102
|
-
export const RunAgentState$outboundSchema: z.ZodNativeEnum<
|
|
4103
|
-
typeof RunAgentState
|
|
4104
|
-
> = RunAgentState$inboundSchema;
|
|
4105
|
-
|
|
4106
|
-
/**
|
|
4107
|
-
* @internal
|
|
4108
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4109
|
-
*/
|
|
4110
|
-
export namespace RunAgentState$ {
|
|
4111
|
-
/** @deprecated use `RunAgentState$inboundSchema` instead. */
|
|
4112
|
-
export const inboundSchema = RunAgentState$inboundSchema;
|
|
4113
|
-
/** @deprecated use `RunAgentState$outboundSchema` instead. */
|
|
4114
|
-
export const outboundSchema = RunAgentState$outboundSchema;
|
|
4115
|
-
}
|
|
4116
|
-
|
|
4117
|
-
/** @internal */
|
|
4118
|
-
export const RunAgentAgentsKind$inboundSchema: z.ZodNativeEnum<
|
|
4119
|
-
typeof RunAgentAgentsKind
|
|
4120
|
-
> = z.nativeEnum(RunAgentAgentsKind);
|
|
4121
|
-
|
|
4122
|
-
/** @internal */
|
|
4123
|
-
export const RunAgentAgentsKind$outboundSchema: z.ZodNativeEnum<
|
|
4124
|
-
typeof RunAgentAgentsKind
|
|
4125
|
-
> = RunAgentAgentsKind$inboundSchema;
|
|
4126
|
-
|
|
4127
|
-
/**
|
|
4128
|
-
* @internal
|
|
4129
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4130
|
-
*/
|
|
4131
|
-
export namespace RunAgentAgentsKind$ {
|
|
4132
|
-
/** @deprecated use `RunAgentAgentsKind$inboundSchema` instead. */
|
|
4133
|
-
export const inboundSchema = RunAgentAgentsKind$inboundSchema;
|
|
4134
|
-
/** @deprecated use `RunAgentAgentsKind$outboundSchema` instead. */
|
|
4135
|
-
export const outboundSchema = RunAgentAgentsKind$outboundSchema;
|
|
4136
|
-
}
|
|
4137
|
-
|
|
4138
|
-
/** @internal */
|
|
4139
|
-
export const RunAgentAgentsRole$inboundSchema: z.ZodNativeEnum<
|
|
4140
|
-
typeof RunAgentAgentsRole
|
|
4141
|
-
> = z.nativeEnum(RunAgentAgentsRole);
|
|
4142
|
-
|
|
4143
|
-
/** @internal */
|
|
4144
|
-
export const RunAgentAgentsRole$outboundSchema: z.ZodNativeEnum<
|
|
4145
|
-
typeof RunAgentAgentsRole
|
|
4146
|
-
> = RunAgentAgentsRole$inboundSchema;
|
|
4147
|
-
|
|
4148
|
-
/**
|
|
4149
|
-
* @internal
|
|
4150
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4151
|
-
*/
|
|
4152
|
-
export namespace RunAgentAgentsRole$ {
|
|
4153
|
-
/** @deprecated use `RunAgentAgentsRole$inboundSchema` instead. */
|
|
4154
|
-
export const inboundSchema = RunAgentAgentsRole$inboundSchema;
|
|
4155
|
-
/** @deprecated use `RunAgentAgentsRole$outboundSchema` instead. */
|
|
4156
|
-
export const outboundSchema = RunAgentAgentsRole$outboundSchema;
|
|
4157
|
-
}
|
|
4158
|
-
|
|
4159
|
-
/** @internal */
|
|
4160
|
-
export const RunAgentAgentsMessage$inboundSchema: z.ZodType<
|
|
4161
|
-
RunAgentAgentsMessage,
|
|
4162
|
-
z.ZodTypeDef,
|
|
4163
|
-
unknown
|
|
4164
|
-
> = z.object({
|
|
4165
|
-
kind: RunAgentAgentsKind$inboundSchema,
|
|
4166
|
-
messageId: z.string(),
|
|
4167
|
-
role: RunAgentAgentsRole$inboundSchema,
|
|
4168
|
-
parts: z.array(z.any()),
|
|
4169
|
-
});
|
|
4170
|
-
|
|
4171
|
-
/** @internal */
|
|
4172
|
-
export type RunAgentAgentsMessage$Outbound = {
|
|
4173
|
-
kind: string;
|
|
4174
|
-
messageId: string;
|
|
4175
|
-
role: string;
|
|
4176
|
-
parts: Array<any>;
|
|
4177
|
-
};
|
|
4178
|
-
|
|
4179
|
-
/** @internal */
|
|
4180
|
-
export const RunAgentAgentsMessage$outboundSchema: z.ZodType<
|
|
4181
|
-
RunAgentAgentsMessage$Outbound,
|
|
4182
|
-
z.ZodTypeDef,
|
|
4183
|
-
RunAgentAgentsMessage
|
|
4184
|
-
> = z.object({
|
|
4185
|
-
kind: RunAgentAgentsKind$outboundSchema,
|
|
4186
|
-
messageId: z.string(),
|
|
4187
|
-
role: RunAgentAgentsRole$outboundSchema,
|
|
4188
|
-
parts: z.array(z.any()),
|
|
4189
|
-
});
|
|
4190
|
-
|
|
4191
|
-
/**
|
|
4192
|
-
* @internal
|
|
4193
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4194
|
-
*/
|
|
4195
|
-
export namespace RunAgentAgentsMessage$ {
|
|
4196
|
-
/** @deprecated use `RunAgentAgentsMessage$inboundSchema` instead. */
|
|
4197
|
-
export const inboundSchema = RunAgentAgentsMessage$inboundSchema;
|
|
4198
|
-
/** @deprecated use `RunAgentAgentsMessage$outboundSchema` instead. */
|
|
4199
|
-
export const outboundSchema = RunAgentAgentsMessage$outboundSchema;
|
|
4200
|
-
/** @deprecated use `RunAgentAgentsMessage$Outbound` instead. */
|
|
4201
|
-
export type Outbound = RunAgentAgentsMessage$Outbound;
|
|
4202
|
-
}
|
|
4203
|
-
|
|
4204
|
-
export function runAgentAgentsMessageToJSON(
|
|
4205
|
-
runAgentAgentsMessage: RunAgentAgentsMessage,
|
|
4206
|
-
): string {
|
|
4207
|
-
return JSON.stringify(
|
|
4208
|
-
RunAgentAgentsMessage$outboundSchema.parse(runAgentAgentsMessage),
|
|
4209
|
-
);
|
|
4210
|
-
}
|
|
4211
|
-
|
|
4212
|
-
export function runAgentAgentsMessageFromJSON(
|
|
4213
|
-
jsonString: string,
|
|
4214
|
-
): SafeParseResult<RunAgentAgentsMessage, SDKValidationError> {
|
|
4215
|
-
return safeParse(
|
|
4216
|
-
jsonString,
|
|
4217
|
-
(x) => RunAgentAgentsMessage$inboundSchema.parse(JSON.parse(x)),
|
|
4218
|
-
`Failed to parse 'RunAgentAgentsMessage' from JSON`,
|
|
4219
|
-
);
|
|
4220
|
-
}
|
|
4221
|
-
|
|
4222
|
-
/** @internal */
|
|
4223
|
-
export const RunAgentStatus$inboundSchema: z.ZodType<
|
|
4224
|
-
RunAgentStatus,
|
|
4225
|
-
z.ZodTypeDef,
|
|
4226
|
-
unknown
|
|
4227
|
-
> = z.object({
|
|
4228
|
-
state: RunAgentState$inboundSchema,
|
|
4229
|
-
timestamp: z.string().optional(),
|
|
4230
|
-
message: z.lazy(() => RunAgentAgentsMessage$inboundSchema).optional(),
|
|
4231
|
-
});
|
|
4232
|
-
|
|
4233
|
-
/** @internal */
|
|
4234
|
-
export type RunAgentStatus$Outbound = {
|
|
4235
|
-
state: string;
|
|
4236
|
-
timestamp?: string | undefined;
|
|
4237
|
-
message?: RunAgentAgentsMessage$Outbound | undefined;
|
|
4238
|
-
};
|
|
4239
|
-
|
|
4240
|
-
/** @internal */
|
|
4241
|
-
export const RunAgentStatus$outboundSchema: z.ZodType<
|
|
4242
|
-
RunAgentStatus$Outbound,
|
|
4243
|
-
z.ZodTypeDef,
|
|
4244
|
-
RunAgentStatus
|
|
4245
|
-
> = z.object({
|
|
4246
|
-
state: RunAgentState$outboundSchema,
|
|
4247
|
-
timestamp: z.string().optional(),
|
|
4248
|
-
message: z.lazy(() => RunAgentAgentsMessage$outboundSchema).optional(),
|
|
4249
|
-
});
|
|
4250
|
-
|
|
4251
|
-
/**
|
|
4252
|
-
* @internal
|
|
4253
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4254
|
-
*/
|
|
4255
|
-
export namespace RunAgentStatus$ {
|
|
4256
|
-
/** @deprecated use `RunAgentStatus$inboundSchema` instead. */
|
|
4257
|
-
export const inboundSchema = RunAgentStatus$inboundSchema;
|
|
4258
|
-
/** @deprecated use `RunAgentStatus$outboundSchema` instead. */
|
|
4259
|
-
export const outboundSchema = RunAgentStatus$outboundSchema;
|
|
4260
|
-
/** @deprecated use `RunAgentStatus$Outbound` instead. */
|
|
4261
|
-
export type Outbound = RunAgentStatus$Outbound;
|
|
4262
|
-
}
|
|
4263
|
-
|
|
4264
|
-
export function runAgentStatusToJSON(runAgentStatus: RunAgentStatus): string {
|
|
4265
|
-
return JSON.stringify(RunAgentStatus$outboundSchema.parse(runAgentStatus));
|
|
4266
|
-
}
|
|
4267
|
-
|
|
4268
|
-
export function runAgentStatusFromJSON(
|
|
4269
|
-
jsonString: string,
|
|
4270
|
-
): SafeParseResult<RunAgentStatus, SDKValidationError> {
|
|
4271
|
-
return safeParse(
|
|
4272
|
-
jsonString,
|
|
4273
|
-
(x) => RunAgentStatus$inboundSchema.parse(JSON.parse(x)),
|
|
4274
|
-
`Failed to parse 'RunAgentStatus' from JSON`,
|
|
4275
|
-
);
|
|
4276
|
-
}
|
|
4277
|
-
|
|
4278
|
-
/** @internal */
|
|
4279
|
-
export const RunAgentResponseBody$inboundSchema: z.ZodType<
|
|
4280
|
-
RunAgentResponseBody,
|
|
4281
|
-
z.ZodTypeDef,
|
|
4282
|
-
unknown
|
|
4283
|
-
> = z.object({
|
|
4284
|
-
id: z.string(),
|
|
4285
|
-
contextId: z.string(),
|
|
4286
|
-
kind: RunAgentKind$inboundSchema,
|
|
4287
|
-
status: z.lazy(() => RunAgentStatus$inboundSchema),
|
|
4288
|
-
metadata: z.record(z.any()).optional(),
|
|
4289
|
-
});
|
|
4290
|
-
|
|
4291
|
-
/** @internal */
|
|
4292
|
-
export type RunAgentResponseBody$Outbound = {
|
|
4293
|
-
id: string;
|
|
4294
|
-
contextId: string;
|
|
4295
|
-
kind: string;
|
|
4296
|
-
status: RunAgentStatus$Outbound;
|
|
4297
|
-
metadata?: { [k: string]: any } | undefined;
|
|
4298
|
-
};
|
|
4299
|
-
|
|
4300
|
-
/** @internal */
|
|
4301
|
-
export const RunAgentResponseBody$outboundSchema: z.ZodType<
|
|
4302
|
-
RunAgentResponseBody$Outbound,
|
|
4303
|
-
z.ZodTypeDef,
|
|
4304
|
-
RunAgentResponseBody
|
|
4305
|
-
> = z.object({
|
|
4306
|
-
id: z.string(),
|
|
4307
|
-
contextId: z.string(),
|
|
4308
|
-
kind: RunAgentKind$outboundSchema,
|
|
4309
|
-
status: z.lazy(() => RunAgentStatus$outboundSchema),
|
|
4310
|
-
metadata: z.record(z.any()).optional(),
|
|
4311
|
-
});
|
|
4312
|
-
|
|
4313
|
-
/**
|
|
4314
|
-
* @internal
|
|
4315
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4316
|
-
*/
|
|
4317
|
-
export namespace RunAgentResponseBody$ {
|
|
4318
|
-
/** @deprecated use `RunAgentResponseBody$inboundSchema` instead. */
|
|
4319
|
-
export const inboundSchema = RunAgentResponseBody$inboundSchema;
|
|
4320
|
-
/** @deprecated use `RunAgentResponseBody$outboundSchema` instead. */
|
|
4321
|
-
export const outboundSchema = RunAgentResponseBody$outboundSchema;
|
|
4322
|
-
/** @deprecated use `RunAgentResponseBody$Outbound` instead. */
|
|
4323
|
-
export type Outbound = RunAgentResponseBody$Outbound;
|
|
4324
|
-
}
|
|
4325
|
-
|
|
4326
|
-
export function runAgentResponseBodyToJSON(
|
|
4327
|
-
runAgentResponseBody: RunAgentResponseBody,
|
|
4328
|
-
): string {
|
|
4329
|
-
return JSON.stringify(
|
|
4330
|
-
RunAgentResponseBody$outboundSchema.parse(runAgentResponseBody),
|
|
4331
|
-
);
|
|
4332
|
-
}
|
|
4333
|
-
|
|
4334
|
-
export function runAgentResponseBodyFromJSON(
|
|
4335
|
-
jsonString: string,
|
|
4336
|
-
): SafeParseResult<RunAgentResponseBody, SDKValidationError> {
|
|
4337
|
-
return safeParse(
|
|
4338
|
-
jsonString,
|
|
4339
|
-
(x) => RunAgentResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
4340
|
-
`Failed to parse 'RunAgentResponseBody' from JSON`,
|
|
4341
|
-
);
|
|
4342
|
-
}
|