@orq-ai/node 4.1.4 → 4.2.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/bin/mcp-server.js +835 -380
- package/bin/mcp-server.js.map +61 -58
- package/examples/package-lock.json +4 -7
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/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/components/conversationresponse.js +2 -2
- package/models/components/invokedeploymentrequest.d.ts +1 -1
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentgetconfig.d.ts +1 -1
- package/models/operations/deploymentstream.d.ts +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/generateconversationname.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getevals.js +28 -28
- 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/retrieveconversation.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +4 -3
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/conversationresponse.ts +2 -2
- package/src/models/components/invokedeploymentrequest.ts +1 -1
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentgetconfig.ts +1 -1
- package/src/models/operations/deploymentstream.ts +1 -1
- 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/generateconversationname.ts +2 -2
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getevals.ts +28 -28
- 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/retrieveconversation.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/_speakeasy/.github/action-inputs-config.json +0 -53
- package/_speakeasy/.github/action-security-config.json +0 -88
- package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
- package/packages/orq-rc/examples/package-lock.json +0 -619
- package/packages/orq-rc/examples/package.json +0 -18
- package/packages/orq-rc/jsr.json +0 -28
- package/packages/orq-rc/package-lock.json +0 -3552
- package/packages/orq-rc/package.json +0 -40
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -170
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -186
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
- 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 -170
- 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/conversationsCreate.ts +0 -161
- package/packages/orq-rc/src/funcs/conversationsDelete.ts +0 -180
- package/packages/orq-rc/src/funcs/conversationsGenerateName.ts +0 -194
- package/packages/orq-rc/src/funcs/conversationsList.ts +0 -181
- package/packages/orq-rc/src/funcs/conversationsRetrieve.ts +0 -180
- package/packages/orq-rc/src/funcs/conversationsUpdate.ts +0 -184
- 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/evalsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
- package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +0 -190
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
- package/packages/orq-rc/src/funcs/filesList.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -183
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
- 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/routerChatCompletions.ts +0 -172
- package/packages/orq-rc/src/funcs/routerImagesGenerate.ts +0 -160
- package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -172
- package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -183
- package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
- 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 -497
- 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 -121
- package/packages/orq-rc/src/mcp-server/resources.ts +0 -176
- package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
- package/packages/orq-rc/src/mcp-server/server.ts +0 -267
- package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -40
- 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/conversationsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/conversationsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/conversationsGenerateName.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/conversationsList.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/conversationsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/conversationsUpdate.ts +0 -40
- 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/evalsInvoke.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -39
- package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +0 -40
- 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/routerChatCompletions.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/routerImagesGenerate.ts +0 -37
- 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/toolsGetV2ToolsToolIdVersions.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -39
- 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 -133
- package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -173
- package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -309
- package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -125
- package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -150
- package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -125
- package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -801
- package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -305
- package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -185
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -822
- package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -1399
- package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
- package/packages/orq-rc/src/models/components/conversationresponse.ts +0 -194
- package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -340
- package/packages/orq-rc/src/models/components/datapart.ts +0 -58
- package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -112
- package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -125
- package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -105
- package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -113
- package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
- package/packages/orq-rc/src/models/components/filepart.ts +0 -218
- package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
- package/packages/orq-rc/src/models/components/index.ts +0 -55
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -5271
- package/packages/orq-rc/src/models/components/partdelta.ts +0 -80
- package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -120
- package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -216
- package/packages/orq-rc/src/models/components/publiccontact.ts +0 -99
- package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -90
- package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
- package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
- package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -526
- package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -118
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -124
- package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -148
- package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -27
- package/packages/orq-rc/src/models/components/security.ts +0 -56
- package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
- package/packages/orq-rc/src/models/components/textpart.ts +0 -54
- package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
- package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
- package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -108
- package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -83
- package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -121
- package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -392
- package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -360
- package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -336
- package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -123
- package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
- package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -130
- package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -141
- package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -132
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createagentrequest.ts +0 -67
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -78
- package/packages/orq-rc/src/models/errors/deleteconversation.ts +0 -67
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/generateconversationname.ts +0 -132
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -67
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -67
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -67
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversionsversionid.ts +0 -69
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -67
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -69
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -77
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -35
- package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -128
- package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
- package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
- package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -67
- package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -78
- package/packages/orq-rc/src/models/errors/retrieveconversation.ts +0 -67
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/streamagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -70
- package/packages/orq-rc/src/models/errors/updateconversation.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -67
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -78
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -63
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -8610
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -770
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -8948
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -341
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -237
- package/packages/orq-rc/src/models/operations/createconversation.ts +0 -314
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -257
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -4044
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -662
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -5397
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -226
- package/packages/orq-rc/src/models/operations/createimage.ts +0 -966
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1489
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -241
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -245
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -310
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5320
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -3791
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -81
- package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -198
- package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -54
- package/packages/orq-rc/src/models/operations/deleteconversation.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -72
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -72
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -51
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -72
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -83
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -63
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletetool.ts +0 -60
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -3596
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -7042
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1136
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2005
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -7134
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -63
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -181
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -268
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -258
- package/packages/orq-rc/src/models/operations/generateconversationname.ts +0 -319
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -280
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -305
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -325
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -1991
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2214
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -185
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -4268
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -258
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1070
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1875
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1892
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -274
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversionsversionid.ts +0 -193
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -276
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -194
- package/packages/orq-rc/src/models/operations/index.ts +0 -106
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -957
- package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1878
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -3811
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -395
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -408
- package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -420
- package/packages/orq-rc/src/models/operations/listconversations.ts +0 -151
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -2486
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -334
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -363
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1048
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -207
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -1989
- package/packages/orq-rc/src/models/operations/parse.ts +0 -945
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -146
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3956
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -180
- package/packages/orq-rc/src/models/operations/retrieveconversation.ts +0 -262
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2334
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -246
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -231
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -183
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -192
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -234
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2262
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -6502
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -2775
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -838
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -6833
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -9054
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -361
- package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -280
- package/packages/orq-rc/src/models/operations/updateconversation.ts +0 -377
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -4058
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -326
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -288
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -5776
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1925
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -250
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -254
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -375
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5618
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4114
- package/packages/orq-rc/src/sdk/agents.ts +0 -196
- 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/conversations.ts +0 -125
- 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 -84
- package/packages/orq-rc/src/sdk/evaluators.ts +0 -45
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -78
- package/packages/orq-rc/src/sdk/index.ts +0 -5
- package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
- package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
- package/packages/orq-rc/src/sdk/metrics.ts +0 -27
- package/packages/orq-rc/src/sdk/models.ts +0 -25
- package/packages/orq-rc/src/sdk/prompts.ts +0 -126
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
- package/packages/orq-rc/src/sdk/responses.ts +0 -34
- package/packages/orq-rc/src/sdk/router.ts +0 -52
- package/packages/orq-rc/src/sdk/sdk.ts +0 -109
- package/packages/orq-rc/src/sdk/tools.ts +0 -135
- package/packages/orq-rc/src/types/async.ts +0 -68
- package/packages/orq-rc/src/types/blobs.ts +0 -32
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -45
- package/packages/orq-rc/src/types/fp.ts +0 -50
- package/packages/orq-rc/src/types/index.ts +0 -11
- package/packages/orq-rc/src/types/operations.ts +0 -105
- package/packages/orq-rc/src/types/rfcdate.ts +0 -54
- package/packages/orq-rc/src/types/streams.ts +0 -21
- package/packages/orq-rc/src/types/unrecognized.ts +0 -35
- package/packages/orq-rc/tsconfig.json +0 -40
|
@@ -1,822 +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
|
-
import {
|
|
12
|
-
DataPart,
|
|
13
|
-
DataPart$inboundSchema,
|
|
14
|
-
DataPart$Outbound,
|
|
15
|
-
DataPart$outboundSchema,
|
|
16
|
-
} from "./datapart.js";
|
|
17
|
-
import {
|
|
18
|
-
FilePart,
|
|
19
|
-
FilePart$inboundSchema,
|
|
20
|
-
FilePart$Outbound,
|
|
21
|
-
FilePart$outboundSchema,
|
|
22
|
-
} from "./filepart.js";
|
|
23
|
-
import {
|
|
24
|
-
TextPart,
|
|
25
|
-
TextPart$inboundSchema,
|
|
26
|
-
TextPart$Outbound,
|
|
27
|
-
TextPart$outboundSchema,
|
|
28
|
-
} from "./textpart.js";
|
|
29
|
-
import {
|
|
30
|
-
ToolCallPart,
|
|
31
|
-
ToolCallPart$inboundSchema,
|
|
32
|
-
ToolCallPart$Outbound,
|
|
33
|
-
ToolCallPart$outboundSchema,
|
|
34
|
-
} from "./toolcallpart.js";
|
|
35
|
-
import {
|
|
36
|
-
ToolResultPart,
|
|
37
|
-
ToolResultPart$inboundSchema,
|
|
38
|
-
ToolResultPart$Outbound,
|
|
39
|
-
ToolResultPart$outboundSchema,
|
|
40
|
-
} from "./toolresultpart.js";
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Extended A2A message role
|
|
44
|
-
*/
|
|
45
|
-
export const AgentStartedStreamingEventRole = {
|
|
46
|
-
User: "user",
|
|
47
|
-
Agent: "agent",
|
|
48
|
-
Tool: "tool",
|
|
49
|
-
System: "system",
|
|
50
|
-
} as const;
|
|
51
|
-
/**
|
|
52
|
-
* Extended A2A message role
|
|
53
|
-
*/
|
|
54
|
-
export type AgentStartedStreamingEventRole = ClosedEnum<
|
|
55
|
-
typeof AgentStartedStreamingEventRole
|
|
56
|
-
>;
|
|
57
|
-
|
|
58
|
-
export type AgentStartedStreamingEventParts =
|
|
59
|
-
| TextPart
|
|
60
|
-
| DataPart
|
|
61
|
-
| FilePart
|
|
62
|
-
| ToolCallPart
|
|
63
|
-
| ToolResultPart;
|
|
64
|
-
|
|
65
|
-
export type InputMessage = {
|
|
66
|
-
messageId?: string | undefined;
|
|
67
|
-
/**
|
|
68
|
-
* Extended A2A message role
|
|
69
|
-
*/
|
|
70
|
-
role: AgentStartedStreamingEventRole;
|
|
71
|
-
parts: Array<TextPart | DataPart | FilePart | ToolCallPart | ToolResultPart>;
|
|
72
|
-
metadata?: { [k: string]: any } | undefined;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* 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.
|
|
77
|
-
*/
|
|
78
|
-
export const ToolApprovalRequired = {
|
|
79
|
-
All: "all",
|
|
80
|
-
RespectTool: "respect_tool",
|
|
81
|
-
None: "none",
|
|
82
|
-
} as const;
|
|
83
|
-
/**
|
|
84
|
-
* 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.
|
|
85
|
-
*/
|
|
86
|
-
export type ToolApprovalRequired = ClosedEnum<typeof ToolApprovalRequired>;
|
|
87
|
-
|
|
88
|
-
export type AgentStartedStreamingEventConditions = {
|
|
89
|
-
/**
|
|
90
|
-
* The argument of the tool call to evaluate
|
|
91
|
-
*/
|
|
92
|
-
condition: string;
|
|
93
|
-
/**
|
|
94
|
-
* The operator to use
|
|
95
|
-
*/
|
|
96
|
-
operator: string;
|
|
97
|
-
/**
|
|
98
|
-
* The value to compare against
|
|
99
|
-
*/
|
|
100
|
-
value: string;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export type Tools = {
|
|
104
|
-
/**
|
|
105
|
-
* The id of the resource
|
|
106
|
-
*/
|
|
107
|
-
id: string;
|
|
108
|
-
/**
|
|
109
|
-
* Optional tool key for custom tools
|
|
110
|
-
*/
|
|
111
|
-
key?: string | undefined;
|
|
112
|
-
actionType: string;
|
|
113
|
-
displayName?: string | undefined;
|
|
114
|
-
/**
|
|
115
|
-
* Optional tool description
|
|
116
|
-
*/
|
|
117
|
-
description?: string | undefined;
|
|
118
|
-
requiresApproval?: boolean | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
121
|
-
*/
|
|
122
|
-
toolId?: string | undefined;
|
|
123
|
-
conditions?: Array<AgentStartedStreamingEventConditions> | undefined;
|
|
124
|
-
/**
|
|
125
|
-
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
126
|
-
*/
|
|
127
|
-
timeout?: number | undefined;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
132
|
-
*/
|
|
133
|
-
export const ExecuteOn = {
|
|
134
|
-
Input: "input",
|
|
135
|
-
Output: "output",
|
|
136
|
-
} as const;
|
|
137
|
-
/**
|
|
138
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
139
|
-
*/
|
|
140
|
-
export type ExecuteOn = ClosedEnum<typeof ExecuteOn>;
|
|
141
|
-
|
|
142
|
-
export type Evaluators = {
|
|
143
|
-
/**
|
|
144
|
-
* Unique key or identifier of the evaluator
|
|
145
|
-
*/
|
|
146
|
-
id: string;
|
|
147
|
-
/**
|
|
148
|
-
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
149
|
-
*/
|
|
150
|
-
sampleRate?: number | undefined;
|
|
151
|
-
/**
|
|
152
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
153
|
-
*/
|
|
154
|
-
executeOn: ExecuteOn;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
159
|
-
*/
|
|
160
|
-
export const AgentStartedStreamingEventExecuteOn = {
|
|
161
|
-
Input: "input",
|
|
162
|
-
Output: "output",
|
|
163
|
-
} as const;
|
|
164
|
-
/**
|
|
165
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
166
|
-
*/
|
|
167
|
-
export type AgentStartedStreamingEventExecuteOn = ClosedEnum<
|
|
168
|
-
typeof AgentStartedStreamingEventExecuteOn
|
|
169
|
-
>;
|
|
170
|
-
|
|
171
|
-
export type Guardrails = {
|
|
172
|
-
/**
|
|
173
|
-
* Unique key or identifier of the evaluator
|
|
174
|
-
*/
|
|
175
|
-
id: string;
|
|
176
|
-
/**
|
|
177
|
-
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
178
|
-
*/
|
|
179
|
-
sampleRate?: number | undefined;
|
|
180
|
-
/**
|
|
181
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
182
|
-
*/
|
|
183
|
-
executeOn: AgentStartedStreamingEventExecuteOn;
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
export type Settings = {
|
|
187
|
-
/**
|
|
188
|
-
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
189
|
-
*/
|
|
190
|
-
maxIterations?: number | undefined;
|
|
191
|
-
/**
|
|
192
|
-
* 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.
|
|
193
|
-
*/
|
|
194
|
-
maxExecutionTime?: number | undefined;
|
|
195
|
-
/**
|
|
196
|
-
* 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.
|
|
197
|
-
*/
|
|
198
|
-
toolApprovalRequired?: ToolApprovalRequired | undefined;
|
|
199
|
-
tools?: Array<Tools> | undefined;
|
|
200
|
-
/**
|
|
201
|
-
* Configuration for an evaluator applied to the agent
|
|
202
|
-
*/
|
|
203
|
-
evaluators?: Array<Evaluators> | undefined;
|
|
204
|
-
/**
|
|
205
|
-
* Configuration for a guardrail applied to the agent
|
|
206
|
-
*/
|
|
207
|
-
guardrails?: Array<Guardrails> | undefined;
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
export type AgentStartedStreamingEventData = {
|
|
211
|
-
workflowRunId: string;
|
|
212
|
-
integrationId?: string | undefined;
|
|
213
|
-
inputMessage: InputMessage;
|
|
214
|
-
modelId: string;
|
|
215
|
-
instructions: string;
|
|
216
|
-
systemPrompt: string;
|
|
217
|
-
settings?: Settings | undefined;
|
|
218
|
-
agentManifestId: string;
|
|
219
|
-
agentKey: string;
|
|
220
|
-
variables?: { [k: string]: any } | undefined;
|
|
221
|
-
toolExecutionId?: string | undefined;
|
|
222
|
-
isContinuation?: boolean | undefined;
|
|
223
|
-
stream?: boolean | undefined;
|
|
224
|
-
responseId?: string | undefined;
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Emitted when the agent begins processing. Contains configuration details including the model, instructions, system prompt, and input message.
|
|
229
|
-
*/
|
|
230
|
-
export type AgentStartedStreamingEvent = {
|
|
231
|
-
type: "event.agents.started";
|
|
232
|
-
/**
|
|
233
|
-
* ISO timestamp of the event
|
|
234
|
-
*/
|
|
235
|
-
timestamp: string;
|
|
236
|
-
data: AgentStartedStreamingEventData;
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
/** @internal */
|
|
240
|
-
export const AgentStartedStreamingEventRole$inboundSchema: z.ZodNativeEnum<
|
|
241
|
-
typeof AgentStartedStreamingEventRole
|
|
242
|
-
> = z.nativeEnum(AgentStartedStreamingEventRole);
|
|
243
|
-
/** @internal */
|
|
244
|
-
export const AgentStartedStreamingEventRole$outboundSchema: z.ZodNativeEnum<
|
|
245
|
-
typeof AgentStartedStreamingEventRole
|
|
246
|
-
> = AgentStartedStreamingEventRole$inboundSchema;
|
|
247
|
-
|
|
248
|
-
/** @internal */
|
|
249
|
-
export const AgentStartedStreamingEventParts$inboundSchema: z.ZodType<
|
|
250
|
-
AgentStartedStreamingEventParts,
|
|
251
|
-
z.ZodTypeDef,
|
|
252
|
-
unknown
|
|
253
|
-
> = z.union([
|
|
254
|
-
TextPart$inboundSchema,
|
|
255
|
-
DataPart$inboundSchema,
|
|
256
|
-
FilePart$inboundSchema,
|
|
257
|
-
ToolCallPart$inboundSchema,
|
|
258
|
-
ToolResultPart$inboundSchema,
|
|
259
|
-
]);
|
|
260
|
-
/** @internal */
|
|
261
|
-
export type AgentStartedStreamingEventParts$Outbound =
|
|
262
|
-
| TextPart$Outbound
|
|
263
|
-
| DataPart$Outbound
|
|
264
|
-
| FilePart$Outbound
|
|
265
|
-
| ToolCallPart$Outbound
|
|
266
|
-
| ToolResultPart$Outbound;
|
|
267
|
-
|
|
268
|
-
/** @internal */
|
|
269
|
-
export const AgentStartedStreamingEventParts$outboundSchema: z.ZodType<
|
|
270
|
-
AgentStartedStreamingEventParts$Outbound,
|
|
271
|
-
z.ZodTypeDef,
|
|
272
|
-
AgentStartedStreamingEventParts
|
|
273
|
-
> = z.union([
|
|
274
|
-
TextPart$outboundSchema,
|
|
275
|
-
DataPart$outboundSchema,
|
|
276
|
-
FilePart$outboundSchema,
|
|
277
|
-
ToolCallPart$outboundSchema,
|
|
278
|
-
ToolResultPart$outboundSchema,
|
|
279
|
-
]);
|
|
280
|
-
|
|
281
|
-
export function agentStartedStreamingEventPartsToJSON(
|
|
282
|
-
agentStartedStreamingEventParts: AgentStartedStreamingEventParts,
|
|
283
|
-
): string {
|
|
284
|
-
return JSON.stringify(
|
|
285
|
-
AgentStartedStreamingEventParts$outboundSchema.parse(
|
|
286
|
-
agentStartedStreamingEventParts,
|
|
287
|
-
),
|
|
288
|
-
);
|
|
289
|
-
}
|
|
290
|
-
export function agentStartedStreamingEventPartsFromJSON(
|
|
291
|
-
jsonString: string,
|
|
292
|
-
): SafeParseResult<AgentStartedStreamingEventParts, SDKValidationError> {
|
|
293
|
-
return safeParse(
|
|
294
|
-
jsonString,
|
|
295
|
-
(x) => AgentStartedStreamingEventParts$inboundSchema.parse(JSON.parse(x)),
|
|
296
|
-
`Failed to parse 'AgentStartedStreamingEventParts' from JSON`,
|
|
297
|
-
);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/** @internal */
|
|
301
|
-
export const InputMessage$inboundSchema: z.ZodType<
|
|
302
|
-
InputMessage,
|
|
303
|
-
z.ZodTypeDef,
|
|
304
|
-
unknown
|
|
305
|
-
> = z.object({
|
|
306
|
-
messageId: z.string().optional(),
|
|
307
|
-
role: AgentStartedStreamingEventRole$inboundSchema,
|
|
308
|
-
parts: z.array(
|
|
309
|
-
z.union([
|
|
310
|
-
TextPart$inboundSchema,
|
|
311
|
-
DataPart$inboundSchema,
|
|
312
|
-
FilePart$inboundSchema,
|
|
313
|
-
ToolCallPart$inboundSchema,
|
|
314
|
-
ToolResultPart$inboundSchema,
|
|
315
|
-
]),
|
|
316
|
-
),
|
|
317
|
-
metadata: z.record(z.any()).optional(),
|
|
318
|
-
});
|
|
319
|
-
/** @internal */
|
|
320
|
-
export type InputMessage$Outbound = {
|
|
321
|
-
messageId?: string | undefined;
|
|
322
|
-
role: string;
|
|
323
|
-
parts: Array<
|
|
324
|
-
| TextPart$Outbound
|
|
325
|
-
| DataPart$Outbound
|
|
326
|
-
| FilePart$Outbound
|
|
327
|
-
| ToolCallPart$Outbound
|
|
328
|
-
| ToolResultPart$Outbound
|
|
329
|
-
>;
|
|
330
|
-
metadata?: { [k: string]: any } | undefined;
|
|
331
|
-
};
|
|
332
|
-
|
|
333
|
-
/** @internal */
|
|
334
|
-
export const InputMessage$outboundSchema: z.ZodType<
|
|
335
|
-
InputMessage$Outbound,
|
|
336
|
-
z.ZodTypeDef,
|
|
337
|
-
InputMessage
|
|
338
|
-
> = z.object({
|
|
339
|
-
messageId: z.string().optional(),
|
|
340
|
-
role: AgentStartedStreamingEventRole$outboundSchema,
|
|
341
|
-
parts: z.array(
|
|
342
|
-
z.union([
|
|
343
|
-
TextPart$outboundSchema,
|
|
344
|
-
DataPart$outboundSchema,
|
|
345
|
-
FilePart$outboundSchema,
|
|
346
|
-
ToolCallPart$outboundSchema,
|
|
347
|
-
ToolResultPart$outboundSchema,
|
|
348
|
-
]),
|
|
349
|
-
),
|
|
350
|
-
metadata: z.record(z.any()).optional(),
|
|
351
|
-
});
|
|
352
|
-
|
|
353
|
-
export function inputMessageToJSON(inputMessage: InputMessage): string {
|
|
354
|
-
return JSON.stringify(InputMessage$outboundSchema.parse(inputMessage));
|
|
355
|
-
}
|
|
356
|
-
export function inputMessageFromJSON(
|
|
357
|
-
jsonString: string,
|
|
358
|
-
): SafeParseResult<InputMessage, SDKValidationError> {
|
|
359
|
-
return safeParse(
|
|
360
|
-
jsonString,
|
|
361
|
-
(x) => InputMessage$inboundSchema.parse(JSON.parse(x)),
|
|
362
|
-
`Failed to parse 'InputMessage' from JSON`,
|
|
363
|
-
);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/** @internal */
|
|
367
|
-
export const ToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
|
|
368
|
-
typeof ToolApprovalRequired
|
|
369
|
-
> = z.nativeEnum(ToolApprovalRequired);
|
|
370
|
-
/** @internal */
|
|
371
|
-
export const ToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
|
|
372
|
-
typeof ToolApprovalRequired
|
|
373
|
-
> = ToolApprovalRequired$inboundSchema;
|
|
374
|
-
|
|
375
|
-
/** @internal */
|
|
376
|
-
export const AgentStartedStreamingEventConditions$inboundSchema: z.ZodType<
|
|
377
|
-
AgentStartedStreamingEventConditions,
|
|
378
|
-
z.ZodTypeDef,
|
|
379
|
-
unknown
|
|
380
|
-
> = z.object({
|
|
381
|
-
condition: z.string(),
|
|
382
|
-
operator: z.string(),
|
|
383
|
-
value: z.string(),
|
|
384
|
-
});
|
|
385
|
-
/** @internal */
|
|
386
|
-
export type AgentStartedStreamingEventConditions$Outbound = {
|
|
387
|
-
condition: string;
|
|
388
|
-
operator: string;
|
|
389
|
-
value: string;
|
|
390
|
-
};
|
|
391
|
-
|
|
392
|
-
/** @internal */
|
|
393
|
-
export const AgentStartedStreamingEventConditions$outboundSchema: z.ZodType<
|
|
394
|
-
AgentStartedStreamingEventConditions$Outbound,
|
|
395
|
-
z.ZodTypeDef,
|
|
396
|
-
AgentStartedStreamingEventConditions
|
|
397
|
-
> = z.object({
|
|
398
|
-
condition: z.string(),
|
|
399
|
-
operator: z.string(),
|
|
400
|
-
value: z.string(),
|
|
401
|
-
});
|
|
402
|
-
|
|
403
|
-
export function agentStartedStreamingEventConditionsToJSON(
|
|
404
|
-
agentStartedStreamingEventConditions: AgentStartedStreamingEventConditions,
|
|
405
|
-
): string {
|
|
406
|
-
return JSON.stringify(
|
|
407
|
-
AgentStartedStreamingEventConditions$outboundSchema.parse(
|
|
408
|
-
agentStartedStreamingEventConditions,
|
|
409
|
-
),
|
|
410
|
-
);
|
|
411
|
-
}
|
|
412
|
-
export function agentStartedStreamingEventConditionsFromJSON(
|
|
413
|
-
jsonString: string,
|
|
414
|
-
): SafeParseResult<AgentStartedStreamingEventConditions, SDKValidationError> {
|
|
415
|
-
return safeParse(
|
|
416
|
-
jsonString,
|
|
417
|
-
(x) =>
|
|
418
|
-
AgentStartedStreamingEventConditions$inboundSchema.parse(JSON.parse(x)),
|
|
419
|
-
`Failed to parse 'AgentStartedStreamingEventConditions' from JSON`,
|
|
420
|
-
);
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
/** @internal */
|
|
424
|
-
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
425
|
-
.object({
|
|
426
|
-
id: z.string(),
|
|
427
|
-
key: z.string().optional(),
|
|
428
|
-
action_type: z.string(),
|
|
429
|
-
display_name: z.string().optional(),
|
|
430
|
-
description: z.string().optional(),
|
|
431
|
-
requires_approval: z.boolean().default(false),
|
|
432
|
-
tool_id: z.string().optional(),
|
|
433
|
-
conditions: z.array(
|
|
434
|
-
z.lazy(() => AgentStartedStreamingEventConditions$inboundSchema),
|
|
435
|
-
).optional(),
|
|
436
|
-
timeout: z.number().default(120),
|
|
437
|
-
}).transform((v) => {
|
|
438
|
-
return remap$(v, {
|
|
439
|
-
"action_type": "actionType",
|
|
440
|
-
"display_name": "displayName",
|
|
441
|
-
"requires_approval": "requiresApproval",
|
|
442
|
-
"tool_id": "toolId",
|
|
443
|
-
});
|
|
444
|
-
});
|
|
445
|
-
/** @internal */
|
|
446
|
-
export type Tools$Outbound = {
|
|
447
|
-
id: string;
|
|
448
|
-
key?: string | undefined;
|
|
449
|
-
action_type: string;
|
|
450
|
-
display_name?: string | undefined;
|
|
451
|
-
description?: string | undefined;
|
|
452
|
-
requires_approval: boolean;
|
|
453
|
-
tool_id?: string | undefined;
|
|
454
|
-
conditions?: Array<AgentStartedStreamingEventConditions$Outbound> | undefined;
|
|
455
|
-
timeout: number;
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
/** @internal */
|
|
459
|
-
export const Tools$outboundSchema: z.ZodType<
|
|
460
|
-
Tools$Outbound,
|
|
461
|
-
z.ZodTypeDef,
|
|
462
|
-
Tools
|
|
463
|
-
> = z.object({
|
|
464
|
-
id: z.string(),
|
|
465
|
-
key: z.string().optional(),
|
|
466
|
-
actionType: z.string(),
|
|
467
|
-
displayName: z.string().optional(),
|
|
468
|
-
description: z.string().optional(),
|
|
469
|
-
requiresApproval: z.boolean().default(false),
|
|
470
|
-
toolId: z.string().optional(),
|
|
471
|
-
conditions: z.array(
|
|
472
|
-
z.lazy(() => AgentStartedStreamingEventConditions$outboundSchema),
|
|
473
|
-
).optional(),
|
|
474
|
-
timeout: z.number().default(120),
|
|
475
|
-
}).transform((v) => {
|
|
476
|
-
return remap$(v, {
|
|
477
|
-
actionType: "action_type",
|
|
478
|
-
displayName: "display_name",
|
|
479
|
-
requiresApproval: "requires_approval",
|
|
480
|
-
toolId: "tool_id",
|
|
481
|
-
});
|
|
482
|
-
});
|
|
483
|
-
|
|
484
|
-
export function toolsToJSON(tools: Tools): string {
|
|
485
|
-
return JSON.stringify(Tools$outboundSchema.parse(tools));
|
|
486
|
-
}
|
|
487
|
-
export function toolsFromJSON(
|
|
488
|
-
jsonString: string,
|
|
489
|
-
): SafeParseResult<Tools, SDKValidationError> {
|
|
490
|
-
return safeParse(
|
|
491
|
-
jsonString,
|
|
492
|
-
(x) => Tools$inboundSchema.parse(JSON.parse(x)),
|
|
493
|
-
`Failed to parse 'Tools' from JSON`,
|
|
494
|
-
);
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
/** @internal */
|
|
498
|
-
export const ExecuteOn$inboundSchema: z.ZodNativeEnum<typeof ExecuteOn> = z
|
|
499
|
-
.nativeEnum(ExecuteOn);
|
|
500
|
-
/** @internal */
|
|
501
|
-
export const ExecuteOn$outboundSchema: z.ZodNativeEnum<typeof ExecuteOn> =
|
|
502
|
-
ExecuteOn$inboundSchema;
|
|
503
|
-
|
|
504
|
-
/** @internal */
|
|
505
|
-
export const Evaluators$inboundSchema: z.ZodType<
|
|
506
|
-
Evaluators,
|
|
507
|
-
z.ZodTypeDef,
|
|
508
|
-
unknown
|
|
509
|
-
> = z.object({
|
|
510
|
-
id: z.string(),
|
|
511
|
-
sample_rate: z.number().default(50),
|
|
512
|
-
execute_on: ExecuteOn$inboundSchema,
|
|
513
|
-
}).transform((v) => {
|
|
514
|
-
return remap$(v, {
|
|
515
|
-
"sample_rate": "sampleRate",
|
|
516
|
-
"execute_on": "executeOn",
|
|
517
|
-
});
|
|
518
|
-
});
|
|
519
|
-
/** @internal */
|
|
520
|
-
export type Evaluators$Outbound = {
|
|
521
|
-
id: string;
|
|
522
|
-
sample_rate: number;
|
|
523
|
-
execute_on: string;
|
|
524
|
-
};
|
|
525
|
-
|
|
526
|
-
/** @internal */
|
|
527
|
-
export const Evaluators$outboundSchema: z.ZodType<
|
|
528
|
-
Evaluators$Outbound,
|
|
529
|
-
z.ZodTypeDef,
|
|
530
|
-
Evaluators
|
|
531
|
-
> = z.object({
|
|
532
|
-
id: z.string(),
|
|
533
|
-
sampleRate: z.number().default(50),
|
|
534
|
-
executeOn: ExecuteOn$outboundSchema,
|
|
535
|
-
}).transform((v) => {
|
|
536
|
-
return remap$(v, {
|
|
537
|
-
sampleRate: "sample_rate",
|
|
538
|
-
executeOn: "execute_on",
|
|
539
|
-
});
|
|
540
|
-
});
|
|
541
|
-
|
|
542
|
-
export function evaluatorsToJSON(evaluators: Evaluators): string {
|
|
543
|
-
return JSON.stringify(Evaluators$outboundSchema.parse(evaluators));
|
|
544
|
-
}
|
|
545
|
-
export function evaluatorsFromJSON(
|
|
546
|
-
jsonString: string,
|
|
547
|
-
): SafeParseResult<Evaluators, SDKValidationError> {
|
|
548
|
-
return safeParse(
|
|
549
|
-
jsonString,
|
|
550
|
-
(x) => Evaluators$inboundSchema.parse(JSON.parse(x)),
|
|
551
|
-
`Failed to parse 'Evaluators' from JSON`,
|
|
552
|
-
);
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
/** @internal */
|
|
556
|
-
export const AgentStartedStreamingEventExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
557
|
-
typeof AgentStartedStreamingEventExecuteOn
|
|
558
|
-
> = z.nativeEnum(AgentStartedStreamingEventExecuteOn);
|
|
559
|
-
/** @internal */
|
|
560
|
-
export const AgentStartedStreamingEventExecuteOn$outboundSchema:
|
|
561
|
-
z.ZodNativeEnum<typeof AgentStartedStreamingEventExecuteOn> =
|
|
562
|
-
AgentStartedStreamingEventExecuteOn$inboundSchema;
|
|
563
|
-
|
|
564
|
-
/** @internal */
|
|
565
|
-
export const Guardrails$inboundSchema: z.ZodType<
|
|
566
|
-
Guardrails,
|
|
567
|
-
z.ZodTypeDef,
|
|
568
|
-
unknown
|
|
569
|
-
> = z.object({
|
|
570
|
-
id: z.string(),
|
|
571
|
-
sample_rate: z.number().default(50),
|
|
572
|
-
execute_on: AgentStartedStreamingEventExecuteOn$inboundSchema,
|
|
573
|
-
}).transform((v) => {
|
|
574
|
-
return remap$(v, {
|
|
575
|
-
"sample_rate": "sampleRate",
|
|
576
|
-
"execute_on": "executeOn",
|
|
577
|
-
});
|
|
578
|
-
});
|
|
579
|
-
/** @internal */
|
|
580
|
-
export type Guardrails$Outbound = {
|
|
581
|
-
id: string;
|
|
582
|
-
sample_rate: number;
|
|
583
|
-
execute_on: string;
|
|
584
|
-
};
|
|
585
|
-
|
|
586
|
-
/** @internal */
|
|
587
|
-
export const Guardrails$outboundSchema: z.ZodType<
|
|
588
|
-
Guardrails$Outbound,
|
|
589
|
-
z.ZodTypeDef,
|
|
590
|
-
Guardrails
|
|
591
|
-
> = z.object({
|
|
592
|
-
id: z.string(),
|
|
593
|
-
sampleRate: z.number().default(50),
|
|
594
|
-
executeOn: AgentStartedStreamingEventExecuteOn$outboundSchema,
|
|
595
|
-
}).transform((v) => {
|
|
596
|
-
return remap$(v, {
|
|
597
|
-
sampleRate: "sample_rate",
|
|
598
|
-
executeOn: "execute_on",
|
|
599
|
-
});
|
|
600
|
-
});
|
|
601
|
-
|
|
602
|
-
export function guardrailsToJSON(guardrails: Guardrails): string {
|
|
603
|
-
return JSON.stringify(Guardrails$outboundSchema.parse(guardrails));
|
|
604
|
-
}
|
|
605
|
-
export function guardrailsFromJSON(
|
|
606
|
-
jsonString: string,
|
|
607
|
-
): SafeParseResult<Guardrails, SDKValidationError> {
|
|
608
|
-
return safeParse(
|
|
609
|
-
jsonString,
|
|
610
|
-
(x) => Guardrails$inboundSchema.parse(JSON.parse(x)),
|
|
611
|
-
`Failed to parse 'Guardrails' from JSON`,
|
|
612
|
-
);
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
/** @internal */
|
|
616
|
-
export const Settings$inboundSchema: z.ZodType<
|
|
617
|
-
Settings,
|
|
618
|
-
z.ZodTypeDef,
|
|
619
|
-
unknown
|
|
620
|
-
> = z.object({
|
|
621
|
-
max_iterations: z.number().int().default(100),
|
|
622
|
-
max_execution_time: z.number().int().default(600),
|
|
623
|
-
tool_approval_required: ToolApprovalRequired$inboundSchema.default(
|
|
624
|
-
"respect_tool",
|
|
625
|
-
),
|
|
626
|
-
tools: z.array(z.lazy(() => Tools$inboundSchema)).optional(),
|
|
627
|
-
evaluators: z.array(z.lazy(() => Evaluators$inboundSchema)).optional(),
|
|
628
|
-
guardrails: z.array(z.lazy(() => Guardrails$inboundSchema)).optional(),
|
|
629
|
-
}).transform((v) => {
|
|
630
|
-
return remap$(v, {
|
|
631
|
-
"max_iterations": "maxIterations",
|
|
632
|
-
"max_execution_time": "maxExecutionTime",
|
|
633
|
-
"tool_approval_required": "toolApprovalRequired",
|
|
634
|
-
});
|
|
635
|
-
});
|
|
636
|
-
/** @internal */
|
|
637
|
-
export type Settings$Outbound = {
|
|
638
|
-
max_iterations: number;
|
|
639
|
-
max_execution_time: number;
|
|
640
|
-
tool_approval_required: string;
|
|
641
|
-
tools?: Array<Tools$Outbound> | undefined;
|
|
642
|
-
evaluators?: Array<Evaluators$Outbound> | undefined;
|
|
643
|
-
guardrails?: Array<Guardrails$Outbound> | undefined;
|
|
644
|
-
};
|
|
645
|
-
|
|
646
|
-
/** @internal */
|
|
647
|
-
export const Settings$outboundSchema: z.ZodType<
|
|
648
|
-
Settings$Outbound,
|
|
649
|
-
z.ZodTypeDef,
|
|
650
|
-
Settings
|
|
651
|
-
> = z.object({
|
|
652
|
-
maxIterations: z.number().int().default(100),
|
|
653
|
-
maxExecutionTime: z.number().int().default(600),
|
|
654
|
-
toolApprovalRequired: ToolApprovalRequired$outboundSchema.default(
|
|
655
|
-
"respect_tool",
|
|
656
|
-
),
|
|
657
|
-
tools: z.array(z.lazy(() => Tools$outboundSchema)).optional(),
|
|
658
|
-
evaluators: z.array(z.lazy(() => Evaluators$outboundSchema)).optional(),
|
|
659
|
-
guardrails: z.array(z.lazy(() => Guardrails$outboundSchema)).optional(),
|
|
660
|
-
}).transform((v) => {
|
|
661
|
-
return remap$(v, {
|
|
662
|
-
maxIterations: "max_iterations",
|
|
663
|
-
maxExecutionTime: "max_execution_time",
|
|
664
|
-
toolApprovalRequired: "tool_approval_required",
|
|
665
|
-
});
|
|
666
|
-
});
|
|
667
|
-
|
|
668
|
-
export function settingsToJSON(settings: Settings): string {
|
|
669
|
-
return JSON.stringify(Settings$outboundSchema.parse(settings));
|
|
670
|
-
}
|
|
671
|
-
export function settingsFromJSON(
|
|
672
|
-
jsonString: string,
|
|
673
|
-
): SafeParseResult<Settings, SDKValidationError> {
|
|
674
|
-
return safeParse(
|
|
675
|
-
jsonString,
|
|
676
|
-
(x) => Settings$inboundSchema.parse(JSON.parse(x)),
|
|
677
|
-
`Failed to parse 'Settings' from JSON`,
|
|
678
|
-
);
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
/** @internal */
|
|
682
|
-
export const AgentStartedStreamingEventData$inboundSchema: z.ZodType<
|
|
683
|
-
AgentStartedStreamingEventData,
|
|
684
|
-
z.ZodTypeDef,
|
|
685
|
-
unknown
|
|
686
|
-
> = z.object({
|
|
687
|
-
workflowRunId: z.string(),
|
|
688
|
-
integration_id: z.string().optional(),
|
|
689
|
-
inputMessage: z.lazy(() => InputMessage$inboundSchema),
|
|
690
|
-
modelId: z.string(),
|
|
691
|
-
instructions: z.string(),
|
|
692
|
-
system_prompt: z.string(),
|
|
693
|
-
settings: z.lazy(() => Settings$inboundSchema).optional(),
|
|
694
|
-
agent_manifest_id: z.string(),
|
|
695
|
-
agent_key: z.string(),
|
|
696
|
-
variables: z.record(z.any()).optional(),
|
|
697
|
-
tool_execution_id: z.string().optional(),
|
|
698
|
-
is_continuation: z.boolean().optional(),
|
|
699
|
-
stream: z.boolean().optional(),
|
|
700
|
-
responseId: z.string().optional(),
|
|
701
|
-
}).transform((v) => {
|
|
702
|
-
return remap$(v, {
|
|
703
|
-
"integration_id": "integrationId",
|
|
704
|
-
"system_prompt": "systemPrompt",
|
|
705
|
-
"agent_manifest_id": "agentManifestId",
|
|
706
|
-
"agent_key": "agentKey",
|
|
707
|
-
"tool_execution_id": "toolExecutionId",
|
|
708
|
-
"is_continuation": "isContinuation",
|
|
709
|
-
});
|
|
710
|
-
});
|
|
711
|
-
/** @internal */
|
|
712
|
-
export type AgentStartedStreamingEventData$Outbound = {
|
|
713
|
-
workflowRunId: string;
|
|
714
|
-
integration_id?: string | undefined;
|
|
715
|
-
inputMessage: InputMessage$Outbound;
|
|
716
|
-
modelId: string;
|
|
717
|
-
instructions: string;
|
|
718
|
-
system_prompt: string;
|
|
719
|
-
settings?: Settings$Outbound | undefined;
|
|
720
|
-
agent_manifest_id: string;
|
|
721
|
-
agent_key: string;
|
|
722
|
-
variables?: { [k: string]: any } | undefined;
|
|
723
|
-
tool_execution_id?: string | undefined;
|
|
724
|
-
is_continuation?: boolean | undefined;
|
|
725
|
-
stream?: boolean | undefined;
|
|
726
|
-
responseId?: string | undefined;
|
|
727
|
-
};
|
|
728
|
-
|
|
729
|
-
/** @internal */
|
|
730
|
-
export const AgentStartedStreamingEventData$outboundSchema: z.ZodType<
|
|
731
|
-
AgentStartedStreamingEventData$Outbound,
|
|
732
|
-
z.ZodTypeDef,
|
|
733
|
-
AgentStartedStreamingEventData
|
|
734
|
-
> = z.object({
|
|
735
|
-
workflowRunId: z.string(),
|
|
736
|
-
integrationId: z.string().optional(),
|
|
737
|
-
inputMessage: z.lazy(() => InputMessage$outboundSchema),
|
|
738
|
-
modelId: z.string(),
|
|
739
|
-
instructions: z.string(),
|
|
740
|
-
systemPrompt: z.string(),
|
|
741
|
-
settings: z.lazy(() => Settings$outboundSchema).optional(),
|
|
742
|
-
agentManifestId: z.string(),
|
|
743
|
-
agentKey: z.string(),
|
|
744
|
-
variables: z.record(z.any()).optional(),
|
|
745
|
-
toolExecutionId: z.string().optional(),
|
|
746
|
-
isContinuation: z.boolean().optional(),
|
|
747
|
-
stream: z.boolean().optional(),
|
|
748
|
-
responseId: z.string().optional(),
|
|
749
|
-
}).transform((v) => {
|
|
750
|
-
return remap$(v, {
|
|
751
|
-
integrationId: "integration_id",
|
|
752
|
-
systemPrompt: "system_prompt",
|
|
753
|
-
agentManifestId: "agent_manifest_id",
|
|
754
|
-
agentKey: "agent_key",
|
|
755
|
-
toolExecutionId: "tool_execution_id",
|
|
756
|
-
isContinuation: "is_continuation",
|
|
757
|
-
});
|
|
758
|
-
});
|
|
759
|
-
|
|
760
|
-
export function agentStartedStreamingEventDataToJSON(
|
|
761
|
-
agentStartedStreamingEventData: AgentStartedStreamingEventData,
|
|
762
|
-
): string {
|
|
763
|
-
return JSON.stringify(
|
|
764
|
-
AgentStartedStreamingEventData$outboundSchema.parse(
|
|
765
|
-
agentStartedStreamingEventData,
|
|
766
|
-
),
|
|
767
|
-
);
|
|
768
|
-
}
|
|
769
|
-
export function agentStartedStreamingEventDataFromJSON(
|
|
770
|
-
jsonString: string,
|
|
771
|
-
): SafeParseResult<AgentStartedStreamingEventData, SDKValidationError> {
|
|
772
|
-
return safeParse(
|
|
773
|
-
jsonString,
|
|
774
|
-
(x) => AgentStartedStreamingEventData$inboundSchema.parse(JSON.parse(x)),
|
|
775
|
-
`Failed to parse 'AgentStartedStreamingEventData' from JSON`,
|
|
776
|
-
);
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
/** @internal */
|
|
780
|
-
export const AgentStartedStreamingEvent$inboundSchema: z.ZodType<
|
|
781
|
-
AgentStartedStreamingEvent,
|
|
782
|
-
z.ZodTypeDef,
|
|
783
|
-
unknown
|
|
784
|
-
> = z.object({
|
|
785
|
-
type: z.literal("event.agents.started"),
|
|
786
|
-
timestamp: z.string(),
|
|
787
|
-
data: z.lazy(() => AgentStartedStreamingEventData$inboundSchema),
|
|
788
|
-
});
|
|
789
|
-
/** @internal */
|
|
790
|
-
export type AgentStartedStreamingEvent$Outbound = {
|
|
791
|
-
type: "event.agents.started";
|
|
792
|
-
timestamp: string;
|
|
793
|
-
data: AgentStartedStreamingEventData$Outbound;
|
|
794
|
-
};
|
|
795
|
-
|
|
796
|
-
/** @internal */
|
|
797
|
-
export const AgentStartedStreamingEvent$outboundSchema: z.ZodType<
|
|
798
|
-
AgentStartedStreamingEvent$Outbound,
|
|
799
|
-
z.ZodTypeDef,
|
|
800
|
-
AgentStartedStreamingEvent
|
|
801
|
-
> = z.object({
|
|
802
|
-
type: z.literal("event.agents.started"),
|
|
803
|
-
timestamp: z.string(),
|
|
804
|
-
data: z.lazy(() => AgentStartedStreamingEventData$outboundSchema),
|
|
805
|
-
});
|
|
806
|
-
|
|
807
|
-
export function agentStartedStreamingEventToJSON(
|
|
808
|
-
agentStartedStreamingEvent: AgentStartedStreamingEvent,
|
|
809
|
-
): string {
|
|
810
|
-
return JSON.stringify(
|
|
811
|
-
AgentStartedStreamingEvent$outboundSchema.parse(agentStartedStreamingEvent),
|
|
812
|
-
);
|
|
813
|
-
}
|
|
814
|
-
export function agentStartedStreamingEventFromJSON(
|
|
815
|
-
jsonString: string,
|
|
816
|
-
): SafeParseResult<AgentStartedStreamingEvent, SDKValidationError> {
|
|
817
|
-
return safeParse(
|
|
818
|
-
jsonString,
|
|
819
|
-
(x) => AgentStartedStreamingEvent$inboundSchema.parse(JSON.parse(x)),
|
|
820
|
-
`Failed to parse 'AgentStartedStreamingEvent' from JSON`,
|
|
821
|
-
);
|
|
822
|
-
}
|