@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,3321 +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
|
-
* 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.
|
|
14
|
-
*/
|
|
15
|
-
export const UpdateAgentToolApprovalRequired = {
|
|
16
|
-
All: "all",
|
|
17
|
-
RespectTool: "respect_tool",
|
|
18
|
-
None: "none",
|
|
19
|
-
} as const;
|
|
20
|
-
/**
|
|
21
|
-
* 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.
|
|
22
|
-
*/
|
|
23
|
-
export type UpdateAgentToolApprovalRequired = ClosedEnum<
|
|
24
|
-
typeof UpdateAgentToolApprovalRequired
|
|
25
|
-
>;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Function tool type
|
|
29
|
-
*/
|
|
30
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
|
|
31
|
-
{
|
|
32
|
-
Function: "function",
|
|
33
|
-
} as const;
|
|
34
|
-
/**
|
|
35
|
-
* Function tool type
|
|
36
|
-
*/
|
|
37
|
-
export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
|
|
38
|
-
ClosedEnum<
|
|
39
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
|
|
40
|
-
>;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Calls custom function tools defined in the agent configuration. Must reference a pre-created function tool by key or id.
|
|
44
|
-
*/
|
|
45
|
-
export type AgentToolInputCRUDFunctionTool = {
|
|
46
|
-
/**
|
|
47
|
-
* Function tool type
|
|
48
|
-
*/
|
|
49
|
-
type:
|
|
50
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type;
|
|
51
|
-
/**
|
|
52
|
-
* The key of the pre-created function tool
|
|
53
|
-
*/
|
|
54
|
-
key?: string | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* The ID of the pre-created function tool
|
|
57
|
-
*/
|
|
58
|
-
id?: string | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Whether this tool requires approval before execution
|
|
61
|
-
*/
|
|
62
|
-
requiresApproval?: boolean | undefined;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Code execution tool type
|
|
67
|
-
*/
|
|
68
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
|
|
69
|
-
{
|
|
70
|
-
Code: "code",
|
|
71
|
-
} as const;
|
|
72
|
-
/**
|
|
73
|
-
* Code execution tool type
|
|
74
|
-
*/
|
|
75
|
-
export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
|
|
76
|
-
ClosedEnum<
|
|
77
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
|
|
78
|
-
>;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Executes code snippets in a sandboxed environment. Must reference a pre-created code tool by key or id.
|
|
82
|
-
*/
|
|
83
|
-
export type AgentToolInputCRUDCodeExecutionTool = {
|
|
84
|
-
/**
|
|
85
|
-
* Code execution tool type
|
|
86
|
-
*/
|
|
87
|
-
type:
|
|
88
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type;
|
|
89
|
-
/**
|
|
90
|
-
* The key of the pre-created code tool
|
|
91
|
-
*/
|
|
92
|
-
key?: string | undefined;
|
|
93
|
-
/**
|
|
94
|
-
* The ID of the pre-created code tool
|
|
95
|
-
*/
|
|
96
|
-
id?: string | undefined;
|
|
97
|
-
/**
|
|
98
|
-
* Whether this tool requires approval before execution
|
|
99
|
-
*/
|
|
100
|
-
requiresApproval?: boolean | undefined;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* HTTP tool type
|
|
105
|
-
*/
|
|
106
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
|
|
107
|
-
{
|
|
108
|
-
Http: "http",
|
|
109
|
-
} as const;
|
|
110
|
-
/**
|
|
111
|
-
* HTTP tool type
|
|
112
|
-
*/
|
|
113
|
-
export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
|
|
114
|
-
ClosedEnum<
|
|
115
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
|
|
116
|
-
>;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Executes HTTP requests to interact with external APIs and web services. Must reference a pre-created HTTP tool by key or id.
|
|
120
|
-
*/
|
|
121
|
-
export type AgentToolInputCRUDHTTPTool = {
|
|
122
|
-
/**
|
|
123
|
-
* HTTP tool type
|
|
124
|
-
*/
|
|
125
|
-
type:
|
|
126
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type;
|
|
127
|
-
/**
|
|
128
|
-
* The key of the pre-created HTTP tool
|
|
129
|
-
*/
|
|
130
|
-
key?: string | undefined;
|
|
131
|
-
/**
|
|
132
|
-
* The ID of the pre-created HTTP tool
|
|
133
|
-
*/
|
|
134
|
-
id?: string | undefined;
|
|
135
|
-
/**
|
|
136
|
-
* Whether this tool requires approval before execution
|
|
137
|
-
*/
|
|
138
|
-
requiresApproval?: boolean | undefined;
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
|
|
142
|
-
{
|
|
143
|
-
CurrentDate: "current_date",
|
|
144
|
-
} as const;
|
|
145
|
-
export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
|
|
146
|
-
ClosedEnum<
|
|
147
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
|
|
148
|
-
>;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Returns the current date and time
|
|
152
|
-
*/
|
|
153
|
-
export type AgentToolInputCRUDCurrentDateTool = {
|
|
154
|
-
type:
|
|
155
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type;
|
|
156
|
-
/**
|
|
157
|
-
* Whether this tool requires approval before execution
|
|
158
|
-
*/
|
|
159
|
-
requiresApproval?: boolean | undefined;
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type =
|
|
163
|
-
{
|
|
164
|
-
QueryKnowledgeBase: "query_knowledge_base",
|
|
165
|
-
} as const;
|
|
166
|
-
export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type =
|
|
167
|
-
ClosedEnum<
|
|
168
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
|
|
169
|
-
>;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Queries knowledge bases for information
|
|
173
|
-
*/
|
|
174
|
-
export type AgentToolInputCRUDQueryKnowledgeBaseTool = {
|
|
175
|
-
type:
|
|
176
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type;
|
|
177
|
-
/**
|
|
178
|
-
* Whether this tool requires approval before execution
|
|
179
|
-
*/
|
|
180
|
-
requiresApproval?: boolean | undefined;
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type =
|
|
184
|
-
{
|
|
185
|
-
RetrieveKnowledgeBases: "retrieve_knowledge_bases",
|
|
186
|
-
} as const;
|
|
187
|
-
export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type =
|
|
188
|
-
ClosedEnum<
|
|
189
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
|
|
190
|
-
>;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Lists available knowledge bases
|
|
194
|
-
*/
|
|
195
|
-
export type AgentToolInputCRUDRetrieveKnowledgeBasesTool = {
|
|
196
|
-
type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type;
|
|
197
|
-
/**
|
|
198
|
-
* Whether this tool requires approval before execution
|
|
199
|
-
*/
|
|
200
|
-
requiresApproval?: boolean | undefined;
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type =
|
|
204
|
-
{
|
|
205
|
-
DeleteMemoryDocument: "delete_memory_document",
|
|
206
|
-
} as const;
|
|
207
|
-
export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type =
|
|
208
|
-
ClosedEnum<
|
|
209
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
|
|
210
|
-
>;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Deletes documents from memory stores
|
|
214
|
-
*/
|
|
215
|
-
export type AgentToolInputCRUDDeleteMemoryDocumentTool = {
|
|
216
|
-
type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type;
|
|
217
|
-
/**
|
|
218
|
-
* Whether this tool requires approval before execution
|
|
219
|
-
*/
|
|
220
|
-
requiresApproval?: boolean | undefined;
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type =
|
|
224
|
-
{
|
|
225
|
-
RetrieveMemoryStores: "retrieve_memory_stores",
|
|
226
|
-
} as const;
|
|
227
|
-
export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type =
|
|
228
|
-
ClosedEnum<
|
|
229
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type
|
|
230
|
-
>;
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Lists available memory stores
|
|
234
|
-
*/
|
|
235
|
-
export type AgentToolInputCRUDRetrieveMemoryStoresTool = {
|
|
236
|
-
type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type;
|
|
237
|
-
/**
|
|
238
|
-
* Whether this tool requires approval before execution
|
|
239
|
-
*/
|
|
240
|
-
requiresApproval?: boolean | undefined;
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType =
|
|
244
|
-
{
|
|
245
|
-
WriteMemoryStore: "write_memory_store",
|
|
246
|
-
} as const;
|
|
247
|
-
export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType =
|
|
248
|
-
ClosedEnum<
|
|
249
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
|
|
250
|
-
>;
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Writes information to agent memory stores
|
|
254
|
-
*/
|
|
255
|
-
export type AgentToolInputCRUDWriteMemoryStoreTool = {
|
|
256
|
-
type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType;
|
|
257
|
-
/**
|
|
258
|
-
* Whether this tool requires approval before execution
|
|
259
|
-
*/
|
|
260
|
-
requiresApproval?: boolean | undefined;
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType =
|
|
264
|
-
{
|
|
265
|
-
QueryMemoryStore: "query_memory_store",
|
|
266
|
-
} as const;
|
|
267
|
-
export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType =
|
|
268
|
-
ClosedEnum<
|
|
269
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType
|
|
270
|
-
>;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Queries agent memory stores for context
|
|
274
|
-
*/
|
|
275
|
-
export type AgentToolInputCRUDQueryMemoryStoreTool = {
|
|
276
|
-
type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType;
|
|
277
|
-
/**
|
|
278
|
-
* Whether this tool requires approval before execution
|
|
279
|
-
*/
|
|
280
|
-
requiresApproval?: boolean | undefined;
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType = {
|
|
284
|
-
RetrieveAgents: "retrieve_agents",
|
|
285
|
-
} as const;
|
|
286
|
-
export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType =
|
|
287
|
-
ClosedEnum<typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType>;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Retrieves available agents in the system
|
|
291
|
-
*/
|
|
292
|
-
export type AgentToolInputCRUDRetrieveAgentsTool = {
|
|
293
|
-
type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType;
|
|
294
|
-
/**
|
|
295
|
-
* Whether this tool requires approval before execution
|
|
296
|
-
*/
|
|
297
|
-
requiresApproval?: boolean | undefined;
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestType = {
|
|
301
|
-
CallSubAgent: "call_sub_agent",
|
|
302
|
-
} as const;
|
|
303
|
-
export type UpdateAgentAgentToolInputCRUDAgentsRequestType = ClosedEnum<
|
|
304
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestType
|
|
305
|
-
>;
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* Delegates tasks to specialized sub-agents
|
|
309
|
-
*/
|
|
310
|
-
export type AgentToolInputCRUDCallSubAgentTool = {
|
|
311
|
-
type: UpdateAgentAgentToolInputCRUDAgentsRequestType;
|
|
312
|
-
/**
|
|
313
|
-
* Whether this tool requires approval before execution
|
|
314
|
-
*/
|
|
315
|
-
requiresApproval?: boolean | undefined;
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
export const UpdateAgentAgentToolInputCRUDAgentsType = {
|
|
319
|
-
WebScraper: "web_scraper",
|
|
320
|
-
} as const;
|
|
321
|
-
export type UpdateAgentAgentToolInputCRUDAgentsType = ClosedEnum<
|
|
322
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsType
|
|
323
|
-
>;
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* Scrapes and extracts content from web pages
|
|
327
|
-
*/
|
|
328
|
-
export type AgentToolInputCRUDWebScraperTool = {
|
|
329
|
-
type: UpdateAgentAgentToolInputCRUDAgentsType;
|
|
330
|
-
/**
|
|
331
|
-
* Whether this tool requires approval before execution
|
|
332
|
-
*/
|
|
333
|
-
requiresApproval?: boolean | undefined;
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
export const UpdateAgentAgentToolInputCRUDType = {
|
|
337
|
-
GoogleSearch: "google_search",
|
|
338
|
-
} as const;
|
|
339
|
-
export type UpdateAgentAgentToolInputCRUDType = ClosedEnum<
|
|
340
|
-
typeof UpdateAgentAgentToolInputCRUDType
|
|
341
|
-
>;
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Performs Google searches to retrieve web content
|
|
345
|
-
*/
|
|
346
|
-
export type AgentToolInputCRUDGoogleSearchTool = {
|
|
347
|
-
type: UpdateAgentAgentToolInputCRUDType;
|
|
348
|
-
/**
|
|
349
|
-
* Whether this tool requires approval before execution
|
|
350
|
-
*/
|
|
351
|
-
requiresApproval?: boolean | undefined;
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* Tool configuration for agent create/update operations. Built-in tools only require a type, while custom tools (HTTP, Code, Function) must reference pre-created tools by key or id.
|
|
356
|
-
*/
|
|
357
|
-
export type UpdateAgentAgentToolInputCRUD =
|
|
358
|
-
| AgentToolInputCRUDGoogleSearchTool
|
|
359
|
-
| AgentToolInputCRUDWebScraperTool
|
|
360
|
-
| AgentToolInputCRUDCallSubAgentTool
|
|
361
|
-
| AgentToolInputCRUDRetrieveAgentsTool
|
|
362
|
-
| AgentToolInputCRUDQueryMemoryStoreTool
|
|
363
|
-
| AgentToolInputCRUDWriteMemoryStoreTool
|
|
364
|
-
| AgentToolInputCRUDRetrieveMemoryStoresTool
|
|
365
|
-
| AgentToolInputCRUDDeleteMemoryDocumentTool
|
|
366
|
-
| AgentToolInputCRUDRetrieveKnowledgeBasesTool
|
|
367
|
-
| AgentToolInputCRUDQueryKnowledgeBaseTool
|
|
368
|
-
| AgentToolInputCRUDCurrentDateTool
|
|
369
|
-
| AgentToolInputCRUDHTTPTool
|
|
370
|
-
| AgentToolInputCRUDCodeExecutionTool
|
|
371
|
-
| AgentToolInputCRUDFunctionTool;
|
|
372
|
-
|
|
373
|
-
export type UpdateAgentSettings = {
|
|
374
|
-
/**
|
|
375
|
-
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
376
|
-
*/
|
|
377
|
-
maxIterations?: number | undefined;
|
|
378
|
-
/**
|
|
379
|
-
* 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.
|
|
380
|
-
*/
|
|
381
|
-
maxExecutionTime?: number | undefined;
|
|
382
|
-
/**
|
|
383
|
-
* 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.
|
|
384
|
-
*/
|
|
385
|
-
toolApprovalRequired?: UpdateAgentToolApprovalRequired | undefined;
|
|
386
|
-
/**
|
|
387
|
-
* Tools available to the agent. Built-in tools only need a type, while custom tools (http, code, function) must reference pre-created tools by key or id.
|
|
388
|
-
*/
|
|
389
|
-
tools?:
|
|
390
|
-
| Array<
|
|
391
|
-
| AgentToolInputCRUDGoogleSearchTool
|
|
392
|
-
| AgentToolInputCRUDWebScraperTool
|
|
393
|
-
| AgentToolInputCRUDCallSubAgentTool
|
|
394
|
-
| AgentToolInputCRUDRetrieveAgentsTool
|
|
395
|
-
| AgentToolInputCRUDQueryMemoryStoreTool
|
|
396
|
-
| AgentToolInputCRUDWriteMemoryStoreTool
|
|
397
|
-
| AgentToolInputCRUDRetrieveMemoryStoresTool
|
|
398
|
-
| AgentToolInputCRUDDeleteMemoryDocumentTool
|
|
399
|
-
| AgentToolInputCRUDRetrieveKnowledgeBasesTool
|
|
400
|
-
| AgentToolInputCRUDQueryKnowledgeBaseTool
|
|
401
|
-
| AgentToolInputCRUDCurrentDateTool
|
|
402
|
-
| AgentToolInputCRUDHTTPTool
|
|
403
|
-
| AgentToolInputCRUDCodeExecutionTool
|
|
404
|
-
| AgentToolInputCRUDFunctionTool
|
|
405
|
-
>
|
|
406
|
-
| undefined;
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
export type UpdateAgentKnowledgeBases = {
|
|
410
|
-
/**
|
|
411
|
-
* Unique identifier of the knowledge base to search
|
|
412
|
-
*/
|
|
413
|
-
knowledgeId: string;
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
export type UpdateAgentTeamOfAgents = {
|
|
417
|
-
/**
|
|
418
|
-
* The unique key of the agent within the workspace
|
|
419
|
-
*/
|
|
420
|
-
key: string;
|
|
421
|
-
/**
|
|
422
|
-
* 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.
|
|
423
|
-
*/
|
|
424
|
-
role?: string | undefined;
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
export type UpdateAgentRequestBody = {
|
|
428
|
-
key?: string | undefined;
|
|
429
|
-
projectId?: string | undefined;
|
|
430
|
-
role?: string | undefined;
|
|
431
|
-
description?: string | undefined;
|
|
432
|
-
instructions?: string | undefined;
|
|
433
|
-
/**
|
|
434
|
-
* A custom system prompt template for the agent. If omitted, the default template is used.
|
|
435
|
-
*/
|
|
436
|
-
systemPrompt?: string | undefined;
|
|
437
|
-
/**
|
|
438
|
-
* The primary language model that powers the agent (e.g., "anthropic/claude-3-sonnet-20240229")
|
|
439
|
-
*/
|
|
440
|
-
model?: string | undefined;
|
|
441
|
-
/**
|
|
442
|
-
* 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.
|
|
443
|
-
*/
|
|
444
|
-
fallbackModels?: Array<string> | undefined;
|
|
445
|
-
settings?: UpdateAgentSettings | undefined;
|
|
446
|
-
/**
|
|
447
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
448
|
-
*
|
|
449
|
-
* @remarks
|
|
450
|
-
*
|
|
451
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
452
|
-
*
|
|
453
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
454
|
-
*/
|
|
455
|
-
path?: string | undefined;
|
|
456
|
-
memoryStores?: Array<string> | undefined;
|
|
457
|
-
knowledgeBases?: Array<UpdateAgentKnowledgeBases> | undefined;
|
|
458
|
-
/**
|
|
459
|
-
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
460
|
-
*/
|
|
461
|
-
teamOfAgents?: Array<UpdateAgentTeamOfAgents> | undefined;
|
|
462
|
-
};
|
|
463
|
-
|
|
464
|
-
export type UpdateAgentRequest = {
|
|
465
|
-
/**
|
|
466
|
-
* The unique key of the agent to update
|
|
467
|
-
*/
|
|
468
|
-
agentKey: string;
|
|
469
|
-
requestBody?: UpdateAgentRequestBody | undefined;
|
|
470
|
-
};
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
474
|
-
*/
|
|
475
|
-
export const UpdateAgentStatus = {
|
|
476
|
-
Live: "live",
|
|
477
|
-
Draft: "draft",
|
|
478
|
-
Pending: "pending",
|
|
479
|
-
Published: "published",
|
|
480
|
-
} as const;
|
|
481
|
-
/**
|
|
482
|
-
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
483
|
-
*/
|
|
484
|
-
export type UpdateAgentStatus = ClosedEnum<typeof UpdateAgentStatus>;
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* 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.
|
|
488
|
-
*/
|
|
489
|
-
export const UpdateAgentAgentsToolApprovalRequired = {
|
|
490
|
-
All: "all",
|
|
491
|
-
RespectTool: "respect_tool",
|
|
492
|
-
None: "none",
|
|
493
|
-
} as const;
|
|
494
|
-
/**
|
|
495
|
-
* 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.
|
|
496
|
-
*/
|
|
497
|
-
export type UpdateAgentAgentsToolApprovalRequired = ClosedEnum<
|
|
498
|
-
typeof UpdateAgentAgentsToolApprovalRequired
|
|
499
|
-
>;
|
|
500
|
-
|
|
501
|
-
export type UpdateAgentConditions = {
|
|
502
|
-
/**
|
|
503
|
-
* The argument of the tool call to evaluate
|
|
504
|
-
*/
|
|
505
|
-
condition: string;
|
|
506
|
-
/**
|
|
507
|
-
* The operator to use
|
|
508
|
-
*/
|
|
509
|
-
operator: string;
|
|
510
|
-
/**
|
|
511
|
-
* The value to compare against
|
|
512
|
-
*/
|
|
513
|
-
value: string;
|
|
514
|
-
};
|
|
515
|
-
|
|
516
|
-
export type UpdateAgentTools = {
|
|
517
|
-
/**
|
|
518
|
-
* The id of the resource
|
|
519
|
-
*/
|
|
520
|
-
id: string;
|
|
521
|
-
/**
|
|
522
|
-
* Optional tool key for custom tools
|
|
523
|
-
*/
|
|
524
|
-
key?: string | undefined;
|
|
525
|
-
actionType: string;
|
|
526
|
-
displayName?: string | undefined;
|
|
527
|
-
requiresApproval?: boolean | undefined;
|
|
528
|
-
conditions?: Array<UpdateAgentConditions> | undefined;
|
|
529
|
-
/**
|
|
530
|
-
* Optional MCP server reference for tools from MCP servers
|
|
531
|
-
*/
|
|
532
|
-
mcpServer?: string | undefined;
|
|
533
|
-
/**
|
|
534
|
-
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
535
|
-
*/
|
|
536
|
-
timeout?: number | undefined;
|
|
537
|
-
};
|
|
538
|
-
|
|
539
|
-
export type UpdateAgentAgentsSettings = {
|
|
540
|
-
/**
|
|
541
|
-
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
542
|
-
*/
|
|
543
|
-
maxIterations?: number | undefined;
|
|
544
|
-
/**
|
|
545
|
-
* 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.
|
|
546
|
-
*/
|
|
547
|
-
maxExecutionTime?: number | undefined;
|
|
548
|
-
/**
|
|
549
|
-
* 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.
|
|
550
|
-
*/
|
|
551
|
-
toolApprovalRequired?: UpdateAgentAgentsToolApprovalRequired | undefined;
|
|
552
|
-
tools?: Array<UpdateAgentTools> | undefined;
|
|
553
|
-
};
|
|
554
|
-
|
|
555
|
-
export type UpdateAgentModel = {
|
|
556
|
-
/**
|
|
557
|
-
* The database ID of the primary model
|
|
558
|
-
*/
|
|
559
|
-
id: string;
|
|
560
|
-
/**
|
|
561
|
-
* Optional integration ID for custom model configurations
|
|
562
|
-
*/
|
|
563
|
-
integrationId?: string | null | undefined;
|
|
564
|
-
/**
|
|
565
|
-
* Optional array of fallback model IDs that will be used automatically in order if the primary model fails
|
|
566
|
-
*/
|
|
567
|
-
fallbackModels?: Array<string> | null | undefined;
|
|
568
|
-
/**
|
|
569
|
-
* Maximum number of tokens for model responses
|
|
570
|
-
*/
|
|
571
|
-
maxTokens?: number | undefined;
|
|
572
|
-
/**
|
|
573
|
-
* Temperature setting for model responses
|
|
574
|
-
*/
|
|
575
|
-
temperature?: number | undefined;
|
|
576
|
-
};
|
|
577
|
-
|
|
578
|
-
export type UpdateAgentAgentsTeamOfAgents = {
|
|
579
|
-
/**
|
|
580
|
-
* The unique key of the agent within the workspace
|
|
581
|
-
*/
|
|
582
|
-
key: string;
|
|
583
|
-
/**
|
|
584
|
-
* 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.
|
|
585
|
-
*/
|
|
586
|
-
role?: string | undefined;
|
|
587
|
-
};
|
|
588
|
-
|
|
589
|
-
export type UpdateAgentMetrics = {
|
|
590
|
-
totalCost?: number | undefined;
|
|
591
|
-
};
|
|
592
|
-
|
|
593
|
-
export type UpdateAgentAgentsKnowledgeBases = {
|
|
594
|
-
/**
|
|
595
|
-
* Unique identifier of the knowledge base to search
|
|
596
|
-
*/
|
|
597
|
-
knowledgeId: string;
|
|
598
|
-
};
|
|
599
|
-
|
|
600
|
-
export const UpdateAgentHiddenPanels = {
|
|
601
|
-
Model: "model",
|
|
602
|
-
Tools: "tools",
|
|
603
|
-
KnowledgeBases: "knowledge_bases",
|
|
604
|
-
Variables: "variables",
|
|
605
|
-
RuntimeConstraints: "runtime_constraints",
|
|
606
|
-
} as const;
|
|
607
|
-
export type UpdateAgentHiddenPanels = ClosedEnum<
|
|
608
|
-
typeof UpdateAgentHiddenPanels
|
|
609
|
-
>;
|
|
610
|
-
|
|
611
|
-
/**
|
|
612
|
-
* Agent updated successfully
|
|
613
|
-
*/
|
|
614
|
-
export type UpdateAgentResponseBody = {
|
|
615
|
-
id: string;
|
|
616
|
-
key: string;
|
|
617
|
-
workspaceId: string;
|
|
618
|
-
projectId: string;
|
|
619
|
-
createdById?: string | null | undefined;
|
|
620
|
-
updatedById?: string | null | undefined;
|
|
621
|
-
created?: string | undefined;
|
|
622
|
-
updated?: string | undefined;
|
|
623
|
-
role: string;
|
|
624
|
-
description: string;
|
|
625
|
-
systemPrompt?: string | undefined;
|
|
626
|
-
instructions: string;
|
|
627
|
-
/**
|
|
628
|
-
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
629
|
-
*/
|
|
630
|
-
status: UpdateAgentStatus;
|
|
631
|
-
settings?: UpdateAgentAgentsSettings | undefined;
|
|
632
|
-
model: UpdateAgentModel;
|
|
633
|
-
versionHash?: string | undefined;
|
|
634
|
-
/**
|
|
635
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
636
|
-
*
|
|
637
|
-
* @remarks
|
|
638
|
-
*
|
|
639
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
640
|
-
*
|
|
641
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
642
|
-
*/
|
|
643
|
-
path: string;
|
|
644
|
-
memoryStores: Array<string>;
|
|
645
|
-
/**
|
|
646
|
-
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
647
|
-
*/
|
|
648
|
-
teamOfAgents: Array<UpdateAgentAgentsTeamOfAgents>;
|
|
649
|
-
metrics?: UpdateAgentMetrics | undefined;
|
|
650
|
-
/**
|
|
651
|
-
* Extracted variables from agent instructions
|
|
652
|
-
*/
|
|
653
|
-
variables?: { [k: string]: any } | undefined;
|
|
654
|
-
/**
|
|
655
|
-
* Agent knowledge bases reference
|
|
656
|
-
*/
|
|
657
|
-
knowledgeBases?: Array<UpdateAgentAgentsKnowledgeBases> | undefined;
|
|
658
|
-
/**
|
|
659
|
-
* List of hidden collapsed panels in configuration. Duplicates are not allowed.
|
|
660
|
-
*/
|
|
661
|
-
hiddenPanels?: Array<UpdateAgentHiddenPanels> | undefined;
|
|
662
|
-
};
|
|
663
|
-
|
|
664
|
-
/** @internal */
|
|
665
|
-
export const UpdateAgentToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
|
|
666
|
-
typeof UpdateAgentToolApprovalRequired
|
|
667
|
-
> = z.nativeEnum(UpdateAgentToolApprovalRequired);
|
|
668
|
-
|
|
669
|
-
/** @internal */
|
|
670
|
-
export const UpdateAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
|
|
671
|
-
typeof UpdateAgentToolApprovalRequired
|
|
672
|
-
> = UpdateAgentToolApprovalRequired$inboundSchema;
|
|
673
|
-
|
|
674
|
-
/**
|
|
675
|
-
* @internal
|
|
676
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
677
|
-
*/
|
|
678
|
-
export namespace UpdateAgentToolApprovalRequired$ {
|
|
679
|
-
/** @deprecated use `UpdateAgentToolApprovalRequired$inboundSchema` instead. */
|
|
680
|
-
export const inboundSchema = UpdateAgentToolApprovalRequired$inboundSchema;
|
|
681
|
-
/** @deprecated use `UpdateAgentToolApprovalRequired$outboundSchema` instead. */
|
|
682
|
-
export const outboundSchema = UpdateAgentToolApprovalRequired$outboundSchema;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
/** @internal */
|
|
686
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
|
|
687
|
-
z.ZodNativeEnum<
|
|
688
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
|
|
689
|
-
> = z.nativeEnum(
|
|
690
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type,
|
|
691
|
-
);
|
|
692
|
-
|
|
693
|
-
/** @internal */
|
|
694
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
|
|
695
|
-
z.ZodNativeEnum<
|
|
696
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
|
|
697
|
-
> =
|
|
698
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
* @internal
|
|
702
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
703
|
-
*/
|
|
704
|
-
export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$ {
|
|
705
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
|
|
706
|
-
export const inboundSchema =
|
|
707
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
708
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
|
|
709
|
-
export const outboundSchema =
|
|
710
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
/** @internal */
|
|
714
|
-
export const AgentToolInputCRUDFunctionTool$inboundSchema: z.ZodType<
|
|
715
|
-
AgentToolInputCRUDFunctionTool,
|
|
716
|
-
z.ZodTypeDef,
|
|
717
|
-
unknown
|
|
718
|
-
> = z.object({
|
|
719
|
-
type:
|
|
720
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
|
|
721
|
-
key: z.string().optional(),
|
|
722
|
-
id: z.string().optional(),
|
|
723
|
-
requires_approval: z.boolean().default(false),
|
|
724
|
-
}).transform((v) => {
|
|
725
|
-
return remap$(v, {
|
|
726
|
-
"requires_approval": "requiresApproval",
|
|
727
|
-
});
|
|
728
|
-
});
|
|
729
|
-
|
|
730
|
-
/** @internal */
|
|
731
|
-
export type AgentToolInputCRUDFunctionTool$Outbound = {
|
|
732
|
-
type: string;
|
|
733
|
-
key?: string | undefined;
|
|
734
|
-
id?: string | undefined;
|
|
735
|
-
requires_approval: boolean;
|
|
736
|
-
};
|
|
737
|
-
|
|
738
|
-
/** @internal */
|
|
739
|
-
export const AgentToolInputCRUDFunctionTool$outboundSchema: z.ZodType<
|
|
740
|
-
AgentToolInputCRUDFunctionTool$Outbound,
|
|
741
|
-
z.ZodTypeDef,
|
|
742
|
-
AgentToolInputCRUDFunctionTool
|
|
743
|
-
> = z.object({
|
|
744
|
-
type:
|
|
745
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
|
|
746
|
-
key: z.string().optional(),
|
|
747
|
-
id: z.string().optional(),
|
|
748
|
-
requiresApproval: z.boolean().default(false),
|
|
749
|
-
}).transform((v) => {
|
|
750
|
-
return remap$(v, {
|
|
751
|
-
requiresApproval: "requires_approval",
|
|
752
|
-
});
|
|
753
|
-
});
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* @internal
|
|
757
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
758
|
-
*/
|
|
759
|
-
export namespace AgentToolInputCRUDFunctionTool$ {
|
|
760
|
-
/** @deprecated use `AgentToolInputCRUDFunctionTool$inboundSchema` instead. */
|
|
761
|
-
export const inboundSchema = AgentToolInputCRUDFunctionTool$inboundSchema;
|
|
762
|
-
/** @deprecated use `AgentToolInputCRUDFunctionTool$outboundSchema` instead. */
|
|
763
|
-
export const outboundSchema = AgentToolInputCRUDFunctionTool$outboundSchema;
|
|
764
|
-
/** @deprecated use `AgentToolInputCRUDFunctionTool$Outbound` instead. */
|
|
765
|
-
export type Outbound = AgentToolInputCRUDFunctionTool$Outbound;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
export function agentToolInputCRUDFunctionToolToJSON(
|
|
769
|
-
agentToolInputCRUDFunctionTool: AgentToolInputCRUDFunctionTool,
|
|
770
|
-
): string {
|
|
771
|
-
return JSON.stringify(
|
|
772
|
-
AgentToolInputCRUDFunctionTool$outboundSchema.parse(
|
|
773
|
-
agentToolInputCRUDFunctionTool,
|
|
774
|
-
),
|
|
775
|
-
);
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
export function agentToolInputCRUDFunctionToolFromJSON(
|
|
779
|
-
jsonString: string,
|
|
780
|
-
): SafeParseResult<AgentToolInputCRUDFunctionTool, SDKValidationError> {
|
|
781
|
-
return safeParse(
|
|
782
|
-
jsonString,
|
|
783
|
-
(x) => AgentToolInputCRUDFunctionTool$inboundSchema.parse(JSON.parse(x)),
|
|
784
|
-
`Failed to parse 'AgentToolInputCRUDFunctionTool' from JSON`,
|
|
785
|
-
);
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
/** @internal */
|
|
789
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
|
|
790
|
-
z.ZodNativeEnum<
|
|
791
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
|
|
792
|
-
> = z.nativeEnum(
|
|
793
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type,
|
|
794
|
-
);
|
|
795
|
-
|
|
796
|
-
/** @internal */
|
|
797
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
|
|
798
|
-
z.ZodNativeEnum<
|
|
799
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
|
|
800
|
-
> =
|
|
801
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
802
|
-
|
|
803
|
-
/**
|
|
804
|
-
* @internal
|
|
805
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
806
|
-
*/
|
|
807
|
-
export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$ {
|
|
808
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
|
|
809
|
-
export const inboundSchema =
|
|
810
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
811
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
|
|
812
|
-
export const outboundSchema =
|
|
813
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
/** @internal */
|
|
817
|
-
export const AgentToolInputCRUDCodeExecutionTool$inboundSchema: z.ZodType<
|
|
818
|
-
AgentToolInputCRUDCodeExecutionTool,
|
|
819
|
-
z.ZodTypeDef,
|
|
820
|
-
unknown
|
|
821
|
-
> = z.object({
|
|
822
|
-
type:
|
|
823
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
|
|
824
|
-
key: z.string().optional(),
|
|
825
|
-
id: z.string().optional(),
|
|
826
|
-
requires_approval: z.boolean().default(false),
|
|
827
|
-
}).transform((v) => {
|
|
828
|
-
return remap$(v, {
|
|
829
|
-
"requires_approval": "requiresApproval",
|
|
830
|
-
});
|
|
831
|
-
});
|
|
832
|
-
|
|
833
|
-
/** @internal */
|
|
834
|
-
export type AgentToolInputCRUDCodeExecutionTool$Outbound = {
|
|
835
|
-
type: string;
|
|
836
|
-
key?: string | undefined;
|
|
837
|
-
id?: string | undefined;
|
|
838
|
-
requires_approval: boolean;
|
|
839
|
-
};
|
|
840
|
-
|
|
841
|
-
/** @internal */
|
|
842
|
-
export const AgentToolInputCRUDCodeExecutionTool$outboundSchema: z.ZodType<
|
|
843
|
-
AgentToolInputCRUDCodeExecutionTool$Outbound,
|
|
844
|
-
z.ZodTypeDef,
|
|
845
|
-
AgentToolInputCRUDCodeExecutionTool
|
|
846
|
-
> = z.object({
|
|
847
|
-
type:
|
|
848
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
|
|
849
|
-
key: z.string().optional(),
|
|
850
|
-
id: z.string().optional(),
|
|
851
|
-
requiresApproval: z.boolean().default(false),
|
|
852
|
-
}).transform((v) => {
|
|
853
|
-
return remap$(v, {
|
|
854
|
-
requiresApproval: "requires_approval",
|
|
855
|
-
});
|
|
856
|
-
});
|
|
857
|
-
|
|
858
|
-
/**
|
|
859
|
-
* @internal
|
|
860
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
861
|
-
*/
|
|
862
|
-
export namespace AgentToolInputCRUDCodeExecutionTool$ {
|
|
863
|
-
/** @deprecated use `AgentToolInputCRUDCodeExecutionTool$inboundSchema` instead. */
|
|
864
|
-
export const inboundSchema =
|
|
865
|
-
AgentToolInputCRUDCodeExecutionTool$inboundSchema;
|
|
866
|
-
/** @deprecated use `AgentToolInputCRUDCodeExecutionTool$outboundSchema` instead. */
|
|
867
|
-
export const outboundSchema =
|
|
868
|
-
AgentToolInputCRUDCodeExecutionTool$outboundSchema;
|
|
869
|
-
/** @deprecated use `AgentToolInputCRUDCodeExecutionTool$Outbound` instead. */
|
|
870
|
-
export type Outbound = AgentToolInputCRUDCodeExecutionTool$Outbound;
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
export function agentToolInputCRUDCodeExecutionToolToJSON(
|
|
874
|
-
agentToolInputCRUDCodeExecutionTool: AgentToolInputCRUDCodeExecutionTool,
|
|
875
|
-
): string {
|
|
876
|
-
return JSON.stringify(
|
|
877
|
-
AgentToolInputCRUDCodeExecutionTool$outboundSchema.parse(
|
|
878
|
-
agentToolInputCRUDCodeExecutionTool,
|
|
879
|
-
),
|
|
880
|
-
);
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
export function agentToolInputCRUDCodeExecutionToolFromJSON(
|
|
884
|
-
jsonString: string,
|
|
885
|
-
): SafeParseResult<AgentToolInputCRUDCodeExecutionTool, SDKValidationError> {
|
|
886
|
-
return safeParse(
|
|
887
|
-
jsonString,
|
|
888
|
-
(x) =>
|
|
889
|
-
AgentToolInputCRUDCodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
|
|
890
|
-
`Failed to parse 'AgentToolInputCRUDCodeExecutionTool' from JSON`,
|
|
891
|
-
);
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
/** @internal */
|
|
895
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
|
|
896
|
-
z.ZodNativeEnum<
|
|
897
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
|
|
898
|
-
> = z.nativeEnum(
|
|
899
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type,
|
|
900
|
-
);
|
|
901
|
-
|
|
902
|
-
/** @internal */
|
|
903
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
|
|
904
|
-
z.ZodNativeEnum<
|
|
905
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
|
|
906
|
-
> =
|
|
907
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
908
|
-
|
|
909
|
-
/**
|
|
910
|
-
* @internal
|
|
911
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
912
|
-
*/
|
|
913
|
-
export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$ {
|
|
914
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
|
|
915
|
-
export const inboundSchema =
|
|
916
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
917
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
|
|
918
|
-
export const outboundSchema =
|
|
919
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
/** @internal */
|
|
923
|
-
export const AgentToolInputCRUDHTTPTool$inboundSchema: z.ZodType<
|
|
924
|
-
AgentToolInputCRUDHTTPTool,
|
|
925
|
-
z.ZodTypeDef,
|
|
926
|
-
unknown
|
|
927
|
-
> = z.object({
|
|
928
|
-
type:
|
|
929
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
|
|
930
|
-
key: z.string().optional(),
|
|
931
|
-
id: z.string().optional(),
|
|
932
|
-
requires_approval: z.boolean().default(false),
|
|
933
|
-
}).transform((v) => {
|
|
934
|
-
return remap$(v, {
|
|
935
|
-
"requires_approval": "requiresApproval",
|
|
936
|
-
});
|
|
937
|
-
});
|
|
938
|
-
|
|
939
|
-
/** @internal */
|
|
940
|
-
export type AgentToolInputCRUDHTTPTool$Outbound = {
|
|
941
|
-
type: string;
|
|
942
|
-
key?: string | undefined;
|
|
943
|
-
id?: string | undefined;
|
|
944
|
-
requires_approval: boolean;
|
|
945
|
-
};
|
|
946
|
-
|
|
947
|
-
/** @internal */
|
|
948
|
-
export const AgentToolInputCRUDHTTPTool$outboundSchema: z.ZodType<
|
|
949
|
-
AgentToolInputCRUDHTTPTool$Outbound,
|
|
950
|
-
z.ZodTypeDef,
|
|
951
|
-
AgentToolInputCRUDHTTPTool
|
|
952
|
-
> = z.object({
|
|
953
|
-
type:
|
|
954
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
|
|
955
|
-
key: z.string().optional(),
|
|
956
|
-
id: z.string().optional(),
|
|
957
|
-
requiresApproval: z.boolean().default(false),
|
|
958
|
-
}).transform((v) => {
|
|
959
|
-
return remap$(v, {
|
|
960
|
-
requiresApproval: "requires_approval",
|
|
961
|
-
});
|
|
962
|
-
});
|
|
963
|
-
|
|
964
|
-
/**
|
|
965
|
-
* @internal
|
|
966
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
967
|
-
*/
|
|
968
|
-
export namespace AgentToolInputCRUDHTTPTool$ {
|
|
969
|
-
/** @deprecated use `AgentToolInputCRUDHTTPTool$inboundSchema` instead. */
|
|
970
|
-
export const inboundSchema = AgentToolInputCRUDHTTPTool$inboundSchema;
|
|
971
|
-
/** @deprecated use `AgentToolInputCRUDHTTPTool$outboundSchema` instead. */
|
|
972
|
-
export const outboundSchema = AgentToolInputCRUDHTTPTool$outboundSchema;
|
|
973
|
-
/** @deprecated use `AgentToolInputCRUDHTTPTool$Outbound` instead. */
|
|
974
|
-
export type Outbound = AgentToolInputCRUDHTTPTool$Outbound;
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
export function agentToolInputCRUDHTTPToolToJSON(
|
|
978
|
-
agentToolInputCRUDHTTPTool: AgentToolInputCRUDHTTPTool,
|
|
979
|
-
): string {
|
|
980
|
-
return JSON.stringify(
|
|
981
|
-
AgentToolInputCRUDHTTPTool$outboundSchema.parse(agentToolInputCRUDHTTPTool),
|
|
982
|
-
);
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
export function agentToolInputCRUDHTTPToolFromJSON(
|
|
986
|
-
jsonString: string,
|
|
987
|
-
): SafeParseResult<AgentToolInputCRUDHTTPTool, SDKValidationError> {
|
|
988
|
-
return safeParse(
|
|
989
|
-
jsonString,
|
|
990
|
-
(x) => AgentToolInputCRUDHTTPTool$inboundSchema.parse(JSON.parse(x)),
|
|
991
|
-
`Failed to parse 'AgentToolInputCRUDHTTPTool' from JSON`,
|
|
992
|
-
);
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
/** @internal */
|
|
996
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
|
|
997
|
-
z.ZodNativeEnum<
|
|
998
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
|
|
999
|
-
> = z.nativeEnum(
|
|
1000
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type,
|
|
1001
|
-
);
|
|
1002
|
-
|
|
1003
|
-
/** @internal */
|
|
1004
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
|
|
1005
|
-
z.ZodNativeEnum<
|
|
1006
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
|
|
1007
|
-
> =
|
|
1008
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
1009
|
-
|
|
1010
|
-
/**
|
|
1011
|
-
* @internal
|
|
1012
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1013
|
-
*/
|
|
1014
|
-
export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$ {
|
|
1015
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
|
|
1016
|
-
export const inboundSchema =
|
|
1017
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
1018
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
|
|
1019
|
-
export const outboundSchema =
|
|
1020
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
/** @internal */
|
|
1024
|
-
export const AgentToolInputCRUDCurrentDateTool$inboundSchema: z.ZodType<
|
|
1025
|
-
AgentToolInputCRUDCurrentDateTool,
|
|
1026
|
-
z.ZodTypeDef,
|
|
1027
|
-
unknown
|
|
1028
|
-
> = z.object({
|
|
1029
|
-
type:
|
|
1030
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
|
|
1031
|
-
requires_approval: z.boolean().default(false),
|
|
1032
|
-
}).transform((v) => {
|
|
1033
|
-
return remap$(v, {
|
|
1034
|
-
"requires_approval": "requiresApproval",
|
|
1035
|
-
});
|
|
1036
|
-
});
|
|
1037
|
-
|
|
1038
|
-
/** @internal */
|
|
1039
|
-
export type AgentToolInputCRUDCurrentDateTool$Outbound = {
|
|
1040
|
-
type: string;
|
|
1041
|
-
requires_approval: boolean;
|
|
1042
|
-
};
|
|
1043
|
-
|
|
1044
|
-
/** @internal */
|
|
1045
|
-
export const AgentToolInputCRUDCurrentDateTool$outboundSchema: z.ZodType<
|
|
1046
|
-
AgentToolInputCRUDCurrentDateTool$Outbound,
|
|
1047
|
-
z.ZodTypeDef,
|
|
1048
|
-
AgentToolInputCRUDCurrentDateTool
|
|
1049
|
-
> = z.object({
|
|
1050
|
-
type:
|
|
1051
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
|
|
1052
|
-
requiresApproval: z.boolean().default(false),
|
|
1053
|
-
}).transform((v) => {
|
|
1054
|
-
return remap$(v, {
|
|
1055
|
-
requiresApproval: "requires_approval",
|
|
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 AgentToolInputCRUDCurrentDateTool$ {
|
|
1064
|
-
/** @deprecated use `AgentToolInputCRUDCurrentDateTool$inboundSchema` instead. */
|
|
1065
|
-
export const inboundSchema = AgentToolInputCRUDCurrentDateTool$inboundSchema;
|
|
1066
|
-
/** @deprecated use `AgentToolInputCRUDCurrentDateTool$outboundSchema` instead. */
|
|
1067
|
-
export const outboundSchema =
|
|
1068
|
-
AgentToolInputCRUDCurrentDateTool$outboundSchema;
|
|
1069
|
-
/** @deprecated use `AgentToolInputCRUDCurrentDateTool$Outbound` instead. */
|
|
1070
|
-
export type Outbound = AgentToolInputCRUDCurrentDateTool$Outbound;
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
export function agentToolInputCRUDCurrentDateToolToJSON(
|
|
1074
|
-
agentToolInputCRUDCurrentDateTool: AgentToolInputCRUDCurrentDateTool,
|
|
1075
|
-
): string {
|
|
1076
|
-
return JSON.stringify(
|
|
1077
|
-
AgentToolInputCRUDCurrentDateTool$outboundSchema.parse(
|
|
1078
|
-
agentToolInputCRUDCurrentDateTool,
|
|
1079
|
-
),
|
|
1080
|
-
);
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
export function agentToolInputCRUDCurrentDateToolFromJSON(
|
|
1084
|
-
jsonString: string,
|
|
1085
|
-
): SafeParseResult<AgentToolInputCRUDCurrentDateTool, SDKValidationError> {
|
|
1086
|
-
return safeParse(
|
|
1087
|
-
jsonString,
|
|
1088
|
-
(x) => AgentToolInputCRUDCurrentDateTool$inboundSchema.parse(JSON.parse(x)),
|
|
1089
|
-
`Failed to parse 'AgentToolInputCRUDCurrentDateTool' from JSON`,
|
|
1090
|
-
);
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
/** @internal */
|
|
1094
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
|
|
1095
|
-
z.ZodNativeEnum<
|
|
1096
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
|
|
1097
|
-
> = z.nativeEnum(
|
|
1098
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type,
|
|
1099
|
-
);
|
|
1100
|
-
|
|
1101
|
-
/** @internal */
|
|
1102
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
|
|
1103
|
-
z.ZodNativeEnum<
|
|
1104
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
|
|
1105
|
-
> =
|
|
1106
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
1107
|
-
|
|
1108
|
-
/**
|
|
1109
|
-
* @internal
|
|
1110
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1111
|
-
*/
|
|
1112
|
-
export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$ {
|
|
1113
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
|
|
1114
|
-
export const inboundSchema =
|
|
1115
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
1116
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
|
|
1117
|
-
export const outboundSchema =
|
|
1118
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
/** @internal */
|
|
1122
|
-
export const AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
|
|
1123
|
-
AgentToolInputCRUDQueryKnowledgeBaseTool,
|
|
1124
|
-
z.ZodTypeDef,
|
|
1125
|
-
unknown
|
|
1126
|
-
> = z.object({
|
|
1127
|
-
type:
|
|
1128
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
|
|
1129
|
-
requires_approval: z.boolean().default(false),
|
|
1130
|
-
}).transform((v) => {
|
|
1131
|
-
return remap$(v, {
|
|
1132
|
-
"requires_approval": "requiresApproval",
|
|
1133
|
-
});
|
|
1134
|
-
});
|
|
1135
|
-
|
|
1136
|
-
/** @internal */
|
|
1137
|
-
export type AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound = {
|
|
1138
|
-
type: string;
|
|
1139
|
-
requires_approval: boolean;
|
|
1140
|
-
};
|
|
1141
|
-
|
|
1142
|
-
/** @internal */
|
|
1143
|
-
export const AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema: z.ZodType<
|
|
1144
|
-
AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound,
|
|
1145
|
-
z.ZodTypeDef,
|
|
1146
|
-
AgentToolInputCRUDQueryKnowledgeBaseTool
|
|
1147
|
-
> = z.object({
|
|
1148
|
-
type:
|
|
1149
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
|
|
1150
|
-
requiresApproval: z.boolean().default(false),
|
|
1151
|
-
}).transform((v) => {
|
|
1152
|
-
return remap$(v, {
|
|
1153
|
-
requiresApproval: "requires_approval",
|
|
1154
|
-
});
|
|
1155
|
-
});
|
|
1156
|
-
|
|
1157
|
-
/**
|
|
1158
|
-
* @internal
|
|
1159
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1160
|
-
*/
|
|
1161
|
-
export namespace AgentToolInputCRUDQueryKnowledgeBaseTool$ {
|
|
1162
|
-
/** @deprecated use `AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema` instead. */
|
|
1163
|
-
export const inboundSchema =
|
|
1164
|
-
AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema;
|
|
1165
|
-
/** @deprecated use `AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema` instead. */
|
|
1166
|
-
export const outboundSchema =
|
|
1167
|
-
AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema;
|
|
1168
|
-
/** @deprecated use `AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound` instead. */
|
|
1169
|
-
export type Outbound = AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound;
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
export function agentToolInputCRUDQueryKnowledgeBaseToolToJSON(
|
|
1173
|
-
agentToolInputCRUDQueryKnowledgeBaseTool:
|
|
1174
|
-
AgentToolInputCRUDQueryKnowledgeBaseTool,
|
|
1175
|
-
): string {
|
|
1176
|
-
return JSON.stringify(
|
|
1177
|
-
AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema.parse(
|
|
1178
|
-
agentToolInputCRUDQueryKnowledgeBaseTool,
|
|
1179
|
-
),
|
|
1180
|
-
);
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
export function agentToolInputCRUDQueryKnowledgeBaseToolFromJSON(
|
|
1184
|
-
jsonString: string,
|
|
1185
|
-
): SafeParseResult<
|
|
1186
|
-
AgentToolInputCRUDQueryKnowledgeBaseTool,
|
|
1187
|
-
SDKValidationError
|
|
1188
|
-
> {
|
|
1189
|
-
return safeParse(
|
|
1190
|
-
jsonString,
|
|
1191
|
-
(x) =>
|
|
1192
|
-
AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema.parse(
|
|
1193
|
-
JSON.parse(x),
|
|
1194
|
-
),
|
|
1195
|
-
`Failed to parse 'AgentToolInputCRUDQueryKnowledgeBaseTool' from JSON`,
|
|
1196
|
-
);
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
/** @internal */
|
|
1200
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
|
|
1201
|
-
z.ZodNativeEnum<
|
|
1202
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
|
|
1203
|
-
> = z.nativeEnum(
|
|
1204
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type,
|
|
1205
|
-
);
|
|
1206
|
-
|
|
1207
|
-
/** @internal */
|
|
1208
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
|
|
1209
|
-
z.ZodNativeEnum<
|
|
1210
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
|
|
1211
|
-
> =
|
|
1212
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
1213
|
-
|
|
1214
|
-
/**
|
|
1215
|
-
* @internal
|
|
1216
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1217
|
-
*/
|
|
1218
|
-
export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$ {
|
|
1219
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
|
|
1220
|
-
export const inboundSchema =
|
|
1221
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
1222
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
|
|
1223
|
-
export const outboundSchema =
|
|
1224
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
/** @internal */
|
|
1228
|
-
export const AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema:
|
|
1229
|
-
z.ZodType<
|
|
1230
|
-
AgentToolInputCRUDRetrieveKnowledgeBasesTool,
|
|
1231
|
-
z.ZodTypeDef,
|
|
1232
|
-
unknown
|
|
1233
|
-
> = z.object({
|
|
1234
|
-
type:
|
|
1235
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
|
|
1236
|
-
requires_approval: z.boolean().default(false),
|
|
1237
|
-
}).transform((v) => {
|
|
1238
|
-
return remap$(v, {
|
|
1239
|
-
"requires_approval": "requiresApproval",
|
|
1240
|
-
});
|
|
1241
|
-
});
|
|
1242
|
-
|
|
1243
|
-
/** @internal */
|
|
1244
|
-
export type AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound = {
|
|
1245
|
-
type: string;
|
|
1246
|
-
requires_approval: boolean;
|
|
1247
|
-
};
|
|
1248
|
-
|
|
1249
|
-
/** @internal */
|
|
1250
|
-
export const AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema:
|
|
1251
|
-
z.ZodType<
|
|
1252
|
-
AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound,
|
|
1253
|
-
z.ZodTypeDef,
|
|
1254
|
-
AgentToolInputCRUDRetrieveKnowledgeBasesTool
|
|
1255
|
-
> = z.object({
|
|
1256
|
-
type:
|
|
1257
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
|
|
1258
|
-
requiresApproval: z.boolean().default(false),
|
|
1259
|
-
}).transform((v) => {
|
|
1260
|
-
return remap$(v, {
|
|
1261
|
-
requiresApproval: "requires_approval",
|
|
1262
|
-
});
|
|
1263
|
-
});
|
|
1264
|
-
|
|
1265
|
-
/**
|
|
1266
|
-
* @internal
|
|
1267
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1268
|
-
*/
|
|
1269
|
-
export namespace AgentToolInputCRUDRetrieveKnowledgeBasesTool$ {
|
|
1270
|
-
/** @deprecated use `AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema` instead. */
|
|
1271
|
-
export const inboundSchema =
|
|
1272
|
-
AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema;
|
|
1273
|
-
/** @deprecated use `AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema` instead. */
|
|
1274
|
-
export const outboundSchema =
|
|
1275
|
-
AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema;
|
|
1276
|
-
/** @deprecated use `AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound` instead. */
|
|
1277
|
-
export type Outbound = AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound;
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
export function agentToolInputCRUDRetrieveKnowledgeBasesToolToJSON(
|
|
1281
|
-
agentToolInputCRUDRetrieveKnowledgeBasesTool:
|
|
1282
|
-
AgentToolInputCRUDRetrieveKnowledgeBasesTool,
|
|
1283
|
-
): string {
|
|
1284
|
-
return JSON.stringify(
|
|
1285
|
-
AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema.parse(
|
|
1286
|
-
agentToolInputCRUDRetrieveKnowledgeBasesTool,
|
|
1287
|
-
),
|
|
1288
|
-
);
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
export function agentToolInputCRUDRetrieveKnowledgeBasesToolFromJSON(
|
|
1292
|
-
jsonString: string,
|
|
1293
|
-
): SafeParseResult<
|
|
1294
|
-
AgentToolInputCRUDRetrieveKnowledgeBasesTool,
|
|
1295
|
-
SDKValidationError
|
|
1296
|
-
> {
|
|
1297
|
-
return safeParse(
|
|
1298
|
-
jsonString,
|
|
1299
|
-
(x) =>
|
|
1300
|
-
AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema.parse(
|
|
1301
|
-
JSON.parse(x),
|
|
1302
|
-
),
|
|
1303
|
-
`Failed to parse 'AgentToolInputCRUDRetrieveKnowledgeBasesTool' from JSON`,
|
|
1304
|
-
);
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
/** @internal */
|
|
1308
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
|
|
1309
|
-
z.ZodNativeEnum<
|
|
1310
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
|
|
1311
|
-
> = z.nativeEnum(
|
|
1312
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type,
|
|
1313
|
-
);
|
|
1314
|
-
|
|
1315
|
-
/** @internal */
|
|
1316
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
|
|
1317
|
-
z.ZodNativeEnum<
|
|
1318
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
|
|
1319
|
-
> =
|
|
1320
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
1321
|
-
|
|
1322
|
-
/**
|
|
1323
|
-
* @internal
|
|
1324
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1325
|
-
*/
|
|
1326
|
-
export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$ {
|
|
1327
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
|
|
1328
|
-
export const inboundSchema =
|
|
1329
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
1330
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
|
|
1331
|
-
export const outboundSchema =
|
|
1332
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
/** @internal */
|
|
1336
|
-
export const AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema:
|
|
1337
|
-
z.ZodType<AgentToolInputCRUDDeleteMemoryDocumentTool, z.ZodTypeDef, unknown> =
|
|
1338
|
-
z.object({
|
|
1339
|
-
type:
|
|
1340
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
|
|
1341
|
-
requires_approval: z.boolean().default(false),
|
|
1342
|
-
}).transform((v) => {
|
|
1343
|
-
return remap$(v, {
|
|
1344
|
-
"requires_approval": "requiresApproval",
|
|
1345
|
-
});
|
|
1346
|
-
});
|
|
1347
|
-
|
|
1348
|
-
/** @internal */
|
|
1349
|
-
export type AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound = {
|
|
1350
|
-
type: string;
|
|
1351
|
-
requires_approval: boolean;
|
|
1352
|
-
};
|
|
1353
|
-
|
|
1354
|
-
/** @internal */
|
|
1355
|
-
export const AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema:
|
|
1356
|
-
z.ZodType<
|
|
1357
|
-
AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound,
|
|
1358
|
-
z.ZodTypeDef,
|
|
1359
|
-
AgentToolInputCRUDDeleteMemoryDocumentTool
|
|
1360
|
-
> = z.object({
|
|
1361
|
-
type:
|
|
1362
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
|
|
1363
|
-
requiresApproval: z.boolean().default(false),
|
|
1364
|
-
}).transform((v) => {
|
|
1365
|
-
return remap$(v, {
|
|
1366
|
-
requiresApproval: "requires_approval",
|
|
1367
|
-
});
|
|
1368
|
-
});
|
|
1369
|
-
|
|
1370
|
-
/**
|
|
1371
|
-
* @internal
|
|
1372
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1373
|
-
*/
|
|
1374
|
-
export namespace AgentToolInputCRUDDeleteMemoryDocumentTool$ {
|
|
1375
|
-
/** @deprecated use `AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema` instead. */
|
|
1376
|
-
export const inboundSchema =
|
|
1377
|
-
AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema;
|
|
1378
|
-
/** @deprecated use `AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema` instead. */
|
|
1379
|
-
export const outboundSchema =
|
|
1380
|
-
AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema;
|
|
1381
|
-
/** @deprecated use `AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound` instead. */
|
|
1382
|
-
export type Outbound = AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound;
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
export function agentToolInputCRUDDeleteMemoryDocumentToolToJSON(
|
|
1386
|
-
agentToolInputCRUDDeleteMemoryDocumentTool:
|
|
1387
|
-
AgentToolInputCRUDDeleteMemoryDocumentTool,
|
|
1388
|
-
): string {
|
|
1389
|
-
return JSON.stringify(
|
|
1390
|
-
AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema.parse(
|
|
1391
|
-
agentToolInputCRUDDeleteMemoryDocumentTool,
|
|
1392
|
-
),
|
|
1393
|
-
);
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
export function agentToolInputCRUDDeleteMemoryDocumentToolFromJSON(
|
|
1397
|
-
jsonString: string,
|
|
1398
|
-
): SafeParseResult<
|
|
1399
|
-
AgentToolInputCRUDDeleteMemoryDocumentTool,
|
|
1400
|
-
SDKValidationError
|
|
1401
|
-
> {
|
|
1402
|
-
return safeParse(
|
|
1403
|
-
jsonString,
|
|
1404
|
-
(x) =>
|
|
1405
|
-
AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema.parse(
|
|
1406
|
-
JSON.parse(x),
|
|
1407
|
-
),
|
|
1408
|
-
`Failed to parse 'AgentToolInputCRUDDeleteMemoryDocumentTool' from JSON`,
|
|
1409
|
-
);
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
/** @internal */
|
|
1413
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$inboundSchema:
|
|
1414
|
-
z.ZodNativeEnum<
|
|
1415
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type
|
|
1416
|
-
> = z.nativeEnum(
|
|
1417
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type,
|
|
1418
|
-
);
|
|
1419
|
-
|
|
1420
|
-
/** @internal */
|
|
1421
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$outboundSchema:
|
|
1422
|
-
z.ZodNativeEnum<
|
|
1423
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type
|
|
1424
|
-
> =
|
|
1425
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
|
|
1426
|
-
|
|
1427
|
-
/**
|
|
1428
|
-
* @internal
|
|
1429
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1430
|
-
*/
|
|
1431
|
-
export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$ {
|
|
1432
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$inboundSchema` instead. */
|
|
1433
|
-
export const inboundSchema =
|
|
1434
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
|
|
1435
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$outboundSchema` instead. */
|
|
1436
|
-
export const outboundSchema =
|
|
1437
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$outboundSchema;
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
/** @internal */
|
|
1441
|
-
export const AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema:
|
|
1442
|
-
z.ZodType<AgentToolInputCRUDRetrieveMemoryStoresTool, z.ZodTypeDef, unknown> =
|
|
1443
|
-
z.object({
|
|
1444
|
-
type:
|
|
1445
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$inboundSchema,
|
|
1446
|
-
requires_approval: z.boolean().default(false),
|
|
1447
|
-
}).transform((v) => {
|
|
1448
|
-
return remap$(v, {
|
|
1449
|
-
"requires_approval": "requiresApproval",
|
|
1450
|
-
});
|
|
1451
|
-
});
|
|
1452
|
-
|
|
1453
|
-
/** @internal */
|
|
1454
|
-
export type AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound = {
|
|
1455
|
-
type: string;
|
|
1456
|
-
requires_approval: boolean;
|
|
1457
|
-
};
|
|
1458
|
-
|
|
1459
|
-
/** @internal */
|
|
1460
|
-
export const AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema:
|
|
1461
|
-
z.ZodType<
|
|
1462
|
-
AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound,
|
|
1463
|
-
z.ZodTypeDef,
|
|
1464
|
-
AgentToolInputCRUDRetrieveMemoryStoresTool
|
|
1465
|
-
> = z.object({
|
|
1466
|
-
type:
|
|
1467
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$outboundSchema,
|
|
1468
|
-
requiresApproval: z.boolean().default(false),
|
|
1469
|
-
}).transform((v) => {
|
|
1470
|
-
return remap$(v, {
|
|
1471
|
-
requiresApproval: "requires_approval",
|
|
1472
|
-
});
|
|
1473
|
-
});
|
|
1474
|
-
|
|
1475
|
-
/**
|
|
1476
|
-
* @internal
|
|
1477
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1478
|
-
*/
|
|
1479
|
-
export namespace AgentToolInputCRUDRetrieveMemoryStoresTool$ {
|
|
1480
|
-
/** @deprecated use `AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema` instead. */
|
|
1481
|
-
export const inboundSchema =
|
|
1482
|
-
AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema;
|
|
1483
|
-
/** @deprecated use `AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema` instead. */
|
|
1484
|
-
export const outboundSchema =
|
|
1485
|
-
AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema;
|
|
1486
|
-
/** @deprecated use `AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound` instead. */
|
|
1487
|
-
export type Outbound = AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound;
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
export function agentToolInputCRUDRetrieveMemoryStoresToolToJSON(
|
|
1491
|
-
agentToolInputCRUDRetrieveMemoryStoresTool:
|
|
1492
|
-
AgentToolInputCRUDRetrieveMemoryStoresTool,
|
|
1493
|
-
): string {
|
|
1494
|
-
return JSON.stringify(
|
|
1495
|
-
AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema.parse(
|
|
1496
|
-
agentToolInputCRUDRetrieveMemoryStoresTool,
|
|
1497
|
-
),
|
|
1498
|
-
);
|
|
1499
|
-
}
|
|
1500
|
-
|
|
1501
|
-
export function agentToolInputCRUDRetrieveMemoryStoresToolFromJSON(
|
|
1502
|
-
jsonString: string,
|
|
1503
|
-
): SafeParseResult<
|
|
1504
|
-
AgentToolInputCRUDRetrieveMemoryStoresTool,
|
|
1505
|
-
SDKValidationError
|
|
1506
|
-
> {
|
|
1507
|
-
return safeParse(
|
|
1508
|
-
jsonString,
|
|
1509
|
-
(x) =>
|
|
1510
|
-
AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema.parse(
|
|
1511
|
-
JSON.parse(x),
|
|
1512
|
-
),
|
|
1513
|
-
`Failed to parse 'AgentToolInputCRUDRetrieveMemoryStoresTool' from JSON`,
|
|
1514
|
-
);
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
|
-
/** @internal */
|
|
1518
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema:
|
|
1519
|
-
z.ZodNativeEnum<
|
|
1520
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
|
|
1521
|
-
> = z.nativeEnum(
|
|
1522
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType,
|
|
1523
|
-
);
|
|
1524
|
-
|
|
1525
|
-
/** @internal */
|
|
1526
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema:
|
|
1527
|
-
z.ZodNativeEnum<
|
|
1528
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
|
|
1529
|
-
> =
|
|
1530
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
1531
|
-
|
|
1532
|
-
/**
|
|
1533
|
-
* @internal
|
|
1534
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1535
|
-
*/
|
|
1536
|
-
export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$ {
|
|
1537
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
|
|
1538
|
-
export const inboundSchema =
|
|
1539
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
1540
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
|
|
1541
|
-
export const outboundSchema =
|
|
1542
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema;
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
/** @internal */
|
|
1546
|
-
export const AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema: z.ZodType<
|
|
1547
|
-
AgentToolInputCRUDWriteMemoryStoreTool,
|
|
1548
|
-
z.ZodTypeDef,
|
|
1549
|
-
unknown
|
|
1550
|
-
> = z.object({
|
|
1551
|
-
type:
|
|
1552
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema,
|
|
1553
|
-
requires_approval: z.boolean().default(false),
|
|
1554
|
-
}).transform((v) => {
|
|
1555
|
-
return remap$(v, {
|
|
1556
|
-
"requires_approval": "requiresApproval",
|
|
1557
|
-
});
|
|
1558
|
-
});
|
|
1559
|
-
|
|
1560
|
-
/** @internal */
|
|
1561
|
-
export type AgentToolInputCRUDWriteMemoryStoreTool$Outbound = {
|
|
1562
|
-
type: string;
|
|
1563
|
-
requires_approval: boolean;
|
|
1564
|
-
};
|
|
1565
|
-
|
|
1566
|
-
/** @internal */
|
|
1567
|
-
export const AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema: z.ZodType<
|
|
1568
|
-
AgentToolInputCRUDWriteMemoryStoreTool$Outbound,
|
|
1569
|
-
z.ZodTypeDef,
|
|
1570
|
-
AgentToolInputCRUDWriteMemoryStoreTool
|
|
1571
|
-
> = z.object({
|
|
1572
|
-
type:
|
|
1573
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema,
|
|
1574
|
-
requiresApproval: z.boolean().default(false),
|
|
1575
|
-
}).transform((v) => {
|
|
1576
|
-
return remap$(v, {
|
|
1577
|
-
requiresApproval: "requires_approval",
|
|
1578
|
-
});
|
|
1579
|
-
});
|
|
1580
|
-
|
|
1581
|
-
/**
|
|
1582
|
-
* @internal
|
|
1583
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1584
|
-
*/
|
|
1585
|
-
export namespace AgentToolInputCRUDWriteMemoryStoreTool$ {
|
|
1586
|
-
/** @deprecated use `AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema` instead. */
|
|
1587
|
-
export const inboundSchema =
|
|
1588
|
-
AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema;
|
|
1589
|
-
/** @deprecated use `AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema` instead. */
|
|
1590
|
-
export const outboundSchema =
|
|
1591
|
-
AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema;
|
|
1592
|
-
/** @deprecated use `AgentToolInputCRUDWriteMemoryStoreTool$Outbound` instead. */
|
|
1593
|
-
export type Outbound = AgentToolInputCRUDWriteMemoryStoreTool$Outbound;
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
|
-
export function agentToolInputCRUDWriteMemoryStoreToolToJSON(
|
|
1597
|
-
agentToolInputCRUDWriteMemoryStoreTool:
|
|
1598
|
-
AgentToolInputCRUDWriteMemoryStoreTool,
|
|
1599
|
-
): string {
|
|
1600
|
-
return JSON.stringify(
|
|
1601
|
-
AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema.parse(
|
|
1602
|
-
agentToolInputCRUDWriteMemoryStoreTool,
|
|
1603
|
-
),
|
|
1604
|
-
);
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
|
-
export function agentToolInputCRUDWriteMemoryStoreToolFromJSON(
|
|
1608
|
-
jsonString: string,
|
|
1609
|
-
): SafeParseResult<AgentToolInputCRUDWriteMemoryStoreTool, SDKValidationError> {
|
|
1610
|
-
return safeParse(
|
|
1611
|
-
jsonString,
|
|
1612
|
-
(x) =>
|
|
1613
|
-
AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
|
|
1614
|
-
`Failed to parse 'AgentToolInputCRUDWriteMemoryStoreTool' from JSON`,
|
|
1615
|
-
);
|
|
1616
|
-
}
|
|
1617
|
-
|
|
1618
|
-
/** @internal */
|
|
1619
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema:
|
|
1620
|
-
z.ZodNativeEnum<
|
|
1621
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType
|
|
1622
|
-
> = z.nativeEnum(
|
|
1623
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType,
|
|
1624
|
-
);
|
|
1625
|
-
|
|
1626
|
-
/** @internal */
|
|
1627
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema:
|
|
1628
|
-
z.ZodNativeEnum<
|
|
1629
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType
|
|
1630
|
-
> =
|
|
1631
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
1632
|
-
|
|
1633
|
-
/**
|
|
1634
|
-
* @internal
|
|
1635
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1636
|
-
*/
|
|
1637
|
-
export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$ {
|
|
1638
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
|
|
1639
|
-
export const inboundSchema =
|
|
1640
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
1641
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
|
|
1642
|
-
export const outboundSchema =
|
|
1643
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema;
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
/** @internal */
|
|
1647
|
-
export const AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema: z.ZodType<
|
|
1648
|
-
AgentToolInputCRUDQueryMemoryStoreTool,
|
|
1649
|
-
z.ZodTypeDef,
|
|
1650
|
-
unknown
|
|
1651
|
-
> = z.object({
|
|
1652
|
-
type:
|
|
1653
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema,
|
|
1654
|
-
requires_approval: z.boolean().default(false),
|
|
1655
|
-
}).transform((v) => {
|
|
1656
|
-
return remap$(v, {
|
|
1657
|
-
"requires_approval": "requiresApproval",
|
|
1658
|
-
});
|
|
1659
|
-
});
|
|
1660
|
-
|
|
1661
|
-
/** @internal */
|
|
1662
|
-
export type AgentToolInputCRUDQueryMemoryStoreTool$Outbound = {
|
|
1663
|
-
type: string;
|
|
1664
|
-
requires_approval: boolean;
|
|
1665
|
-
};
|
|
1666
|
-
|
|
1667
|
-
/** @internal */
|
|
1668
|
-
export const AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema: z.ZodType<
|
|
1669
|
-
AgentToolInputCRUDQueryMemoryStoreTool$Outbound,
|
|
1670
|
-
z.ZodTypeDef,
|
|
1671
|
-
AgentToolInputCRUDQueryMemoryStoreTool
|
|
1672
|
-
> = z.object({
|
|
1673
|
-
type:
|
|
1674
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema,
|
|
1675
|
-
requiresApproval: z.boolean().default(false),
|
|
1676
|
-
}).transform((v) => {
|
|
1677
|
-
return remap$(v, {
|
|
1678
|
-
requiresApproval: "requires_approval",
|
|
1679
|
-
});
|
|
1680
|
-
});
|
|
1681
|
-
|
|
1682
|
-
/**
|
|
1683
|
-
* @internal
|
|
1684
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1685
|
-
*/
|
|
1686
|
-
export namespace AgentToolInputCRUDQueryMemoryStoreTool$ {
|
|
1687
|
-
/** @deprecated use `AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema` instead. */
|
|
1688
|
-
export const inboundSchema =
|
|
1689
|
-
AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema;
|
|
1690
|
-
/** @deprecated use `AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema` instead. */
|
|
1691
|
-
export const outboundSchema =
|
|
1692
|
-
AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema;
|
|
1693
|
-
/** @deprecated use `AgentToolInputCRUDQueryMemoryStoreTool$Outbound` instead. */
|
|
1694
|
-
export type Outbound = AgentToolInputCRUDQueryMemoryStoreTool$Outbound;
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
export function agentToolInputCRUDQueryMemoryStoreToolToJSON(
|
|
1698
|
-
agentToolInputCRUDQueryMemoryStoreTool:
|
|
1699
|
-
AgentToolInputCRUDQueryMemoryStoreTool,
|
|
1700
|
-
): string {
|
|
1701
|
-
return JSON.stringify(
|
|
1702
|
-
AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema.parse(
|
|
1703
|
-
agentToolInputCRUDQueryMemoryStoreTool,
|
|
1704
|
-
),
|
|
1705
|
-
);
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
|
-
export function agentToolInputCRUDQueryMemoryStoreToolFromJSON(
|
|
1709
|
-
jsonString: string,
|
|
1710
|
-
): SafeParseResult<AgentToolInputCRUDQueryMemoryStoreTool, SDKValidationError> {
|
|
1711
|
-
return safeParse(
|
|
1712
|
-
jsonString,
|
|
1713
|
-
(x) =>
|
|
1714
|
-
AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
|
|
1715
|
-
`Failed to parse 'AgentToolInputCRUDQueryMemoryStoreTool' from JSON`,
|
|
1716
|
-
);
|
|
1717
|
-
}
|
|
1718
|
-
|
|
1719
|
-
/** @internal */
|
|
1720
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema:
|
|
1721
|
-
z.ZodNativeEnum<
|
|
1722
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType
|
|
1723
|
-
> = z.nativeEnum(UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType);
|
|
1724
|
-
|
|
1725
|
-
/** @internal */
|
|
1726
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema:
|
|
1727
|
-
z.ZodNativeEnum<
|
|
1728
|
-
typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType
|
|
1729
|
-
> = UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema;
|
|
1730
|
-
|
|
1731
|
-
/**
|
|
1732
|
-
* @internal
|
|
1733
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1734
|
-
*/
|
|
1735
|
-
export namespace UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$ {
|
|
1736
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema` instead. */
|
|
1737
|
-
export const inboundSchema =
|
|
1738
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema;
|
|
1739
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema` instead. */
|
|
1740
|
-
export const outboundSchema =
|
|
1741
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema;
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
/** @internal */
|
|
1745
|
-
export const AgentToolInputCRUDRetrieveAgentsTool$inboundSchema: z.ZodType<
|
|
1746
|
-
AgentToolInputCRUDRetrieveAgentsTool,
|
|
1747
|
-
z.ZodTypeDef,
|
|
1748
|
-
unknown
|
|
1749
|
-
> = z.object({
|
|
1750
|
-
type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema,
|
|
1751
|
-
requires_approval: z.boolean().default(false),
|
|
1752
|
-
}).transform((v) => {
|
|
1753
|
-
return remap$(v, {
|
|
1754
|
-
"requires_approval": "requiresApproval",
|
|
1755
|
-
});
|
|
1756
|
-
});
|
|
1757
|
-
|
|
1758
|
-
/** @internal */
|
|
1759
|
-
export type AgentToolInputCRUDRetrieveAgentsTool$Outbound = {
|
|
1760
|
-
type: string;
|
|
1761
|
-
requires_approval: boolean;
|
|
1762
|
-
};
|
|
1763
|
-
|
|
1764
|
-
/** @internal */
|
|
1765
|
-
export const AgentToolInputCRUDRetrieveAgentsTool$outboundSchema: z.ZodType<
|
|
1766
|
-
AgentToolInputCRUDRetrieveAgentsTool$Outbound,
|
|
1767
|
-
z.ZodTypeDef,
|
|
1768
|
-
AgentToolInputCRUDRetrieveAgentsTool
|
|
1769
|
-
> = z.object({
|
|
1770
|
-
type:
|
|
1771
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema,
|
|
1772
|
-
requiresApproval: z.boolean().default(false),
|
|
1773
|
-
}).transform((v) => {
|
|
1774
|
-
return remap$(v, {
|
|
1775
|
-
requiresApproval: "requires_approval",
|
|
1776
|
-
});
|
|
1777
|
-
});
|
|
1778
|
-
|
|
1779
|
-
/**
|
|
1780
|
-
* @internal
|
|
1781
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1782
|
-
*/
|
|
1783
|
-
export namespace AgentToolInputCRUDRetrieveAgentsTool$ {
|
|
1784
|
-
/** @deprecated use `AgentToolInputCRUDRetrieveAgentsTool$inboundSchema` instead. */
|
|
1785
|
-
export const inboundSchema =
|
|
1786
|
-
AgentToolInputCRUDRetrieveAgentsTool$inboundSchema;
|
|
1787
|
-
/** @deprecated use `AgentToolInputCRUDRetrieveAgentsTool$outboundSchema` instead. */
|
|
1788
|
-
export const outboundSchema =
|
|
1789
|
-
AgentToolInputCRUDRetrieveAgentsTool$outboundSchema;
|
|
1790
|
-
/** @deprecated use `AgentToolInputCRUDRetrieveAgentsTool$Outbound` instead. */
|
|
1791
|
-
export type Outbound = AgentToolInputCRUDRetrieveAgentsTool$Outbound;
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
export function agentToolInputCRUDRetrieveAgentsToolToJSON(
|
|
1795
|
-
agentToolInputCRUDRetrieveAgentsTool: AgentToolInputCRUDRetrieveAgentsTool,
|
|
1796
|
-
): string {
|
|
1797
|
-
return JSON.stringify(
|
|
1798
|
-
AgentToolInputCRUDRetrieveAgentsTool$outboundSchema.parse(
|
|
1799
|
-
agentToolInputCRUDRetrieveAgentsTool,
|
|
1800
|
-
),
|
|
1801
|
-
);
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
export function agentToolInputCRUDRetrieveAgentsToolFromJSON(
|
|
1805
|
-
jsonString: string,
|
|
1806
|
-
): SafeParseResult<AgentToolInputCRUDRetrieveAgentsTool, SDKValidationError> {
|
|
1807
|
-
return safeParse(
|
|
1808
|
-
jsonString,
|
|
1809
|
-
(x) =>
|
|
1810
|
-
AgentToolInputCRUDRetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)),
|
|
1811
|
-
`Failed to parse 'AgentToolInputCRUDRetrieveAgentsTool' from JSON`,
|
|
1812
|
-
);
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
/** @internal */
|
|
1816
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema:
|
|
1817
|
-
z.ZodNativeEnum<typeof UpdateAgentAgentToolInputCRUDAgentsRequestType> = z
|
|
1818
|
-
.nativeEnum(UpdateAgentAgentToolInputCRUDAgentsRequestType);
|
|
1819
|
-
|
|
1820
|
-
/** @internal */
|
|
1821
|
-
export const UpdateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema:
|
|
1822
|
-
z.ZodNativeEnum<typeof UpdateAgentAgentToolInputCRUDAgentsRequestType> =
|
|
1823
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema;
|
|
1824
|
-
|
|
1825
|
-
/**
|
|
1826
|
-
* @internal
|
|
1827
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1828
|
-
*/
|
|
1829
|
-
export namespace UpdateAgentAgentToolInputCRUDAgentsRequestType$ {
|
|
1830
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema` instead. */
|
|
1831
|
-
export const inboundSchema =
|
|
1832
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema;
|
|
1833
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema` instead. */
|
|
1834
|
-
export const outboundSchema =
|
|
1835
|
-
UpdateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema;
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
/** @internal */
|
|
1839
|
-
export const AgentToolInputCRUDCallSubAgentTool$inboundSchema: z.ZodType<
|
|
1840
|
-
AgentToolInputCRUDCallSubAgentTool,
|
|
1841
|
-
z.ZodTypeDef,
|
|
1842
|
-
unknown
|
|
1843
|
-
> = z.object({
|
|
1844
|
-
type: UpdateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema,
|
|
1845
|
-
requires_approval: z.boolean().default(false),
|
|
1846
|
-
}).transform((v) => {
|
|
1847
|
-
return remap$(v, {
|
|
1848
|
-
"requires_approval": "requiresApproval",
|
|
1849
|
-
});
|
|
1850
|
-
});
|
|
1851
|
-
|
|
1852
|
-
/** @internal */
|
|
1853
|
-
export type AgentToolInputCRUDCallSubAgentTool$Outbound = {
|
|
1854
|
-
type: string;
|
|
1855
|
-
requires_approval: boolean;
|
|
1856
|
-
};
|
|
1857
|
-
|
|
1858
|
-
/** @internal */
|
|
1859
|
-
export const AgentToolInputCRUDCallSubAgentTool$outboundSchema: z.ZodType<
|
|
1860
|
-
AgentToolInputCRUDCallSubAgentTool$Outbound,
|
|
1861
|
-
z.ZodTypeDef,
|
|
1862
|
-
AgentToolInputCRUDCallSubAgentTool
|
|
1863
|
-
> = z.object({
|
|
1864
|
-
type: UpdateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema,
|
|
1865
|
-
requiresApproval: z.boolean().default(false),
|
|
1866
|
-
}).transform((v) => {
|
|
1867
|
-
return remap$(v, {
|
|
1868
|
-
requiresApproval: "requires_approval",
|
|
1869
|
-
});
|
|
1870
|
-
});
|
|
1871
|
-
|
|
1872
|
-
/**
|
|
1873
|
-
* @internal
|
|
1874
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1875
|
-
*/
|
|
1876
|
-
export namespace AgentToolInputCRUDCallSubAgentTool$ {
|
|
1877
|
-
/** @deprecated use `AgentToolInputCRUDCallSubAgentTool$inboundSchema` instead. */
|
|
1878
|
-
export const inboundSchema = AgentToolInputCRUDCallSubAgentTool$inboundSchema;
|
|
1879
|
-
/** @deprecated use `AgentToolInputCRUDCallSubAgentTool$outboundSchema` instead. */
|
|
1880
|
-
export const outboundSchema =
|
|
1881
|
-
AgentToolInputCRUDCallSubAgentTool$outboundSchema;
|
|
1882
|
-
/** @deprecated use `AgentToolInputCRUDCallSubAgentTool$Outbound` instead. */
|
|
1883
|
-
export type Outbound = AgentToolInputCRUDCallSubAgentTool$Outbound;
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
export function agentToolInputCRUDCallSubAgentToolToJSON(
|
|
1887
|
-
agentToolInputCRUDCallSubAgentTool: AgentToolInputCRUDCallSubAgentTool,
|
|
1888
|
-
): string {
|
|
1889
|
-
return JSON.stringify(
|
|
1890
|
-
AgentToolInputCRUDCallSubAgentTool$outboundSchema.parse(
|
|
1891
|
-
agentToolInputCRUDCallSubAgentTool,
|
|
1892
|
-
),
|
|
1893
|
-
);
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
export function agentToolInputCRUDCallSubAgentToolFromJSON(
|
|
1897
|
-
jsonString: string,
|
|
1898
|
-
): SafeParseResult<AgentToolInputCRUDCallSubAgentTool, SDKValidationError> {
|
|
1899
|
-
return safeParse(
|
|
1900
|
-
jsonString,
|
|
1901
|
-
(x) =>
|
|
1902
|
-
AgentToolInputCRUDCallSubAgentTool$inboundSchema.parse(JSON.parse(x)),
|
|
1903
|
-
`Failed to parse 'AgentToolInputCRUDCallSubAgentTool' from JSON`,
|
|
1904
|
-
);
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
/** @internal */
|
|
1908
|
-
export const UpdateAgentAgentToolInputCRUDAgentsType$inboundSchema:
|
|
1909
|
-
z.ZodNativeEnum<typeof UpdateAgentAgentToolInputCRUDAgentsType> = z
|
|
1910
|
-
.nativeEnum(UpdateAgentAgentToolInputCRUDAgentsType);
|
|
1911
|
-
|
|
1912
|
-
/** @internal */
|
|
1913
|
-
export const UpdateAgentAgentToolInputCRUDAgentsType$outboundSchema:
|
|
1914
|
-
z.ZodNativeEnum<typeof UpdateAgentAgentToolInputCRUDAgentsType> =
|
|
1915
|
-
UpdateAgentAgentToolInputCRUDAgentsType$inboundSchema;
|
|
1916
|
-
|
|
1917
|
-
/**
|
|
1918
|
-
* @internal
|
|
1919
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1920
|
-
*/
|
|
1921
|
-
export namespace UpdateAgentAgentToolInputCRUDAgentsType$ {
|
|
1922
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsType$inboundSchema` instead. */
|
|
1923
|
-
export const inboundSchema =
|
|
1924
|
-
UpdateAgentAgentToolInputCRUDAgentsType$inboundSchema;
|
|
1925
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDAgentsType$outboundSchema` instead. */
|
|
1926
|
-
export const outboundSchema =
|
|
1927
|
-
UpdateAgentAgentToolInputCRUDAgentsType$outboundSchema;
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
|
-
/** @internal */
|
|
1931
|
-
export const AgentToolInputCRUDWebScraperTool$inboundSchema: z.ZodType<
|
|
1932
|
-
AgentToolInputCRUDWebScraperTool,
|
|
1933
|
-
z.ZodTypeDef,
|
|
1934
|
-
unknown
|
|
1935
|
-
> = z.object({
|
|
1936
|
-
type: UpdateAgentAgentToolInputCRUDAgentsType$inboundSchema,
|
|
1937
|
-
requires_approval: z.boolean().default(false),
|
|
1938
|
-
}).transform((v) => {
|
|
1939
|
-
return remap$(v, {
|
|
1940
|
-
"requires_approval": "requiresApproval",
|
|
1941
|
-
});
|
|
1942
|
-
});
|
|
1943
|
-
|
|
1944
|
-
/** @internal */
|
|
1945
|
-
export type AgentToolInputCRUDWebScraperTool$Outbound = {
|
|
1946
|
-
type: string;
|
|
1947
|
-
requires_approval: boolean;
|
|
1948
|
-
};
|
|
1949
|
-
|
|
1950
|
-
/** @internal */
|
|
1951
|
-
export const AgentToolInputCRUDWebScraperTool$outboundSchema: z.ZodType<
|
|
1952
|
-
AgentToolInputCRUDWebScraperTool$Outbound,
|
|
1953
|
-
z.ZodTypeDef,
|
|
1954
|
-
AgentToolInputCRUDWebScraperTool
|
|
1955
|
-
> = z.object({
|
|
1956
|
-
type: UpdateAgentAgentToolInputCRUDAgentsType$outboundSchema,
|
|
1957
|
-
requiresApproval: z.boolean().default(false),
|
|
1958
|
-
}).transform((v) => {
|
|
1959
|
-
return remap$(v, {
|
|
1960
|
-
requiresApproval: "requires_approval",
|
|
1961
|
-
});
|
|
1962
|
-
});
|
|
1963
|
-
|
|
1964
|
-
/**
|
|
1965
|
-
* @internal
|
|
1966
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1967
|
-
*/
|
|
1968
|
-
export namespace AgentToolInputCRUDWebScraperTool$ {
|
|
1969
|
-
/** @deprecated use `AgentToolInputCRUDWebScraperTool$inboundSchema` instead. */
|
|
1970
|
-
export const inboundSchema = AgentToolInputCRUDWebScraperTool$inboundSchema;
|
|
1971
|
-
/** @deprecated use `AgentToolInputCRUDWebScraperTool$outboundSchema` instead. */
|
|
1972
|
-
export const outboundSchema = AgentToolInputCRUDWebScraperTool$outboundSchema;
|
|
1973
|
-
/** @deprecated use `AgentToolInputCRUDWebScraperTool$Outbound` instead. */
|
|
1974
|
-
export type Outbound = AgentToolInputCRUDWebScraperTool$Outbound;
|
|
1975
|
-
}
|
|
1976
|
-
|
|
1977
|
-
export function agentToolInputCRUDWebScraperToolToJSON(
|
|
1978
|
-
agentToolInputCRUDWebScraperTool: AgentToolInputCRUDWebScraperTool,
|
|
1979
|
-
): string {
|
|
1980
|
-
return JSON.stringify(
|
|
1981
|
-
AgentToolInputCRUDWebScraperTool$outboundSchema.parse(
|
|
1982
|
-
agentToolInputCRUDWebScraperTool,
|
|
1983
|
-
),
|
|
1984
|
-
);
|
|
1985
|
-
}
|
|
1986
|
-
|
|
1987
|
-
export function agentToolInputCRUDWebScraperToolFromJSON(
|
|
1988
|
-
jsonString: string,
|
|
1989
|
-
): SafeParseResult<AgentToolInputCRUDWebScraperTool, SDKValidationError> {
|
|
1990
|
-
return safeParse(
|
|
1991
|
-
jsonString,
|
|
1992
|
-
(x) => AgentToolInputCRUDWebScraperTool$inboundSchema.parse(JSON.parse(x)),
|
|
1993
|
-
`Failed to parse 'AgentToolInputCRUDWebScraperTool' from JSON`,
|
|
1994
|
-
);
|
|
1995
|
-
}
|
|
1996
|
-
|
|
1997
|
-
/** @internal */
|
|
1998
|
-
export const UpdateAgentAgentToolInputCRUDType$inboundSchema: z.ZodNativeEnum<
|
|
1999
|
-
typeof UpdateAgentAgentToolInputCRUDType
|
|
2000
|
-
> = z.nativeEnum(UpdateAgentAgentToolInputCRUDType);
|
|
2001
|
-
|
|
2002
|
-
/** @internal */
|
|
2003
|
-
export const UpdateAgentAgentToolInputCRUDType$outboundSchema: z.ZodNativeEnum<
|
|
2004
|
-
typeof UpdateAgentAgentToolInputCRUDType
|
|
2005
|
-
> = UpdateAgentAgentToolInputCRUDType$inboundSchema;
|
|
2006
|
-
|
|
2007
|
-
/**
|
|
2008
|
-
* @internal
|
|
2009
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2010
|
-
*/
|
|
2011
|
-
export namespace UpdateAgentAgentToolInputCRUDType$ {
|
|
2012
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDType$inboundSchema` instead. */
|
|
2013
|
-
export const inboundSchema = UpdateAgentAgentToolInputCRUDType$inboundSchema;
|
|
2014
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUDType$outboundSchema` instead. */
|
|
2015
|
-
export const outboundSchema =
|
|
2016
|
-
UpdateAgentAgentToolInputCRUDType$outboundSchema;
|
|
2017
|
-
}
|
|
2018
|
-
|
|
2019
|
-
/** @internal */
|
|
2020
|
-
export const AgentToolInputCRUDGoogleSearchTool$inboundSchema: z.ZodType<
|
|
2021
|
-
AgentToolInputCRUDGoogleSearchTool,
|
|
2022
|
-
z.ZodTypeDef,
|
|
2023
|
-
unknown
|
|
2024
|
-
> = z.object({
|
|
2025
|
-
type: UpdateAgentAgentToolInputCRUDType$inboundSchema,
|
|
2026
|
-
requires_approval: z.boolean().default(false),
|
|
2027
|
-
}).transform((v) => {
|
|
2028
|
-
return remap$(v, {
|
|
2029
|
-
"requires_approval": "requiresApproval",
|
|
2030
|
-
});
|
|
2031
|
-
});
|
|
2032
|
-
|
|
2033
|
-
/** @internal */
|
|
2034
|
-
export type AgentToolInputCRUDGoogleSearchTool$Outbound = {
|
|
2035
|
-
type: string;
|
|
2036
|
-
requires_approval: boolean;
|
|
2037
|
-
};
|
|
2038
|
-
|
|
2039
|
-
/** @internal */
|
|
2040
|
-
export const AgentToolInputCRUDGoogleSearchTool$outboundSchema: z.ZodType<
|
|
2041
|
-
AgentToolInputCRUDGoogleSearchTool$Outbound,
|
|
2042
|
-
z.ZodTypeDef,
|
|
2043
|
-
AgentToolInputCRUDGoogleSearchTool
|
|
2044
|
-
> = z.object({
|
|
2045
|
-
type: UpdateAgentAgentToolInputCRUDType$outboundSchema,
|
|
2046
|
-
requiresApproval: z.boolean().default(false),
|
|
2047
|
-
}).transform((v) => {
|
|
2048
|
-
return remap$(v, {
|
|
2049
|
-
requiresApproval: "requires_approval",
|
|
2050
|
-
});
|
|
2051
|
-
});
|
|
2052
|
-
|
|
2053
|
-
/**
|
|
2054
|
-
* @internal
|
|
2055
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2056
|
-
*/
|
|
2057
|
-
export namespace AgentToolInputCRUDGoogleSearchTool$ {
|
|
2058
|
-
/** @deprecated use `AgentToolInputCRUDGoogleSearchTool$inboundSchema` instead. */
|
|
2059
|
-
export const inboundSchema = AgentToolInputCRUDGoogleSearchTool$inboundSchema;
|
|
2060
|
-
/** @deprecated use `AgentToolInputCRUDGoogleSearchTool$outboundSchema` instead. */
|
|
2061
|
-
export const outboundSchema =
|
|
2062
|
-
AgentToolInputCRUDGoogleSearchTool$outboundSchema;
|
|
2063
|
-
/** @deprecated use `AgentToolInputCRUDGoogleSearchTool$Outbound` instead. */
|
|
2064
|
-
export type Outbound = AgentToolInputCRUDGoogleSearchTool$Outbound;
|
|
2065
|
-
}
|
|
2066
|
-
|
|
2067
|
-
export function agentToolInputCRUDGoogleSearchToolToJSON(
|
|
2068
|
-
agentToolInputCRUDGoogleSearchTool: AgentToolInputCRUDGoogleSearchTool,
|
|
2069
|
-
): string {
|
|
2070
|
-
return JSON.stringify(
|
|
2071
|
-
AgentToolInputCRUDGoogleSearchTool$outboundSchema.parse(
|
|
2072
|
-
agentToolInputCRUDGoogleSearchTool,
|
|
2073
|
-
),
|
|
2074
|
-
);
|
|
2075
|
-
}
|
|
2076
|
-
|
|
2077
|
-
export function agentToolInputCRUDGoogleSearchToolFromJSON(
|
|
2078
|
-
jsonString: string,
|
|
2079
|
-
): SafeParseResult<AgentToolInputCRUDGoogleSearchTool, SDKValidationError> {
|
|
2080
|
-
return safeParse(
|
|
2081
|
-
jsonString,
|
|
2082
|
-
(x) =>
|
|
2083
|
-
AgentToolInputCRUDGoogleSearchTool$inboundSchema.parse(JSON.parse(x)),
|
|
2084
|
-
`Failed to parse 'AgentToolInputCRUDGoogleSearchTool' from JSON`,
|
|
2085
|
-
);
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
/** @internal */
|
|
2089
|
-
export const UpdateAgentAgentToolInputCRUD$inboundSchema: z.ZodType<
|
|
2090
|
-
UpdateAgentAgentToolInputCRUD,
|
|
2091
|
-
z.ZodTypeDef,
|
|
2092
|
-
unknown
|
|
2093
|
-
> = z.union([
|
|
2094
|
-
z.lazy(() => AgentToolInputCRUDGoogleSearchTool$inboundSchema),
|
|
2095
|
-
z.lazy(() => AgentToolInputCRUDWebScraperTool$inboundSchema),
|
|
2096
|
-
z.lazy(() => AgentToolInputCRUDCallSubAgentTool$inboundSchema),
|
|
2097
|
-
z.lazy(() => AgentToolInputCRUDRetrieveAgentsTool$inboundSchema),
|
|
2098
|
-
z.lazy(() => AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema),
|
|
2099
|
-
z.lazy(() => AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema),
|
|
2100
|
-
z.lazy(() => AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema),
|
|
2101
|
-
z.lazy(() => AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema),
|
|
2102
|
-
z.lazy(() => AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema),
|
|
2103
|
-
z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema),
|
|
2104
|
-
z.lazy(() => AgentToolInputCRUDCurrentDateTool$inboundSchema),
|
|
2105
|
-
z.lazy(() => AgentToolInputCRUDHTTPTool$inboundSchema),
|
|
2106
|
-
z.lazy(() => AgentToolInputCRUDCodeExecutionTool$inboundSchema),
|
|
2107
|
-
z.lazy(() => AgentToolInputCRUDFunctionTool$inboundSchema),
|
|
2108
|
-
]);
|
|
2109
|
-
|
|
2110
|
-
/** @internal */
|
|
2111
|
-
export type UpdateAgentAgentToolInputCRUD$Outbound =
|
|
2112
|
-
| AgentToolInputCRUDGoogleSearchTool$Outbound
|
|
2113
|
-
| AgentToolInputCRUDWebScraperTool$Outbound
|
|
2114
|
-
| AgentToolInputCRUDCallSubAgentTool$Outbound
|
|
2115
|
-
| AgentToolInputCRUDRetrieveAgentsTool$Outbound
|
|
2116
|
-
| AgentToolInputCRUDQueryMemoryStoreTool$Outbound
|
|
2117
|
-
| AgentToolInputCRUDWriteMemoryStoreTool$Outbound
|
|
2118
|
-
| AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound
|
|
2119
|
-
| AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound
|
|
2120
|
-
| AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound
|
|
2121
|
-
| AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound
|
|
2122
|
-
| AgentToolInputCRUDCurrentDateTool$Outbound
|
|
2123
|
-
| AgentToolInputCRUDHTTPTool$Outbound
|
|
2124
|
-
| AgentToolInputCRUDCodeExecutionTool$Outbound
|
|
2125
|
-
| AgentToolInputCRUDFunctionTool$Outbound;
|
|
2126
|
-
|
|
2127
|
-
/** @internal */
|
|
2128
|
-
export const UpdateAgentAgentToolInputCRUD$outboundSchema: z.ZodType<
|
|
2129
|
-
UpdateAgentAgentToolInputCRUD$Outbound,
|
|
2130
|
-
z.ZodTypeDef,
|
|
2131
|
-
UpdateAgentAgentToolInputCRUD
|
|
2132
|
-
> = z.union([
|
|
2133
|
-
z.lazy(() => AgentToolInputCRUDGoogleSearchTool$outboundSchema),
|
|
2134
|
-
z.lazy(() => AgentToolInputCRUDWebScraperTool$outboundSchema),
|
|
2135
|
-
z.lazy(() => AgentToolInputCRUDCallSubAgentTool$outboundSchema),
|
|
2136
|
-
z.lazy(() => AgentToolInputCRUDRetrieveAgentsTool$outboundSchema),
|
|
2137
|
-
z.lazy(() => AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema),
|
|
2138
|
-
z.lazy(() => AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema),
|
|
2139
|
-
z.lazy(() => AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema),
|
|
2140
|
-
z.lazy(() => AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema),
|
|
2141
|
-
z.lazy(() => AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema),
|
|
2142
|
-
z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema),
|
|
2143
|
-
z.lazy(() => AgentToolInputCRUDCurrentDateTool$outboundSchema),
|
|
2144
|
-
z.lazy(() => AgentToolInputCRUDHTTPTool$outboundSchema),
|
|
2145
|
-
z.lazy(() => AgentToolInputCRUDCodeExecutionTool$outboundSchema),
|
|
2146
|
-
z.lazy(() => AgentToolInputCRUDFunctionTool$outboundSchema),
|
|
2147
|
-
]);
|
|
2148
|
-
|
|
2149
|
-
/**
|
|
2150
|
-
* @internal
|
|
2151
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2152
|
-
*/
|
|
2153
|
-
export namespace UpdateAgentAgentToolInputCRUD$ {
|
|
2154
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUD$inboundSchema` instead. */
|
|
2155
|
-
export const inboundSchema = UpdateAgentAgentToolInputCRUD$inboundSchema;
|
|
2156
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUD$outboundSchema` instead. */
|
|
2157
|
-
export const outboundSchema = UpdateAgentAgentToolInputCRUD$outboundSchema;
|
|
2158
|
-
/** @deprecated use `UpdateAgentAgentToolInputCRUD$Outbound` instead. */
|
|
2159
|
-
export type Outbound = UpdateAgentAgentToolInputCRUD$Outbound;
|
|
2160
|
-
}
|
|
2161
|
-
|
|
2162
|
-
export function updateAgentAgentToolInputCRUDToJSON(
|
|
2163
|
-
updateAgentAgentToolInputCRUD: UpdateAgentAgentToolInputCRUD,
|
|
2164
|
-
): string {
|
|
2165
|
-
return JSON.stringify(
|
|
2166
|
-
UpdateAgentAgentToolInputCRUD$outboundSchema.parse(
|
|
2167
|
-
updateAgentAgentToolInputCRUD,
|
|
2168
|
-
),
|
|
2169
|
-
);
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
export function updateAgentAgentToolInputCRUDFromJSON(
|
|
2173
|
-
jsonString: string,
|
|
2174
|
-
): SafeParseResult<UpdateAgentAgentToolInputCRUD, SDKValidationError> {
|
|
2175
|
-
return safeParse(
|
|
2176
|
-
jsonString,
|
|
2177
|
-
(x) => UpdateAgentAgentToolInputCRUD$inboundSchema.parse(JSON.parse(x)),
|
|
2178
|
-
`Failed to parse 'UpdateAgentAgentToolInputCRUD' from JSON`,
|
|
2179
|
-
);
|
|
2180
|
-
}
|
|
2181
|
-
|
|
2182
|
-
/** @internal */
|
|
2183
|
-
export const UpdateAgentSettings$inboundSchema: z.ZodType<
|
|
2184
|
-
UpdateAgentSettings,
|
|
2185
|
-
z.ZodTypeDef,
|
|
2186
|
-
unknown
|
|
2187
|
-
> = z.object({
|
|
2188
|
-
max_iterations: z.number().int().default(15),
|
|
2189
|
-
max_execution_time: z.number().int().default(300),
|
|
2190
|
-
tool_approval_required: UpdateAgentToolApprovalRequired$inboundSchema.default(
|
|
2191
|
-
"respect_tool",
|
|
2192
|
-
),
|
|
2193
|
-
tools: z.array(
|
|
2194
|
-
z.union([
|
|
2195
|
-
z.lazy(() => AgentToolInputCRUDGoogleSearchTool$inboundSchema),
|
|
2196
|
-
z.lazy(() => AgentToolInputCRUDWebScraperTool$inboundSchema),
|
|
2197
|
-
z.lazy(() => AgentToolInputCRUDCallSubAgentTool$inboundSchema),
|
|
2198
|
-
z.lazy(() => AgentToolInputCRUDRetrieveAgentsTool$inboundSchema),
|
|
2199
|
-
z.lazy(() => AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema),
|
|
2200
|
-
z.lazy(() => AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema),
|
|
2201
|
-
z.lazy(() => AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema),
|
|
2202
|
-
z.lazy(() => AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema),
|
|
2203
|
-
z.lazy(() => AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema),
|
|
2204
|
-
z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema),
|
|
2205
|
-
z.lazy(() => AgentToolInputCRUDCurrentDateTool$inboundSchema),
|
|
2206
|
-
z.lazy(() => AgentToolInputCRUDHTTPTool$inboundSchema),
|
|
2207
|
-
z.lazy(() => AgentToolInputCRUDCodeExecutionTool$inboundSchema),
|
|
2208
|
-
z.lazy(() => AgentToolInputCRUDFunctionTool$inboundSchema),
|
|
2209
|
-
]),
|
|
2210
|
-
).optional(),
|
|
2211
|
-
}).transform((v) => {
|
|
2212
|
-
return remap$(v, {
|
|
2213
|
-
"max_iterations": "maxIterations",
|
|
2214
|
-
"max_execution_time": "maxExecutionTime",
|
|
2215
|
-
"tool_approval_required": "toolApprovalRequired",
|
|
2216
|
-
});
|
|
2217
|
-
});
|
|
2218
|
-
|
|
2219
|
-
/** @internal */
|
|
2220
|
-
export type UpdateAgentSettings$Outbound = {
|
|
2221
|
-
max_iterations: number;
|
|
2222
|
-
max_execution_time: number;
|
|
2223
|
-
tool_approval_required: string;
|
|
2224
|
-
tools?:
|
|
2225
|
-
| Array<
|
|
2226
|
-
| AgentToolInputCRUDGoogleSearchTool$Outbound
|
|
2227
|
-
| AgentToolInputCRUDWebScraperTool$Outbound
|
|
2228
|
-
| AgentToolInputCRUDCallSubAgentTool$Outbound
|
|
2229
|
-
| AgentToolInputCRUDRetrieveAgentsTool$Outbound
|
|
2230
|
-
| AgentToolInputCRUDQueryMemoryStoreTool$Outbound
|
|
2231
|
-
| AgentToolInputCRUDWriteMemoryStoreTool$Outbound
|
|
2232
|
-
| AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound
|
|
2233
|
-
| AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound
|
|
2234
|
-
| AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound
|
|
2235
|
-
| AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound
|
|
2236
|
-
| AgentToolInputCRUDCurrentDateTool$Outbound
|
|
2237
|
-
| AgentToolInputCRUDHTTPTool$Outbound
|
|
2238
|
-
| AgentToolInputCRUDCodeExecutionTool$Outbound
|
|
2239
|
-
| AgentToolInputCRUDFunctionTool$Outbound
|
|
2240
|
-
>
|
|
2241
|
-
| undefined;
|
|
2242
|
-
};
|
|
2243
|
-
|
|
2244
|
-
/** @internal */
|
|
2245
|
-
export const UpdateAgentSettings$outboundSchema: z.ZodType<
|
|
2246
|
-
UpdateAgentSettings$Outbound,
|
|
2247
|
-
z.ZodTypeDef,
|
|
2248
|
-
UpdateAgentSettings
|
|
2249
|
-
> = z.object({
|
|
2250
|
-
maxIterations: z.number().int().default(15),
|
|
2251
|
-
maxExecutionTime: z.number().int().default(300),
|
|
2252
|
-
toolApprovalRequired: UpdateAgentToolApprovalRequired$outboundSchema.default(
|
|
2253
|
-
"respect_tool",
|
|
2254
|
-
),
|
|
2255
|
-
tools: z.array(
|
|
2256
|
-
z.union([
|
|
2257
|
-
z.lazy(() => AgentToolInputCRUDGoogleSearchTool$outboundSchema),
|
|
2258
|
-
z.lazy(() => AgentToolInputCRUDWebScraperTool$outboundSchema),
|
|
2259
|
-
z.lazy(() => AgentToolInputCRUDCallSubAgentTool$outboundSchema),
|
|
2260
|
-
z.lazy(() => AgentToolInputCRUDRetrieveAgentsTool$outboundSchema),
|
|
2261
|
-
z.lazy(() => AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema),
|
|
2262
|
-
z.lazy(() => AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema),
|
|
2263
|
-
z.lazy(() => AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema),
|
|
2264
|
-
z.lazy(() => AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema),
|
|
2265
|
-
z.lazy(() => AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema),
|
|
2266
|
-
z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema),
|
|
2267
|
-
z.lazy(() => AgentToolInputCRUDCurrentDateTool$outboundSchema),
|
|
2268
|
-
z.lazy(() => AgentToolInputCRUDHTTPTool$outboundSchema),
|
|
2269
|
-
z.lazy(() => AgentToolInputCRUDCodeExecutionTool$outboundSchema),
|
|
2270
|
-
z.lazy(() => AgentToolInputCRUDFunctionTool$outboundSchema),
|
|
2271
|
-
]),
|
|
2272
|
-
).optional(),
|
|
2273
|
-
}).transform((v) => {
|
|
2274
|
-
return remap$(v, {
|
|
2275
|
-
maxIterations: "max_iterations",
|
|
2276
|
-
maxExecutionTime: "max_execution_time",
|
|
2277
|
-
toolApprovalRequired: "tool_approval_required",
|
|
2278
|
-
});
|
|
2279
|
-
});
|
|
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 UpdateAgentSettings$ {
|
|
2286
|
-
/** @deprecated use `UpdateAgentSettings$inboundSchema` instead. */
|
|
2287
|
-
export const inboundSchema = UpdateAgentSettings$inboundSchema;
|
|
2288
|
-
/** @deprecated use `UpdateAgentSettings$outboundSchema` instead. */
|
|
2289
|
-
export const outboundSchema = UpdateAgentSettings$outboundSchema;
|
|
2290
|
-
/** @deprecated use `UpdateAgentSettings$Outbound` instead. */
|
|
2291
|
-
export type Outbound = UpdateAgentSettings$Outbound;
|
|
2292
|
-
}
|
|
2293
|
-
|
|
2294
|
-
export function updateAgentSettingsToJSON(
|
|
2295
|
-
updateAgentSettings: UpdateAgentSettings,
|
|
2296
|
-
): string {
|
|
2297
|
-
return JSON.stringify(
|
|
2298
|
-
UpdateAgentSettings$outboundSchema.parse(updateAgentSettings),
|
|
2299
|
-
);
|
|
2300
|
-
}
|
|
2301
|
-
|
|
2302
|
-
export function updateAgentSettingsFromJSON(
|
|
2303
|
-
jsonString: string,
|
|
2304
|
-
): SafeParseResult<UpdateAgentSettings, SDKValidationError> {
|
|
2305
|
-
return safeParse(
|
|
2306
|
-
jsonString,
|
|
2307
|
-
(x) => UpdateAgentSettings$inboundSchema.parse(JSON.parse(x)),
|
|
2308
|
-
`Failed to parse 'UpdateAgentSettings' from JSON`,
|
|
2309
|
-
);
|
|
2310
|
-
}
|
|
2311
|
-
|
|
2312
|
-
/** @internal */
|
|
2313
|
-
export const UpdateAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
2314
|
-
UpdateAgentKnowledgeBases,
|
|
2315
|
-
z.ZodTypeDef,
|
|
2316
|
-
unknown
|
|
2317
|
-
> = z.object({
|
|
2318
|
-
knowledge_id: z.string(),
|
|
2319
|
-
}).transform((v) => {
|
|
2320
|
-
return remap$(v, {
|
|
2321
|
-
"knowledge_id": "knowledgeId",
|
|
2322
|
-
});
|
|
2323
|
-
});
|
|
2324
|
-
|
|
2325
|
-
/** @internal */
|
|
2326
|
-
export type UpdateAgentKnowledgeBases$Outbound = {
|
|
2327
|
-
knowledge_id: string;
|
|
2328
|
-
};
|
|
2329
|
-
|
|
2330
|
-
/** @internal */
|
|
2331
|
-
export const UpdateAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
2332
|
-
UpdateAgentKnowledgeBases$Outbound,
|
|
2333
|
-
z.ZodTypeDef,
|
|
2334
|
-
UpdateAgentKnowledgeBases
|
|
2335
|
-
> = z.object({
|
|
2336
|
-
knowledgeId: z.string(),
|
|
2337
|
-
}).transform((v) => {
|
|
2338
|
-
return remap$(v, {
|
|
2339
|
-
knowledgeId: "knowledge_id",
|
|
2340
|
-
});
|
|
2341
|
-
});
|
|
2342
|
-
|
|
2343
|
-
/**
|
|
2344
|
-
* @internal
|
|
2345
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2346
|
-
*/
|
|
2347
|
-
export namespace UpdateAgentKnowledgeBases$ {
|
|
2348
|
-
/** @deprecated use `UpdateAgentKnowledgeBases$inboundSchema` instead. */
|
|
2349
|
-
export const inboundSchema = UpdateAgentKnowledgeBases$inboundSchema;
|
|
2350
|
-
/** @deprecated use `UpdateAgentKnowledgeBases$outboundSchema` instead. */
|
|
2351
|
-
export const outboundSchema = UpdateAgentKnowledgeBases$outboundSchema;
|
|
2352
|
-
/** @deprecated use `UpdateAgentKnowledgeBases$Outbound` instead. */
|
|
2353
|
-
export type Outbound = UpdateAgentKnowledgeBases$Outbound;
|
|
2354
|
-
}
|
|
2355
|
-
|
|
2356
|
-
export function updateAgentKnowledgeBasesToJSON(
|
|
2357
|
-
updateAgentKnowledgeBases: UpdateAgentKnowledgeBases,
|
|
2358
|
-
): string {
|
|
2359
|
-
return JSON.stringify(
|
|
2360
|
-
UpdateAgentKnowledgeBases$outboundSchema.parse(updateAgentKnowledgeBases),
|
|
2361
|
-
);
|
|
2362
|
-
}
|
|
2363
|
-
|
|
2364
|
-
export function updateAgentKnowledgeBasesFromJSON(
|
|
2365
|
-
jsonString: string,
|
|
2366
|
-
): SafeParseResult<UpdateAgentKnowledgeBases, SDKValidationError> {
|
|
2367
|
-
return safeParse(
|
|
2368
|
-
jsonString,
|
|
2369
|
-
(x) => UpdateAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
2370
|
-
`Failed to parse 'UpdateAgentKnowledgeBases' from JSON`,
|
|
2371
|
-
);
|
|
2372
|
-
}
|
|
2373
|
-
|
|
2374
|
-
/** @internal */
|
|
2375
|
-
export const UpdateAgentTeamOfAgents$inboundSchema: z.ZodType<
|
|
2376
|
-
UpdateAgentTeamOfAgents,
|
|
2377
|
-
z.ZodTypeDef,
|
|
2378
|
-
unknown
|
|
2379
|
-
> = z.object({
|
|
2380
|
-
key: z.string(),
|
|
2381
|
-
role: z.string().optional(),
|
|
2382
|
-
});
|
|
2383
|
-
|
|
2384
|
-
/** @internal */
|
|
2385
|
-
export type UpdateAgentTeamOfAgents$Outbound = {
|
|
2386
|
-
key: string;
|
|
2387
|
-
role?: string | undefined;
|
|
2388
|
-
};
|
|
2389
|
-
|
|
2390
|
-
/** @internal */
|
|
2391
|
-
export const UpdateAgentTeamOfAgents$outboundSchema: z.ZodType<
|
|
2392
|
-
UpdateAgentTeamOfAgents$Outbound,
|
|
2393
|
-
z.ZodTypeDef,
|
|
2394
|
-
UpdateAgentTeamOfAgents
|
|
2395
|
-
> = z.object({
|
|
2396
|
-
key: z.string(),
|
|
2397
|
-
role: z.string().optional(),
|
|
2398
|
-
});
|
|
2399
|
-
|
|
2400
|
-
/**
|
|
2401
|
-
* @internal
|
|
2402
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2403
|
-
*/
|
|
2404
|
-
export namespace UpdateAgentTeamOfAgents$ {
|
|
2405
|
-
/** @deprecated use `UpdateAgentTeamOfAgents$inboundSchema` instead. */
|
|
2406
|
-
export const inboundSchema = UpdateAgentTeamOfAgents$inboundSchema;
|
|
2407
|
-
/** @deprecated use `UpdateAgentTeamOfAgents$outboundSchema` instead. */
|
|
2408
|
-
export const outboundSchema = UpdateAgentTeamOfAgents$outboundSchema;
|
|
2409
|
-
/** @deprecated use `UpdateAgentTeamOfAgents$Outbound` instead. */
|
|
2410
|
-
export type Outbound = UpdateAgentTeamOfAgents$Outbound;
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
|
-
export function updateAgentTeamOfAgentsToJSON(
|
|
2414
|
-
updateAgentTeamOfAgents: UpdateAgentTeamOfAgents,
|
|
2415
|
-
): string {
|
|
2416
|
-
return JSON.stringify(
|
|
2417
|
-
UpdateAgentTeamOfAgents$outboundSchema.parse(updateAgentTeamOfAgents),
|
|
2418
|
-
);
|
|
2419
|
-
}
|
|
2420
|
-
|
|
2421
|
-
export function updateAgentTeamOfAgentsFromJSON(
|
|
2422
|
-
jsonString: string,
|
|
2423
|
-
): SafeParseResult<UpdateAgentTeamOfAgents, SDKValidationError> {
|
|
2424
|
-
return safeParse(
|
|
2425
|
-
jsonString,
|
|
2426
|
-
(x) => UpdateAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
2427
|
-
`Failed to parse 'UpdateAgentTeamOfAgents' from JSON`,
|
|
2428
|
-
);
|
|
2429
|
-
}
|
|
2430
|
-
|
|
2431
|
-
/** @internal */
|
|
2432
|
-
export const UpdateAgentRequestBody$inboundSchema: z.ZodType<
|
|
2433
|
-
UpdateAgentRequestBody,
|
|
2434
|
-
z.ZodTypeDef,
|
|
2435
|
-
unknown
|
|
2436
|
-
> = z.object({
|
|
2437
|
-
key: z.string().optional(),
|
|
2438
|
-
project_id: z.string().optional(),
|
|
2439
|
-
role: z.string().optional(),
|
|
2440
|
-
description: z.string().optional(),
|
|
2441
|
-
instructions: z.string().optional(),
|
|
2442
|
-
system_prompt: z.string().optional(),
|
|
2443
|
-
model: z.string().optional(),
|
|
2444
|
-
fallback_models: z.array(z.string()).optional(),
|
|
2445
|
-
settings: z.lazy(() => UpdateAgentSettings$inboundSchema).optional(),
|
|
2446
|
-
path: z.string().optional(),
|
|
2447
|
-
memory_stores: z.array(z.string()).optional(),
|
|
2448
|
-
knowledge_bases: z.array(
|
|
2449
|
-
z.lazy(() => UpdateAgentKnowledgeBases$inboundSchema),
|
|
2450
|
-
).optional(),
|
|
2451
|
-
team_of_agents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$inboundSchema))
|
|
2452
|
-
.optional(),
|
|
2453
|
-
}).transform((v) => {
|
|
2454
|
-
return remap$(v, {
|
|
2455
|
-
"project_id": "projectId",
|
|
2456
|
-
"system_prompt": "systemPrompt",
|
|
2457
|
-
"fallback_models": "fallbackModels",
|
|
2458
|
-
"memory_stores": "memoryStores",
|
|
2459
|
-
"knowledge_bases": "knowledgeBases",
|
|
2460
|
-
"team_of_agents": "teamOfAgents",
|
|
2461
|
-
});
|
|
2462
|
-
});
|
|
2463
|
-
|
|
2464
|
-
/** @internal */
|
|
2465
|
-
export type UpdateAgentRequestBody$Outbound = {
|
|
2466
|
-
key?: string | undefined;
|
|
2467
|
-
project_id?: string | undefined;
|
|
2468
|
-
role?: string | undefined;
|
|
2469
|
-
description?: string | undefined;
|
|
2470
|
-
instructions?: string | undefined;
|
|
2471
|
-
system_prompt?: string | undefined;
|
|
2472
|
-
model?: string | undefined;
|
|
2473
|
-
fallback_models?: Array<string> | undefined;
|
|
2474
|
-
settings?: UpdateAgentSettings$Outbound | undefined;
|
|
2475
|
-
path?: string | undefined;
|
|
2476
|
-
memory_stores?: Array<string> | undefined;
|
|
2477
|
-
knowledge_bases?: Array<UpdateAgentKnowledgeBases$Outbound> | undefined;
|
|
2478
|
-
team_of_agents?: Array<UpdateAgentTeamOfAgents$Outbound> | undefined;
|
|
2479
|
-
};
|
|
2480
|
-
|
|
2481
|
-
/** @internal */
|
|
2482
|
-
export const UpdateAgentRequestBody$outboundSchema: z.ZodType<
|
|
2483
|
-
UpdateAgentRequestBody$Outbound,
|
|
2484
|
-
z.ZodTypeDef,
|
|
2485
|
-
UpdateAgentRequestBody
|
|
2486
|
-
> = z.object({
|
|
2487
|
-
key: z.string().optional(),
|
|
2488
|
-
projectId: z.string().optional(),
|
|
2489
|
-
role: z.string().optional(),
|
|
2490
|
-
description: z.string().optional(),
|
|
2491
|
-
instructions: z.string().optional(),
|
|
2492
|
-
systemPrompt: z.string().optional(),
|
|
2493
|
-
model: z.string().optional(),
|
|
2494
|
-
fallbackModels: z.array(z.string()).optional(),
|
|
2495
|
-
settings: z.lazy(() => UpdateAgentSettings$outboundSchema).optional(),
|
|
2496
|
-
path: z.string().optional(),
|
|
2497
|
-
memoryStores: z.array(z.string()).optional(),
|
|
2498
|
-
knowledgeBases: z.array(
|
|
2499
|
-
z.lazy(() => UpdateAgentKnowledgeBases$outboundSchema),
|
|
2500
|
-
).optional(),
|
|
2501
|
-
teamOfAgents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$outboundSchema))
|
|
2502
|
-
.optional(),
|
|
2503
|
-
}).transform((v) => {
|
|
2504
|
-
return remap$(v, {
|
|
2505
|
-
projectId: "project_id",
|
|
2506
|
-
systemPrompt: "system_prompt",
|
|
2507
|
-
fallbackModels: "fallback_models",
|
|
2508
|
-
memoryStores: "memory_stores",
|
|
2509
|
-
knowledgeBases: "knowledge_bases",
|
|
2510
|
-
teamOfAgents: "team_of_agents",
|
|
2511
|
-
});
|
|
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 UpdateAgentRequestBody$ {
|
|
2519
|
-
/** @deprecated use `UpdateAgentRequestBody$inboundSchema` instead. */
|
|
2520
|
-
export const inboundSchema = UpdateAgentRequestBody$inboundSchema;
|
|
2521
|
-
/** @deprecated use `UpdateAgentRequestBody$outboundSchema` instead. */
|
|
2522
|
-
export const outboundSchema = UpdateAgentRequestBody$outboundSchema;
|
|
2523
|
-
/** @deprecated use `UpdateAgentRequestBody$Outbound` instead. */
|
|
2524
|
-
export type Outbound = UpdateAgentRequestBody$Outbound;
|
|
2525
|
-
}
|
|
2526
|
-
|
|
2527
|
-
export function updateAgentRequestBodyToJSON(
|
|
2528
|
-
updateAgentRequestBody: UpdateAgentRequestBody,
|
|
2529
|
-
): string {
|
|
2530
|
-
return JSON.stringify(
|
|
2531
|
-
UpdateAgentRequestBody$outboundSchema.parse(updateAgentRequestBody),
|
|
2532
|
-
);
|
|
2533
|
-
}
|
|
2534
|
-
|
|
2535
|
-
export function updateAgentRequestBodyFromJSON(
|
|
2536
|
-
jsonString: string,
|
|
2537
|
-
): SafeParseResult<UpdateAgentRequestBody, SDKValidationError> {
|
|
2538
|
-
return safeParse(
|
|
2539
|
-
jsonString,
|
|
2540
|
-
(x) => UpdateAgentRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
2541
|
-
`Failed to parse 'UpdateAgentRequestBody' from JSON`,
|
|
2542
|
-
);
|
|
2543
|
-
}
|
|
2544
|
-
|
|
2545
|
-
/** @internal */
|
|
2546
|
-
export const UpdateAgentRequest$inboundSchema: z.ZodType<
|
|
2547
|
-
UpdateAgentRequest,
|
|
2548
|
-
z.ZodTypeDef,
|
|
2549
|
-
unknown
|
|
2550
|
-
> = z.object({
|
|
2551
|
-
agent_key: z.string(),
|
|
2552
|
-
RequestBody: z.lazy(() => UpdateAgentRequestBody$inboundSchema).optional(),
|
|
2553
|
-
}).transform((v) => {
|
|
2554
|
-
return remap$(v, {
|
|
2555
|
-
"agent_key": "agentKey",
|
|
2556
|
-
"RequestBody": "requestBody",
|
|
2557
|
-
});
|
|
2558
|
-
});
|
|
2559
|
-
|
|
2560
|
-
/** @internal */
|
|
2561
|
-
export type UpdateAgentRequest$Outbound = {
|
|
2562
|
-
agent_key: string;
|
|
2563
|
-
RequestBody?: UpdateAgentRequestBody$Outbound | undefined;
|
|
2564
|
-
};
|
|
2565
|
-
|
|
2566
|
-
/** @internal */
|
|
2567
|
-
export const UpdateAgentRequest$outboundSchema: z.ZodType<
|
|
2568
|
-
UpdateAgentRequest$Outbound,
|
|
2569
|
-
z.ZodTypeDef,
|
|
2570
|
-
UpdateAgentRequest
|
|
2571
|
-
> = z.object({
|
|
2572
|
-
agentKey: z.string(),
|
|
2573
|
-
requestBody: z.lazy(() => UpdateAgentRequestBody$outboundSchema).optional(),
|
|
2574
|
-
}).transform((v) => {
|
|
2575
|
-
return remap$(v, {
|
|
2576
|
-
agentKey: "agent_key",
|
|
2577
|
-
requestBody: "RequestBody",
|
|
2578
|
-
});
|
|
2579
|
-
});
|
|
2580
|
-
|
|
2581
|
-
/**
|
|
2582
|
-
* @internal
|
|
2583
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2584
|
-
*/
|
|
2585
|
-
export namespace UpdateAgentRequest$ {
|
|
2586
|
-
/** @deprecated use `UpdateAgentRequest$inboundSchema` instead. */
|
|
2587
|
-
export const inboundSchema = UpdateAgentRequest$inboundSchema;
|
|
2588
|
-
/** @deprecated use `UpdateAgentRequest$outboundSchema` instead. */
|
|
2589
|
-
export const outboundSchema = UpdateAgentRequest$outboundSchema;
|
|
2590
|
-
/** @deprecated use `UpdateAgentRequest$Outbound` instead. */
|
|
2591
|
-
export type Outbound = UpdateAgentRequest$Outbound;
|
|
2592
|
-
}
|
|
2593
|
-
|
|
2594
|
-
export function updateAgentRequestToJSON(
|
|
2595
|
-
updateAgentRequest: UpdateAgentRequest,
|
|
2596
|
-
): string {
|
|
2597
|
-
return JSON.stringify(
|
|
2598
|
-
UpdateAgentRequest$outboundSchema.parse(updateAgentRequest),
|
|
2599
|
-
);
|
|
2600
|
-
}
|
|
2601
|
-
|
|
2602
|
-
export function updateAgentRequestFromJSON(
|
|
2603
|
-
jsonString: string,
|
|
2604
|
-
): SafeParseResult<UpdateAgentRequest, SDKValidationError> {
|
|
2605
|
-
return safeParse(
|
|
2606
|
-
jsonString,
|
|
2607
|
-
(x) => UpdateAgentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
2608
|
-
`Failed to parse 'UpdateAgentRequest' from JSON`,
|
|
2609
|
-
);
|
|
2610
|
-
}
|
|
2611
|
-
|
|
2612
|
-
/** @internal */
|
|
2613
|
-
export const UpdateAgentStatus$inboundSchema: z.ZodNativeEnum<
|
|
2614
|
-
typeof UpdateAgentStatus
|
|
2615
|
-
> = z.nativeEnum(UpdateAgentStatus);
|
|
2616
|
-
|
|
2617
|
-
/** @internal */
|
|
2618
|
-
export const UpdateAgentStatus$outboundSchema: z.ZodNativeEnum<
|
|
2619
|
-
typeof UpdateAgentStatus
|
|
2620
|
-
> = UpdateAgentStatus$inboundSchema;
|
|
2621
|
-
|
|
2622
|
-
/**
|
|
2623
|
-
* @internal
|
|
2624
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2625
|
-
*/
|
|
2626
|
-
export namespace UpdateAgentStatus$ {
|
|
2627
|
-
/** @deprecated use `UpdateAgentStatus$inboundSchema` instead. */
|
|
2628
|
-
export const inboundSchema = UpdateAgentStatus$inboundSchema;
|
|
2629
|
-
/** @deprecated use `UpdateAgentStatus$outboundSchema` instead. */
|
|
2630
|
-
export const outboundSchema = UpdateAgentStatus$outboundSchema;
|
|
2631
|
-
}
|
|
2632
|
-
|
|
2633
|
-
/** @internal */
|
|
2634
|
-
export const UpdateAgentAgentsToolApprovalRequired$inboundSchema:
|
|
2635
|
-
z.ZodNativeEnum<typeof UpdateAgentAgentsToolApprovalRequired> = z.nativeEnum(
|
|
2636
|
-
UpdateAgentAgentsToolApprovalRequired,
|
|
2637
|
-
);
|
|
2638
|
-
|
|
2639
|
-
/** @internal */
|
|
2640
|
-
export const UpdateAgentAgentsToolApprovalRequired$outboundSchema:
|
|
2641
|
-
z.ZodNativeEnum<typeof UpdateAgentAgentsToolApprovalRequired> =
|
|
2642
|
-
UpdateAgentAgentsToolApprovalRequired$inboundSchema;
|
|
2643
|
-
|
|
2644
|
-
/**
|
|
2645
|
-
* @internal
|
|
2646
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2647
|
-
*/
|
|
2648
|
-
export namespace UpdateAgentAgentsToolApprovalRequired$ {
|
|
2649
|
-
/** @deprecated use `UpdateAgentAgentsToolApprovalRequired$inboundSchema` instead. */
|
|
2650
|
-
export const inboundSchema =
|
|
2651
|
-
UpdateAgentAgentsToolApprovalRequired$inboundSchema;
|
|
2652
|
-
/** @deprecated use `UpdateAgentAgentsToolApprovalRequired$outboundSchema` instead. */
|
|
2653
|
-
export const outboundSchema =
|
|
2654
|
-
UpdateAgentAgentsToolApprovalRequired$outboundSchema;
|
|
2655
|
-
}
|
|
2656
|
-
|
|
2657
|
-
/** @internal */
|
|
2658
|
-
export const UpdateAgentConditions$inboundSchema: z.ZodType<
|
|
2659
|
-
UpdateAgentConditions,
|
|
2660
|
-
z.ZodTypeDef,
|
|
2661
|
-
unknown
|
|
2662
|
-
> = z.object({
|
|
2663
|
-
condition: z.string(),
|
|
2664
|
-
operator: z.string(),
|
|
2665
|
-
value: z.string(),
|
|
2666
|
-
});
|
|
2667
|
-
|
|
2668
|
-
/** @internal */
|
|
2669
|
-
export type UpdateAgentConditions$Outbound = {
|
|
2670
|
-
condition: string;
|
|
2671
|
-
operator: string;
|
|
2672
|
-
value: string;
|
|
2673
|
-
};
|
|
2674
|
-
|
|
2675
|
-
/** @internal */
|
|
2676
|
-
export const UpdateAgentConditions$outboundSchema: z.ZodType<
|
|
2677
|
-
UpdateAgentConditions$Outbound,
|
|
2678
|
-
z.ZodTypeDef,
|
|
2679
|
-
UpdateAgentConditions
|
|
2680
|
-
> = z.object({
|
|
2681
|
-
condition: z.string(),
|
|
2682
|
-
operator: z.string(),
|
|
2683
|
-
value: z.string(),
|
|
2684
|
-
});
|
|
2685
|
-
|
|
2686
|
-
/**
|
|
2687
|
-
* @internal
|
|
2688
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2689
|
-
*/
|
|
2690
|
-
export namespace UpdateAgentConditions$ {
|
|
2691
|
-
/** @deprecated use `UpdateAgentConditions$inboundSchema` instead. */
|
|
2692
|
-
export const inboundSchema = UpdateAgentConditions$inboundSchema;
|
|
2693
|
-
/** @deprecated use `UpdateAgentConditions$outboundSchema` instead. */
|
|
2694
|
-
export const outboundSchema = UpdateAgentConditions$outboundSchema;
|
|
2695
|
-
/** @deprecated use `UpdateAgentConditions$Outbound` instead. */
|
|
2696
|
-
export type Outbound = UpdateAgentConditions$Outbound;
|
|
2697
|
-
}
|
|
2698
|
-
|
|
2699
|
-
export function updateAgentConditionsToJSON(
|
|
2700
|
-
updateAgentConditions: UpdateAgentConditions,
|
|
2701
|
-
): string {
|
|
2702
|
-
return JSON.stringify(
|
|
2703
|
-
UpdateAgentConditions$outboundSchema.parse(updateAgentConditions),
|
|
2704
|
-
);
|
|
2705
|
-
}
|
|
2706
|
-
|
|
2707
|
-
export function updateAgentConditionsFromJSON(
|
|
2708
|
-
jsonString: string,
|
|
2709
|
-
): SafeParseResult<UpdateAgentConditions, SDKValidationError> {
|
|
2710
|
-
return safeParse(
|
|
2711
|
-
jsonString,
|
|
2712
|
-
(x) => UpdateAgentConditions$inboundSchema.parse(JSON.parse(x)),
|
|
2713
|
-
`Failed to parse 'UpdateAgentConditions' from JSON`,
|
|
2714
|
-
);
|
|
2715
|
-
}
|
|
2716
|
-
|
|
2717
|
-
/** @internal */
|
|
2718
|
-
export const UpdateAgentTools$inboundSchema: z.ZodType<
|
|
2719
|
-
UpdateAgentTools,
|
|
2720
|
-
z.ZodTypeDef,
|
|
2721
|
-
unknown
|
|
2722
|
-
> = z.object({
|
|
2723
|
-
id: z.string(),
|
|
2724
|
-
key: z.string().optional(),
|
|
2725
|
-
action_type: z.string(),
|
|
2726
|
-
display_name: z.string().optional(),
|
|
2727
|
-
requires_approval: z.boolean().default(false),
|
|
2728
|
-
conditions: z.array(z.lazy(() => UpdateAgentConditions$inboundSchema))
|
|
2729
|
-
.optional(),
|
|
2730
|
-
mcpServer: z.string().optional(),
|
|
2731
|
-
timeout: z.number().default(120),
|
|
2732
|
-
}).transform((v) => {
|
|
2733
|
-
return remap$(v, {
|
|
2734
|
-
"action_type": "actionType",
|
|
2735
|
-
"display_name": "displayName",
|
|
2736
|
-
"requires_approval": "requiresApproval",
|
|
2737
|
-
});
|
|
2738
|
-
});
|
|
2739
|
-
|
|
2740
|
-
/** @internal */
|
|
2741
|
-
export type UpdateAgentTools$Outbound = {
|
|
2742
|
-
id: string;
|
|
2743
|
-
key?: string | undefined;
|
|
2744
|
-
action_type: string;
|
|
2745
|
-
display_name?: string | undefined;
|
|
2746
|
-
requires_approval: boolean;
|
|
2747
|
-
conditions?: Array<UpdateAgentConditions$Outbound> | undefined;
|
|
2748
|
-
mcpServer?: string | undefined;
|
|
2749
|
-
timeout: number;
|
|
2750
|
-
};
|
|
2751
|
-
|
|
2752
|
-
/** @internal */
|
|
2753
|
-
export const UpdateAgentTools$outboundSchema: z.ZodType<
|
|
2754
|
-
UpdateAgentTools$Outbound,
|
|
2755
|
-
z.ZodTypeDef,
|
|
2756
|
-
UpdateAgentTools
|
|
2757
|
-
> = z.object({
|
|
2758
|
-
id: z.string(),
|
|
2759
|
-
key: z.string().optional(),
|
|
2760
|
-
actionType: z.string(),
|
|
2761
|
-
displayName: z.string().optional(),
|
|
2762
|
-
requiresApproval: z.boolean().default(false),
|
|
2763
|
-
conditions: z.array(z.lazy(() => UpdateAgentConditions$outboundSchema))
|
|
2764
|
-
.optional(),
|
|
2765
|
-
mcpServer: z.string().optional(),
|
|
2766
|
-
timeout: z.number().default(120),
|
|
2767
|
-
}).transform((v) => {
|
|
2768
|
-
return remap$(v, {
|
|
2769
|
-
actionType: "action_type",
|
|
2770
|
-
displayName: "display_name",
|
|
2771
|
-
requiresApproval: "requires_approval",
|
|
2772
|
-
});
|
|
2773
|
-
});
|
|
2774
|
-
|
|
2775
|
-
/**
|
|
2776
|
-
* @internal
|
|
2777
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2778
|
-
*/
|
|
2779
|
-
export namespace UpdateAgentTools$ {
|
|
2780
|
-
/** @deprecated use `UpdateAgentTools$inboundSchema` instead. */
|
|
2781
|
-
export const inboundSchema = UpdateAgentTools$inboundSchema;
|
|
2782
|
-
/** @deprecated use `UpdateAgentTools$outboundSchema` instead. */
|
|
2783
|
-
export const outboundSchema = UpdateAgentTools$outboundSchema;
|
|
2784
|
-
/** @deprecated use `UpdateAgentTools$Outbound` instead. */
|
|
2785
|
-
export type Outbound = UpdateAgentTools$Outbound;
|
|
2786
|
-
}
|
|
2787
|
-
|
|
2788
|
-
export function updateAgentToolsToJSON(
|
|
2789
|
-
updateAgentTools: UpdateAgentTools,
|
|
2790
|
-
): string {
|
|
2791
|
-
return JSON.stringify(
|
|
2792
|
-
UpdateAgentTools$outboundSchema.parse(updateAgentTools),
|
|
2793
|
-
);
|
|
2794
|
-
}
|
|
2795
|
-
|
|
2796
|
-
export function updateAgentToolsFromJSON(
|
|
2797
|
-
jsonString: string,
|
|
2798
|
-
): SafeParseResult<UpdateAgentTools, SDKValidationError> {
|
|
2799
|
-
return safeParse(
|
|
2800
|
-
jsonString,
|
|
2801
|
-
(x) => UpdateAgentTools$inboundSchema.parse(JSON.parse(x)),
|
|
2802
|
-
`Failed to parse 'UpdateAgentTools' from JSON`,
|
|
2803
|
-
);
|
|
2804
|
-
}
|
|
2805
|
-
|
|
2806
|
-
/** @internal */
|
|
2807
|
-
export const UpdateAgentAgentsSettings$inboundSchema: z.ZodType<
|
|
2808
|
-
UpdateAgentAgentsSettings,
|
|
2809
|
-
z.ZodTypeDef,
|
|
2810
|
-
unknown
|
|
2811
|
-
> = z.object({
|
|
2812
|
-
max_iterations: z.number().int().default(15),
|
|
2813
|
-
max_execution_time: z.number().int().default(300),
|
|
2814
|
-
tool_approval_required: UpdateAgentAgentsToolApprovalRequired$inboundSchema
|
|
2815
|
-
.default("respect_tool"),
|
|
2816
|
-
tools: z.array(z.lazy(() => UpdateAgentTools$inboundSchema)).optional(),
|
|
2817
|
-
}).transform((v) => {
|
|
2818
|
-
return remap$(v, {
|
|
2819
|
-
"max_iterations": "maxIterations",
|
|
2820
|
-
"max_execution_time": "maxExecutionTime",
|
|
2821
|
-
"tool_approval_required": "toolApprovalRequired",
|
|
2822
|
-
});
|
|
2823
|
-
});
|
|
2824
|
-
|
|
2825
|
-
/** @internal */
|
|
2826
|
-
export type UpdateAgentAgentsSettings$Outbound = {
|
|
2827
|
-
max_iterations: number;
|
|
2828
|
-
max_execution_time: number;
|
|
2829
|
-
tool_approval_required: string;
|
|
2830
|
-
tools?: Array<UpdateAgentTools$Outbound> | undefined;
|
|
2831
|
-
};
|
|
2832
|
-
|
|
2833
|
-
/** @internal */
|
|
2834
|
-
export const UpdateAgentAgentsSettings$outboundSchema: z.ZodType<
|
|
2835
|
-
UpdateAgentAgentsSettings$Outbound,
|
|
2836
|
-
z.ZodTypeDef,
|
|
2837
|
-
UpdateAgentAgentsSettings
|
|
2838
|
-
> = z.object({
|
|
2839
|
-
maxIterations: z.number().int().default(15),
|
|
2840
|
-
maxExecutionTime: z.number().int().default(300),
|
|
2841
|
-
toolApprovalRequired: UpdateAgentAgentsToolApprovalRequired$outboundSchema
|
|
2842
|
-
.default("respect_tool"),
|
|
2843
|
-
tools: z.array(z.lazy(() => UpdateAgentTools$outboundSchema)).optional(),
|
|
2844
|
-
}).transform((v) => {
|
|
2845
|
-
return remap$(v, {
|
|
2846
|
-
maxIterations: "max_iterations",
|
|
2847
|
-
maxExecutionTime: "max_execution_time",
|
|
2848
|
-
toolApprovalRequired: "tool_approval_required",
|
|
2849
|
-
});
|
|
2850
|
-
});
|
|
2851
|
-
|
|
2852
|
-
/**
|
|
2853
|
-
* @internal
|
|
2854
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2855
|
-
*/
|
|
2856
|
-
export namespace UpdateAgentAgentsSettings$ {
|
|
2857
|
-
/** @deprecated use `UpdateAgentAgentsSettings$inboundSchema` instead. */
|
|
2858
|
-
export const inboundSchema = UpdateAgentAgentsSettings$inboundSchema;
|
|
2859
|
-
/** @deprecated use `UpdateAgentAgentsSettings$outboundSchema` instead. */
|
|
2860
|
-
export const outboundSchema = UpdateAgentAgentsSettings$outboundSchema;
|
|
2861
|
-
/** @deprecated use `UpdateAgentAgentsSettings$Outbound` instead. */
|
|
2862
|
-
export type Outbound = UpdateAgentAgentsSettings$Outbound;
|
|
2863
|
-
}
|
|
2864
|
-
|
|
2865
|
-
export function updateAgentAgentsSettingsToJSON(
|
|
2866
|
-
updateAgentAgentsSettings: UpdateAgentAgentsSettings,
|
|
2867
|
-
): string {
|
|
2868
|
-
return JSON.stringify(
|
|
2869
|
-
UpdateAgentAgentsSettings$outboundSchema.parse(updateAgentAgentsSettings),
|
|
2870
|
-
);
|
|
2871
|
-
}
|
|
2872
|
-
|
|
2873
|
-
export function updateAgentAgentsSettingsFromJSON(
|
|
2874
|
-
jsonString: string,
|
|
2875
|
-
): SafeParseResult<UpdateAgentAgentsSettings, SDKValidationError> {
|
|
2876
|
-
return safeParse(
|
|
2877
|
-
jsonString,
|
|
2878
|
-
(x) => UpdateAgentAgentsSettings$inboundSchema.parse(JSON.parse(x)),
|
|
2879
|
-
`Failed to parse 'UpdateAgentAgentsSettings' from JSON`,
|
|
2880
|
-
);
|
|
2881
|
-
}
|
|
2882
|
-
|
|
2883
|
-
/** @internal */
|
|
2884
|
-
export const UpdateAgentModel$inboundSchema: z.ZodType<
|
|
2885
|
-
UpdateAgentModel,
|
|
2886
|
-
z.ZodTypeDef,
|
|
2887
|
-
unknown
|
|
2888
|
-
> = z.object({
|
|
2889
|
-
id: z.string(),
|
|
2890
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
2891
|
-
fallback_models: z.nullable(z.array(z.string())).optional(),
|
|
2892
|
-
max_tokens: z.number().int().optional(),
|
|
2893
|
-
temperature: z.number().optional(),
|
|
2894
|
-
}).transform((v) => {
|
|
2895
|
-
return remap$(v, {
|
|
2896
|
-
"integration_id": "integrationId",
|
|
2897
|
-
"fallback_models": "fallbackModels",
|
|
2898
|
-
"max_tokens": "maxTokens",
|
|
2899
|
-
});
|
|
2900
|
-
});
|
|
2901
|
-
|
|
2902
|
-
/** @internal */
|
|
2903
|
-
export type UpdateAgentModel$Outbound = {
|
|
2904
|
-
id: string;
|
|
2905
|
-
integration_id?: string | null | undefined;
|
|
2906
|
-
fallback_models?: Array<string> | null | undefined;
|
|
2907
|
-
max_tokens?: number | undefined;
|
|
2908
|
-
temperature?: number | undefined;
|
|
2909
|
-
};
|
|
2910
|
-
|
|
2911
|
-
/** @internal */
|
|
2912
|
-
export const UpdateAgentModel$outboundSchema: z.ZodType<
|
|
2913
|
-
UpdateAgentModel$Outbound,
|
|
2914
|
-
z.ZodTypeDef,
|
|
2915
|
-
UpdateAgentModel
|
|
2916
|
-
> = z.object({
|
|
2917
|
-
id: z.string(),
|
|
2918
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
2919
|
-
fallbackModels: z.nullable(z.array(z.string())).optional(),
|
|
2920
|
-
maxTokens: z.number().int().optional(),
|
|
2921
|
-
temperature: z.number().optional(),
|
|
2922
|
-
}).transform((v) => {
|
|
2923
|
-
return remap$(v, {
|
|
2924
|
-
integrationId: "integration_id",
|
|
2925
|
-
fallbackModels: "fallback_models",
|
|
2926
|
-
maxTokens: "max_tokens",
|
|
2927
|
-
});
|
|
2928
|
-
});
|
|
2929
|
-
|
|
2930
|
-
/**
|
|
2931
|
-
* @internal
|
|
2932
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2933
|
-
*/
|
|
2934
|
-
export namespace UpdateAgentModel$ {
|
|
2935
|
-
/** @deprecated use `UpdateAgentModel$inboundSchema` instead. */
|
|
2936
|
-
export const inboundSchema = UpdateAgentModel$inboundSchema;
|
|
2937
|
-
/** @deprecated use `UpdateAgentModel$outboundSchema` instead. */
|
|
2938
|
-
export const outboundSchema = UpdateAgentModel$outboundSchema;
|
|
2939
|
-
/** @deprecated use `UpdateAgentModel$Outbound` instead. */
|
|
2940
|
-
export type Outbound = UpdateAgentModel$Outbound;
|
|
2941
|
-
}
|
|
2942
|
-
|
|
2943
|
-
export function updateAgentModelToJSON(
|
|
2944
|
-
updateAgentModel: UpdateAgentModel,
|
|
2945
|
-
): string {
|
|
2946
|
-
return JSON.stringify(
|
|
2947
|
-
UpdateAgentModel$outboundSchema.parse(updateAgentModel),
|
|
2948
|
-
);
|
|
2949
|
-
}
|
|
2950
|
-
|
|
2951
|
-
export function updateAgentModelFromJSON(
|
|
2952
|
-
jsonString: string,
|
|
2953
|
-
): SafeParseResult<UpdateAgentModel, SDKValidationError> {
|
|
2954
|
-
return safeParse(
|
|
2955
|
-
jsonString,
|
|
2956
|
-
(x) => UpdateAgentModel$inboundSchema.parse(JSON.parse(x)),
|
|
2957
|
-
`Failed to parse 'UpdateAgentModel' from JSON`,
|
|
2958
|
-
);
|
|
2959
|
-
}
|
|
2960
|
-
|
|
2961
|
-
/** @internal */
|
|
2962
|
-
export const UpdateAgentAgentsTeamOfAgents$inboundSchema: z.ZodType<
|
|
2963
|
-
UpdateAgentAgentsTeamOfAgents,
|
|
2964
|
-
z.ZodTypeDef,
|
|
2965
|
-
unknown
|
|
2966
|
-
> = z.object({
|
|
2967
|
-
key: z.string(),
|
|
2968
|
-
role: z.string().optional(),
|
|
2969
|
-
});
|
|
2970
|
-
|
|
2971
|
-
/** @internal */
|
|
2972
|
-
export type UpdateAgentAgentsTeamOfAgents$Outbound = {
|
|
2973
|
-
key: string;
|
|
2974
|
-
role?: string | undefined;
|
|
2975
|
-
};
|
|
2976
|
-
|
|
2977
|
-
/** @internal */
|
|
2978
|
-
export const UpdateAgentAgentsTeamOfAgents$outboundSchema: z.ZodType<
|
|
2979
|
-
UpdateAgentAgentsTeamOfAgents$Outbound,
|
|
2980
|
-
z.ZodTypeDef,
|
|
2981
|
-
UpdateAgentAgentsTeamOfAgents
|
|
2982
|
-
> = z.object({
|
|
2983
|
-
key: z.string(),
|
|
2984
|
-
role: z.string().optional(),
|
|
2985
|
-
});
|
|
2986
|
-
|
|
2987
|
-
/**
|
|
2988
|
-
* @internal
|
|
2989
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2990
|
-
*/
|
|
2991
|
-
export namespace UpdateAgentAgentsTeamOfAgents$ {
|
|
2992
|
-
/** @deprecated use `UpdateAgentAgentsTeamOfAgents$inboundSchema` instead. */
|
|
2993
|
-
export const inboundSchema = UpdateAgentAgentsTeamOfAgents$inboundSchema;
|
|
2994
|
-
/** @deprecated use `UpdateAgentAgentsTeamOfAgents$outboundSchema` instead. */
|
|
2995
|
-
export const outboundSchema = UpdateAgentAgentsTeamOfAgents$outboundSchema;
|
|
2996
|
-
/** @deprecated use `UpdateAgentAgentsTeamOfAgents$Outbound` instead. */
|
|
2997
|
-
export type Outbound = UpdateAgentAgentsTeamOfAgents$Outbound;
|
|
2998
|
-
}
|
|
2999
|
-
|
|
3000
|
-
export function updateAgentAgentsTeamOfAgentsToJSON(
|
|
3001
|
-
updateAgentAgentsTeamOfAgents: UpdateAgentAgentsTeamOfAgents,
|
|
3002
|
-
): string {
|
|
3003
|
-
return JSON.stringify(
|
|
3004
|
-
UpdateAgentAgentsTeamOfAgents$outboundSchema.parse(
|
|
3005
|
-
updateAgentAgentsTeamOfAgents,
|
|
3006
|
-
),
|
|
3007
|
-
);
|
|
3008
|
-
}
|
|
3009
|
-
|
|
3010
|
-
export function updateAgentAgentsTeamOfAgentsFromJSON(
|
|
3011
|
-
jsonString: string,
|
|
3012
|
-
): SafeParseResult<UpdateAgentAgentsTeamOfAgents, SDKValidationError> {
|
|
3013
|
-
return safeParse(
|
|
3014
|
-
jsonString,
|
|
3015
|
-
(x) => UpdateAgentAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
3016
|
-
`Failed to parse 'UpdateAgentAgentsTeamOfAgents' from JSON`,
|
|
3017
|
-
);
|
|
3018
|
-
}
|
|
3019
|
-
|
|
3020
|
-
/** @internal */
|
|
3021
|
-
export const UpdateAgentMetrics$inboundSchema: z.ZodType<
|
|
3022
|
-
UpdateAgentMetrics,
|
|
3023
|
-
z.ZodTypeDef,
|
|
3024
|
-
unknown
|
|
3025
|
-
> = z.object({
|
|
3026
|
-
total_cost: z.number().default(0),
|
|
3027
|
-
}).transform((v) => {
|
|
3028
|
-
return remap$(v, {
|
|
3029
|
-
"total_cost": "totalCost",
|
|
3030
|
-
});
|
|
3031
|
-
});
|
|
3032
|
-
|
|
3033
|
-
/** @internal */
|
|
3034
|
-
export type UpdateAgentMetrics$Outbound = {
|
|
3035
|
-
total_cost: number;
|
|
3036
|
-
};
|
|
3037
|
-
|
|
3038
|
-
/** @internal */
|
|
3039
|
-
export const UpdateAgentMetrics$outboundSchema: z.ZodType<
|
|
3040
|
-
UpdateAgentMetrics$Outbound,
|
|
3041
|
-
z.ZodTypeDef,
|
|
3042
|
-
UpdateAgentMetrics
|
|
3043
|
-
> = z.object({
|
|
3044
|
-
totalCost: z.number().default(0),
|
|
3045
|
-
}).transform((v) => {
|
|
3046
|
-
return remap$(v, {
|
|
3047
|
-
totalCost: "total_cost",
|
|
3048
|
-
});
|
|
3049
|
-
});
|
|
3050
|
-
|
|
3051
|
-
/**
|
|
3052
|
-
* @internal
|
|
3053
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3054
|
-
*/
|
|
3055
|
-
export namespace UpdateAgentMetrics$ {
|
|
3056
|
-
/** @deprecated use `UpdateAgentMetrics$inboundSchema` instead. */
|
|
3057
|
-
export const inboundSchema = UpdateAgentMetrics$inboundSchema;
|
|
3058
|
-
/** @deprecated use `UpdateAgentMetrics$outboundSchema` instead. */
|
|
3059
|
-
export const outboundSchema = UpdateAgentMetrics$outboundSchema;
|
|
3060
|
-
/** @deprecated use `UpdateAgentMetrics$Outbound` instead. */
|
|
3061
|
-
export type Outbound = UpdateAgentMetrics$Outbound;
|
|
3062
|
-
}
|
|
3063
|
-
|
|
3064
|
-
export function updateAgentMetricsToJSON(
|
|
3065
|
-
updateAgentMetrics: UpdateAgentMetrics,
|
|
3066
|
-
): string {
|
|
3067
|
-
return JSON.stringify(
|
|
3068
|
-
UpdateAgentMetrics$outboundSchema.parse(updateAgentMetrics),
|
|
3069
|
-
);
|
|
3070
|
-
}
|
|
3071
|
-
|
|
3072
|
-
export function updateAgentMetricsFromJSON(
|
|
3073
|
-
jsonString: string,
|
|
3074
|
-
): SafeParseResult<UpdateAgentMetrics, SDKValidationError> {
|
|
3075
|
-
return safeParse(
|
|
3076
|
-
jsonString,
|
|
3077
|
-
(x) => UpdateAgentMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
3078
|
-
`Failed to parse 'UpdateAgentMetrics' from JSON`,
|
|
3079
|
-
);
|
|
3080
|
-
}
|
|
3081
|
-
|
|
3082
|
-
/** @internal */
|
|
3083
|
-
export const UpdateAgentAgentsKnowledgeBases$inboundSchema: z.ZodType<
|
|
3084
|
-
UpdateAgentAgentsKnowledgeBases,
|
|
3085
|
-
z.ZodTypeDef,
|
|
3086
|
-
unknown
|
|
3087
|
-
> = z.object({
|
|
3088
|
-
knowledge_id: z.string(),
|
|
3089
|
-
}).transform((v) => {
|
|
3090
|
-
return remap$(v, {
|
|
3091
|
-
"knowledge_id": "knowledgeId",
|
|
3092
|
-
});
|
|
3093
|
-
});
|
|
3094
|
-
|
|
3095
|
-
/** @internal */
|
|
3096
|
-
export type UpdateAgentAgentsKnowledgeBases$Outbound = {
|
|
3097
|
-
knowledge_id: string;
|
|
3098
|
-
};
|
|
3099
|
-
|
|
3100
|
-
/** @internal */
|
|
3101
|
-
export const UpdateAgentAgentsKnowledgeBases$outboundSchema: z.ZodType<
|
|
3102
|
-
UpdateAgentAgentsKnowledgeBases$Outbound,
|
|
3103
|
-
z.ZodTypeDef,
|
|
3104
|
-
UpdateAgentAgentsKnowledgeBases
|
|
3105
|
-
> = z.object({
|
|
3106
|
-
knowledgeId: z.string(),
|
|
3107
|
-
}).transform((v) => {
|
|
3108
|
-
return remap$(v, {
|
|
3109
|
-
knowledgeId: "knowledge_id",
|
|
3110
|
-
});
|
|
3111
|
-
});
|
|
3112
|
-
|
|
3113
|
-
/**
|
|
3114
|
-
* @internal
|
|
3115
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3116
|
-
*/
|
|
3117
|
-
export namespace UpdateAgentAgentsKnowledgeBases$ {
|
|
3118
|
-
/** @deprecated use `UpdateAgentAgentsKnowledgeBases$inboundSchema` instead. */
|
|
3119
|
-
export const inboundSchema = UpdateAgentAgentsKnowledgeBases$inboundSchema;
|
|
3120
|
-
/** @deprecated use `UpdateAgentAgentsKnowledgeBases$outboundSchema` instead. */
|
|
3121
|
-
export const outboundSchema = UpdateAgentAgentsKnowledgeBases$outboundSchema;
|
|
3122
|
-
/** @deprecated use `UpdateAgentAgentsKnowledgeBases$Outbound` instead. */
|
|
3123
|
-
export type Outbound = UpdateAgentAgentsKnowledgeBases$Outbound;
|
|
3124
|
-
}
|
|
3125
|
-
|
|
3126
|
-
export function updateAgentAgentsKnowledgeBasesToJSON(
|
|
3127
|
-
updateAgentAgentsKnowledgeBases: UpdateAgentAgentsKnowledgeBases,
|
|
3128
|
-
): string {
|
|
3129
|
-
return JSON.stringify(
|
|
3130
|
-
UpdateAgentAgentsKnowledgeBases$outboundSchema.parse(
|
|
3131
|
-
updateAgentAgentsKnowledgeBases,
|
|
3132
|
-
),
|
|
3133
|
-
);
|
|
3134
|
-
}
|
|
3135
|
-
|
|
3136
|
-
export function updateAgentAgentsKnowledgeBasesFromJSON(
|
|
3137
|
-
jsonString: string,
|
|
3138
|
-
): SafeParseResult<UpdateAgentAgentsKnowledgeBases, SDKValidationError> {
|
|
3139
|
-
return safeParse(
|
|
3140
|
-
jsonString,
|
|
3141
|
-
(x) => UpdateAgentAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
3142
|
-
`Failed to parse 'UpdateAgentAgentsKnowledgeBases' from JSON`,
|
|
3143
|
-
);
|
|
3144
|
-
}
|
|
3145
|
-
|
|
3146
|
-
/** @internal */
|
|
3147
|
-
export const UpdateAgentHiddenPanels$inboundSchema: z.ZodNativeEnum<
|
|
3148
|
-
typeof UpdateAgentHiddenPanels
|
|
3149
|
-
> = z.nativeEnum(UpdateAgentHiddenPanels);
|
|
3150
|
-
|
|
3151
|
-
/** @internal */
|
|
3152
|
-
export const UpdateAgentHiddenPanels$outboundSchema: z.ZodNativeEnum<
|
|
3153
|
-
typeof UpdateAgentHiddenPanels
|
|
3154
|
-
> = UpdateAgentHiddenPanels$inboundSchema;
|
|
3155
|
-
|
|
3156
|
-
/**
|
|
3157
|
-
* @internal
|
|
3158
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3159
|
-
*/
|
|
3160
|
-
export namespace UpdateAgentHiddenPanels$ {
|
|
3161
|
-
/** @deprecated use `UpdateAgentHiddenPanels$inboundSchema` instead. */
|
|
3162
|
-
export const inboundSchema = UpdateAgentHiddenPanels$inboundSchema;
|
|
3163
|
-
/** @deprecated use `UpdateAgentHiddenPanels$outboundSchema` instead. */
|
|
3164
|
-
export const outboundSchema = UpdateAgentHiddenPanels$outboundSchema;
|
|
3165
|
-
}
|
|
3166
|
-
|
|
3167
|
-
/** @internal */
|
|
3168
|
-
export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
|
|
3169
|
-
UpdateAgentResponseBody,
|
|
3170
|
-
z.ZodTypeDef,
|
|
3171
|
-
unknown
|
|
3172
|
-
> = z.object({
|
|
3173
|
-
_id: z.string(),
|
|
3174
|
-
key: z.string(),
|
|
3175
|
-
workspace_id: z.string(),
|
|
3176
|
-
project_id: z.string(),
|
|
3177
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
3178
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
3179
|
-
created: z.string().optional(),
|
|
3180
|
-
updated: z.string().optional(),
|
|
3181
|
-
role: z.string(),
|
|
3182
|
-
description: z.string(),
|
|
3183
|
-
system_prompt: z.string().optional(),
|
|
3184
|
-
instructions: z.string(),
|
|
3185
|
-
status: UpdateAgentStatus$inboundSchema,
|
|
3186
|
-
settings: z.lazy(() => UpdateAgentAgentsSettings$inboundSchema).optional(),
|
|
3187
|
-
model: z.lazy(() => UpdateAgentModel$inboundSchema),
|
|
3188
|
-
version_hash: z.string().optional(),
|
|
3189
|
-
path: z.string(),
|
|
3190
|
-
memory_stores: z.array(z.string()),
|
|
3191
|
-
team_of_agents: z.array(
|
|
3192
|
-
z.lazy(() => UpdateAgentAgentsTeamOfAgents$inboundSchema),
|
|
3193
|
-
),
|
|
3194
|
-
metrics: z.lazy(() => UpdateAgentMetrics$inboundSchema).optional(),
|
|
3195
|
-
variables: z.record(z.any()).optional(),
|
|
3196
|
-
knowledge_bases: z.array(
|
|
3197
|
-
z.lazy(() => UpdateAgentAgentsKnowledgeBases$inboundSchema),
|
|
3198
|
-
).optional(),
|
|
3199
|
-
hidden_panels: z.array(UpdateAgentHiddenPanels$inboundSchema).optional(),
|
|
3200
|
-
}).transform((v) => {
|
|
3201
|
-
return remap$(v, {
|
|
3202
|
-
"_id": "id",
|
|
3203
|
-
"workspace_id": "workspaceId",
|
|
3204
|
-
"project_id": "projectId",
|
|
3205
|
-
"created_by_id": "createdById",
|
|
3206
|
-
"updated_by_id": "updatedById",
|
|
3207
|
-
"system_prompt": "systemPrompt",
|
|
3208
|
-
"version_hash": "versionHash",
|
|
3209
|
-
"memory_stores": "memoryStores",
|
|
3210
|
-
"team_of_agents": "teamOfAgents",
|
|
3211
|
-
"knowledge_bases": "knowledgeBases",
|
|
3212
|
-
"hidden_panels": "hiddenPanels",
|
|
3213
|
-
});
|
|
3214
|
-
});
|
|
3215
|
-
|
|
3216
|
-
/** @internal */
|
|
3217
|
-
export type UpdateAgentResponseBody$Outbound = {
|
|
3218
|
-
_id: string;
|
|
3219
|
-
key: string;
|
|
3220
|
-
workspace_id: string;
|
|
3221
|
-
project_id: string;
|
|
3222
|
-
created_by_id?: string | null | undefined;
|
|
3223
|
-
updated_by_id?: string | null | undefined;
|
|
3224
|
-
created?: string | undefined;
|
|
3225
|
-
updated?: string | undefined;
|
|
3226
|
-
role: string;
|
|
3227
|
-
description: string;
|
|
3228
|
-
system_prompt?: string | undefined;
|
|
3229
|
-
instructions: string;
|
|
3230
|
-
status: string;
|
|
3231
|
-
settings?: UpdateAgentAgentsSettings$Outbound | undefined;
|
|
3232
|
-
model: UpdateAgentModel$Outbound;
|
|
3233
|
-
version_hash?: string | undefined;
|
|
3234
|
-
path: string;
|
|
3235
|
-
memory_stores: Array<string>;
|
|
3236
|
-
team_of_agents: Array<UpdateAgentAgentsTeamOfAgents$Outbound>;
|
|
3237
|
-
metrics?: UpdateAgentMetrics$Outbound | undefined;
|
|
3238
|
-
variables?: { [k: string]: any } | undefined;
|
|
3239
|
-
knowledge_bases?: Array<UpdateAgentAgentsKnowledgeBases$Outbound> | undefined;
|
|
3240
|
-
hidden_panels?: Array<string> | undefined;
|
|
3241
|
-
};
|
|
3242
|
-
|
|
3243
|
-
/** @internal */
|
|
3244
|
-
export const UpdateAgentResponseBody$outboundSchema: z.ZodType<
|
|
3245
|
-
UpdateAgentResponseBody$Outbound,
|
|
3246
|
-
z.ZodTypeDef,
|
|
3247
|
-
UpdateAgentResponseBody
|
|
3248
|
-
> = z.object({
|
|
3249
|
-
id: z.string(),
|
|
3250
|
-
key: z.string(),
|
|
3251
|
-
workspaceId: z.string(),
|
|
3252
|
-
projectId: z.string(),
|
|
3253
|
-
createdById: z.nullable(z.string()).optional(),
|
|
3254
|
-
updatedById: z.nullable(z.string()).optional(),
|
|
3255
|
-
created: z.string().optional(),
|
|
3256
|
-
updated: z.string().optional(),
|
|
3257
|
-
role: z.string(),
|
|
3258
|
-
description: z.string(),
|
|
3259
|
-
systemPrompt: z.string().optional(),
|
|
3260
|
-
instructions: z.string(),
|
|
3261
|
-
status: UpdateAgentStatus$outboundSchema,
|
|
3262
|
-
settings: z.lazy(() => UpdateAgentAgentsSettings$outboundSchema).optional(),
|
|
3263
|
-
model: z.lazy(() => UpdateAgentModel$outboundSchema),
|
|
3264
|
-
versionHash: z.string().optional(),
|
|
3265
|
-
path: z.string(),
|
|
3266
|
-
memoryStores: z.array(z.string()),
|
|
3267
|
-
teamOfAgents: z.array(
|
|
3268
|
-
z.lazy(() => UpdateAgentAgentsTeamOfAgents$outboundSchema),
|
|
3269
|
-
),
|
|
3270
|
-
metrics: z.lazy(() => UpdateAgentMetrics$outboundSchema).optional(),
|
|
3271
|
-
variables: z.record(z.any()).optional(),
|
|
3272
|
-
knowledgeBases: z.array(
|
|
3273
|
-
z.lazy(() => UpdateAgentAgentsKnowledgeBases$outboundSchema),
|
|
3274
|
-
).optional(),
|
|
3275
|
-
hiddenPanels: z.array(UpdateAgentHiddenPanels$outboundSchema).optional(),
|
|
3276
|
-
}).transform((v) => {
|
|
3277
|
-
return remap$(v, {
|
|
3278
|
-
id: "_id",
|
|
3279
|
-
workspaceId: "workspace_id",
|
|
3280
|
-
projectId: "project_id",
|
|
3281
|
-
createdById: "created_by_id",
|
|
3282
|
-
updatedById: "updated_by_id",
|
|
3283
|
-
systemPrompt: "system_prompt",
|
|
3284
|
-
versionHash: "version_hash",
|
|
3285
|
-
memoryStores: "memory_stores",
|
|
3286
|
-
teamOfAgents: "team_of_agents",
|
|
3287
|
-
knowledgeBases: "knowledge_bases",
|
|
3288
|
-
hiddenPanels: "hidden_panels",
|
|
3289
|
-
});
|
|
3290
|
-
});
|
|
3291
|
-
|
|
3292
|
-
/**
|
|
3293
|
-
* @internal
|
|
3294
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3295
|
-
*/
|
|
3296
|
-
export namespace UpdateAgentResponseBody$ {
|
|
3297
|
-
/** @deprecated use `UpdateAgentResponseBody$inboundSchema` instead. */
|
|
3298
|
-
export const inboundSchema = UpdateAgentResponseBody$inboundSchema;
|
|
3299
|
-
/** @deprecated use `UpdateAgentResponseBody$outboundSchema` instead. */
|
|
3300
|
-
export const outboundSchema = UpdateAgentResponseBody$outboundSchema;
|
|
3301
|
-
/** @deprecated use `UpdateAgentResponseBody$Outbound` instead. */
|
|
3302
|
-
export type Outbound = UpdateAgentResponseBody$Outbound;
|
|
3303
|
-
}
|
|
3304
|
-
|
|
3305
|
-
export function updateAgentResponseBodyToJSON(
|
|
3306
|
-
updateAgentResponseBody: UpdateAgentResponseBody,
|
|
3307
|
-
): string {
|
|
3308
|
-
return JSON.stringify(
|
|
3309
|
-
UpdateAgentResponseBody$outboundSchema.parse(updateAgentResponseBody),
|
|
3310
|
-
);
|
|
3311
|
-
}
|
|
3312
|
-
|
|
3313
|
-
export function updateAgentResponseBodyFromJSON(
|
|
3314
|
-
jsonString: string,
|
|
3315
|
-
): SafeParseResult<UpdateAgentResponseBody, SDKValidationError> {
|
|
3316
|
-
return safeParse(
|
|
3317
|
-
jsonString,
|
|
3318
|
-
(x) => UpdateAgentResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
3319
|
-
`Failed to parse 'UpdateAgentResponseBody' from JSON`,
|
|
3320
|
-
);
|
|
3321
|
-
}
|