@orq-ai/node 3.13.5 → 3.13.7
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 +96 -94
- package/RUNTIMES.md +6 -6
- package/bin/mcp-server.js +1745 -1227
- package/bin/mcp-server.js.map +176 -172
- package/docs/sdks/agents/README.md +95 -20
- package/examples/package-lock.json +1 -1
- package/funcs/agentsList.js +1 -1
- package/funcs/agentsList.js.map +1 -1
- package/funcs/agentsListActions.js +1 -1
- package/funcs/agentsListActions.js.map +1 -1
- package/funcs/agentsListTasks.d.ts +18 -0
- package/funcs/agentsListTasks.d.ts.map +1 -0
- package/funcs/agentsListTasks.js +130 -0
- package/funcs/agentsListTasks.js.map +1 -0
- package/funcs/agentsRetrieve.d.ts +1 -1
- package/funcs/agentsRetrieve.js +4 -4
- package/funcs/agentsRetrieve.js.map +1 -1
- package/funcs/agentsRetrieveAction.js +1 -1
- package/funcs/agentsRetrieveAction.js.map +1 -1
- package/funcs/agentsRetrieveTask.js +1 -1
- package/funcs/agentsRetrieveTask.js.map +1 -1
- package/funcs/agentsRun.js +1 -1
- package/funcs/agentsRun.js.map +1 -1
- package/funcs/agentsStreamRun.js +1 -1
- package/funcs/agentsStreamRun.js.map +1 -1
- package/funcs/budgetsCreate.js +1 -1
- package/funcs/budgetsCreate.js.map +1 -1
- package/funcs/budgetsDelete.js +1 -1
- package/funcs/budgetsDelete.js.map +1 -1
- package/funcs/budgetsGet.js +1 -1
- package/funcs/budgetsGet.js.map +1 -1
- package/funcs/budgetsList.js +1 -1
- package/funcs/budgetsList.js.map +1 -1
- package/funcs/budgetsUpdate.js +1 -1
- package/funcs/budgetsUpdate.js.map +1 -1
- package/funcs/chunkingParse.js +1 -1
- package/funcs/chunkingParse.js.map +1 -1
- package/funcs/contactsCreate.js +1 -1
- package/funcs/contactsCreate.js.map +1 -1
- package/funcs/contactsDelete.js +1 -1
- package/funcs/contactsDelete.js.map +1 -1
- package/funcs/contactsList.js +1 -1
- package/funcs/contactsList.js.map +1 -1
- package/funcs/contactsRetrieve.js +1 -1
- package/funcs/contactsRetrieve.js.map +1 -1
- package/funcs/contactsUpdate.js +1 -1
- package/funcs/contactsUpdate.js.map +1 -1
- package/funcs/datasetsClear.js +1 -1
- package/funcs/datasetsClear.js.map +1 -1
- package/funcs/datasetsCreate.js +1 -1
- package/funcs/datasetsCreate.js.map +1 -1
- package/funcs/datasetsCreateDatapoint.js +1 -1
- package/funcs/datasetsCreateDatapoint.js.map +1 -1
- package/funcs/datasetsDelete.js +1 -1
- package/funcs/datasetsDelete.js.map +1 -1
- package/funcs/datasetsDeleteDatapoint.js +1 -1
- package/funcs/datasetsDeleteDatapoint.js.map +1 -1
- package/funcs/datasetsList.js +1 -1
- package/funcs/datasetsList.js.map +1 -1
- package/funcs/datasetsListDatapoints.js +1 -1
- package/funcs/datasetsListDatapoints.js.map +1 -1
- package/funcs/datasetsRetrieve.js +1 -1
- package/funcs/datasetsRetrieve.js.map +1 -1
- package/funcs/datasetsRetrieveDatapoint.js +1 -1
- package/funcs/datasetsRetrieveDatapoint.js.map +1 -1
- package/funcs/datasetsUpdate.js +1 -1
- package/funcs/datasetsUpdate.js.map +1 -1
- package/funcs/datasetsUpdateDatapoint.js +1 -1
- package/funcs/datasetsUpdateDatapoint.js.map +1 -1
- package/funcs/deploymentsGetConfig.js +1 -1
- package/funcs/deploymentsGetConfig.js.map +1 -1
- package/funcs/deploymentsInvoke.js +1 -1
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/deploymentsList.js +1 -1
- package/funcs/deploymentsList.js.map +1 -1
- package/funcs/deploymentsMetricsCreate.js +1 -1
- package/funcs/deploymentsMetricsCreate.js.map +1 -1
- package/funcs/deploymentsStream.js +1 -1
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/evalsAgeAppropriate.js +1 -1
- package/funcs/evalsAgeAppropriate.js.map +1 -1
- package/funcs/evalsAll.js +1 -1
- package/funcs/evalsAll.js.map +1 -1
- package/funcs/evalsBertScore.js +1 -1
- package/funcs/evalsBertScore.js.map +1 -1
- package/funcs/evalsBleuScore.js +1 -1
- package/funcs/evalsBleuScore.js.map +1 -1
- package/funcs/evalsBotDetection.js +1 -1
- package/funcs/evalsBotDetection.js.map +1 -1
- package/funcs/evalsContains.js +1 -1
- package/funcs/evalsContains.js.map +1 -1
- package/funcs/evalsContainsAll.js +1 -1
- package/funcs/evalsContainsAll.js.map +1 -1
- package/funcs/evalsContainsAny.js +1 -1
- package/funcs/evalsContainsAny.js.map +1 -1
- package/funcs/evalsContainsEmail.js +1 -1
- package/funcs/evalsContainsEmail.js.map +1 -1
- package/funcs/evalsContainsNone.js +1 -1
- package/funcs/evalsContainsNone.js.map +1 -1
- package/funcs/evalsContainsUrl.js +1 -1
- package/funcs/evalsContainsUrl.js.map +1 -1
- package/funcs/evalsContainsValidLink.js +1 -1
- package/funcs/evalsContainsValidLink.js.map +1 -1
- package/funcs/evalsCreate.js +1 -1
- package/funcs/evalsCreate.js.map +1 -1
- package/funcs/evalsDelete.js +1 -1
- package/funcs/evalsDelete.js.map +1 -1
- package/funcs/evalsEndsWith.js +1 -1
- package/funcs/evalsEndsWith.js.map +1 -1
- package/funcs/evalsExactMatch.js +1 -1
- package/funcs/evalsExactMatch.js.map +1 -1
- package/funcs/evalsFactCheckingKnowledgeBase.js +1 -1
- package/funcs/evalsFactCheckingKnowledgeBase.js.map +1 -1
- package/funcs/evalsGrammar.js +1 -1
- package/funcs/evalsGrammar.js.map +1 -1
- package/funcs/evalsInvoke.js +1 -1
- package/funcs/evalsInvoke.js.map +1 -1
- package/funcs/evalsLengthBetween.js +1 -1
- package/funcs/evalsLengthBetween.js.map +1 -1
- package/funcs/evalsLengthGreaterThan.js +1 -1
- package/funcs/evalsLengthGreaterThan.js.map +1 -1
- package/funcs/evalsLengthLessThan.js +1 -1
- package/funcs/evalsLengthLessThan.js.map +1 -1
- package/funcs/evalsLocalization.js +1 -1
- package/funcs/evalsLocalization.js.map +1 -1
- package/funcs/evalsPii.js +1 -1
- package/funcs/evalsPii.js.map +1 -1
- package/funcs/evalsRagasCoherence.js +1 -1
- package/funcs/evalsRagasCoherence.js.map +1 -1
- package/funcs/evalsRagasConciseness.js +1 -1
- package/funcs/evalsRagasConciseness.js.map +1 -1
- package/funcs/evalsRagasContextEntitiesRecall.js +1 -1
- package/funcs/evalsRagasContextEntitiesRecall.js.map +1 -1
- package/funcs/evalsRagasContextPrecision.js +1 -1
- package/funcs/evalsRagasContextPrecision.js.map +1 -1
- package/funcs/evalsRagasContextRecall.js +1 -1
- package/funcs/evalsRagasContextRecall.js.map +1 -1
- package/funcs/evalsRagasCorrectness.js +1 -1
- package/funcs/evalsRagasCorrectness.js.map +1 -1
- package/funcs/evalsRagasFaithfulness.js +1 -1
- package/funcs/evalsRagasFaithfulness.js.map +1 -1
- package/funcs/evalsRagasHarmfulness.js +1 -1
- package/funcs/evalsRagasHarmfulness.js.map +1 -1
- package/funcs/evalsRagasMaliciousness.js +1 -1
- package/funcs/evalsRagasMaliciousness.js.map +1 -1
- package/funcs/evalsRagasNoiseSensitivity.js +1 -1
- package/funcs/evalsRagasNoiseSensitivity.js.map +1 -1
- package/funcs/evalsRagasResponseRelevancy.js +1 -1
- package/funcs/evalsRagasResponseRelevancy.js.map +1 -1
- package/funcs/evalsRagasSummarization.js +1 -1
- package/funcs/evalsRagasSummarization.js.map +1 -1
- package/funcs/evalsSentimentClassification.js +1 -1
- package/funcs/evalsSentimentClassification.js.map +1 -1
- package/funcs/evalsSummarization.js +1 -1
- package/funcs/evalsSummarization.js.map +1 -1
- package/funcs/evalsToneOfVoice.js +1 -1
- package/funcs/evalsToneOfVoice.js.map +1 -1
- package/funcs/evalsTranslation.js +1 -1
- package/funcs/evalsTranslation.js.map +1 -1
- package/funcs/evalsUpdate.js +1 -1
- package/funcs/evalsUpdate.js.map +1 -1
- package/funcs/evalsValidJson.js +1 -1
- package/funcs/evalsValidJson.js.map +1 -1
- package/funcs/feedbackCreate.js +1 -1
- package/funcs/feedbackCreate.js.map +1 -1
- package/funcs/filesCreate.js +1 -1
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/filesDelete.js +1 -1
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesGet.js +1 -1
- package/funcs/filesGet.js.map +1 -1
- package/funcs/filesList.js +1 -1
- package/funcs/filesList.js.map +1 -1
- package/funcs/knowledgeCreate.js +1 -1
- package/funcs/knowledgeCreate.js.map +1 -1
- package/funcs/knowledgeCreateChunks.js +1 -1
- package/funcs/knowledgeCreateChunks.js.map +1 -1
- package/funcs/knowledgeCreateDatasource.js +1 -1
- package/funcs/knowledgeCreateDatasource.js.map +1 -1
- package/funcs/knowledgeDelete.js +1 -1
- package/funcs/knowledgeDelete.js.map +1 -1
- package/funcs/knowledgeDeleteChunk.js +1 -1
- package/funcs/knowledgeDeleteChunk.js.map +1 -1
- package/funcs/knowledgeDeleteDatasource.js +1 -1
- package/funcs/knowledgeDeleteDatasource.js.map +1 -1
- package/funcs/knowledgeList.js +1 -1
- package/funcs/knowledgeList.js.map +1 -1
- package/funcs/knowledgeListChunks.js +1 -1
- package/funcs/knowledgeListChunks.js.map +1 -1
- package/funcs/knowledgeListDatasources.js +1 -1
- package/funcs/knowledgeListDatasources.js.map +1 -1
- package/funcs/knowledgeRetrieve.js +1 -1
- package/funcs/knowledgeRetrieve.js.map +1 -1
- package/funcs/knowledgeRetrieveChunk.js +1 -1
- package/funcs/knowledgeRetrieveChunk.js.map +1 -1
- package/funcs/knowledgeRetrieveDatasource.js +1 -1
- package/funcs/knowledgeRetrieveDatasource.js.map +1 -1
- package/funcs/knowledgeSearch.js +1 -1
- package/funcs/knowledgeSearch.js.map +1 -1
- package/funcs/knowledgeUpdate.js +1 -1
- package/funcs/knowledgeUpdate.js.map +1 -1
- package/funcs/knowledgeUpdateChunk.js +1 -1
- package/funcs/knowledgeUpdateChunk.js.map +1 -1
- package/funcs/knowledgeUpdateDatasource.js +1 -1
- package/funcs/knowledgeUpdateDatasource.js.map +1 -1
- package/funcs/memoryStoresCreate.js +1 -1
- package/funcs/memoryStoresCreate.js.map +1 -1
- package/funcs/memoryStoresCreateDocument.js +1 -1
- package/funcs/memoryStoresCreateDocument.js.map +1 -1
- package/funcs/memoryStoresCreateMemory.js +1 -1
- package/funcs/memoryStoresCreateMemory.js.map +1 -1
- package/funcs/memoryStoresDelete.js +1 -1
- package/funcs/memoryStoresDelete.js.map +1 -1
- package/funcs/memoryStoresDeleteDocument.js +1 -1
- package/funcs/memoryStoresDeleteDocument.js.map +1 -1
- package/funcs/memoryStoresDeleteMemory.js +1 -1
- package/funcs/memoryStoresDeleteMemory.js.map +1 -1
- package/funcs/memoryStoresList.js +1 -1
- package/funcs/memoryStoresList.js.map +1 -1
- package/funcs/memoryStoresListDocuments.js +1 -1
- package/funcs/memoryStoresListDocuments.js.map +1 -1
- package/funcs/memoryStoresListMemories.js +1 -1
- package/funcs/memoryStoresListMemories.js.map +1 -1
- package/funcs/memoryStoresRetrieve.js +1 -1
- package/funcs/memoryStoresRetrieve.js.map +1 -1
- package/funcs/memoryStoresRetrieveDocument.js +1 -1
- package/funcs/memoryStoresRetrieveDocument.js.map +1 -1
- package/funcs/memoryStoresRetrieveMemory.js +1 -1
- package/funcs/memoryStoresRetrieveMemory.js.map +1 -1
- package/funcs/memoryStoresUpdate.js +1 -1
- package/funcs/memoryStoresUpdate.js.map +1 -1
- package/funcs/memoryStoresUpdateDocument.js +1 -1
- package/funcs/memoryStoresUpdateDocument.js.map +1 -1
- package/funcs/memoryStoresUpdateMemory.js +1 -1
- package/funcs/memoryStoresUpdateMemory.js.map +1 -1
- package/funcs/modelsList.js +1 -1
- package/funcs/modelsList.js.map +1 -1
- package/funcs/promptsCreate.js +1 -1
- package/funcs/promptsCreate.js.map +1 -1
- package/funcs/promptsDelete.js +1 -1
- package/funcs/promptsDelete.js.map +1 -1
- package/funcs/promptsGetVersion.js +1 -1
- package/funcs/promptsGetVersion.js.map +1 -1
- package/funcs/promptsList.js +1 -1
- package/funcs/promptsList.js.map +1 -1
- package/funcs/promptsListVersions.js +1 -1
- package/funcs/promptsListVersions.js.map +1 -1
- package/funcs/promptsRetrieve.js +1 -1
- package/funcs/promptsRetrieve.js.map +1 -1
- package/funcs/promptsUpdate.js +1 -1
- package/funcs/promptsUpdate.js.map +1 -1
- package/funcs/remoteconfigsRetrieve.js +1 -1
- package/funcs/remoteconfigsRetrieve.js.map +1 -1
- package/funcs/toolsCreate.js +1 -1
- package/funcs/toolsCreate.js.map +1 -1
- package/funcs/toolsDelete.js +1 -1
- package/funcs/toolsDelete.js.map +1 -1
- package/funcs/toolsDuplicate.js +1 -1
- package/funcs/toolsDuplicate.js.map +1 -1
- package/funcs/toolsList.js +1 -1
- package/funcs/toolsList.js.map +1 -1
- package/funcs/toolsRetrieve.js +1 -1
- package/funcs/toolsRetrieve.js.map +1 -1
- package/funcs/toolsUpdate.js +1 -1
- package/funcs/toolsUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +4 -2
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/agentsListTasks.d.ts +8 -0
- package/mcp-server/tools/agentsListTasks.d.ts.map +1 -0
- package/mcp-server/tools/agentsListTasks.js +64 -0
- package/mcp-server/tools/agentsListTasks.js.map +1 -0
- package/mcp-server/tools/agentsRetrieve.js +1 -1
- package/mcp-server/tools/agentsRetrieve.js.map +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/listagenttasks.d.ts +41 -0
- package/models/errors/listagenttasks.d.ts.map +1 -0
- package/models/errors/listagenttasks.js +85 -0
- package/models/errors/listagenttasks.js.map +1 -0
- 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 +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +14 -14
- 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/getagent.d.ts +7 -7
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +16 -8
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listagents.d.ts +4 -4
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +6 -6
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +523 -0
- package/models/operations/listagenttasks.d.ts.map +1 -0
- package/models/operations/listagenttasks.js +609 -0
- package/models/operations/listagenttasks.js.map +1 -0
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listchunks.d.ts +13 -13
- package/models/operations/listchunks.d.ts.map +1 -1
- package/models/operations/listchunks.js +16 -16
- package/models/operations/listchunks.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.d.ts +13 -13
- package/models/operations/listdatasources.d.ts.map +1 -1
- package/models/operations/listdatasources.js +18 -19
- package/models/operations/listdatasources.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- 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 +1 -1
- package/packages/orq-rc/README.md +98 -94
- package/packages/orq-rc/RUNTIMES.md +6 -6
- package/packages/orq-rc/docs/sdks/agents/README.md +269 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +167 -0
- package/packages/orq-rc/src/funcs/agentsList.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsListActions.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsStream.ts +191 -0
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsGet.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsList.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/chunkingParse.ts +1 -1
- package/packages/orq-rc/src/funcs/contactsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/contactsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/contactsList.ts +1 -1
- package/packages/orq-rc/src/funcs/contactsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/contactsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsClear.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsList.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsList.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsAgeAppropriate.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsAll.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsBertScore.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsBleuScore.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsBotDetection.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsContains.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsContainsAll.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsContainsAny.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsContainsEmail.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsContainsNone.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsContainsUrl.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsContainsValidLink.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsEndsWith.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsExactMatch.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsFactCheckingKnowledgeBase.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsGrammar.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsLengthBetween.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsLengthGreaterThan.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsLengthLessThan.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsLocalization.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsPii.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasCoherence.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasConciseness.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasContextEntitiesRecall.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasContextPrecision.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasContextRecall.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasCorrectness.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasFaithfulness.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasHarmfulness.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasMaliciousness.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasNoiseSensitivity.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasResponseRelevancy.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasSummarization.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsSentimentClassification.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsSummarization.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsToneOfVoice.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsTranslation.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsValidJson.ts +1 -1
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/filesCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/filesDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/filesGet.ts +1 -1
- package/packages/orq-rc/src/funcs/filesList.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeList.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +1 -1
- package/packages/orq-rc/src/funcs/modelsList.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsList.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/toolsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/toolsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +1 -1
- package/packages/orq-rc/src/funcs/toolsList.ts +1 -1
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +5 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +37 -0
- package/packages/orq-rc/src/models/errors/index.ts +1 -0
- package/packages/orq-rc/src/models/errors/streamagent.ts +80 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +6 -6
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +701 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +10 -10
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +1 -0
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- package/packages/orq-rc/src/models/operations/index.ts +2 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +1561 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +2 -2
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +785 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +6 -6
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +767 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +6 -6
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/runagent.ts +443 -374
- package/packages/orq-rc/src/models/operations/streamagent.ts +1365 -0
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +207 -165
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +763 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +6 -22
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +1 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +10 -10
- package/packages/orq-rc/src/sdk/agents.ts +36 -0
- package/sdk/agents.d.ts +11 -4
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +15 -5
- package/sdk/agents.js.map +1 -1
- package/src/funcs/agentsList.ts +1 -1
- package/src/funcs/agentsListActions.ts +1 -1
- package/src/funcs/agentsListTasks.ts +183 -0
- package/src/funcs/agentsRetrieve.ts +4 -4
- package/src/funcs/agentsRetrieveAction.ts +1 -1
- package/src/funcs/agentsRetrieveTask.ts +1 -1
- package/src/funcs/agentsRun.ts +1 -1
- package/src/funcs/agentsStreamRun.ts +1 -1
- package/src/funcs/budgetsCreate.ts +1 -1
- package/src/funcs/budgetsDelete.ts +1 -1
- package/src/funcs/budgetsGet.ts +1 -1
- package/src/funcs/budgetsList.ts +1 -1
- package/src/funcs/budgetsUpdate.ts +1 -1
- package/src/funcs/chunkingParse.ts +1 -1
- package/src/funcs/contactsCreate.ts +1 -1
- package/src/funcs/contactsDelete.ts +1 -1
- package/src/funcs/contactsList.ts +1 -1
- package/src/funcs/contactsRetrieve.ts +1 -1
- package/src/funcs/contactsUpdate.ts +1 -1
- package/src/funcs/datasetsClear.ts +1 -1
- package/src/funcs/datasetsCreate.ts +1 -1
- package/src/funcs/datasetsCreateDatapoint.ts +1 -1
- package/src/funcs/datasetsDelete.ts +1 -1
- package/src/funcs/datasetsDeleteDatapoint.ts +1 -1
- package/src/funcs/datasetsList.ts +1 -1
- package/src/funcs/datasetsListDatapoints.ts +1 -1
- package/src/funcs/datasetsRetrieve.ts +1 -1
- package/src/funcs/datasetsRetrieveDatapoint.ts +1 -1
- package/src/funcs/datasetsUpdate.ts +1 -1
- package/src/funcs/datasetsUpdateDatapoint.ts +1 -1
- package/src/funcs/deploymentsGetConfig.ts +1 -1
- package/src/funcs/deploymentsInvoke.ts +1 -1
- package/src/funcs/deploymentsList.ts +1 -1
- package/src/funcs/deploymentsMetricsCreate.ts +1 -1
- package/src/funcs/deploymentsStream.ts +1 -1
- package/src/funcs/evalsAgeAppropriate.ts +1 -1
- package/src/funcs/evalsAll.ts +1 -1
- package/src/funcs/evalsBertScore.ts +1 -1
- package/src/funcs/evalsBleuScore.ts +1 -1
- package/src/funcs/evalsBotDetection.ts +1 -1
- package/src/funcs/evalsContains.ts +1 -1
- package/src/funcs/evalsContainsAll.ts +1 -1
- package/src/funcs/evalsContainsAny.ts +1 -1
- package/src/funcs/evalsContainsEmail.ts +1 -1
- package/src/funcs/evalsContainsNone.ts +1 -1
- package/src/funcs/evalsContainsUrl.ts +1 -1
- package/src/funcs/evalsContainsValidLink.ts +1 -1
- package/src/funcs/evalsCreate.ts +1 -1
- package/src/funcs/evalsDelete.ts +1 -1
- package/src/funcs/evalsEndsWith.ts +1 -1
- package/src/funcs/evalsExactMatch.ts +1 -1
- package/src/funcs/evalsFactCheckingKnowledgeBase.ts +1 -1
- package/src/funcs/evalsGrammar.ts +1 -1
- package/src/funcs/evalsInvoke.ts +1 -1
- package/src/funcs/evalsLengthBetween.ts +1 -1
- package/src/funcs/evalsLengthGreaterThan.ts +1 -1
- package/src/funcs/evalsLengthLessThan.ts +1 -1
- package/src/funcs/evalsLocalization.ts +1 -1
- package/src/funcs/evalsPii.ts +1 -1
- package/src/funcs/evalsRagasCoherence.ts +1 -1
- package/src/funcs/evalsRagasConciseness.ts +1 -1
- package/src/funcs/evalsRagasContextEntitiesRecall.ts +1 -1
- package/src/funcs/evalsRagasContextPrecision.ts +1 -1
- package/src/funcs/evalsRagasContextRecall.ts +1 -1
- package/src/funcs/evalsRagasCorrectness.ts +1 -1
- package/src/funcs/evalsRagasFaithfulness.ts +1 -1
- package/src/funcs/evalsRagasHarmfulness.ts +1 -1
- package/src/funcs/evalsRagasMaliciousness.ts +1 -1
- package/src/funcs/evalsRagasNoiseSensitivity.ts +1 -1
- package/src/funcs/evalsRagasResponseRelevancy.ts +1 -1
- package/src/funcs/evalsRagasSummarization.ts +1 -1
- package/src/funcs/evalsSentimentClassification.ts +1 -1
- package/src/funcs/evalsSummarization.ts +1 -1
- package/src/funcs/evalsToneOfVoice.ts +1 -1
- package/src/funcs/evalsTranslation.ts +1 -1
- package/src/funcs/evalsUpdate.ts +1 -1
- package/src/funcs/evalsValidJson.ts +1 -1
- package/src/funcs/feedbackCreate.ts +1 -1
- package/src/funcs/filesCreate.ts +1 -1
- package/src/funcs/filesDelete.ts +1 -1
- package/src/funcs/filesGet.ts +1 -1
- package/src/funcs/filesList.ts +1 -1
- package/src/funcs/knowledgeCreate.ts +1 -1
- package/src/funcs/knowledgeCreateChunks.ts +1 -1
- package/src/funcs/knowledgeCreateDatasource.ts +1 -1
- package/src/funcs/knowledgeDelete.ts +1 -1
- package/src/funcs/knowledgeDeleteChunk.ts +1 -1
- package/src/funcs/knowledgeDeleteDatasource.ts +1 -1
- package/src/funcs/knowledgeList.ts +1 -1
- package/src/funcs/knowledgeListChunks.ts +1 -1
- package/src/funcs/knowledgeListDatasources.ts +1 -1
- package/src/funcs/knowledgeRetrieve.ts +1 -1
- package/src/funcs/knowledgeRetrieveChunk.ts +1 -1
- package/src/funcs/knowledgeRetrieveDatasource.ts +1 -1
- package/src/funcs/knowledgeSearch.ts +1 -1
- package/src/funcs/knowledgeUpdate.ts +1 -1
- package/src/funcs/knowledgeUpdateChunk.ts +1 -1
- package/src/funcs/knowledgeUpdateDatasource.ts +1 -1
- package/src/funcs/memoryStoresCreate.ts +1 -1
- package/src/funcs/memoryStoresCreateDocument.ts +1 -1
- package/src/funcs/memoryStoresCreateMemory.ts +1 -1
- package/src/funcs/memoryStoresDelete.ts +1 -1
- package/src/funcs/memoryStoresDeleteDocument.ts +1 -1
- package/src/funcs/memoryStoresDeleteMemory.ts +1 -1
- package/src/funcs/memoryStoresList.ts +1 -1
- package/src/funcs/memoryStoresListDocuments.ts +1 -1
- package/src/funcs/memoryStoresListMemories.ts +1 -1
- package/src/funcs/memoryStoresRetrieve.ts +1 -1
- package/src/funcs/memoryStoresRetrieveDocument.ts +1 -1
- package/src/funcs/memoryStoresRetrieveMemory.ts +1 -1
- package/src/funcs/memoryStoresUpdate.ts +1 -1
- package/src/funcs/memoryStoresUpdateDocument.ts +1 -1
- package/src/funcs/memoryStoresUpdateMemory.ts +1 -1
- package/src/funcs/modelsList.ts +1 -1
- package/src/funcs/promptsCreate.ts +1 -1
- package/src/funcs/promptsDelete.ts +1 -1
- package/src/funcs/promptsGetVersion.ts +1 -1
- package/src/funcs/promptsList.ts +1 -1
- package/src/funcs/promptsListVersions.ts +1 -1
- package/src/funcs/promptsRetrieve.ts +1 -1
- package/src/funcs/promptsUpdate.ts +1 -1
- package/src/funcs/remoteconfigsRetrieve.ts +1 -1
- package/src/funcs/toolsCreate.ts +1 -1
- package/src/funcs/toolsDelete.ts +1 -1
- package/src/funcs/toolsDuplicate.ts +1 -1
- package/src/funcs/toolsList.ts +1 -1
- package/src/funcs/toolsRetrieve.ts +1 -1
- package/src/funcs/toolsUpdate.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +4 -2
- package/src/mcp-server/tools/agentsListTasks.ts +37 -0
- package/src/mcp-server/tools/agentsRetrieve.ts +1 -1
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/listagenttasks.ts +80 -0
- 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 +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +14 -14
- 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/getagent.ts +23 -15
- 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/index.ts +1 -0
- package/src/models/operations/listagents.ts +10 -10
- package/src/models/operations/listagenttasks.ts +1099 -0
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listchunks.ts +21 -21
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +29 -22
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- 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/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- 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/src/sdk/agents.ts +25 -7
- package/docs/sdks/orq/README.md +0 -10
- package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
|
@@ -1017,6 +1017,162 @@ export type CreateDatasetItemDatasetsMessages =
|
|
|
1017
1017
|
| CreateDatasetItemMessagesDatasetsUserMessage
|
|
1018
1018
|
| CreateDatasetItemMessagesDatasetsAssistantMessage;
|
|
1019
1019
|
|
|
1020
|
+
/**
|
|
1021
|
+
* The type of evaluation
|
|
1022
|
+
*/
|
|
1023
|
+
export const CreateDatasetItemEvaluationsEvaluationType = {
|
|
1024
|
+
HumanReview: "human_review",
|
|
1025
|
+
} as const;
|
|
1026
|
+
/**
|
|
1027
|
+
* The type of evaluation
|
|
1028
|
+
*/
|
|
1029
|
+
export type CreateDatasetItemEvaluationsEvaluationType = ClosedEnum<
|
|
1030
|
+
typeof CreateDatasetItemEvaluationsEvaluationType
|
|
1031
|
+
>;
|
|
1032
|
+
|
|
1033
|
+
export const CreateDatasetItemEvaluationsSource = {
|
|
1034
|
+
Orq: "orq",
|
|
1035
|
+
External: "external",
|
|
1036
|
+
} as const;
|
|
1037
|
+
export type CreateDatasetItemEvaluationsSource = ClosedEnum<
|
|
1038
|
+
typeof CreateDatasetItemEvaluationsSource
|
|
1039
|
+
>;
|
|
1040
|
+
|
|
1041
|
+
export const CreateDatasetItemEvaluationsDatasetsType = {
|
|
1042
|
+
StringArray: "string_array",
|
|
1043
|
+
} as const;
|
|
1044
|
+
export type CreateDatasetItemEvaluationsDatasetsType = ClosedEnum<
|
|
1045
|
+
typeof CreateDatasetItemEvaluationsDatasetsType
|
|
1046
|
+
>;
|
|
1047
|
+
|
|
1048
|
+
export type Evaluations3 = {
|
|
1049
|
+
/**
|
|
1050
|
+
* The unique identifier of the human evaluation
|
|
1051
|
+
*/
|
|
1052
|
+
id: string;
|
|
1053
|
+
/**
|
|
1054
|
+
* The type of evaluation
|
|
1055
|
+
*/
|
|
1056
|
+
evaluationType: CreateDatasetItemEvaluationsEvaluationType;
|
|
1057
|
+
/**
|
|
1058
|
+
* The unique identifier of the human review
|
|
1059
|
+
*/
|
|
1060
|
+
humanReviewId: string;
|
|
1061
|
+
source?: CreateDatasetItemEvaluationsSource | undefined;
|
|
1062
|
+
/**
|
|
1063
|
+
* The unique identifier of the user who reviewed the item
|
|
1064
|
+
*/
|
|
1065
|
+
reviewedById: string;
|
|
1066
|
+
/**
|
|
1067
|
+
* The date and time the item was reviewed
|
|
1068
|
+
*/
|
|
1069
|
+
reviewedAt?: Date | undefined;
|
|
1070
|
+
type: CreateDatasetItemEvaluationsDatasetsType;
|
|
1071
|
+
values: Array<string>;
|
|
1072
|
+
};
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* The type of evaluation
|
|
1076
|
+
*/
|
|
1077
|
+
export const EvaluationsEvaluationType = {
|
|
1078
|
+
HumanReview: "human_review",
|
|
1079
|
+
} as const;
|
|
1080
|
+
/**
|
|
1081
|
+
* The type of evaluation
|
|
1082
|
+
*/
|
|
1083
|
+
export type EvaluationsEvaluationType = ClosedEnum<
|
|
1084
|
+
typeof EvaluationsEvaluationType
|
|
1085
|
+
>;
|
|
1086
|
+
|
|
1087
|
+
export const EvaluationsSource = {
|
|
1088
|
+
Orq: "orq",
|
|
1089
|
+
External: "external",
|
|
1090
|
+
} as const;
|
|
1091
|
+
export type EvaluationsSource = ClosedEnum<typeof EvaluationsSource>;
|
|
1092
|
+
|
|
1093
|
+
export const CreateDatasetItemEvaluationsType = {
|
|
1094
|
+
Number: "number",
|
|
1095
|
+
} as const;
|
|
1096
|
+
export type CreateDatasetItemEvaluationsType = ClosedEnum<
|
|
1097
|
+
typeof CreateDatasetItemEvaluationsType
|
|
1098
|
+
>;
|
|
1099
|
+
|
|
1100
|
+
export type Evaluations2 = {
|
|
1101
|
+
/**
|
|
1102
|
+
* The unique identifier of the human evaluation
|
|
1103
|
+
*/
|
|
1104
|
+
id: string;
|
|
1105
|
+
/**
|
|
1106
|
+
* The type of evaluation
|
|
1107
|
+
*/
|
|
1108
|
+
evaluationType: EvaluationsEvaluationType;
|
|
1109
|
+
/**
|
|
1110
|
+
* The unique identifier of the human review
|
|
1111
|
+
*/
|
|
1112
|
+
humanReviewId: string;
|
|
1113
|
+
source?: EvaluationsSource | undefined;
|
|
1114
|
+
/**
|
|
1115
|
+
* The unique identifier of the user who reviewed the item
|
|
1116
|
+
*/
|
|
1117
|
+
reviewedById: string;
|
|
1118
|
+
/**
|
|
1119
|
+
* The date and time the item was reviewed
|
|
1120
|
+
*/
|
|
1121
|
+
reviewedAt?: Date | undefined;
|
|
1122
|
+
type: CreateDatasetItemEvaluationsType;
|
|
1123
|
+
value: number;
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* The type of evaluation
|
|
1128
|
+
*/
|
|
1129
|
+
export const EvaluationType = {
|
|
1130
|
+
HumanReview: "human_review",
|
|
1131
|
+
} as const;
|
|
1132
|
+
/**
|
|
1133
|
+
* The type of evaluation
|
|
1134
|
+
*/
|
|
1135
|
+
export type EvaluationType = ClosedEnum<typeof EvaluationType>;
|
|
1136
|
+
|
|
1137
|
+
export const Source = {
|
|
1138
|
+
Orq: "orq",
|
|
1139
|
+
External: "external",
|
|
1140
|
+
} as const;
|
|
1141
|
+
export type Source = ClosedEnum<typeof Source>;
|
|
1142
|
+
|
|
1143
|
+
export const EvaluationsType = {
|
|
1144
|
+
String: "string",
|
|
1145
|
+
} as const;
|
|
1146
|
+
export type EvaluationsType = ClosedEnum<typeof EvaluationsType>;
|
|
1147
|
+
|
|
1148
|
+
export type Evaluations1 = {
|
|
1149
|
+
/**
|
|
1150
|
+
* The unique identifier of the human evaluation
|
|
1151
|
+
*/
|
|
1152
|
+
id: string;
|
|
1153
|
+
/**
|
|
1154
|
+
* The type of evaluation
|
|
1155
|
+
*/
|
|
1156
|
+
evaluationType: EvaluationType;
|
|
1157
|
+
/**
|
|
1158
|
+
* The unique identifier of the human review
|
|
1159
|
+
*/
|
|
1160
|
+
humanReviewId: string;
|
|
1161
|
+
source?: Source | undefined;
|
|
1162
|
+
/**
|
|
1163
|
+
* The unique identifier of the user who reviewed the item
|
|
1164
|
+
*/
|
|
1165
|
+
reviewedById: string;
|
|
1166
|
+
/**
|
|
1167
|
+
* The date and time the item was reviewed
|
|
1168
|
+
*/
|
|
1169
|
+
reviewedAt?: Date | undefined;
|
|
1170
|
+
type: EvaluationsType;
|
|
1171
|
+
value: string;
|
|
1172
|
+
};
|
|
1173
|
+
|
|
1174
|
+
export type Evaluations = Evaluations1 | Evaluations2 | Evaluations3;
|
|
1175
|
+
|
|
1020
1176
|
export type ResponseBody = {
|
|
1021
1177
|
/**
|
|
1022
1178
|
* The unique identifier of the dataset item
|
|
@@ -1043,10 +1199,18 @@ export type ResponseBody = {
|
|
|
1043
1199
|
>
|
|
1044
1200
|
| undefined;
|
|
1045
1201
|
expectedOutput?: string | undefined;
|
|
1202
|
+
/**
|
|
1203
|
+
* Evaluations associated with the datapoint
|
|
1204
|
+
*/
|
|
1205
|
+
evaluations?: Array<Evaluations1 | Evaluations2 | Evaluations3> | undefined;
|
|
1046
1206
|
/**
|
|
1047
1207
|
* The unique identifier of the dataset
|
|
1048
1208
|
*/
|
|
1049
1209
|
datasetId: string;
|
|
1210
|
+
/**
|
|
1211
|
+
* The version of the dataset snapshot
|
|
1212
|
+
*/
|
|
1213
|
+
snapshotVersion?: string | undefined;
|
|
1050
1214
|
/**
|
|
1051
1215
|
* The unique identifier of the user who created the dataset
|
|
1052
1216
|
*/
|
|
@@ -6052,6 +6216,517 @@ export function createDatasetItemDatasetsMessagesFromJSON(
|
|
|
6052
6216
|
);
|
|
6053
6217
|
}
|
|
6054
6218
|
|
|
6219
|
+
/** @internal */
|
|
6220
|
+
export const CreateDatasetItemEvaluationsEvaluationType$inboundSchema:
|
|
6221
|
+
z.ZodNativeEnum<typeof CreateDatasetItemEvaluationsEvaluationType> = z
|
|
6222
|
+
.nativeEnum(CreateDatasetItemEvaluationsEvaluationType);
|
|
6223
|
+
|
|
6224
|
+
/** @internal */
|
|
6225
|
+
export const CreateDatasetItemEvaluationsEvaluationType$outboundSchema:
|
|
6226
|
+
z.ZodNativeEnum<typeof CreateDatasetItemEvaluationsEvaluationType> =
|
|
6227
|
+
CreateDatasetItemEvaluationsEvaluationType$inboundSchema;
|
|
6228
|
+
|
|
6229
|
+
/**
|
|
6230
|
+
* @internal
|
|
6231
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6232
|
+
*/
|
|
6233
|
+
export namespace CreateDatasetItemEvaluationsEvaluationType$ {
|
|
6234
|
+
/** @deprecated use `CreateDatasetItemEvaluationsEvaluationType$inboundSchema` instead. */
|
|
6235
|
+
export const inboundSchema =
|
|
6236
|
+
CreateDatasetItemEvaluationsEvaluationType$inboundSchema;
|
|
6237
|
+
/** @deprecated use `CreateDatasetItemEvaluationsEvaluationType$outboundSchema` instead. */
|
|
6238
|
+
export const outboundSchema =
|
|
6239
|
+
CreateDatasetItemEvaluationsEvaluationType$outboundSchema;
|
|
6240
|
+
}
|
|
6241
|
+
|
|
6242
|
+
/** @internal */
|
|
6243
|
+
export const CreateDatasetItemEvaluationsSource$inboundSchema: z.ZodNativeEnum<
|
|
6244
|
+
typeof CreateDatasetItemEvaluationsSource
|
|
6245
|
+
> = z.nativeEnum(CreateDatasetItemEvaluationsSource);
|
|
6246
|
+
|
|
6247
|
+
/** @internal */
|
|
6248
|
+
export const CreateDatasetItemEvaluationsSource$outboundSchema: z.ZodNativeEnum<
|
|
6249
|
+
typeof CreateDatasetItemEvaluationsSource
|
|
6250
|
+
> = CreateDatasetItemEvaluationsSource$inboundSchema;
|
|
6251
|
+
|
|
6252
|
+
/**
|
|
6253
|
+
* @internal
|
|
6254
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6255
|
+
*/
|
|
6256
|
+
export namespace CreateDatasetItemEvaluationsSource$ {
|
|
6257
|
+
/** @deprecated use `CreateDatasetItemEvaluationsSource$inboundSchema` instead. */
|
|
6258
|
+
export const inboundSchema = CreateDatasetItemEvaluationsSource$inboundSchema;
|
|
6259
|
+
/** @deprecated use `CreateDatasetItemEvaluationsSource$outboundSchema` instead. */
|
|
6260
|
+
export const outboundSchema =
|
|
6261
|
+
CreateDatasetItemEvaluationsSource$outboundSchema;
|
|
6262
|
+
}
|
|
6263
|
+
|
|
6264
|
+
/** @internal */
|
|
6265
|
+
export const CreateDatasetItemEvaluationsDatasetsType$inboundSchema:
|
|
6266
|
+
z.ZodNativeEnum<typeof CreateDatasetItemEvaluationsDatasetsType> = z
|
|
6267
|
+
.nativeEnum(CreateDatasetItemEvaluationsDatasetsType);
|
|
6268
|
+
|
|
6269
|
+
/** @internal */
|
|
6270
|
+
export const CreateDatasetItemEvaluationsDatasetsType$outboundSchema:
|
|
6271
|
+
z.ZodNativeEnum<typeof CreateDatasetItemEvaluationsDatasetsType> =
|
|
6272
|
+
CreateDatasetItemEvaluationsDatasetsType$inboundSchema;
|
|
6273
|
+
|
|
6274
|
+
/**
|
|
6275
|
+
* @internal
|
|
6276
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6277
|
+
*/
|
|
6278
|
+
export namespace CreateDatasetItemEvaluationsDatasetsType$ {
|
|
6279
|
+
/** @deprecated use `CreateDatasetItemEvaluationsDatasetsType$inboundSchema` instead. */
|
|
6280
|
+
export const inboundSchema =
|
|
6281
|
+
CreateDatasetItemEvaluationsDatasetsType$inboundSchema;
|
|
6282
|
+
/** @deprecated use `CreateDatasetItemEvaluationsDatasetsType$outboundSchema` instead. */
|
|
6283
|
+
export const outboundSchema =
|
|
6284
|
+
CreateDatasetItemEvaluationsDatasetsType$outboundSchema;
|
|
6285
|
+
}
|
|
6286
|
+
|
|
6287
|
+
/** @internal */
|
|
6288
|
+
export const Evaluations3$inboundSchema: z.ZodType<
|
|
6289
|
+
Evaluations3,
|
|
6290
|
+
z.ZodTypeDef,
|
|
6291
|
+
unknown
|
|
6292
|
+
> = z.object({
|
|
6293
|
+
id: z.string(),
|
|
6294
|
+
evaluation_type: CreateDatasetItemEvaluationsEvaluationType$inboundSchema,
|
|
6295
|
+
human_review_id: z.string(),
|
|
6296
|
+
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
6297
|
+
reviewed_by_id: z.string(),
|
|
6298
|
+
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
6299
|
+
"2025-10-14T05:25:51.137Z",
|
|
6300
|
+
).transform(v => new Date(v)),
|
|
6301
|
+
type: CreateDatasetItemEvaluationsDatasetsType$inboundSchema,
|
|
6302
|
+
values: z.array(z.string()),
|
|
6303
|
+
}).transform((v) => {
|
|
6304
|
+
return remap$(v, {
|
|
6305
|
+
"evaluation_type": "evaluationType",
|
|
6306
|
+
"human_review_id": "humanReviewId",
|
|
6307
|
+
"reviewed_by_id": "reviewedById",
|
|
6308
|
+
"reviewed_at": "reviewedAt",
|
|
6309
|
+
});
|
|
6310
|
+
});
|
|
6311
|
+
|
|
6312
|
+
/** @internal */
|
|
6313
|
+
export type Evaluations3$Outbound = {
|
|
6314
|
+
id: string;
|
|
6315
|
+
evaluation_type: string;
|
|
6316
|
+
human_review_id: string;
|
|
6317
|
+
source: string;
|
|
6318
|
+
reviewed_by_id: string;
|
|
6319
|
+
reviewed_at: string;
|
|
6320
|
+
type: string;
|
|
6321
|
+
values: Array<string>;
|
|
6322
|
+
};
|
|
6323
|
+
|
|
6324
|
+
/** @internal */
|
|
6325
|
+
export const Evaluations3$outboundSchema: z.ZodType<
|
|
6326
|
+
Evaluations3$Outbound,
|
|
6327
|
+
z.ZodTypeDef,
|
|
6328
|
+
Evaluations3
|
|
6329
|
+
> = z.object({
|
|
6330
|
+
id: z.string(),
|
|
6331
|
+
evaluationType: CreateDatasetItemEvaluationsEvaluationType$outboundSchema,
|
|
6332
|
+
humanReviewId: z.string(),
|
|
6333
|
+
source: CreateDatasetItemEvaluationsSource$outboundSchema.default("orq"),
|
|
6334
|
+
reviewedById: z.string(),
|
|
6335
|
+
reviewedAt: z.date().default(() => new Date("2025-10-14T05:25:51.137Z"))
|
|
6336
|
+
.transform(v => v.toISOString()),
|
|
6337
|
+
type: CreateDatasetItemEvaluationsDatasetsType$outboundSchema,
|
|
6338
|
+
values: z.array(z.string()),
|
|
6339
|
+
}).transform((v) => {
|
|
6340
|
+
return remap$(v, {
|
|
6341
|
+
evaluationType: "evaluation_type",
|
|
6342
|
+
humanReviewId: "human_review_id",
|
|
6343
|
+
reviewedById: "reviewed_by_id",
|
|
6344
|
+
reviewedAt: "reviewed_at",
|
|
6345
|
+
});
|
|
6346
|
+
});
|
|
6347
|
+
|
|
6348
|
+
/**
|
|
6349
|
+
* @internal
|
|
6350
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6351
|
+
*/
|
|
6352
|
+
export namespace Evaluations3$ {
|
|
6353
|
+
/** @deprecated use `Evaluations3$inboundSchema` instead. */
|
|
6354
|
+
export const inboundSchema = Evaluations3$inboundSchema;
|
|
6355
|
+
/** @deprecated use `Evaluations3$outboundSchema` instead. */
|
|
6356
|
+
export const outboundSchema = Evaluations3$outboundSchema;
|
|
6357
|
+
/** @deprecated use `Evaluations3$Outbound` instead. */
|
|
6358
|
+
export type Outbound = Evaluations3$Outbound;
|
|
6359
|
+
}
|
|
6360
|
+
|
|
6361
|
+
export function evaluations3ToJSON(evaluations3: Evaluations3): string {
|
|
6362
|
+
return JSON.stringify(Evaluations3$outboundSchema.parse(evaluations3));
|
|
6363
|
+
}
|
|
6364
|
+
|
|
6365
|
+
export function evaluations3FromJSON(
|
|
6366
|
+
jsonString: string,
|
|
6367
|
+
): SafeParseResult<Evaluations3, SDKValidationError> {
|
|
6368
|
+
return safeParse(
|
|
6369
|
+
jsonString,
|
|
6370
|
+
(x) => Evaluations3$inboundSchema.parse(JSON.parse(x)),
|
|
6371
|
+
`Failed to parse 'Evaluations3' from JSON`,
|
|
6372
|
+
);
|
|
6373
|
+
}
|
|
6374
|
+
|
|
6375
|
+
/** @internal */
|
|
6376
|
+
export const EvaluationsEvaluationType$inboundSchema: z.ZodNativeEnum<
|
|
6377
|
+
typeof EvaluationsEvaluationType
|
|
6378
|
+
> = z.nativeEnum(EvaluationsEvaluationType);
|
|
6379
|
+
|
|
6380
|
+
/** @internal */
|
|
6381
|
+
export const EvaluationsEvaluationType$outboundSchema: z.ZodNativeEnum<
|
|
6382
|
+
typeof EvaluationsEvaluationType
|
|
6383
|
+
> = EvaluationsEvaluationType$inboundSchema;
|
|
6384
|
+
|
|
6385
|
+
/**
|
|
6386
|
+
* @internal
|
|
6387
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6388
|
+
*/
|
|
6389
|
+
export namespace EvaluationsEvaluationType$ {
|
|
6390
|
+
/** @deprecated use `EvaluationsEvaluationType$inboundSchema` instead. */
|
|
6391
|
+
export const inboundSchema = EvaluationsEvaluationType$inboundSchema;
|
|
6392
|
+
/** @deprecated use `EvaluationsEvaluationType$outboundSchema` instead. */
|
|
6393
|
+
export const outboundSchema = EvaluationsEvaluationType$outboundSchema;
|
|
6394
|
+
}
|
|
6395
|
+
|
|
6396
|
+
/** @internal */
|
|
6397
|
+
export const EvaluationsSource$inboundSchema: z.ZodNativeEnum<
|
|
6398
|
+
typeof EvaluationsSource
|
|
6399
|
+
> = z.nativeEnum(EvaluationsSource);
|
|
6400
|
+
|
|
6401
|
+
/** @internal */
|
|
6402
|
+
export const EvaluationsSource$outboundSchema: z.ZodNativeEnum<
|
|
6403
|
+
typeof EvaluationsSource
|
|
6404
|
+
> = EvaluationsSource$inboundSchema;
|
|
6405
|
+
|
|
6406
|
+
/**
|
|
6407
|
+
* @internal
|
|
6408
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6409
|
+
*/
|
|
6410
|
+
export namespace EvaluationsSource$ {
|
|
6411
|
+
/** @deprecated use `EvaluationsSource$inboundSchema` instead. */
|
|
6412
|
+
export const inboundSchema = EvaluationsSource$inboundSchema;
|
|
6413
|
+
/** @deprecated use `EvaluationsSource$outboundSchema` instead. */
|
|
6414
|
+
export const outboundSchema = EvaluationsSource$outboundSchema;
|
|
6415
|
+
}
|
|
6416
|
+
|
|
6417
|
+
/** @internal */
|
|
6418
|
+
export const CreateDatasetItemEvaluationsType$inboundSchema: z.ZodNativeEnum<
|
|
6419
|
+
typeof CreateDatasetItemEvaluationsType
|
|
6420
|
+
> = z.nativeEnum(CreateDatasetItemEvaluationsType);
|
|
6421
|
+
|
|
6422
|
+
/** @internal */
|
|
6423
|
+
export const CreateDatasetItemEvaluationsType$outboundSchema: z.ZodNativeEnum<
|
|
6424
|
+
typeof CreateDatasetItemEvaluationsType
|
|
6425
|
+
> = CreateDatasetItemEvaluationsType$inboundSchema;
|
|
6426
|
+
|
|
6427
|
+
/**
|
|
6428
|
+
* @internal
|
|
6429
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6430
|
+
*/
|
|
6431
|
+
export namespace CreateDatasetItemEvaluationsType$ {
|
|
6432
|
+
/** @deprecated use `CreateDatasetItemEvaluationsType$inboundSchema` instead. */
|
|
6433
|
+
export const inboundSchema = CreateDatasetItemEvaluationsType$inboundSchema;
|
|
6434
|
+
/** @deprecated use `CreateDatasetItemEvaluationsType$outboundSchema` instead. */
|
|
6435
|
+
export const outboundSchema = CreateDatasetItemEvaluationsType$outboundSchema;
|
|
6436
|
+
}
|
|
6437
|
+
|
|
6438
|
+
/** @internal */
|
|
6439
|
+
export const Evaluations2$inboundSchema: z.ZodType<
|
|
6440
|
+
Evaluations2,
|
|
6441
|
+
z.ZodTypeDef,
|
|
6442
|
+
unknown
|
|
6443
|
+
> = z.object({
|
|
6444
|
+
id: z.string(),
|
|
6445
|
+
evaluation_type: EvaluationsEvaluationType$inboundSchema,
|
|
6446
|
+
human_review_id: z.string(),
|
|
6447
|
+
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
6448
|
+
reviewed_by_id: z.string(),
|
|
6449
|
+
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
6450
|
+
"2025-10-14T05:25:51.136Z",
|
|
6451
|
+
).transform(v => new Date(v)),
|
|
6452
|
+
type: CreateDatasetItemEvaluationsType$inboundSchema,
|
|
6453
|
+
value: z.number(),
|
|
6454
|
+
}).transform((v) => {
|
|
6455
|
+
return remap$(v, {
|
|
6456
|
+
"evaluation_type": "evaluationType",
|
|
6457
|
+
"human_review_id": "humanReviewId",
|
|
6458
|
+
"reviewed_by_id": "reviewedById",
|
|
6459
|
+
"reviewed_at": "reviewedAt",
|
|
6460
|
+
});
|
|
6461
|
+
});
|
|
6462
|
+
|
|
6463
|
+
/** @internal */
|
|
6464
|
+
export type Evaluations2$Outbound = {
|
|
6465
|
+
id: string;
|
|
6466
|
+
evaluation_type: string;
|
|
6467
|
+
human_review_id: string;
|
|
6468
|
+
source: string;
|
|
6469
|
+
reviewed_by_id: string;
|
|
6470
|
+
reviewed_at: string;
|
|
6471
|
+
type: string;
|
|
6472
|
+
value: number;
|
|
6473
|
+
};
|
|
6474
|
+
|
|
6475
|
+
/** @internal */
|
|
6476
|
+
export const Evaluations2$outboundSchema: z.ZodType<
|
|
6477
|
+
Evaluations2$Outbound,
|
|
6478
|
+
z.ZodTypeDef,
|
|
6479
|
+
Evaluations2
|
|
6480
|
+
> = z.object({
|
|
6481
|
+
id: z.string(),
|
|
6482
|
+
evaluationType: EvaluationsEvaluationType$outboundSchema,
|
|
6483
|
+
humanReviewId: z.string(),
|
|
6484
|
+
source: EvaluationsSource$outboundSchema.default("orq"),
|
|
6485
|
+
reviewedById: z.string(),
|
|
6486
|
+
reviewedAt: z.date().default(() => new Date("2025-10-14T05:25:51.136Z"))
|
|
6487
|
+
.transform(v => v.toISOString()),
|
|
6488
|
+
type: CreateDatasetItemEvaluationsType$outboundSchema,
|
|
6489
|
+
value: z.number(),
|
|
6490
|
+
}).transform((v) => {
|
|
6491
|
+
return remap$(v, {
|
|
6492
|
+
evaluationType: "evaluation_type",
|
|
6493
|
+
humanReviewId: "human_review_id",
|
|
6494
|
+
reviewedById: "reviewed_by_id",
|
|
6495
|
+
reviewedAt: "reviewed_at",
|
|
6496
|
+
});
|
|
6497
|
+
});
|
|
6498
|
+
|
|
6499
|
+
/**
|
|
6500
|
+
* @internal
|
|
6501
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6502
|
+
*/
|
|
6503
|
+
export namespace Evaluations2$ {
|
|
6504
|
+
/** @deprecated use `Evaluations2$inboundSchema` instead. */
|
|
6505
|
+
export const inboundSchema = Evaluations2$inboundSchema;
|
|
6506
|
+
/** @deprecated use `Evaluations2$outboundSchema` instead. */
|
|
6507
|
+
export const outboundSchema = Evaluations2$outboundSchema;
|
|
6508
|
+
/** @deprecated use `Evaluations2$Outbound` instead. */
|
|
6509
|
+
export type Outbound = Evaluations2$Outbound;
|
|
6510
|
+
}
|
|
6511
|
+
|
|
6512
|
+
export function evaluations2ToJSON(evaluations2: Evaluations2): string {
|
|
6513
|
+
return JSON.stringify(Evaluations2$outboundSchema.parse(evaluations2));
|
|
6514
|
+
}
|
|
6515
|
+
|
|
6516
|
+
export function evaluations2FromJSON(
|
|
6517
|
+
jsonString: string,
|
|
6518
|
+
): SafeParseResult<Evaluations2, SDKValidationError> {
|
|
6519
|
+
return safeParse(
|
|
6520
|
+
jsonString,
|
|
6521
|
+
(x) => Evaluations2$inboundSchema.parse(JSON.parse(x)),
|
|
6522
|
+
`Failed to parse 'Evaluations2' from JSON`,
|
|
6523
|
+
);
|
|
6524
|
+
}
|
|
6525
|
+
|
|
6526
|
+
/** @internal */
|
|
6527
|
+
export const EvaluationType$inboundSchema: z.ZodNativeEnum<
|
|
6528
|
+
typeof EvaluationType
|
|
6529
|
+
> = z.nativeEnum(EvaluationType);
|
|
6530
|
+
|
|
6531
|
+
/** @internal */
|
|
6532
|
+
export const EvaluationType$outboundSchema: z.ZodNativeEnum<
|
|
6533
|
+
typeof EvaluationType
|
|
6534
|
+
> = EvaluationType$inboundSchema;
|
|
6535
|
+
|
|
6536
|
+
/**
|
|
6537
|
+
* @internal
|
|
6538
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6539
|
+
*/
|
|
6540
|
+
export namespace EvaluationType$ {
|
|
6541
|
+
/** @deprecated use `EvaluationType$inboundSchema` instead. */
|
|
6542
|
+
export const inboundSchema = EvaluationType$inboundSchema;
|
|
6543
|
+
/** @deprecated use `EvaluationType$outboundSchema` instead. */
|
|
6544
|
+
export const outboundSchema = EvaluationType$outboundSchema;
|
|
6545
|
+
}
|
|
6546
|
+
|
|
6547
|
+
/** @internal */
|
|
6548
|
+
export const Source$inboundSchema: z.ZodNativeEnum<typeof Source> = z
|
|
6549
|
+
.nativeEnum(Source);
|
|
6550
|
+
|
|
6551
|
+
/** @internal */
|
|
6552
|
+
export const Source$outboundSchema: z.ZodNativeEnum<typeof Source> =
|
|
6553
|
+
Source$inboundSchema;
|
|
6554
|
+
|
|
6555
|
+
/**
|
|
6556
|
+
* @internal
|
|
6557
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6558
|
+
*/
|
|
6559
|
+
export namespace Source$ {
|
|
6560
|
+
/** @deprecated use `Source$inboundSchema` instead. */
|
|
6561
|
+
export const inboundSchema = Source$inboundSchema;
|
|
6562
|
+
/** @deprecated use `Source$outboundSchema` instead. */
|
|
6563
|
+
export const outboundSchema = Source$outboundSchema;
|
|
6564
|
+
}
|
|
6565
|
+
|
|
6566
|
+
/** @internal */
|
|
6567
|
+
export const EvaluationsType$inboundSchema: z.ZodNativeEnum<
|
|
6568
|
+
typeof EvaluationsType
|
|
6569
|
+
> = z.nativeEnum(EvaluationsType);
|
|
6570
|
+
|
|
6571
|
+
/** @internal */
|
|
6572
|
+
export const EvaluationsType$outboundSchema: z.ZodNativeEnum<
|
|
6573
|
+
typeof EvaluationsType
|
|
6574
|
+
> = EvaluationsType$inboundSchema;
|
|
6575
|
+
|
|
6576
|
+
/**
|
|
6577
|
+
* @internal
|
|
6578
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6579
|
+
*/
|
|
6580
|
+
export namespace EvaluationsType$ {
|
|
6581
|
+
/** @deprecated use `EvaluationsType$inboundSchema` instead. */
|
|
6582
|
+
export const inboundSchema = EvaluationsType$inboundSchema;
|
|
6583
|
+
/** @deprecated use `EvaluationsType$outboundSchema` instead. */
|
|
6584
|
+
export const outboundSchema = EvaluationsType$outboundSchema;
|
|
6585
|
+
}
|
|
6586
|
+
|
|
6587
|
+
/** @internal */
|
|
6588
|
+
export const Evaluations1$inboundSchema: z.ZodType<
|
|
6589
|
+
Evaluations1,
|
|
6590
|
+
z.ZodTypeDef,
|
|
6591
|
+
unknown
|
|
6592
|
+
> = z.object({
|
|
6593
|
+
id: z.string(),
|
|
6594
|
+
evaluation_type: EvaluationType$inboundSchema,
|
|
6595
|
+
human_review_id: z.string(),
|
|
6596
|
+
source: Source$inboundSchema.default("orq"),
|
|
6597
|
+
reviewed_by_id: z.string(),
|
|
6598
|
+
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
6599
|
+
"2025-10-14T05:25:51.136Z",
|
|
6600
|
+
).transform(v => new Date(v)),
|
|
6601
|
+
type: EvaluationsType$inboundSchema,
|
|
6602
|
+
value: z.string(),
|
|
6603
|
+
}).transform((v) => {
|
|
6604
|
+
return remap$(v, {
|
|
6605
|
+
"evaluation_type": "evaluationType",
|
|
6606
|
+
"human_review_id": "humanReviewId",
|
|
6607
|
+
"reviewed_by_id": "reviewedById",
|
|
6608
|
+
"reviewed_at": "reviewedAt",
|
|
6609
|
+
});
|
|
6610
|
+
});
|
|
6611
|
+
|
|
6612
|
+
/** @internal */
|
|
6613
|
+
export type Evaluations1$Outbound = {
|
|
6614
|
+
id: string;
|
|
6615
|
+
evaluation_type: string;
|
|
6616
|
+
human_review_id: string;
|
|
6617
|
+
source: string;
|
|
6618
|
+
reviewed_by_id: string;
|
|
6619
|
+
reviewed_at: string;
|
|
6620
|
+
type: string;
|
|
6621
|
+
value: string;
|
|
6622
|
+
};
|
|
6623
|
+
|
|
6624
|
+
/** @internal */
|
|
6625
|
+
export const Evaluations1$outboundSchema: z.ZodType<
|
|
6626
|
+
Evaluations1$Outbound,
|
|
6627
|
+
z.ZodTypeDef,
|
|
6628
|
+
Evaluations1
|
|
6629
|
+
> = z.object({
|
|
6630
|
+
id: z.string(),
|
|
6631
|
+
evaluationType: EvaluationType$outboundSchema,
|
|
6632
|
+
humanReviewId: z.string(),
|
|
6633
|
+
source: Source$outboundSchema.default("orq"),
|
|
6634
|
+
reviewedById: z.string(),
|
|
6635
|
+
reviewedAt: z.date().default(() => new Date("2025-10-14T05:25:51.136Z"))
|
|
6636
|
+
.transform(v => v.toISOString()),
|
|
6637
|
+
type: EvaluationsType$outboundSchema,
|
|
6638
|
+
value: z.string(),
|
|
6639
|
+
}).transform((v) => {
|
|
6640
|
+
return remap$(v, {
|
|
6641
|
+
evaluationType: "evaluation_type",
|
|
6642
|
+
humanReviewId: "human_review_id",
|
|
6643
|
+
reviewedById: "reviewed_by_id",
|
|
6644
|
+
reviewedAt: "reviewed_at",
|
|
6645
|
+
});
|
|
6646
|
+
});
|
|
6647
|
+
|
|
6648
|
+
/**
|
|
6649
|
+
* @internal
|
|
6650
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6651
|
+
*/
|
|
6652
|
+
export namespace Evaluations1$ {
|
|
6653
|
+
/** @deprecated use `Evaluations1$inboundSchema` instead. */
|
|
6654
|
+
export const inboundSchema = Evaluations1$inboundSchema;
|
|
6655
|
+
/** @deprecated use `Evaluations1$outboundSchema` instead. */
|
|
6656
|
+
export const outboundSchema = Evaluations1$outboundSchema;
|
|
6657
|
+
/** @deprecated use `Evaluations1$Outbound` instead. */
|
|
6658
|
+
export type Outbound = Evaluations1$Outbound;
|
|
6659
|
+
}
|
|
6660
|
+
|
|
6661
|
+
export function evaluations1ToJSON(evaluations1: Evaluations1): string {
|
|
6662
|
+
return JSON.stringify(Evaluations1$outboundSchema.parse(evaluations1));
|
|
6663
|
+
}
|
|
6664
|
+
|
|
6665
|
+
export function evaluations1FromJSON(
|
|
6666
|
+
jsonString: string,
|
|
6667
|
+
): SafeParseResult<Evaluations1, SDKValidationError> {
|
|
6668
|
+
return safeParse(
|
|
6669
|
+
jsonString,
|
|
6670
|
+
(x) => Evaluations1$inboundSchema.parse(JSON.parse(x)),
|
|
6671
|
+
`Failed to parse 'Evaluations1' from JSON`,
|
|
6672
|
+
);
|
|
6673
|
+
}
|
|
6674
|
+
|
|
6675
|
+
/** @internal */
|
|
6676
|
+
export const Evaluations$inboundSchema: z.ZodType<
|
|
6677
|
+
Evaluations,
|
|
6678
|
+
z.ZodTypeDef,
|
|
6679
|
+
unknown
|
|
6680
|
+
> = z.union([
|
|
6681
|
+
z.lazy(() => Evaluations1$inboundSchema),
|
|
6682
|
+
z.lazy(() => Evaluations2$inboundSchema),
|
|
6683
|
+
z.lazy(() => Evaluations3$inboundSchema),
|
|
6684
|
+
]);
|
|
6685
|
+
|
|
6686
|
+
/** @internal */
|
|
6687
|
+
export type Evaluations$Outbound =
|
|
6688
|
+
| Evaluations1$Outbound
|
|
6689
|
+
| Evaluations2$Outbound
|
|
6690
|
+
| Evaluations3$Outbound;
|
|
6691
|
+
|
|
6692
|
+
/** @internal */
|
|
6693
|
+
export const Evaluations$outboundSchema: z.ZodType<
|
|
6694
|
+
Evaluations$Outbound,
|
|
6695
|
+
z.ZodTypeDef,
|
|
6696
|
+
Evaluations
|
|
6697
|
+
> = z.union([
|
|
6698
|
+
z.lazy(() => Evaluations1$outboundSchema),
|
|
6699
|
+
z.lazy(() => Evaluations2$outboundSchema),
|
|
6700
|
+
z.lazy(() => Evaluations3$outboundSchema),
|
|
6701
|
+
]);
|
|
6702
|
+
|
|
6703
|
+
/**
|
|
6704
|
+
* @internal
|
|
6705
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6706
|
+
*/
|
|
6707
|
+
export namespace Evaluations$ {
|
|
6708
|
+
/** @deprecated use `Evaluations$inboundSchema` instead. */
|
|
6709
|
+
export const inboundSchema = Evaluations$inboundSchema;
|
|
6710
|
+
/** @deprecated use `Evaluations$outboundSchema` instead. */
|
|
6711
|
+
export const outboundSchema = Evaluations$outboundSchema;
|
|
6712
|
+
/** @deprecated use `Evaluations$Outbound` instead. */
|
|
6713
|
+
export type Outbound = Evaluations$Outbound;
|
|
6714
|
+
}
|
|
6715
|
+
|
|
6716
|
+
export function evaluationsToJSON(evaluations: Evaluations): string {
|
|
6717
|
+
return JSON.stringify(Evaluations$outboundSchema.parse(evaluations));
|
|
6718
|
+
}
|
|
6719
|
+
|
|
6720
|
+
export function evaluationsFromJSON(
|
|
6721
|
+
jsonString: string,
|
|
6722
|
+
): SafeParseResult<Evaluations, SDKValidationError> {
|
|
6723
|
+
return safeParse(
|
|
6724
|
+
jsonString,
|
|
6725
|
+
(x) => Evaluations$inboundSchema.parse(JSON.parse(x)),
|
|
6726
|
+
`Failed to parse 'Evaluations' from JSON`,
|
|
6727
|
+
);
|
|
6728
|
+
}
|
|
6729
|
+
|
|
6055
6730
|
/** @internal */
|
|
6056
6731
|
export const ResponseBody$inboundSchema: z.ZodType<
|
|
6057
6732
|
ResponseBody,
|
|
@@ -6077,13 +6752,21 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
6077
6752
|
]),
|
|
6078
6753
|
).optional(),
|
|
6079
6754
|
expected_output: z.string().optional(),
|
|
6755
|
+
evaluations: z.array(
|
|
6756
|
+
z.union([
|
|
6757
|
+
z.lazy(() => Evaluations1$inboundSchema),
|
|
6758
|
+
z.lazy(() => Evaluations2$inboundSchema),
|
|
6759
|
+
z.lazy(() => Evaluations3$inboundSchema),
|
|
6760
|
+
]),
|
|
6761
|
+
).optional(),
|
|
6080
6762
|
dataset_id: z.string(),
|
|
6763
|
+
snapshot_version: z.string().optional(),
|
|
6081
6764
|
created_by_id: z.string().optional(),
|
|
6082
6765
|
updated_by_id: z.string().optional(),
|
|
6083
6766
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
6084
6767
|
.optional(),
|
|
6085
6768
|
updated: z.string().datetime({ offset: true }).default(
|
|
6086
|
-
"2025-10-
|
|
6769
|
+
"2025-10-14T05:25:41.367Z",
|
|
6087
6770
|
).transform(v => new Date(v)),
|
|
6088
6771
|
}).transform((v) => {
|
|
6089
6772
|
return remap$(v, {
|
|
@@ -6091,6 +6774,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
6091
6774
|
"workspace_id": "workspaceId",
|
|
6092
6775
|
"expected_output": "expectedOutput",
|
|
6093
6776
|
"dataset_id": "datasetId",
|
|
6777
|
+
"snapshot_version": "snapshotVersion",
|
|
6094
6778
|
"created_by_id": "createdById",
|
|
6095
6779
|
"updated_by_id": "updatedById",
|
|
6096
6780
|
});
|
|
@@ -6111,7 +6795,13 @@ export type ResponseBody$Outbound = {
|
|
|
6111
6795
|
>
|
|
6112
6796
|
| undefined;
|
|
6113
6797
|
expected_output?: string | undefined;
|
|
6798
|
+
evaluations?:
|
|
6799
|
+
| Array<
|
|
6800
|
+
Evaluations1$Outbound | Evaluations2$Outbound | Evaluations3$Outbound
|
|
6801
|
+
>
|
|
6802
|
+
| undefined;
|
|
6114
6803
|
dataset_id: string;
|
|
6804
|
+
snapshot_version?: string | undefined;
|
|
6115
6805
|
created_by_id?: string | undefined;
|
|
6116
6806
|
updated_by_id?: string | undefined;
|
|
6117
6807
|
created?: string | undefined;
|
|
@@ -6143,11 +6833,19 @@ export const ResponseBody$outboundSchema: z.ZodType<
|
|
|
6143
6833
|
]),
|
|
6144
6834
|
).optional(),
|
|
6145
6835
|
expectedOutput: z.string().optional(),
|
|
6836
|
+
evaluations: z.array(
|
|
6837
|
+
z.union([
|
|
6838
|
+
z.lazy(() => Evaluations1$outboundSchema),
|
|
6839
|
+
z.lazy(() => Evaluations2$outboundSchema),
|
|
6840
|
+
z.lazy(() => Evaluations3$outboundSchema),
|
|
6841
|
+
]),
|
|
6842
|
+
).optional(),
|
|
6146
6843
|
datasetId: z.string(),
|
|
6844
|
+
snapshotVersion: z.string().optional(),
|
|
6147
6845
|
createdById: z.string().optional(),
|
|
6148
6846
|
updatedById: z.string().optional(),
|
|
6149
6847
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
6150
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
6848
|
+
updated: z.date().default(() => new Date("2025-10-14T05:25:41.367Z"))
|
|
6151
6849
|
.transform(v => v.toISOString()),
|
|
6152
6850
|
}).transform((v) => {
|
|
6153
6851
|
return remap$(v, {
|
|
@@ -6155,6 +6853,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
|
|
|
6155
6853
|
workspaceId: "workspace_id",
|
|
6156
6854
|
expectedOutput: "expected_output",
|
|
6157
6855
|
datasetId: "dataset_id",
|
|
6856
|
+
snapshotVersion: "snapshot_version",
|
|
6158
6857
|
createdById: "created_by_id",
|
|
6159
6858
|
updatedById: "updated_by_id",
|
|
6160
6859
|
});
|