@orq-ai/node 4.15.0-rc.2 → 4.15.0-rc.21
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/FUNCTIONS.md +3 -3
- package/README.md +101 -90
- package/examples/{evalsAll.example.ts → deploymentsList.example.ts} +2 -2
- package/funcs/annotationQueuesAddItems.d.ts +3 -2
- package/funcs/annotationQueuesAddItems.d.ts.map +1 -1
- package/funcs/annotationQueuesAddItems.js +6 -4
- package/funcs/annotationQueuesAddItems.js.map +1 -1
- package/funcs/annotationQueuesClear.d.ts +4 -3
- package/funcs/annotationQueuesClear.d.ts.map +1 -1
- package/funcs/annotationQueuesClear.js +5 -5
- package/funcs/annotationQueuesClear.js.map +1 -1
- package/funcs/annotationQueuesCreate.d.ts +3 -3
- package/funcs/annotationQueuesCreate.d.ts.map +1 -1
- package/funcs/annotationQueuesCreate.js +5 -8
- package/funcs/annotationQueuesCreate.js.map +1 -1
- package/funcs/annotationQueuesDelete.d.ts +3 -2
- package/funcs/annotationQueuesDelete.d.ts.map +1 -1
- package/funcs/annotationQueuesDelete.js +4 -4
- package/funcs/annotationQueuesDelete.js.map +1 -1
- package/funcs/annotationQueuesList.d.ts +3 -2
- package/funcs/annotationQueuesList.d.ts.map +1 -1
- package/funcs/annotationQueuesList.js +3 -2
- package/funcs/annotationQueuesList.js.map +1 -1
- package/funcs/annotationQueuesListItems.d.ts +3 -2
- package/funcs/annotationQueuesListItems.d.ts.map +1 -1
- package/funcs/annotationQueuesListItems.js +3 -2
- package/funcs/annotationQueuesListItems.js.map +1 -1
- package/funcs/annotationQueuesRemoveItems.d.ts +4 -3
- package/funcs/annotationQueuesRemoveItems.d.ts.map +1 -1
- package/funcs/annotationQueuesRemoveItems.js +8 -6
- package/funcs/annotationQueuesRemoveItems.js.map +1 -1
- package/funcs/annotationQueuesRetrieve.d.ts +3 -2
- package/funcs/annotationQueuesRetrieve.d.ts.map +1 -1
- package/funcs/annotationQueuesRetrieve.js +3 -2
- package/funcs/annotationQueuesRetrieve.js.map +1 -1
- package/funcs/annotationQueuesRetrieveItem.d.ts +2 -3
- package/funcs/annotationQueuesRetrieveItem.d.ts.map +1 -1
- package/funcs/annotationQueuesRetrieveItem.js +2 -3
- package/funcs/annotationQueuesRetrieveItem.js.map +1 -1
- package/funcs/annotationQueuesUpdate.d.ts +4 -3
- package/funcs/annotationQueuesUpdate.d.ts.map +1 -1
- package/funcs/annotationQueuesUpdate.js +7 -4
- package/funcs/annotationQueuesUpdate.js.map +1 -1
- package/funcs/auditLogsQuery.d.ts +17 -0
- package/funcs/auditLogsQuery.d.ts.map +1 -0
- package/funcs/{deploymentsInvoke.js → auditLogsQuery.js} +9 -10
- package/funcs/auditLogsQuery.js.map +1 -0
- package/funcs/evalsAll.d.ts +2 -2
- package/funcs/evalsAll.d.ts.map +1 -1
- package/funcs/evalsAll.js +2 -5
- package/funcs/evalsAll.js.map +1 -1
- package/funcs/evalsCreate.d.ts +2 -2
- package/funcs/evalsCreate.d.ts.map +1 -1
- package/funcs/evalsCreate.js +5 -20
- package/funcs/evalsCreate.js.map +1 -1
- package/funcs/evalsDelete.d.ts +2 -2
- package/funcs/evalsDelete.d.ts.map +1 -1
- package/funcs/evalsDelete.js +2 -6
- package/funcs/evalsDelete.js.map +1 -1
- package/funcs/evalsGet.d.ts +2 -2
- package/funcs/evalsGet.d.ts.map +1 -1
- package/funcs/evalsGet.js +2 -5
- package/funcs/evalsGet.js.map +1 -1
- package/funcs/{deploymentsInvoke.d.ts → evalsGetVersion.d.ts} +4 -4
- package/funcs/evalsGetVersion.d.ts.map +1 -0
- package/funcs/evalsGetVersion.js +125 -0
- package/funcs/evalsGetVersion.js.map +1 -0
- package/funcs/evalsListVersions.d.ts +3 -3
- package/funcs/evalsListVersions.d.ts.map +1 -1
- package/funcs/evalsListVersions.js +5 -8
- package/funcs/evalsListVersions.js.map +1 -1
- package/funcs/evalsUpdate.d.ts +2 -2
- package/funcs/evalsUpdate.d.ts.map +1 -1
- package/funcs/evalsUpdate.js +2 -5
- package/funcs/evalsUpdate.js.map +1 -1
- package/funcs/knowledgePreviewChunks.d.ts +18 -0
- package/funcs/knowledgePreviewChunks.d.ts.map +1 -0
- package/funcs/{deploymentsStream.js → knowledgePreviewChunks.js} +18 -25
- package/funcs/knowledgePreviewChunks.js.map +1 -0
- package/funcs/logsListFacets.d.ts +2 -3
- package/funcs/logsListFacets.d.ts.map +1 -1
- package/funcs/logsListFacets.js +5 -12
- package/funcs/logsListFacets.js.map +1 -1
- package/funcs/reportingQuery.d.ts +1 -1
- package/funcs/reportingQuery.js +1 -1
- package/funcs/tracesAggregate.d.ts +1 -1
- package/funcs/tracesAggregate.js +1 -1
- package/funcs/workspacesGet.d.ts +18 -0
- package/funcs/workspacesGet.d.ts.map +1 -0
- package/funcs/workspacesGet.js +121 -0
- package/funcs/workspacesGet.js.map +1 -0
- package/funcs/workspacesList.d.ts +18 -0
- package/funcs/workspacesList.d.ts.map +1 -0
- package/funcs/workspacesList.js +121 -0
- package/funcs/workspacesList.js.map +1 -0
- package/funcs/{deploymentsStream.d.ts → workspacesUpdate.d.ts} +5 -5
- package/funcs/workspacesUpdate.d.ts.map +1 -0
- package/funcs/workspacesUpdate.js +124 -0
- package/funcs/workspacesUpdate.js.map +1 -0
- 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/lib/encodings.d.ts +10 -9
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +29 -13
- package/lib/encodings.js.map +1 -1
- package/models/components/addannotationqueueitemsrequest.d.ts +16 -0
- package/models/components/addannotationqueueitemsrequest.d.ts.map +1 -0
- package/models/components/addannotationqueueitemsrequest.js +50 -0
- package/models/components/addannotationqueueitemsrequest.js.map +1 -0
- package/models/components/addannotationqueueitemsresponse.d.ts +14 -0
- package/models/components/addannotationqueueitemsresponse.d.ts.map +1 -0
- package/models/components/addannotationqueueitemsresponse.js +51 -0
- package/models/components/addannotationqueueitemsresponse.js.map +1 -0
- package/models/components/agentresponserequest.d.ts +20 -20
- package/models/components/agentresponserequest.d.ts.map +1 -1
- package/models/components/agentresponserequest.js +20 -20
- package/models/components/agentresponserequest.js.map +1 -1
- package/models/components/agentthoughtstreamingevent.d.ts +12 -12
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
- package/models/components/agentthoughtstreamingevent.js +17 -17
- package/models/components/agentthoughtstreamingevent.js.map +1 -1
- package/models/components/annotationqueue.d.ts +54 -0
- package/models/components/annotationqueue.d.ts.map +1 -0
- package/models/components/{evaluatorresponsehttp.js → annotationqueue.js} +22 -25
- package/models/components/annotationqueue.js.map +1 -0
- package/models/components/annotationqueueitem.d.ts +41 -0
- package/models/components/annotationqueueitem.d.ts.map +1 -0
- package/models/components/{evaluatorresponsepython.js → annotationqueueitem.js} +19 -18
- package/models/components/annotationqueueitem.js.map +1 -0
- package/models/components/annotationqueueitemref.d.ts +17 -0
- package/models/components/annotationqueueitemref.d.ts.map +1 -0
- package/models/{errors/getevals.js → components/annotationqueueitemref.js} +14 -26
- package/models/components/annotationqueueitemref.js.map +1 -0
- package/models/components/annotationqueuemetadata.d.ts +16 -0
- package/models/components/annotationqueuemetadata.d.ts.map +1 -0
- package/models/components/{evaluatorresponsejsonschema.js → annotationqueuemetadata.js} +8 -20
- package/models/components/annotationqueuemetadata.js.map +1 -0
- package/models/components/auditlog.d.ts +60 -0
- package/models/components/auditlog.d.ts.map +1 -0
- package/models/components/{evaluatorresponseragas.js → auditlog.js} +33 -36
- package/models/components/auditlog.js.map +1 -0
- package/models/components/auditlogfilter.d.ts +33 -0
- package/models/components/auditlogfilter.d.ts.map +1 -0
- package/models/components/auditlogfilter.js +52 -0
- package/models/components/auditlogfilter.js.map +1 -0
- package/models/components/auditlogfilterquery.d.ts +29 -0
- package/models/components/auditlogfilterquery.d.ts.map +1 -0
- package/models/components/auditlogfilterquery.js +52 -0
- package/models/components/auditlogfilterquery.js.map +1 -0
- package/models/components/auditlogpagination.d.ts +28 -0
- package/models/components/auditlogpagination.d.ts.map +1 -0
- package/models/{errors/createeval.js → components/auditlogpagination.js} +15 -26
- package/models/components/auditlogpagination.js.map +1 -0
- package/models/components/auditlogsort.d.ts +23 -0
- package/models/components/auditlogsort.d.ts.map +1 -0
- package/models/components/auditlogsort.js +50 -0
- package/models/components/auditlogsort.js.map +1 -0
- package/models/components/budgetmatch.d.ts +1 -7
- package/models/components/budgetmatch.d.ts.map +1 -1
- package/models/components/budgetmatch.js.map +1 -1
- package/models/components/budgetscope.d.ts +1 -5
- package/models/components/budgetscope.d.ts.map +1 -1
- package/models/components/budgetscope.js.map +1 -1
- package/models/components/budgetscoperestresponse.d.ts +1 -5
- package/models/components/budgetscoperestresponse.d.ts.map +1 -1
- package/models/components/budgetscoperestresponse.js.map +1 -1
- package/models/components/chunkingconfiguration.d.ts +263 -4
- package/models/components/chunkingconfiguration.d.ts.map +1 -1
- package/models/components/chunkingconfiguration.js +144 -1
- package/models/components/chunkingconfiguration.js.map +1 -1
- package/models/components/clearannotationqueueresponse.d.ts +8 -0
- package/models/components/clearannotationqueueresponse.d.ts.map +1 -0
- package/models/components/clearannotationqueueresponse.js +48 -0
- package/models/components/clearannotationqueueresponse.js.map +1 -0
- package/models/components/createannotationqueuerequest.d.ts +25 -0
- package/models/components/createannotationqueuerequest.d.ts.map +1 -0
- package/models/components/createannotationqueuerequest.js +57 -0
- package/models/components/createannotationqueuerequest.js.map +1 -0
- package/models/components/createapikeyrequest.d.ts +12 -0
- package/models/components/createapikeyrequest.d.ts.map +1 -1
- package/models/components/createapikeyrequest.js +1 -0
- package/models/components/createapikeyrequest.js.map +1 -1
- package/models/components/createmcpgatewayrequest.d.ts +6 -0
- package/models/components/createmcpgatewayrequest.d.ts.map +1 -1
- package/models/components/createmcpgatewayrequest.js +2 -0
- package/models/components/createmcpgatewayrequest.js.map +1 -1
- package/models/components/datasourcesservicepreviewchunksrequest.d.ts +15 -0
- package/models/components/datasourcesservicepreviewchunksrequest.d.ts.map +1 -0
- package/models/{errors/geteval.js → components/datasourcesservicepreviewchunksrequest.js} +15 -26
- package/models/components/datasourcesservicepreviewchunksrequest.js.map +1 -0
- package/models/components/datasourcesservicepreviewchunksresponse.d.ts +13 -0
- package/models/components/datasourcesservicepreviewchunksresponse.d.ts.map +1 -0
- package/models/components/datasourcesservicepreviewchunksresponse.js +53 -0
- package/models/components/datasourcesservicepreviewchunksresponse.js.map +1 -0
- package/models/components/deleteannotationqueueresponse.d.ts +8 -0
- package/models/components/deleteannotationqueueresponse.d.ts.map +1 -0
- package/models/components/deleteannotationqueueresponse.js +48 -0
- package/models/components/deleteannotationqueueresponse.js.map +1 -0
- package/models/components/deleteevaluatorresponse.d.ts +8 -0
- package/models/components/deleteevaluatorresponse.d.ts.map +1 -0
- package/models/components/deleteevaluatorresponse.js +48 -0
- package/models/components/deleteevaluatorresponse.js.map +1 -0
- package/models/components/evaluationcontext.d.ts +6 -6
- package/models/components/evaluationcontext.d.ts.map +1 -1
- package/models/components/evaluationcontext.js +6 -7
- package/models/components/evaluationcontext.js.map +1 -1
- package/models/components/evaluatordocumentresponse.d.ts +14 -0
- package/models/components/evaluatordocumentresponse.d.ts.map +1 -0
- package/models/components/evaluatordocumentresponse.js +56 -0
- package/models/components/evaluatordocumentresponse.js.map +1 -0
- package/models/components/filesystemtoolinput.d.ts +39 -9
- package/models/components/filesystemtoolinput.d.ts.map +1 -1
- package/models/components/filesystemtoolinput.js +28 -2
- package/models/components/filesystemtoolinput.js.map +1 -1
- package/models/components/getevaluatorversionresponse.d.ts +20 -0
- package/models/components/getevaluatorversionresponse.d.ts.map +1 -0
- package/models/components/getevaluatorversionresponse.js +57 -0
- package/models/components/getevaluatorversionresponse.js.map +1 -0
- package/models/components/getuploadfileurlresponse.d.ts +4 -0
- package/models/components/getuploadfileurlresponse.d.ts.map +1 -1
- package/models/components/getuploadfileurlresponse.js +1 -0
- package/models/components/getuploadfileurlresponse.js.map +1 -1
- package/models/components/getworkspaceresponse.d.ts +11 -0
- package/models/components/getworkspaceresponse.d.ts.map +1 -0
- package/models/components/getworkspaceresponse.js +51 -0
- package/models/components/getworkspaceresponse.js.map +1 -0
- package/models/components/index.d.ts +41 -9
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +41 -9
- package/models/components/index.js.map +1 -1
- package/models/components/listannotationqueueitemsresponse.d.ts +22 -0
- package/models/components/listannotationqueueitemsresponse.d.ts.map +1 -0
- package/models/components/{evaluatorresponsetypescript.js → listannotationqueueitemsresponse.js} +11 -20
- package/models/components/listannotationqueueitemsresponse.js.map +1 -0
- package/models/components/listannotationqueuesresponse.d.ts +22 -0
- package/models/components/listannotationqueuesresponse.d.ts.map +1 -0
- package/models/components/listannotationqueuesresponse.js +58 -0
- package/models/components/listannotationqueuesresponse.js.map +1 -0
- package/models/components/listevaluatorsresponse.d.ts +16 -0
- package/models/components/listevaluatorsresponse.d.ts.map +1 -0
- package/models/components/listevaluatorsresponse.js +63 -0
- package/models/components/listevaluatorsresponse.js.map +1 -0
- package/models/components/listevaluatorversionsresponse.d.ts +16 -0
- package/models/components/listevaluatorversionsresponse.d.ts.map +1 -0
- package/models/components/listevaluatorversionsresponse.js +63 -0
- package/models/components/listevaluatorversionsresponse.js.map +1 -0
- package/models/{operations/listlogfacets.d.ts → components/listlogfacetsrequest.d.ts} +8 -1
- package/models/components/listlogfacetsrequest.d.ts.map +1 -0
- package/models/{operations/listlogfacets.js → components/listlogfacetsrequest.js} +6 -1
- package/models/components/listlogfacetsrequest.js.map +1 -0
- package/models/components/listworkspacesresponse.d.ts +13 -0
- package/models/components/listworkspacesresponse.d.ts.map +1 -0
- package/models/components/listworkspacesresponse.js +58 -0
- package/models/components/listworkspacesresponse.js.map +1 -0
- package/models/components/mcpgateway.d.ts +5 -0
- package/models/components/mcpgateway.d.ts.map +1 -1
- package/models/components/mcpgateway.js +2 -0
- package/models/components/mcpgateway.js.map +1 -1
- package/models/components/mcpgatewayplugin.d.ts +30 -0
- package/models/components/mcpgatewayplugin.d.ts.map +1 -0
- package/models/components/mcpgatewayplugin.js +77 -0
- package/models/components/mcpgatewayplugin.js.map +1 -0
- package/models/components/modelmetadata.d.ts +2 -0
- package/models/components/modelmetadata.d.ts.map +1 -1
- package/models/components/modelmetadata.js +4 -0
- package/models/components/modelmetadata.js.map +1 -1
- package/models/components/modelsconfig.d.ts +5 -5
- package/models/components/modelsconfig.d.ts.map +1 -1
- package/models/components/modelsconfig.js +6 -6
- package/models/components/modelsconfig.js.map +1 -1
- package/models/components/monitorfilter.d.ts +8 -0
- package/models/components/monitorfilter.d.ts.map +1 -1
- package/models/components/monitorfilter.js +8 -0
- package/models/components/monitorfilter.js.map +1 -1
- package/models/components/piiredactionconfig.d.ts +7 -9
- package/models/components/piiredactionconfig.d.ts.map +1 -1
- package/models/components/piiredactionconfig.js.map +1 -1
- package/models/components/previewchunk.d.ts +11 -0
- package/models/components/previewchunk.d.ts.map +1 -0
- package/models/components/previewchunk.js +56 -0
- package/models/components/previewchunk.js.map +1 -0
- package/models/components/previewchunksmetadata.d.ts +15 -0
- package/models/components/previewchunksmetadata.d.ts.map +1 -0
- package/models/components/previewchunksmetadata.js +65 -0
- package/models/components/previewchunksmetadata.js.map +1 -0
- package/models/components/pricing.d.ts +4 -0
- package/models/components/pricing.d.ts.map +1 -1
- package/models/components/pricing.js +8 -0
- package/models/components/pricing.js.map +1 -1
- package/models/components/pricingvariant.d.ts +4 -0
- package/models/components/pricingvariant.d.ts.map +1 -1
- package/models/components/pricingvariant.js +8 -0
- package/models/components/pricingvariant.js.map +1 -1
- package/models/components/queryauditlogsrequest.d.ts +31 -0
- package/models/components/queryauditlogsrequest.d.ts.map +1 -0
- package/models/components/queryauditlogsrequest.js +54 -0
- package/models/components/queryauditlogsrequest.js.map +1 -0
- package/models/components/queryauditlogsresponse.d.ts +25 -0
- package/models/components/queryauditlogsresponse.d.ts.map +1 -0
- package/models/components/queryauditlogsresponse.js +60 -0
- package/models/components/queryauditlogsresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/removeannotationqueueitemsrequest.d.ts +15 -0
- package/models/components/removeannotationqueueitemsrequest.d.ts.map +1 -0
- package/models/components/removeannotationqueueitemsrequest.js +54 -0
- package/models/components/removeannotationqueueitemsrequest.js.map +1 -0
- package/models/components/removeannotationqueueitemsresponse.d.ts +8 -0
- package/models/components/removeannotationqueueitemsresponse.d.ts.map +1 -0
- package/models/{errors/updateeval.js → components/removeannotationqueueitemsresponse.js} +8 -28
- package/models/components/removeannotationqueueitemsresponse.js.map +1 -0
- package/models/components/searchknowledgerequest.d.ts +184 -184
- package/models/components/searchknowledgerequest.d.ts.map +1 -1
- package/models/components/searchknowledgerequest.js +229 -217
- package/models/components/searchknowledgerequest.js.map +1 -1
- package/models/components/textcontentpartschema.d.ts +10 -10
- package/models/components/textcontentpartschema.d.ts.map +1 -1
- package/models/components/textcontentpartschema.js +11 -11
- package/models/components/textcontentpartschema.js.map +1 -1
- package/models/components/updateannotationqueuerequest.d.ts +30 -0
- package/models/components/updateannotationqueuerequest.d.ts.map +1 -0
- package/models/components/updateannotationqueuerequest.js +59 -0
- package/models/components/updateannotationqueuerequest.js.map +1 -0
- package/models/components/updatemcpgatewayrequest.d.ts +6 -0
- package/models/components/updatemcpgatewayrequest.d.ts.map +1 -1
- package/models/components/updatemcpgatewayrequest.js +2 -0
- package/models/components/updatemcpgatewayrequest.js.map +1 -1
- package/models/components/updateworkspacerequest.d.ts +29 -0
- package/models/components/updateworkspacerequest.d.ts.map +1 -0
- package/models/components/updateworkspacerequest.js +69 -0
- package/models/components/updateworkspacerequest.js.map +1 -0
- package/models/components/updateworkspaceresponse.d.ts +11 -0
- package/models/components/updateworkspaceresponse.d.ts.map +1 -0
- package/models/components/updateworkspaceresponse.js +51 -0
- package/models/components/updateworkspaceresponse.js.map +1 -0
- package/models/components/upsertchunk.d.ts +5 -0
- package/models/components/upsertchunk.d.ts.map +1 -1
- package/models/components/upsertchunk.js +6 -0
- package/models/components/upsertchunk.js.map +1 -1
- package/models/components/value.d.ts +17 -0
- package/models/components/value.d.ts.map +1 -0
- package/models/components/value.js +54 -0
- package/models/components/value.js.map +1 -0
- package/models/components/workspace.d.ts +33 -0
- package/models/components/workspace.d.ts.map +1 -0
- package/models/components/workspace.js +88 -0
- package/models/components/workspace.js.map +1 -0
- package/models/components/workspacecapabilities.d.ts +11 -0
- package/models/components/workspacecapabilities.d.ts.map +1 -0
- package/models/components/workspacecapabilities.js +51 -0
- package/models/components/workspacecapabilities.js.map +1 -0
- package/models/components/workspaceorganization.d.ts +11 -0
- package/models/components/workspaceorganization.d.ts.map +1 -0
- package/models/components/workspaceorganization.js +51 -0
- package/models/components/workspaceorganization.js.map +1 -0
- package/models/components/workspacesettingsfields.d.ts +39 -0
- package/models/components/workspacesettingsfields.d.ts.map +1 -0
- package/models/components/workspacesettingsfields.js +99 -0
- package/models/components/workspacesettingsfields.js.map +1 -0
- package/models/errors/index.d.ts +0 -6
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -6
- package/models/errors/index.js.map +1 -1
- package/models/operations/addannotationqueueitems.d.ts +3 -60
- package/models/operations/addannotationqueueitems.d.ts.map +1 -1
- package/models/operations/addannotationqueueitems.js +4 -55
- package/models/operations/addannotationqueueitems.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +12 -12
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +11 -12
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +58 -58
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +80 -81
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createeval.d.ts +2 -312
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +2 -264
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createprompt.d.ts +14 -12
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +16 -13
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.d.ts +24 -24
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +29 -29
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +8 -8
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +10 -10
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +18 -16
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +20 -16
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/getallprompts.d.ts +2 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +2 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/geteval.d.ts +0 -814
- package/models/operations/geteval.d.ts.map +1 -1
- package/models/operations/geteval.js +1 -1252
- package/models/operations/geteval.js.map +1 -1
- package/models/operations/getevals.d.ts +3 -41
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +3 -54
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getevalversion.d.ts +14 -0
- package/models/operations/getevalversion.d.ts.map +1 -0
- package/models/operations/getevalversion.js +55 -0
- package/models/operations/getevalversion.js.map +1 -0
- package/models/operations/getoneprompt.d.ts +2 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +2 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +2 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +2 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +6 -5
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +6 -5
- package/models/operations/index.js.map +1 -1
- package/models/operations/listannotationqueueitems.d.ts +4 -72
- package/models/operations/listannotationqueueitems.d.ts.map +1 -1
- package/models/operations/listannotationqueueitems.js +2 -80
- package/models/operations/listannotationqueueitems.js.map +1 -1
- package/models/operations/listannotationqueues.d.ts +6 -81
- package/models/operations/listannotationqueues.d.ts.map +1 -1
- package/models/operations/listannotationqueues.js +2 -63
- package/models/operations/listannotationqueues.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listevalversions.d.ts +21 -0
- package/models/operations/listevalversions.d.ts.map +1 -0
- package/models/operations/listevalversions.js +58 -0
- package/models/operations/listevalversions.js.map +1 -0
- package/models/operations/listpromptversions.d.ts +2 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +2 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/parse.d.ts +4 -4
- package/models/operations/parse.d.ts.map +1 -1
- package/models/operations/parse.js +4 -4
- package/models/operations/parse.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.d.ts +6 -6
- package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +10 -10
- package/models/operations/postv2feedbackevaluation.js.map +1 -1
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/previewdatasourcechunks.d.ts +15 -0
- package/models/operations/previewdatasourcechunks.d.ts.map +1 -0
- package/models/operations/previewdatasourcechunks.js +57 -0
- package/models/operations/previewdatasourcechunks.js.map +1 -0
- package/models/operations/removeannotationqueueitems.d.ts +3 -15
- package/models/operations/removeannotationqueueitems.d.ts.map +1 -1
- package/models/operations/removeannotationqueueitems.js +4 -15
- package/models/operations/removeannotationqueueitems.js.map +1 -1
- package/models/operations/retrieveannotationqueue.d.ts +0 -60
- package/models/operations/retrieveannotationqueue.d.ts.map +1 -1
- package/models/operations/retrieveannotationqueue.js +1 -43
- package/models/operations/retrieveannotationqueue.js.map +1 -1
- package/models/operations/retrieveannotationqueueitem.d.ts +9 -0
- package/models/operations/retrieveannotationqueueitem.d.ts.map +1 -1
- package/models/operations/retrieveannotationqueueitem.js +8 -1
- package/models/operations/retrieveannotationqueueitem.js.map +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateagent.d.ts +16 -16
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +17 -17
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updateannotationqueue.d.ts +3 -90
- package/models/operations/updateannotationqueue.d.ts.map +1 -1
- package/models/operations/updateannotationqueue.js +4 -63
- package/models/operations/updateannotationqueue.js.map +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updateeval.d.ts +4 -201
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +3 -160
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateprompt.d.ts +2 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +2 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/models/operations/workspaceget.d.ts +12 -0
- package/models/operations/workspaceget.d.ts.map +1 -0
- package/models/operations/workspaceget.js +49 -0
- package/models/operations/workspaceget.js.map +1 -0
- package/models/operations/workspacelist.d.ts +16 -0
- package/models/operations/workspacelist.d.ts.map +1 -0
- package/models/operations/workspacelist.js +57 -0
- package/models/operations/workspacelist.js.map +1 -0
- package/models/operations/workspaceupdate.d.ts +15 -0
- package/models/operations/workspaceupdate.d.ts.map +1 -0
- package/models/operations/workspaceupdate.js +56 -0
- package/models/operations/workspaceupdate.js.map +1 -0
- package/package.json +3 -3
- package/sdk/annotationqueues.d.ts +24 -24
- package/sdk/annotationqueues.d.ts.map +1 -1
- package/sdk/annotationqueues.js +18 -18
- package/sdk/annotationqueues.js.map +1 -1
- package/sdk/auditlogs.d.ts +12 -0
- package/sdk/auditlogs.d.ts.map +1 -0
- package/sdk/auditlogs.js +22 -0
- package/sdk/auditlogs.js.map +1 -0
- package/sdk/deployments.d.ts +0 -16
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +0 -20
- package/sdk/deployments.js.map +1 -1
- package/sdk/evals.d.ts +20 -13
- package/sdk/evals.d.ts.map +1 -1
- package/sdk/evals.js +22 -12
- package/sdk/evals.js.map +1 -1
- package/sdk/knowledge.d.ts +7 -0
- package/sdk/knowledge.d.ts.map +1 -1
- package/sdk/knowledge.js +10 -0
- package/sdk/knowledge.js.map +1 -1
- package/sdk/logs.d.ts +2 -2
- package/sdk/logs.d.ts.map +1 -1
- package/sdk/logs.js +1 -1
- package/sdk/logs.js.map +1 -1
- package/sdk/reporting.d.ts +1 -1
- package/sdk/reporting.js +1 -1
- package/sdk/sdk.d.ts +10 -4
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +14 -6
- package/sdk/sdk.js.map +1 -1
- package/sdk/traces.d.ts +1 -1
- package/sdk/traces.js +1 -1
- package/sdk/workspaces.d.ts +27 -0
- package/sdk/workspaces.d.ts.map +1 -0
- package/sdk/workspaces.js +42 -0
- package/sdk/workspaces.js.map +1 -0
- package/src/funcs/annotationQueuesAddItems.ts +9 -10
- package/src/funcs/annotationQueuesClear.ts +8 -8
- package/src/funcs/annotationQueuesCreate.ts +10 -13
- package/src/funcs/annotationQueuesDelete.ts +8 -8
- package/src/funcs/annotationQueuesList.ts +6 -5
- package/src/funcs/annotationQueuesListItems.ts +6 -5
- package/src/funcs/annotationQueuesRemoveItems.ts +12 -10
- package/src/funcs/annotationQueuesRetrieve.ts +6 -5
- package/src/funcs/annotationQueuesRetrieveItem.ts +8 -6
- package/src/funcs/annotationQueuesUpdate.ts +10 -7
- package/src/funcs/{deploymentsInvoke.ts → auditLogsQuery.ts} +12 -20
- package/src/funcs/evalsAll.ts +6 -14
- package/src/funcs/evalsCreate.ts +10 -35
- package/src/funcs/evalsDelete.ts +6 -19
- package/src/funcs/evalsGet.ts +6 -14
- package/src/funcs/evalsGetVersion.ts +174 -0
- package/src/funcs/evalsListVersions.ts +11 -20
- package/src/funcs/evalsUpdate.ts +6 -14
- package/src/funcs/{deploymentsStream.ts → knowledgePreviewChunks.ts} +29 -30
- package/src/funcs/logsListFacets.ts +8 -17
- package/src/funcs/reportingQuery.ts +1 -1
- package/src/funcs/tracesAggregate.ts +1 -1
- package/src/funcs/workspacesGet.ts +168 -0
- package/src/funcs/workspacesList.ts +170 -0
- package/src/funcs/workspacesUpdate.ts +171 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +58 -23
- package/src/models/components/addannotationqueueitemsrequest.ts +41 -0
- package/src/models/components/addannotationqueueitemsresponse.ts +38 -0
- package/src/models/components/agentresponserequest.ts +39 -41
- package/src/models/components/agentthoughtstreamingevent.ts +43 -55
- package/src/models/components/annotationqueue.ts +101 -0
- package/src/models/components/annotationqueueitem.ts +80 -0
- package/src/models/components/annotationqueueitemref.ts +43 -0
- package/src/models/components/annotationqueuemetadata.ts +42 -0
- package/src/models/components/auditlog.ts +122 -0
- package/src/models/components/auditlogfilter.ts +51 -0
- package/src/models/components/auditlogfilterquery.ts +54 -0
- package/src/models/components/auditlogpagination.ts +55 -0
- package/src/models/components/auditlogsort.ts +39 -0
- package/src/models/components/budgetmatch.ts +1 -7
- package/src/models/components/budgetscope.ts +1 -5
- package/src/models/components/budgetscoperestresponse.ts +1 -5
- package/src/models/components/chunkingconfiguration.ts +432 -4
- package/src/models/components/clearannotationqueueresponse.ts +27 -0
- package/src/models/components/createannotationqueuerequest.ts +54 -0
- package/src/models/components/createapikeyrequest.ts +9 -0
- package/src/models/components/createmcpgatewayrequest.ts +11 -0
- package/src/models/components/datasourcesservicepreviewchunksrequest.ts +48 -0
- package/src/models/components/datasourcesservicepreviewchunksresponse.ts +44 -0
- package/src/models/components/deleteannotationqueueresponse.ts +27 -0
- package/src/models/components/deleteevaluatorresponse.ts +27 -0
- package/src/models/components/evaluationcontext.ts +10 -15
- package/src/models/components/evaluatordocumentresponse.ts +50 -0
- package/src/models/components/filesystemtoolinput.ts +63 -6
- package/src/models/components/getevaluatorversionresponse.ts +58 -0
- package/src/models/components/getuploadfileurlresponse.ts +5 -0
- package/src/models/components/getworkspaceresponse.ts +32 -0
- package/src/models/components/index.ts +41 -9
- package/src/models/components/listannotationqueueitemsresponse.ts +53 -0
- package/src/models/components/listannotationqueuesresponse.ts +53 -0
- package/src/models/components/listevaluatorsresponse.ts +59 -0
- package/src/models/components/listevaluatorversionsresponse.ts +59 -0
- package/src/models/{operations/listlogfacets.ts → components/listlogfacetsrequest.ts} +15 -0
- package/src/models/components/listworkspacesresponse.ts +41 -0
- package/src/models/components/mcpgateway.ts +9 -0
- package/src/models/components/mcpgatewayplugin.ts +83 -0
- package/src/models/components/modelmetadata.ts +6 -0
- package/src/models/components/modelsconfig.ts +10 -11
- package/src/models/components/monitorfilter.ts +8 -0
- package/src/models/components/piiredactionconfig.ts +7 -9
- package/src/models/components/previewchunk.ts +38 -0
- package/src/models/components/previewchunksmetadata.ts +51 -0
- package/src/models/components/pricing.ts +12 -0
- package/src/models/components/pricingvariant.ts +12 -0
- package/src/models/components/queryauditlogsrequest.ts +64 -0
- package/src/models/components/queryauditlogsresponse.ts +55 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/removeannotationqueueitemsrequest.ts +41 -0
- package/src/models/components/removeannotationqueueitemsresponse.ts +28 -0
- package/src/models/components/searchknowledgerequest.ts +491 -711
- package/src/models/components/textcontentpartschema.ts +19 -23
- package/src/models/components/updateannotationqueuerequest.ts +61 -0
- package/src/models/components/updatemcpgatewayrequest.ts +11 -0
- package/src/models/components/updateworkspacerequest.ts +81 -0
- package/src/models/components/updateworkspaceresponse.ts +32 -0
- package/src/models/components/upsertchunk.ts +11 -0
- package/src/models/components/value.ts +24 -0
- package/src/models/components/workspace.ts +116 -0
- package/src/models/components/workspacecapabilities.ts +33 -0
- package/src/models/components/workspaceorganization.ts +33 -0
- package/src/models/components/workspacesettingsfields.ts +135 -0
- package/src/models/errors/index.ts +0 -6
- package/src/models/operations/addannotationqueueitems.ts +7 -139
- package/src/models/operations/createagentrequest.ts +20 -31
- package/src/models/operations/createchatcompletion.ts +248 -313
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createeval.ts +3 -644
- package/src/models/operations/createprompt.ts +26 -29
- package/src/models/operations/createtool.ts +55 -56
- package/src/models/operations/deploymentgetconfig.ts +16 -18
- package/src/models/operations/deployments.ts +44 -46
- package/src/models/operations/getallprompts.ts +2 -0
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/geteval.ts +0 -2770
- package/src/models/operations/getevals.ts +5 -119
- package/src/models/operations/getevalversion.ts +39 -0
- package/src/models/operations/getoneprompt.ts +2 -0
- package/src/models/operations/getpromptversion.ts +2 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +6 -5
- package/src/models/operations/listannotationqueueitems.ts +5 -183
- package/src/models/operations/listannotationqueues.ts +7 -173
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listevalversions.ts +49 -0
- package/src/models/operations/listpromptversions.ts +2 -0
- package/src/models/operations/parse.ts +7 -7
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +14 -20
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/previewdatasourcechunks.ts +47 -0
- package/src/models/operations/removeannotationqueueitems.ts +8 -41
- package/src/models/operations/retrieveannotationqueue.ts +0 -123
- package/src/models/operations/retrieveannotationqueueitem.ts +31 -0
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateagent.ts +31 -40
- package/src/models/operations/updateannotationqueue.ts +7 -182
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updateeval.ts +6 -404
- package/src/models/operations/updateprompt.ts +2 -0
- package/src/models/operations/updatetool.ts +4 -4
- package/src/models/operations/workspaceget.ts +31 -0
- package/src/models/operations/workspacelist.ts +43 -0
- package/src/models/operations/workspaceupdate.ts +40 -0
- package/src/sdk/annotationqueues.ts +31 -31
- package/src/sdk/auditlogs.ts +27 -0
- package/src/sdk/deployments.ts +0 -38
- package/src/sdk/evals.ts +41 -23
- package/src/sdk/knowledge.ts +18 -0
- package/src/sdk/logs.ts +2 -2
- package/src/sdk/reporting.ts +1 -1
- package/src/sdk/sdk.ts +22 -10
- package/src/sdk/traces.ts +1 -1
- package/src/sdk/workspaces.ts +64 -0
- package/funcs/deploymentsInvoke.d.ts.map +0 -1
- package/funcs/deploymentsInvoke.js.map +0 -1
- package/funcs/deploymentsStream.d.ts.map +0 -1
- package/funcs/deploymentsStream.js.map +0 -1
- package/models/components/evaluatorresponsefunction.d.ts +0 -230
- package/models/components/evaluatorresponsefunction.d.ts.map +0 -1
- package/models/components/evaluatorresponsefunction.js +0 -422
- package/models/components/evaluatorresponsefunction.js.map +0 -1
- package/models/components/evaluatorresponsehttp.d.ts +0 -37
- package/models/components/evaluatorresponsehttp.d.ts.map +0 -1
- package/models/components/evaluatorresponsehttp.js.map +0 -1
- package/models/components/evaluatorresponsejsonschema.d.ts +0 -22
- package/models/components/evaluatorresponsejsonschema.d.ts.map +0 -1
- package/models/components/evaluatorresponsejsonschema.js.map +0 -1
- package/models/components/evaluatorresponsellm.d.ts +0 -101
- package/models/components/evaluatorresponsellm.d.ts.map +0 -1
- package/models/components/evaluatorresponsellm.js +0 -181
- package/models/components/evaluatorresponsellm.js.map +0 -1
- package/models/components/evaluatorresponsepython.d.ts +0 -22
- package/models/components/evaluatorresponsepython.d.ts.map +0 -1
- package/models/components/evaluatorresponsepython.js.map +0 -1
- package/models/components/evaluatorresponseragas.d.ts +0 -41
- package/models/components/evaluatorresponseragas.d.ts.map +0 -1
- package/models/components/evaluatorresponseragas.js.map +0 -1
- package/models/components/evaluatorresponsetypescript.d.ts +0 -22
- package/models/components/evaluatorresponsetypescript.d.ts.map +0 -1
- package/models/components/evaluatorresponsetypescript.js.map +0 -1
- package/models/components/invokedeploymentrequest.d.ts +0 -1544
- package/models/components/invokedeploymentrequest.d.ts.map +0 -1
- package/models/components/invokedeploymentrequest.js +0 -1108
- package/models/components/invokedeploymentrequest.js.map +0 -1
- package/models/components/publicspan.d.ts +0 -68
- package/models/components/publicspan.d.ts.map +0 -1
- package/models/components/publicspan.js +0 -94
- package/models/components/publicspan.js.map +0 -1
- package/models/errors/createeval.d.ts +0 -23
- package/models/errors/createeval.d.ts.map +0 -1
- package/models/errors/createeval.js.map +0 -1
- package/models/errors/deleteeval.d.ts +0 -43
- package/models/errors/deleteeval.d.ts.map +0 -1
- package/models/errors/deleteeval.js +0 -94
- package/models/errors/deleteeval.js.map +0 -1
- package/models/errors/geteval.d.ts +0 -23
- package/models/errors/geteval.d.ts.map +0 -1
- package/models/errors/geteval.js.map +0 -1
- package/models/errors/getevals.d.ts +0 -23
- package/models/errors/getevals.d.ts.map +0 -1
- package/models/errors/getevals.js.map +0 -1
- package/models/errors/getv2evaluatorsidversions.d.ts +0 -23
- package/models/errors/getv2evaluatorsidversions.d.ts.map +0 -1
- package/models/errors/getv2evaluatorsidversions.js +0 -68
- package/models/errors/getv2evaluatorsidversions.js.map +0 -1
- package/models/errors/updateeval.d.ts +0 -23
- package/models/errors/updateeval.d.ts.map +0 -1
- package/models/errors/updateeval.js.map +0 -1
- package/models/operations/createannotationqueue.d.ts +0 -85
- package/models/operations/createannotationqueue.d.ts.map +0 -1
- package/models/operations/createannotationqueue.js +0 -99
- package/models/operations/createannotationqueue.js.map +0 -1
- package/models/operations/deploymentinvoke.d.ts +0 -365
- package/models/operations/deploymentinvoke.d.ts.map +0 -1
- package/models/operations/deploymentinvoke.js +0 -370
- package/models/operations/deploymentinvoke.js.map +0 -1
- package/models/operations/deploymentstream.d.ts +0 -1897
- package/models/operations/deploymentstream.d.ts.map +0 -1
- package/models/operations/deploymentstream.js +0 -1483
- package/models/operations/deploymentstream.js.map +0 -1
- package/models/operations/getv2evaluatorsidversions.d.ts +0 -66
- package/models/operations/getv2evaluatorsidversions.d.ts.map +0 -1
- package/models/operations/getv2evaluatorsidversions.js +0 -106
- package/models/operations/getv2evaluatorsidversions.js.map +0 -1
- package/models/operations/listlogfacets.d.ts.map +0 -1
- package/models/operations/listlogfacets.js.map +0 -1
- package/src/models/components/evaluatorresponsefunction.ts +0 -922
- package/src/models/components/evaluatorresponsehttp.ts +0 -77
- package/src/models/components/evaluatorresponsejsonschema.ts +0 -60
- package/src/models/components/evaluatorresponsellm.ts +0 -310
- package/src/models/components/evaluatorresponsepython.ts +0 -60
- package/src/models/components/evaluatorresponseragas.ts +0 -84
- package/src/models/components/evaluatorresponsetypescript.ts +0 -60
- package/src/models/components/invokedeploymentrequest.ts +0 -3446
- package/src/models/components/publicspan.ts +0 -135
- package/src/models/errors/createeval.ts +0 -51
- package/src/models/errors/deleteeval.ts +0 -96
- package/src/models/errors/geteval.ts +0 -51
- package/src/models/errors/getevals.ts +0 -51
- package/src/models/errors/getv2evaluatorsidversions.ts +0 -51
- package/src/models/errors/updateeval.ts +0 -51
- package/src/models/operations/createannotationqueue.ts +0 -176
- package/src/models/operations/deploymentinvoke.ts +0 -731
- package/src/models/operations/deploymentstream.ts +0 -4562
- package/src/models/operations/getv2evaluatorsidversions.ts +0 -162
|
@@ -3,770 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
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
6
|
|
|
12
7
|
export type GetEvalRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* Unique identifier of the evaluator, as returned in the `_id` field by `GET /v2/evaluators`.
|
|
15
|
-
*/
|
|
16
8
|
id: string;
|
|
17
9
|
};
|
|
18
10
|
|
|
19
|
-
export type GetEvalResponseBodyEvalsResponse200ApplicationJson8Metadata = {
|
|
20
|
-
requiredModelWithToolsSupport?: boolean | undefined;
|
|
21
|
-
requiredRetrievalContext?: boolean | undefined;
|
|
22
|
-
requiredExpectedOutput?: boolean | undefined;
|
|
23
|
-
supportedOnInputType?: boolean | undefined;
|
|
24
|
-
supportedOnOutputType?: boolean | undefined;
|
|
25
|
-
supportUseAsGuardrail?: boolean | undefined;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export const GetEvalResponseBodyEvalsResponse200ApplicationJson8OutputType = {
|
|
29
|
-
Boolean: "boolean",
|
|
30
|
-
} as const;
|
|
31
|
-
export type GetEvalResponseBodyEvalsResponse200ApplicationJson8OutputType =
|
|
32
|
-
ClosedEnum<
|
|
33
|
-
typeof GetEvalResponseBodyEvalsResponse200ApplicationJson8OutputType
|
|
34
|
-
>;
|
|
35
|
-
|
|
36
|
-
export type BedrockGuardrail = {
|
|
37
|
-
enabled: boolean;
|
|
38
|
-
metadata: GetEvalResponseBodyEvalsResponse200ApplicationJson8Metadata;
|
|
39
|
-
id: string;
|
|
40
|
-
displayName: string;
|
|
41
|
-
description: string;
|
|
42
|
-
owner: string;
|
|
43
|
-
created: string;
|
|
44
|
-
updated: string;
|
|
45
|
-
createdById?: string | null | undefined;
|
|
46
|
-
updatedById?: string | null | undefined;
|
|
47
|
-
domainId: string;
|
|
48
|
-
/**
|
|
49
|
-
* Unique identifier of the project owning this evaluator.
|
|
50
|
-
*/
|
|
51
|
-
projectId?: string | undefined;
|
|
52
|
-
guardrailConfig?: any | undefined;
|
|
53
|
-
outputType?:
|
|
54
|
-
| GetEvalResponseBodyEvalsResponse200ApplicationJson8OutputType
|
|
55
|
-
| undefined;
|
|
56
|
-
type: "bedrock_eval";
|
|
57
|
-
guardrailIdentifier: string;
|
|
58
|
-
guardrailVersion: string;
|
|
59
|
-
guardrailRegion?: string | undefined;
|
|
60
|
-
integrationId?: string | null | undefined;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export type GetEvalResponseBodyEvalsResponse200ApplicationJSONMetadata = {
|
|
64
|
-
requiredModelWithToolsSupport?: boolean | undefined;
|
|
65
|
-
requiredRetrievalContext?: boolean | undefined;
|
|
66
|
-
requiredExpectedOutput?: boolean | undefined;
|
|
67
|
-
supportedOnInputType?: boolean | undefined;
|
|
68
|
-
supportedOnOutputType?: boolean | undefined;
|
|
69
|
-
supportUseAsGuardrail?: boolean | undefined;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* The type of output expected from the evaluator
|
|
74
|
-
*/
|
|
75
|
-
export const GetEvalResponseBodyEvalsResponse200ApplicationJson7OutputType = {
|
|
76
|
-
Boolean: "boolean",
|
|
77
|
-
Categorical: "categorical",
|
|
78
|
-
Number: "number",
|
|
79
|
-
String: "string",
|
|
80
|
-
} as const;
|
|
81
|
-
/**
|
|
82
|
-
* The type of output expected from the evaluator
|
|
83
|
-
*/
|
|
84
|
-
export type GetEvalResponseBodyEvalsResponse200ApplicationJson7OutputType =
|
|
85
|
-
ClosedEnum<
|
|
86
|
-
typeof GetEvalResponseBodyEvalsResponse200ApplicationJson7OutputType
|
|
87
|
-
>;
|
|
88
|
-
|
|
89
|
-
export type Typescript = {
|
|
90
|
-
enabled: boolean;
|
|
91
|
-
metadata: GetEvalResponseBodyEvalsResponse200ApplicationJSONMetadata;
|
|
92
|
-
id: string;
|
|
93
|
-
displayName: string;
|
|
94
|
-
description: string;
|
|
95
|
-
owner: string;
|
|
96
|
-
created: string;
|
|
97
|
-
updated: string;
|
|
98
|
-
createdById?: string | null | undefined;
|
|
99
|
-
updatedById?: string | null | undefined;
|
|
100
|
-
domainId: string;
|
|
101
|
-
/**
|
|
102
|
-
* Unique identifier of the project owning this evaluator.
|
|
103
|
-
*/
|
|
104
|
-
projectId?: string | undefined;
|
|
105
|
-
guardrailConfig?: any | undefined;
|
|
106
|
-
/**
|
|
107
|
-
* The type of output expected from the evaluator
|
|
108
|
-
*/
|
|
109
|
-
outputType?:
|
|
110
|
-
| GetEvalResponseBodyEvalsResponse200ApplicationJson7OutputType
|
|
111
|
-
| undefined;
|
|
112
|
-
code: string;
|
|
113
|
-
type: "typescript_eval";
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export type GetEvalResponseBodyEvalsResponse200Metadata = {
|
|
117
|
-
requiredModelWithToolsSupport?: boolean | undefined;
|
|
118
|
-
requiredRetrievalContext?: boolean | undefined;
|
|
119
|
-
requiredExpectedOutput?: boolean | undefined;
|
|
120
|
-
supportedOnInputType?: boolean | undefined;
|
|
121
|
-
supportedOnOutputType?: boolean | undefined;
|
|
122
|
-
supportUseAsGuardrail?: boolean | undefined;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
export const GetEvalResponseBodyEvalsResponse200ApplicationJSONOutputType = {
|
|
126
|
-
Boolean: "boolean",
|
|
127
|
-
Number: "number",
|
|
128
|
-
} as const;
|
|
129
|
-
export type GetEvalResponseBodyEvalsResponse200ApplicationJSONOutputType =
|
|
130
|
-
ClosedEnum<
|
|
131
|
-
typeof GetEvalResponseBodyEvalsResponse200ApplicationJSONOutputType
|
|
132
|
-
>;
|
|
133
|
-
|
|
134
|
-
export type ResponseBodyPython = {
|
|
135
|
-
enabled: boolean;
|
|
136
|
-
metadata: GetEvalResponseBodyEvalsResponse200Metadata;
|
|
137
|
-
id: string;
|
|
138
|
-
displayName: string;
|
|
139
|
-
description: string;
|
|
140
|
-
owner: string;
|
|
141
|
-
created: string;
|
|
142
|
-
updated: string;
|
|
143
|
-
createdById?: string | null | undefined;
|
|
144
|
-
updatedById?: string | null | undefined;
|
|
145
|
-
domainId: string;
|
|
146
|
-
/**
|
|
147
|
-
* Unique identifier of the project owning this evaluator.
|
|
148
|
-
*/
|
|
149
|
-
projectId?: string | undefined;
|
|
150
|
-
guardrailConfig?: any | undefined;
|
|
151
|
-
outputType?:
|
|
152
|
-
| GetEvalResponseBodyEvalsResponse200ApplicationJSONOutputType
|
|
153
|
-
| undefined;
|
|
154
|
-
code: string;
|
|
155
|
-
type: "python_eval";
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
export type GetEvalResponseBodyEvalsResponseMetadata = {
|
|
159
|
-
requiredModelWithToolsSupport?: boolean | undefined;
|
|
160
|
-
requiredRetrievalContext?: boolean | undefined;
|
|
161
|
-
requiredExpectedOutput?: boolean | undefined;
|
|
162
|
-
supportedOnInputType?: boolean | undefined;
|
|
163
|
-
supportedOnOutputType?: boolean | undefined;
|
|
164
|
-
supportUseAsGuardrail?: boolean | undefined;
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* The type of output expected from the evaluator
|
|
169
|
-
*/
|
|
170
|
-
export const GetEvalResponseBodyEvalsResponse200OutputType = {
|
|
171
|
-
Boolean: "boolean",
|
|
172
|
-
Categorical: "categorical",
|
|
173
|
-
Number: "number",
|
|
174
|
-
String: "string",
|
|
175
|
-
} as const;
|
|
176
|
-
/**
|
|
177
|
-
* The type of output expected from the evaluator
|
|
178
|
-
*/
|
|
179
|
-
export type GetEvalResponseBodyEvalsResponse200OutputType = ClosedEnum<
|
|
180
|
-
typeof GetEvalResponseBodyEvalsResponse200OutputType
|
|
181
|
-
>;
|
|
182
|
-
|
|
183
|
-
export const ResponseBodyMethod = {
|
|
184
|
-
Get: "GET",
|
|
185
|
-
Post: "POST",
|
|
186
|
-
} as const;
|
|
187
|
-
export type ResponseBodyMethod = ClosedEnum<typeof ResponseBodyMethod>;
|
|
188
|
-
|
|
189
|
-
export type ResponseBodyHTTP = {
|
|
190
|
-
enabled: boolean;
|
|
191
|
-
metadata: GetEvalResponseBodyEvalsResponseMetadata;
|
|
192
|
-
id: string;
|
|
193
|
-
displayName: string;
|
|
194
|
-
description: string;
|
|
195
|
-
owner: string;
|
|
196
|
-
created: string;
|
|
197
|
-
updated: string;
|
|
198
|
-
createdById?: string | null | undefined;
|
|
199
|
-
updatedById?: string | null | undefined;
|
|
200
|
-
domainId: string;
|
|
201
|
-
/**
|
|
202
|
-
* Unique identifier of the project owning this evaluator.
|
|
203
|
-
*/
|
|
204
|
-
projectId?: string | undefined;
|
|
205
|
-
guardrailConfig?: any | undefined;
|
|
206
|
-
/**
|
|
207
|
-
* The type of output expected from the evaluator
|
|
208
|
-
*/
|
|
209
|
-
outputType?: GetEvalResponseBodyEvalsResponse200OutputType | undefined;
|
|
210
|
-
type: "http_eval";
|
|
211
|
-
url: string;
|
|
212
|
-
method: ResponseBodyMethod;
|
|
213
|
-
headers: { [k: string]: string };
|
|
214
|
-
payload: { [k: string]: any };
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
export type GetEvalResponseBodyEvalsMetadata = {
|
|
218
|
-
requiredModelWithToolsSupport?: boolean | undefined;
|
|
219
|
-
requiredRetrievalContext?: boolean | undefined;
|
|
220
|
-
requiredExpectedOutput?: boolean | undefined;
|
|
221
|
-
supportedOnInputType?: boolean | undefined;
|
|
222
|
-
supportedOnOutputType?: boolean | undefined;
|
|
223
|
-
supportUseAsGuardrail?: boolean | undefined;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
export const GetEvalResponseBodyEvalsResponseOutputType = {
|
|
227
|
-
Boolean: "boolean",
|
|
228
|
-
} as const;
|
|
229
|
-
export type GetEvalResponseBodyEvalsResponseOutputType = ClosedEnum<
|
|
230
|
-
typeof GetEvalResponseBodyEvalsResponseOutputType
|
|
231
|
-
>;
|
|
232
|
-
|
|
233
|
-
export type Json = {
|
|
234
|
-
enabled: boolean;
|
|
235
|
-
metadata: GetEvalResponseBodyEvalsMetadata;
|
|
236
|
-
id: string;
|
|
237
|
-
displayName: string;
|
|
238
|
-
description: string;
|
|
239
|
-
owner: string;
|
|
240
|
-
created: string;
|
|
241
|
-
updated: string;
|
|
242
|
-
createdById?: string | null | undefined;
|
|
243
|
-
updatedById?: string | null | undefined;
|
|
244
|
-
domainId: string;
|
|
245
|
-
/**
|
|
246
|
-
* Unique identifier of the project owning this evaluator.
|
|
247
|
-
*/
|
|
248
|
-
projectId?: string | undefined;
|
|
249
|
-
guardrailConfig?: any | undefined;
|
|
250
|
-
outputType?: GetEvalResponseBodyEvalsResponseOutputType | undefined;
|
|
251
|
-
type: "json_schema";
|
|
252
|
-
schema: string;
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
export type GetEvalResponseBodyMetadata = {
|
|
256
|
-
requiredModelWithToolsSupport?: boolean | undefined;
|
|
257
|
-
requiredRetrievalContext?: boolean | undefined;
|
|
258
|
-
requiredExpectedOutput?: boolean | undefined;
|
|
259
|
-
supportedOnInputType?: boolean | undefined;
|
|
260
|
-
supportedOnOutputType?: boolean | undefined;
|
|
261
|
-
supportUseAsGuardrail?: boolean | undefined;
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
export const GetEvalResponseBodyEvalsOutputType = {
|
|
265
|
-
Number: "number",
|
|
266
|
-
} as const;
|
|
267
|
-
export type GetEvalResponseBodyEvalsOutputType = ClosedEnum<
|
|
268
|
-
typeof GetEvalResponseBodyEvalsOutputType
|
|
269
|
-
>;
|
|
270
|
-
|
|
271
|
-
export type ResponseBodyModel = {
|
|
272
|
-
id: string;
|
|
273
|
-
integrationId?: string | null | undefined;
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
export const RagasMetric = {
|
|
277
|
-
ContextPrecision: "context_precision",
|
|
278
|
-
ContextRecall: "context_recall",
|
|
279
|
-
ContextEntitiesRecall: "context_entities_recall",
|
|
280
|
-
Harmfulness: "harmfulness",
|
|
281
|
-
Maliciousness: "maliciousness",
|
|
282
|
-
Coherence: "coherence",
|
|
283
|
-
Correctness: "correctness",
|
|
284
|
-
Conciseness: "conciseness",
|
|
285
|
-
ResponseRelevancy: "response_relevancy",
|
|
286
|
-
Faithfulness: "faithfulness",
|
|
287
|
-
Summarization: "summarization",
|
|
288
|
-
NoiseSensitivity: "noise_sensitivity",
|
|
289
|
-
} as const;
|
|
290
|
-
export type RagasMetric = ClosedEnum<typeof RagasMetric>;
|
|
291
|
-
|
|
292
|
-
export type Ragas = {
|
|
293
|
-
enabled: boolean;
|
|
294
|
-
metadata: GetEvalResponseBodyMetadata;
|
|
295
|
-
id: string;
|
|
296
|
-
displayName: string;
|
|
297
|
-
description: string;
|
|
298
|
-
owner: string;
|
|
299
|
-
created: string;
|
|
300
|
-
updated: string;
|
|
301
|
-
createdById?: string | null | undefined;
|
|
302
|
-
updatedById?: string | null | undefined;
|
|
303
|
-
domainId: string;
|
|
304
|
-
/**
|
|
305
|
-
* Unique identifier of the project owning this evaluator.
|
|
306
|
-
*/
|
|
307
|
-
projectId?: string | undefined;
|
|
308
|
-
guardrailConfig?: any | undefined;
|
|
309
|
-
outputType?: GetEvalResponseBodyEvalsOutputType | undefined;
|
|
310
|
-
type: "ragas";
|
|
311
|
-
model: ResponseBodyModel;
|
|
312
|
-
ragasMetric: RagasMetric;
|
|
313
|
-
};
|
|
314
|
-
|
|
315
|
-
export type ResponseBodyMetadata = {
|
|
316
|
-
requiredModelWithToolsSupport?: boolean | undefined;
|
|
317
|
-
requiredRetrievalContext?: boolean | undefined;
|
|
318
|
-
requiredExpectedOutput?: boolean | undefined;
|
|
319
|
-
supportedOnInputType?: boolean | undefined;
|
|
320
|
-
supportedOnOutputType?: boolean | undefined;
|
|
321
|
-
supportUseAsGuardrail?: boolean | undefined;
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
export const GetEvalResponseBodyOutputType = {
|
|
325
|
-
Boolean: "boolean",
|
|
326
|
-
Categorical: "categorical",
|
|
327
|
-
Number: "number",
|
|
328
|
-
String: "string",
|
|
329
|
-
} as const;
|
|
330
|
-
export type GetEvalResponseBodyOutputType = ClosedEnum<
|
|
331
|
-
typeof GetEvalResponseBodyOutputType
|
|
332
|
-
>;
|
|
333
|
-
|
|
334
|
-
export type ThirtyTwo = {
|
|
335
|
-
type: "grammar_diversity";
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
export type ThirtyOne = {
|
|
339
|
-
type: "lexical_repetition";
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
export type Thirty = {
|
|
343
|
-
type: "sentences_count";
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
export type TwentyNine = {
|
|
347
|
-
type: "words_count";
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
export type TwentyEight = {
|
|
351
|
-
type: "gse_english_level";
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
export type TwentySeven = {
|
|
355
|
-
type: "flesch_reading_ease";
|
|
356
|
-
};
|
|
357
|
-
|
|
358
|
-
export type TwentySix = {
|
|
359
|
-
type: "most_repeated_words";
|
|
360
|
-
};
|
|
361
|
-
|
|
362
|
-
export type TwentyFive = {
|
|
363
|
-
type: "keywords_match";
|
|
364
|
-
keywords: Array<string>;
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
export type TwentyFour = {
|
|
368
|
-
type: "levenshtein_distance";
|
|
369
|
-
};
|
|
370
|
-
|
|
371
|
-
export type TwentyThree = {
|
|
372
|
-
type: "cosine_similarity";
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
export type TwentyTwo = {
|
|
376
|
-
type: "meteor_score";
|
|
377
|
-
};
|
|
378
|
-
|
|
379
|
-
export type TwentyOne = {
|
|
380
|
-
type: "rouge_n";
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
export type Twenty = {
|
|
384
|
-
type: "bleu_score";
|
|
385
|
-
};
|
|
386
|
-
|
|
387
|
-
export type Nineteen = {
|
|
388
|
-
type: "bert_score";
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
export type Eighteen = {
|
|
392
|
-
type: "moderations_google";
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
export type Seventeen = {
|
|
396
|
-
type: "moderations_openai";
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
export type Sixteen = {
|
|
400
|
-
type: "is_valid_json";
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
export type Fifteen = {
|
|
404
|
-
type: "regex";
|
|
405
|
-
pattern: string;
|
|
406
|
-
};
|
|
407
|
-
|
|
408
|
-
export type Fourteen = {
|
|
409
|
-
type: "one_line";
|
|
410
|
-
};
|
|
411
|
-
|
|
412
|
-
export type Thirteen = {
|
|
413
|
-
type: "length_greater_than";
|
|
414
|
-
value: number;
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
export type Twelve = {
|
|
418
|
-
type: "length_between";
|
|
419
|
-
min: number;
|
|
420
|
-
max: number;
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
export type Eleven = {
|
|
424
|
-
type: "length_less_than";
|
|
425
|
-
value: number;
|
|
426
|
-
};
|
|
427
|
-
|
|
428
|
-
export type Ten = {
|
|
429
|
-
type: "exact_match";
|
|
430
|
-
};
|
|
431
|
-
|
|
432
|
-
export type Nine = {
|
|
433
|
-
type: "ends_with";
|
|
434
|
-
value: string;
|
|
435
|
-
};
|
|
436
|
-
|
|
437
|
-
export type Eight = {
|
|
438
|
-
type: "start_with";
|
|
439
|
-
value: string;
|
|
440
|
-
};
|
|
441
|
-
|
|
442
|
-
export type Seven = {
|
|
443
|
-
type: "contains_valid_link";
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
export type Six = {
|
|
447
|
-
type: "contains_url";
|
|
448
|
-
};
|
|
449
|
-
|
|
450
|
-
export type Five = {
|
|
451
|
-
type: "contains_email";
|
|
452
|
-
};
|
|
453
|
-
|
|
454
|
-
export type FunctionParams4 = {
|
|
455
|
-
type: "contains_any";
|
|
456
|
-
keywords: Array<string>;
|
|
457
|
-
};
|
|
458
|
-
|
|
459
|
-
export type FunctionParams3 = {
|
|
460
|
-
type: "contains_all";
|
|
461
|
-
keywords: Array<string>;
|
|
462
|
-
};
|
|
463
|
-
|
|
464
|
-
export type FunctionParams2 = {
|
|
465
|
-
type: "contains_none";
|
|
466
|
-
keywords: Array<string>;
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
export type FunctionParams1 = {
|
|
470
|
-
type: "contains";
|
|
471
|
-
value: string;
|
|
472
|
-
};
|
|
473
|
-
|
|
474
|
-
export type FunctionParams =
|
|
475
|
-
| FunctionParams1
|
|
476
|
-
| FunctionParams2
|
|
477
|
-
| FunctionParams3
|
|
478
|
-
| FunctionParams4
|
|
479
|
-
| Five
|
|
480
|
-
| Six
|
|
481
|
-
| Seven
|
|
482
|
-
| Eight
|
|
483
|
-
| Nine
|
|
484
|
-
| Ten
|
|
485
|
-
| Eleven
|
|
486
|
-
| Twelve
|
|
487
|
-
| Thirteen
|
|
488
|
-
| Fourteen
|
|
489
|
-
| Fifteen
|
|
490
|
-
| Sixteen
|
|
491
|
-
| Seventeen
|
|
492
|
-
| Eighteen
|
|
493
|
-
| Nineteen
|
|
494
|
-
| Twenty
|
|
495
|
-
| TwentyOne
|
|
496
|
-
| TwentyTwo
|
|
497
|
-
| TwentyThree
|
|
498
|
-
| TwentyFour
|
|
499
|
-
| TwentyFive
|
|
500
|
-
| TwentySix
|
|
501
|
-
| TwentySeven
|
|
502
|
-
| TwentyEight
|
|
503
|
-
| TwentyNine
|
|
504
|
-
| Thirty
|
|
505
|
-
| ThirtyOne
|
|
506
|
-
| ThirtyTwo;
|
|
507
|
-
|
|
508
|
-
export type ResponseBodyFunction = {
|
|
509
|
-
enabled: boolean;
|
|
510
|
-
metadata: ResponseBodyMetadata;
|
|
511
|
-
id: string;
|
|
512
|
-
displayName: string;
|
|
513
|
-
description: string;
|
|
514
|
-
owner: string;
|
|
515
|
-
created: string;
|
|
516
|
-
updated: string;
|
|
517
|
-
createdById?: string | null | undefined;
|
|
518
|
-
updatedById?: string | null | undefined;
|
|
519
|
-
domainId: string;
|
|
520
|
-
/**
|
|
521
|
-
* Unique identifier of the project owning this evaluator.
|
|
522
|
-
*/
|
|
523
|
-
projectId?: string | undefined;
|
|
524
|
-
guardrailConfig?: any | undefined;
|
|
525
|
-
outputType: GetEvalResponseBodyOutputType;
|
|
526
|
-
type: "function_eval";
|
|
527
|
-
functionParams:
|
|
528
|
-
| FunctionParams1
|
|
529
|
-
| FunctionParams2
|
|
530
|
-
| FunctionParams3
|
|
531
|
-
| FunctionParams4
|
|
532
|
-
| Five
|
|
533
|
-
| Six
|
|
534
|
-
| Seven
|
|
535
|
-
| Eight
|
|
536
|
-
| Nine
|
|
537
|
-
| Ten
|
|
538
|
-
| Eleven
|
|
539
|
-
| Twelve
|
|
540
|
-
| Thirteen
|
|
541
|
-
| Fourteen
|
|
542
|
-
| Fifteen
|
|
543
|
-
| Sixteen
|
|
544
|
-
| Seventeen
|
|
545
|
-
| Eighteen
|
|
546
|
-
| Nineteen
|
|
547
|
-
| Twenty
|
|
548
|
-
| TwentyOne
|
|
549
|
-
| TwentyTwo
|
|
550
|
-
| TwentyThree
|
|
551
|
-
| TwentyFour
|
|
552
|
-
| TwentyFive
|
|
553
|
-
| TwentySix
|
|
554
|
-
| TwentySeven
|
|
555
|
-
| TwentyEight
|
|
556
|
-
| TwentyNine
|
|
557
|
-
| Thirty
|
|
558
|
-
| ThirtyOne
|
|
559
|
-
| ThirtyTwo;
|
|
560
|
-
};
|
|
561
|
-
|
|
562
|
-
export type GetEvalResponseBodyEvalsResponse200ApplicationJson1Metadata = {
|
|
563
|
-
requiredModelWithToolsSupport?: boolean | undefined;
|
|
564
|
-
requiredRetrievalContext?: boolean | undefined;
|
|
565
|
-
requiredExpectedOutput?: boolean | undefined;
|
|
566
|
-
supportedOnInputType?: boolean | undefined;
|
|
567
|
-
supportedOnOutputType?: boolean | undefined;
|
|
568
|
-
supportUseAsGuardrail?: boolean | undefined;
|
|
569
|
-
};
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* The type of output expected from the evaluator
|
|
573
|
-
*/
|
|
574
|
-
export const ResponseBodyOutputType = {
|
|
575
|
-
Boolean: "boolean",
|
|
576
|
-
Categorical: "categorical",
|
|
577
|
-
Number: "number",
|
|
578
|
-
String: "string",
|
|
579
|
-
} as const;
|
|
580
|
-
/**
|
|
581
|
-
* The type of output expected from the evaluator
|
|
582
|
-
*/
|
|
583
|
-
export type ResponseBodyOutputType = ClosedEnum<typeof ResponseBodyOutputType>;
|
|
584
|
-
|
|
585
|
-
export const ResponseBodyMode = {
|
|
586
|
-
Single: "single",
|
|
587
|
-
Jury: "jury",
|
|
588
|
-
} as const;
|
|
589
|
-
export type ResponseBodyMode = ClosedEnum<typeof ResponseBodyMode>;
|
|
590
|
-
|
|
591
|
-
export type ResponseBodyModelParameters = {
|
|
592
|
-
temperature?: number | undefined;
|
|
593
|
-
maxTokens?: number | undefined;
|
|
594
|
-
topK?: number | undefined;
|
|
595
|
-
topP?: number | undefined;
|
|
596
|
-
frequencyPenalty?: number | undefined;
|
|
597
|
-
presencePenalty?: number | undefined;
|
|
598
|
-
reasoningEffort?: string | undefined;
|
|
599
|
-
budgetTokens?: number | undefined;
|
|
600
|
-
};
|
|
601
|
-
|
|
602
|
-
export type GetEvalResponseBodyModel = {
|
|
603
|
-
id: string;
|
|
604
|
-
integrationId?: string | null | undefined;
|
|
605
|
-
modelParameters?: ResponseBodyModelParameters | undefined;
|
|
606
|
-
};
|
|
607
|
-
|
|
608
|
-
export type GetEvalResponseBodyEvalsModelParameters = {
|
|
609
|
-
temperature?: number | undefined;
|
|
610
|
-
maxTokens?: number | undefined;
|
|
611
|
-
topK?: number | undefined;
|
|
612
|
-
topP?: number | undefined;
|
|
613
|
-
frequencyPenalty?: number | undefined;
|
|
614
|
-
presencePenalty?: number | undefined;
|
|
615
|
-
reasoningEffort?: string | undefined;
|
|
616
|
-
budgetTokens?: number | undefined;
|
|
617
|
-
};
|
|
618
|
-
|
|
619
|
-
export type GetEvalResponseBodyEvalsModel = {
|
|
620
|
-
id: string;
|
|
621
|
-
integrationId?: string | null | undefined;
|
|
622
|
-
modelParameters?: GetEvalResponseBodyEvalsModelParameters | undefined;
|
|
623
|
-
};
|
|
624
|
-
|
|
625
|
-
export type ResponseBodyRetry = {
|
|
626
|
-
count: number;
|
|
627
|
-
onCodes?: Array<number> | undefined;
|
|
628
|
-
};
|
|
629
|
-
|
|
630
|
-
export type GetEvalResponseBodyEvalsResponse200ModelParameters = {
|
|
631
|
-
temperature?: number | undefined;
|
|
632
|
-
maxTokens?: number | undefined;
|
|
633
|
-
topK?: number | undefined;
|
|
634
|
-
topP?: number | undefined;
|
|
635
|
-
frequencyPenalty?: number | undefined;
|
|
636
|
-
presencePenalty?: number | undefined;
|
|
637
|
-
reasoningEffort?: string | undefined;
|
|
638
|
-
budgetTokens?: number | undefined;
|
|
639
|
-
};
|
|
640
|
-
|
|
641
|
-
export type GetEvalResponseBodyEvalsResponse200Model = {
|
|
642
|
-
id: string;
|
|
643
|
-
integrationId?: string | null | undefined;
|
|
644
|
-
modelParameters?:
|
|
645
|
-
| GetEvalResponseBodyEvalsResponse200ModelParameters
|
|
646
|
-
| undefined;
|
|
647
|
-
};
|
|
648
|
-
|
|
649
|
-
export type ResponseBodyFallbacks = {
|
|
650
|
-
model: GetEvalResponseBodyEvalsResponse200Model;
|
|
651
|
-
};
|
|
652
|
-
|
|
653
|
-
export type ResponseBodyJudges = {
|
|
654
|
-
model: GetEvalResponseBodyEvalsModel;
|
|
655
|
-
retry?: ResponseBodyRetry | undefined;
|
|
656
|
-
fallbacks?: Array<ResponseBodyFallbacks> | undefined;
|
|
657
|
-
};
|
|
658
|
-
|
|
659
|
-
export type GetEvalResponseBodyModelParameters = {
|
|
660
|
-
temperature?: number | undefined;
|
|
661
|
-
maxTokens?: number | undefined;
|
|
662
|
-
topK?: number | undefined;
|
|
663
|
-
topP?: number | undefined;
|
|
664
|
-
frequencyPenalty?: number | undefined;
|
|
665
|
-
presencePenalty?: number | undefined;
|
|
666
|
-
reasoningEffort?: string | undefined;
|
|
667
|
-
budgetTokens?: number | undefined;
|
|
668
|
-
};
|
|
669
|
-
|
|
670
|
-
export type GetEvalResponseBodyEvalsResponseModel = {
|
|
671
|
-
id: string;
|
|
672
|
-
integrationId?: string | null | undefined;
|
|
673
|
-
modelParameters?: GetEvalResponseBodyModelParameters | undefined;
|
|
674
|
-
};
|
|
675
|
-
|
|
676
|
-
export type GetEvalResponseBodyRetry = {
|
|
677
|
-
count: number;
|
|
678
|
-
onCodes?: Array<number> | undefined;
|
|
679
|
-
};
|
|
680
|
-
|
|
681
|
-
export type GetEvalResponseBodyEvalsResponseModelParameters = {
|
|
682
|
-
temperature?: number | undefined;
|
|
683
|
-
maxTokens?: number | undefined;
|
|
684
|
-
topK?: number | undefined;
|
|
685
|
-
topP?: number | undefined;
|
|
686
|
-
frequencyPenalty?: number | undefined;
|
|
687
|
-
presencePenalty?: number | undefined;
|
|
688
|
-
reasoningEffort?: string | undefined;
|
|
689
|
-
budgetTokens?: number | undefined;
|
|
690
|
-
};
|
|
691
|
-
|
|
692
|
-
export type GetEvalResponseBodyEvalsResponse200ApplicationJSONModel = {
|
|
693
|
-
id: string;
|
|
694
|
-
integrationId?: string | null | undefined;
|
|
695
|
-
modelParameters?: GetEvalResponseBodyEvalsResponseModelParameters | undefined;
|
|
696
|
-
};
|
|
697
|
-
|
|
698
|
-
export type GetEvalResponseBodyFallbacks = {
|
|
699
|
-
model: GetEvalResponseBodyEvalsResponse200ApplicationJSONModel;
|
|
700
|
-
};
|
|
701
|
-
|
|
702
|
-
export type ResponseBodyReplacementJudges = {
|
|
703
|
-
model: GetEvalResponseBodyEvalsResponseModel;
|
|
704
|
-
retry?: GetEvalResponseBodyRetry | undefined;
|
|
705
|
-
fallbacks?: Array<GetEvalResponseBodyFallbacks> | undefined;
|
|
706
|
-
};
|
|
707
|
-
|
|
708
|
-
export const ResponseBodyTieValue = {
|
|
709
|
-
Tie: "Tie",
|
|
710
|
-
} as const;
|
|
711
|
-
export type ResponseBodyTieValue = ClosedEnum<typeof ResponseBodyTieValue>;
|
|
712
|
-
|
|
713
|
-
export type ResponseBodyJury = {
|
|
714
|
-
judges: Array<ResponseBodyJudges>;
|
|
715
|
-
replacementJudges?: Array<ResponseBodyReplacementJudges> | undefined;
|
|
716
|
-
minSuccessfulJudges: number;
|
|
717
|
-
tieValue: ResponseBodyTieValue;
|
|
718
|
-
};
|
|
719
|
-
|
|
720
|
-
export type ResponseBodyCategoricalLabels = {
|
|
721
|
-
value: string;
|
|
722
|
-
description?: string | undefined;
|
|
723
|
-
};
|
|
724
|
-
|
|
725
|
-
export type ResponseBodyLLM = {
|
|
726
|
-
enabled: boolean;
|
|
727
|
-
metadata: GetEvalResponseBodyEvalsResponse200ApplicationJson1Metadata;
|
|
728
|
-
id: string;
|
|
729
|
-
displayName: string;
|
|
730
|
-
description: string;
|
|
731
|
-
owner: string;
|
|
732
|
-
created: string;
|
|
733
|
-
updated: string;
|
|
734
|
-
createdById?: string | null | undefined;
|
|
735
|
-
updatedById?: string | null | undefined;
|
|
736
|
-
domainId: string;
|
|
737
|
-
/**
|
|
738
|
-
* Unique identifier of the project owning this evaluator.
|
|
739
|
-
*/
|
|
740
|
-
projectId?: string | undefined;
|
|
741
|
-
guardrailConfig?: any | undefined;
|
|
742
|
-
/**
|
|
743
|
-
* The type of output expected from the evaluator
|
|
744
|
-
*/
|
|
745
|
-
outputType?: ResponseBodyOutputType | undefined;
|
|
746
|
-
type: "llm_eval";
|
|
747
|
-
mode?: ResponseBodyMode | null | undefined;
|
|
748
|
-
repetitions?: number | null | undefined;
|
|
749
|
-
model?: GetEvalResponseBodyModel | undefined;
|
|
750
|
-
jury?: ResponseBodyJury | null | undefined;
|
|
751
|
-
prompt: string;
|
|
752
|
-
categories?: Array<string> | null | undefined;
|
|
753
|
-
categoricalLabels?: Array<ResponseBodyCategoricalLabels> | null | undefined;
|
|
754
|
-
datasetId?: string | null | undefined;
|
|
755
|
-
};
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* The evaluator. The response shape depends on the evaluator `type`.
|
|
759
|
-
*/
|
|
760
|
-
export type GetEvalResponseBody =
|
|
761
|
-
| ResponseBodyLLM
|
|
762
|
-
| ResponseBodyFunction
|
|
763
|
-
| Ragas
|
|
764
|
-
| Json
|
|
765
|
-
| ResponseBodyHTTP
|
|
766
|
-
| ResponseBodyPython
|
|
767
|
-
| Typescript
|
|
768
|
-
| BedrockGuardrail;
|
|
769
|
-
|
|
770
11
|
/** @internal */
|
|
771
12
|
export type GetEvalRequest$Outbound = {
|
|
772
13
|
id: string;
|
|
@@ -784,2014 +25,3 @@ export const GetEvalRequest$outboundSchema: z.ZodType<
|
|
|
784
25
|
export function getEvalRequestToJSON(getEvalRequest: GetEvalRequest): string {
|
|
785
26
|
return JSON.stringify(GetEvalRequest$outboundSchema.parse(getEvalRequest));
|
|
786
27
|
}
|
|
787
|
-
|
|
788
|
-
/** @internal */
|
|
789
|
-
export const GetEvalResponseBodyEvalsResponse200ApplicationJson8Metadata$inboundSchema:
|
|
790
|
-
z.ZodType<
|
|
791
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJson8Metadata,
|
|
792
|
-
z.ZodTypeDef,
|
|
793
|
-
unknown
|
|
794
|
-
> = z.object({
|
|
795
|
-
required_model_with_tools_support: z.boolean().optional(),
|
|
796
|
-
required_retrieval_context: z.boolean().optional(),
|
|
797
|
-
required_expected_output: z.boolean().optional(),
|
|
798
|
-
supported_on_input_type: z.boolean().optional(),
|
|
799
|
-
supported_on_output_type: z.boolean().optional(),
|
|
800
|
-
support_use_as_guardrail: z.boolean().optional(),
|
|
801
|
-
}).transform((v) => {
|
|
802
|
-
return remap$(v, {
|
|
803
|
-
"required_model_with_tools_support": "requiredModelWithToolsSupport",
|
|
804
|
-
"required_retrieval_context": "requiredRetrievalContext",
|
|
805
|
-
"required_expected_output": "requiredExpectedOutput",
|
|
806
|
-
"supported_on_input_type": "supportedOnInputType",
|
|
807
|
-
"supported_on_output_type": "supportedOnOutputType",
|
|
808
|
-
"support_use_as_guardrail": "supportUseAsGuardrail",
|
|
809
|
-
});
|
|
810
|
-
});
|
|
811
|
-
|
|
812
|
-
export function getEvalResponseBodyEvalsResponse200ApplicationJSON8MetadataFromJSON(
|
|
813
|
-
jsonString: string,
|
|
814
|
-
): SafeParseResult<
|
|
815
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJson8Metadata,
|
|
816
|
-
SDKValidationError
|
|
817
|
-
> {
|
|
818
|
-
return safeParse(
|
|
819
|
-
jsonString,
|
|
820
|
-
(x) =>
|
|
821
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJson8Metadata$inboundSchema
|
|
822
|
-
.parse(JSON.parse(x)),
|
|
823
|
-
`Failed to parse 'GetEvalResponseBodyEvalsResponse200ApplicationJson8Metadata' from JSON`,
|
|
824
|
-
);
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
/** @internal */
|
|
828
|
-
export const GetEvalResponseBodyEvalsResponse200ApplicationJson8OutputType$inboundSchema:
|
|
829
|
-
z.ZodNativeEnum<
|
|
830
|
-
typeof GetEvalResponseBodyEvalsResponse200ApplicationJson8OutputType
|
|
831
|
-
> = z.nativeEnum(
|
|
832
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJson8OutputType,
|
|
833
|
-
);
|
|
834
|
-
|
|
835
|
-
/** @internal */
|
|
836
|
-
export const BedrockGuardrail$inboundSchema: z.ZodType<
|
|
837
|
-
BedrockGuardrail,
|
|
838
|
-
z.ZodTypeDef,
|
|
839
|
-
unknown
|
|
840
|
-
> = z.object({
|
|
841
|
-
enabled: z.boolean().default(true),
|
|
842
|
-
metadata: z.lazy(() =>
|
|
843
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJson8Metadata$inboundSchema
|
|
844
|
-
),
|
|
845
|
-
_id: z.string(),
|
|
846
|
-
display_name: z.string(),
|
|
847
|
-
description: z.string(),
|
|
848
|
-
owner: z.string(),
|
|
849
|
-
created: z.string().default("2026-08-26T09:46:51.830Z"),
|
|
850
|
-
updated: z.string().default("2026-08-26T09:46:51.831Z"),
|
|
851
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
852
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
853
|
-
domain_id: z.string(),
|
|
854
|
-
project_id: z.string().optional(),
|
|
855
|
-
guardrail_config: z.any().optional(),
|
|
856
|
-
output_type:
|
|
857
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJson8OutputType$inboundSchema
|
|
858
|
-
.optional(),
|
|
859
|
-
type: z.literal("bedrock_eval"),
|
|
860
|
-
guardrail_identifier: z.string(),
|
|
861
|
-
guardrail_version: z.string().default("DRAFT"),
|
|
862
|
-
guardrail_region: z.string().optional(),
|
|
863
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
864
|
-
}).transform((v) => {
|
|
865
|
-
return remap$(v, {
|
|
866
|
-
"_id": "id",
|
|
867
|
-
"display_name": "displayName",
|
|
868
|
-
"created_by_id": "createdById",
|
|
869
|
-
"updated_by_id": "updatedById",
|
|
870
|
-
"domain_id": "domainId",
|
|
871
|
-
"project_id": "projectId",
|
|
872
|
-
"guardrail_config": "guardrailConfig",
|
|
873
|
-
"output_type": "outputType",
|
|
874
|
-
"guardrail_identifier": "guardrailIdentifier",
|
|
875
|
-
"guardrail_version": "guardrailVersion",
|
|
876
|
-
"guardrail_region": "guardrailRegion",
|
|
877
|
-
"integration_id": "integrationId",
|
|
878
|
-
});
|
|
879
|
-
});
|
|
880
|
-
|
|
881
|
-
export function bedrockGuardrailFromJSON(
|
|
882
|
-
jsonString: string,
|
|
883
|
-
): SafeParseResult<BedrockGuardrail, SDKValidationError> {
|
|
884
|
-
return safeParse(
|
|
885
|
-
jsonString,
|
|
886
|
-
(x) => BedrockGuardrail$inboundSchema.parse(JSON.parse(x)),
|
|
887
|
-
`Failed to parse 'BedrockGuardrail' from JSON`,
|
|
888
|
-
);
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
/** @internal */
|
|
892
|
-
export const GetEvalResponseBodyEvalsResponse200ApplicationJSONMetadata$inboundSchema:
|
|
893
|
-
z.ZodType<
|
|
894
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJSONMetadata,
|
|
895
|
-
z.ZodTypeDef,
|
|
896
|
-
unknown
|
|
897
|
-
> = z.object({
|
|
898
|
-
required_model_with_tools_support: z.boolean().optional(),
|
|
899
|
-
required_retrieval_context: z.boolean().optional(),
|
|
900
|
-
required_expected_output: z.boolean().optional(),
|
|
901
|
-
supported_on_input_type: z.boolean().optional(),
|
|
902
|
-
supported_on_output_type: z.boolean().optional(),
|
|
903
|
-
support_use_as_guardrail: z.boolean().optional(),
|
|
904
|
-
}).transform((v) => {
|
|
905
|
-
return remap$(v, {
|
|
906
|
-
"required_model_with_tools_support": "requiredModelWithToolsSupport",
|
|
907
|
-
"required_retrieval_context": "requiredRetrievalContext",
|
|
908
|
-
"required_expected_output": "requiredExpectedOutput",
|
|
909
|
-
"supported_on_input_type": "supportedOnInputType",
|
|
910
|
-
"supported_on_output_type": "supportedOnOutputType",
|
|
911
|
-
"support_use_as_guardrail": "supportUseAsGuardrail",
|
|
912
|
-
});
|
|
913
|
-
});
|
|
914
|
-
|
|
915
|
-
export function getEvalResponseBodyEvalsResponse200ApplicationJSONMetadataFromJSON(
|
|
916
|
-
jsonString: string,
|
|
917
|
-
): SafeParseResult<
|
|
918
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJSONMetadata,
|
|
919
|
-
SDKValidationError
|
|
920
|
-
> {
|
|
921
|
-
return safeParse(
|
|
922
|
-
jsonString,
|
|
923
|
-
(x) =>
|
|
924
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJSONMetadata$inboundSchema
|
|
925
|
-
.parse(JSON.parse(x)),
|
|
926
|
-
`Failed to parse 'GetEvalResponseBodyEvalsResponse200ApplicationJSONMetadata' from JSON`,
|
|
927
|
-
);
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
/** @internal */
|
|
931
|
-
export const GetEvalResponseBodyEvalsResponse200ApplicationJson7OutputType$inboundSchema:
|
|
932
|
-
z.ZodNativeEnum<
|
|
933
|
-
typeof GetEvalResponseBodyEvalsResponse200ApplicationJson7OutputType
|
|
934
|
-
> = z.nativeEnum(
|
|
935
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJson7OutputType,
|
|
936
|
-
);
|
|
937
|
-
|
|
938
|
-
/** @internal */
|
|
939
|
-
export const Typescript$inboundSchema: z.ZodType<
|
|
940
|
-
Typescript,
|
|
941
|
-
z.ZodTypeDef,
|
|
942
|
-
unknown
|
|
943
|
-
> = z.object({
|
|
944
|
-
enabled: z.boolean().default(true),
|
|
945
|
-
metadata: z.lazy(() =>
|
|
946
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJSONMetadata$inboundSchema
|
|
947
|
-
),
|
|
948
|
-
_id: z.string(),
|
|
949
|
-
display_name: z.string(),
|
|
950
|
-
description: z.string(),
|
|
951
|
-
owner: z.string(),
|
|
952
|
-
created: z.string().default("2026-08-26T09:46:51.830Z"),
|
|
953
|
-
updated: z.string().default("2026-08-26T09:46:51.831Z"),
|
|
954
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
955
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
956
|
-
domain_id: z.string(),
|
|
957
|
-
project_id: z.string().optional(),
|
|
958
|
-
guardrail_config: z.any().optional(),
|
|
959
|
-
output_type:
|
|
960
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJson7OutputType$inboundSchema
|
|
961
|
-
.optional(),
|
|
962
|
-
code: z.string(),
|
|
963
|
-
type: z.literal("typescript_eval"),
|
|
964
|
-
}).transform((v) => {
|
|
965
|
-
return remap$(v, {
|
|
966
|
-
"_id": "id",
|
|
967
|
-
"display_name": "displayName",
|
|
968
|
-
"created_by_id": "createdById",
|
|
969
|
-
"updated_by_id": "updatedById",
|
|
970
|
-
"domain_id": "domainId",
|
|
971
|
-
"project_id": "projectId",
|
|
972
|
-
"guardrail_config": "guardrailConfig",
|
|
973
|
-
"output_type": "outputType",
|
|
974
|
-
});
|
|
975
|
-
});
|
|
976
|
-
|
|
977
|
-
export function typescriptFromJSON(
|
|
978
|
-
jsonString: string,
|
|
979
|
-
): SafeParseResult<Typescript, SDKValidationError> {
|
|
980
|
-
return safeParse(
|
|
981
|
-
jsonString,
|
|
982
|
-
(x) => Typescript$inboundSchema.parse(JSON.parse(x)),
|
|
983
|
-
`Failed to parse 'Typescript' from JSON`,
|
|
984
|
-
);
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
/** @internal */
|
|
988
|
-
export const GetEvalResponseBodyEvalsResponse200Metadata$inboundSchema:
|
|
989
|
-
z.ZodType<
|
|
990
|
-
GetEvalResponseBodyEvalsResponse200Metadata,
|
|
991
|
-
z.ZodTypeDef,
|
|
992
|
-
unknown
|
|
993
|
-
> = z.object({
|
|
994
|
-
required_model_with_tools_support: z.boolean().optional(),
|
|
995
|
-
required_retrieval_context: z.boolean().optional(),
|
|
996
|
-
required_expected_output: z.boolean().optional(),
|
|
997
|
-
supported_on_input_type: z.boolean().optional(),
|
|
998
|
-
supported_on_output_type: z.boolean().optional(),
|
|
999
|
-
support_use_as_guardrail: z.boolean().optional(),
|
|
1000
|
-
}).transform((v) => {
|
|
1001
|
-
return remap$(v, {
|
|
1002
|
-
"required_model_with_tools_support": "requiredModelWithToolsSupport",
|
|
1003
|
-
"required_retrieval_context": "requiredRetrievalContext",
|
|
1004
|
-
"required_expected_output": "requiredExpectedOutput",
|
|
1005
|
-
"supported_on_input_type": "supportedOnInputType",
|
|
1006
|
-
"supported_on_output_type": "supportedOnOutputType",
|
|
1007
|
-
"support_use_as_guardrail": "supportUseAsGuardrail",
|
|
1008
|
-
});
|
|
1009
|
-
});
|
|
1010
|
-
|
|
1011
|
-
export function getEvalResponseBodyEvalsResponse200MetadataFromJSON(
|
|
1012
|
-
jsonString: string,
|
|
1013
|
-
): SafeParseResult<
|
|
1014
|
-
GetEvalResponseBodyEvalsResponse200Metadata,
|
|
1015
|
-
SDKValidationError
|
|
1016
|
-
> {
|
|
1017
|
-
return safeParse(
|
|
1018
|
-
jsonString,
|
|
1019
|
-
(x) =>
|
|
1020
|
-
GetEvalResponseBodyEvalsResponse200Metadata$inboundSchema.parse(
|
|
1021
|
-
JSON.parse(x),
|
|
1022
|
-
),
|
|
1023
|
-
`Failed to parse 'GetEvalResponseBodyEvalsResponse200Metadata' from JSON`,
|
|
1024
|
-
);
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
/** @internal */
|
|
1028
|
-
export const GetEvalResponseBodyEvalsResponse200ApplicationJSONOutputType$inboundSchema:
|
|
1029
|
-
z.ZodNativeEnum<
|
|
1030
|
-
typeof GetEvalResponseBodyEvalsResponse200ApplicationJSONOutputType
|
|
1031
|
-
> = z.nativeEnum(
|
|
1032
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJSONOutputType,
|
|
1033
|
-
);
|
|
1034
|
-
|
|
1035
|
-
/** @internal */
|
|
1036
|
-
export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
1037
|
-
ResponseBodyPython,
|
|
1038
|
-
z.ZodTypeDef,
|
|
1039
|
-
unknown
|
|
1040
|
-
> = z.object({
|
|
1041
|
-
enabled: z.boolean().default(true),
|
|
1042
|
-
metadata: z.lazy(() =>
|
|
1043
|
-
GetEvalResponseBodyEvalsResponse200Metadata$inboundSchema
|
|
1044
|
-
),
|
|
1045
|
-
_id: z.string(),
|
|
1046
|
-
display_name: z.string(),
|
|
1047
|
-
description: z.string(),
|
|
1048
|
-
owner: z.string(),
|
|
1049
|
-
created: z.string().default("2026-08-26T09:46:51.830Z"),
|
|
1050
|
-
updated: z.string().default("2026-08-26T09:46:51.831Z"),
|
|
1051
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
1052
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
1053
|
-
domain_id: z.string(),
|
|
1054
|
-
project_id: z.string().optional(),
|
|
1055
|
-
guardrail_config: z.any().optional(),
|
|
1056
|
-
output_type:
|
|
1057
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJSONOutputType$inboundSchema
|
|
1058
|
-
.optional(),
|
|
1059
|
-
code: z.string(),
|
|
1060
|
-
type: z.literal("python_eval"),
|
|
1061
|
-
}).transform((v) => {
|
|
1062
|
-
return remap$(v, {
|
|
1063
|
-
"_id": "id",
|
|
1064
|
-
"display_name": "displayName",
|
|
1065
|
-
"created_by_id": "createdById",
|
|
1066
|
-
"updated_by_id": "updatedById",
|
|
1067
|
-
"domain_id": "domainId",
|
|
1068
|
-
"project_id": "projectId",
|
|
1069
|
-
"guardrail_config": "guardrailConfig",
|
|
1070
|
-
"output_type": "outputType",
|
|
1071
|
-
});
|
|
1072
|
-
});
|
|
1073
|
-
|
|
1074
|
-
export function responseBodyPythonFromJSON(
|
|
1075
|
-
jsonString: string,
|
|
1076
|
-
): SafeParseResult<ResponseBodyPython, SDKValidationError> {
|
|
1077
|
-
return safeParse(
|
|
1078
|
-
jsonString,
|
|
1079
|
-
(x) => ResponseBodyPython$inboundSchema.parse(JSON.parse(x)),
|
|
1080
|
-
`Failed to parse 'ResponseBodyPython' from JSON`,
|
|
1081
|
-
);
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
/** @internal */
|
|
1085
|
-
export const GetEvalResponseBodyEvalsResponseMetadata$inboundSchema: z.ZodType<
|
|
1086
|
-
GetEvalResponseBodyEvalsResponseMetadata,
|
|
1087
|
-
z.ZodTypeDef,
|
|
1088
|
-
unknown
|
|
1089
|
-
> = z.object({
|
|
1090
|
-
required_model_with_tools_support: z.boolean().optional(),
|
|
1091
|
-
required_retrieval_context: z.boolean().optional(),
|
|
1092
|
-
required_expected_output: z.boolean().optional(),
|
|
1093
|
-
supported_on_input_type: z.boolean().optional(),
|
|
1094
|
-
supported_on_output_type: z.boolean().optional(),
|
|
1095
|
-
support_use_as_guardrail: z.boolean().optional(),
|
|
1096
|
-
}).transform((v) => {
|
|
1097
|
-
return remap$(v, {
|
|
1098
|
-
"required_model_with_tools_support": "requiredModelWithToolsSupport",
|
|
1099
|
-
"required_retrieval_context": "requiredRetrievalContext",
|
|
1100
|
-
"required_expected_output": "requiredExpectedOutput",
|
|
1101
|
-
"supported_on_input_type": "supportedOnInputType",
|
|
1102
|
-
"supported_on_output_type": "supportedOnOutputType",
|
|
1103
|
-
"support_use_as_guardrail": "supportUseAsGuardrail",
|
|
1104
|
-
});
|
|
1105
|
-
});
|
|
1106
|
-
|
|
1107
|
-
export function getEvalResponseBodyEvalsResponseMetadataFromJSON(
|
|
1108
|
-
jsonString: string,
|
|
1109
|
-
): SafeParseResult<
|
|
1110
|
-
GetEvalResponseBodyEvalsResponseMetadata,
|
|
1111
|
-
SDKValidationError
|
|
1112
|
-
> {
|
|
1113
|
-
return safeParse(
|
|
1114
|
-
jsonString,
|
|
1115
|
-
(x) =>
|
|
1116
|
-
GetEvalResponseBodyEvalsResponseMetadata$inboundSchema.parse(
|
|
1117
|
-
JSON.parse(x),
|
|
1118
|
-
),
|
|
1119
|
-
`Failed to parse 'GetEvalResponseBodyEvalsResponseMetadata' from JSON`,
|
|
1120
|
-
);
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
/** @internal */
|
|
1124
|
-
export const GetEvalResponseBodyEvalsResponse200OutputType$inboundSchema:
|
|
1125
|
-
z.ZodNativeEnum<typeof GetEvalResponseBodyEvalsResponse200OutputType> = z
|
|
1126
|
-
.nativeEnum(GetEvalResponseBodyEvalsResponse200OutputType);
|
|
1127
|
-
|
|
1128
|
-
/** @internal */
|
|
1129
|
-
export const ResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
|
|
1130
|
-
typeof ResponseBodyMethod
|
|
1131
|
-
> = z.nativeEnum(ResponseBodyMethod);
|
|
1132
|
-
|
|
1133
|
-
/** @internal */
|
|
1134
|
-
export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
1135
|
-
ResponseBodyHTTP,
|
|
1136
|
-
z.ZodTypeDef,
|
|
1137
|
-
unknown
|
|
1138
|
-
> = z.object({
|
|
1139
|
-
enabled: z.boolean().default(true),
|
|
1140
|
-
metadata: z.lazy(() =>
|
|
1141
|
-
GetEvalResponseBodyEvalsResponseMetadata$inboundSchema
|
|
1142
|
-
),
|
|
1143
|
-
_id: z.string(),
|
|
1144
|
-
display_name: z.string(),
|
|
1145
|
-
description: z.string(),
|
|
1146
|
-
owner: z.string(),
|
|
1147
|
-
created: z.string().default("2026-08-26T09:46:51.830Z"),
|
|
1148
|
-
updated: z.string().default("2026-08-26T09:46:51.831Z"),
|
|
1149
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
1150
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
1151
|
-
domain_id: z.string(),
|
|
1152
|
-
project_id: z.string().optional(),
|
|
1153
|
-
guardrail_config: z.any().optional(),
|
|
1154
|
-
output_type: GetEvalResponseBodyEvalsResponse200OutputType$inboundSchema
|
|
1155
|
-
.optional(),
|
|
1156
|
-
type: z.literal("http_eval"),
|
|
1157
|
-
url: z.string(),
|
|
1158
|
-
method: ResponseBodyMethod$inboundSchema,
|
|
1159
|
-
headers: z.record(z.string()),
|
|
1160
|
-
payload: z.record(z.any()),
|
|
1161
|
-
}).transform((v) => {
|
|
1162
|
-
return remap$(v, {
|
|
1163
|
-
"_id": "id",
|
|
1164
|
-
"display_name": "displayName",
|
|
1165
|
-
"created_by_id": "createdById",
|
|
1166
|
-
"updated_by_id": "updatedById",
|
|
1167
|
-
"domain_id": "domainId",
|
|
1168
|
-
"project_id": "projectId",
|
|
1169
|
-
"guardrail_config": "guardrailConfig",
|
|
1170
|
-
"output_type": "outputType",
|
|
1171
|
-
});
|
|
1172
|
-
});
|
|
1173
|
-
|
|
1174
|
-
export function responseBodyHTTPFromJSON(
|
|
1175
|
-
jsonString: string,
|
|
1176
|
-
): SafeParseResult<ResponseBodyHTTP, SDKValidationError> {
|
|
1177
|
-
return safeParse(
|
|
1178
|
-
jsonString,
|
|
1179
|
-
(x) => ResponseBodyHTTP$inboundSchema.parse(JSON.parse(x)),
|
|
1180
|
-
`Failed to parse 'ResponseBodyHTTP' from JSON`,
|
|
1181
|
-
);
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
/** @internal */
|
|
1185
|
-
export const GetEvalResponseBodyEvalsMetadata$inboundSchema: z.ZodType<
|
|
1186
|
-
GetEvalResponseBodyEvalsMetadata,
|
|
1187
|
-
z.ZodTypeDef,
|
|
1188
|
-
unknown
|
|
1189
|
-
> = z.object({
|
|
1190
|
-
required_model_with_tools_support: z.boolean().optional(),
|
|
1191
|
-
required_retrieval_context: z.boolean().optional(),
|
|
1192
|
-
required_expected_output: z.boolean().optional(),
|
|
1193
|
-
supported_on_input_type: z.boolean().optional(),
|
|
1194
|
-
supported_on_output_type: z.boolean().optional(),
|
|
1195
|
-
support_use_as_guardrail: z.boolean().optional(),
|
|
1196
|
-
}).transform((v) => {
|
|
1197
|
-
return remap$(v, {
|
|
1198
|
-
"required_model_with_tools_support": "requiredModelWithToolsSupport",
|
|
1199
|
-
"required_retrieval_context": "requiredRetrievalContext",
|
|
1200
|
-
"required_expected_output": "requiredExpectedOutput",
|
|
1201
|
-
"supported_on_input_type": "supportedOnInputType",
|
|
1202
|
-
"supported_on_output_type": "supportedOnOutputType",
|
|
1203
|
-
"support_use_as_guardrail": "supportUseAsGuardrail",
|
|
1204
|
-
});
|
|
1205
|
-
});
|
|
1206
|
-
|
|
1207
|
-
export function getEvalResponseBodyEvalsMetadataFromJSON(
|
|
1208
|
-
jsonString: string,
|
|
1209
|
-
): SafeParseResult<GetEvalResponseBodyEvalsMetadata, SDKValidationError> {
|
|
1210
|
-
return safeParse(
|
|
1211
|
-
jsonString,
|
|
1212
|
-
(x) => GetEvalResponseBodyEvalsMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
1213
|
-
`Failed to parse 'GetEvalResponseBodyEvalsMetadata' from JSON`,
|
|
1214
|
-
);
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
/** @internal */
|
|
1218
|
-
export const GetEvalResponseBodyEvalsResponseOutputType$inboundSchema:
|
|
1219
|
-
z.ZodNativeEnum<typeof GetEvalResponseBodyEvalsResponseOutputType> = z
|
|
1220
|
-
.nativeEnum(GetEvalResponseBodyEvalsResponseOutputType);
|
|
1221
|
-
|
|
1222
|
-
/** @internal */
|
|
1223
|
-
export const Json$inboundSchema: z.ZodType<Json, z.ZodTypeDef, unknown> = z
|
|
1224
|
-
.object({
|
|
1225
|
-
enabled: z.boolean().default(true),
|
|
1226
|
-
metadata: z.lazy(() => GetEvalResponseBodyEvalsMetadata$inboundSchema),
|
|
1227
|
-
_id: z.string(),
|
|
1228
|
-
display_name: z.string(),
|
|
1229
|
-
description: z.string(),
|
|
1230
|
-
owner: z.string(),
|
|
1231
|
-
created: z.string().default("2026-08-26T09:46:51.830Z"),
|
|
1232
|
-
updated: z.string().default("2026-08-26T09:46:51.831Z"),
|
|
1233
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
1234
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
1235
|
-
domain_id: z.string(),
|
|
1236
|
-
project_id: z.string().optional(),
|
|
1237
|
-
guardrail_config: z.any().optional(),
|
|
1238
|
-
output_type: GetEvalResponseBodyEvalsResponseOutputType$inboundSchema
|
|
1239
|
-
.optional(),
|
|
1240
|
-
type: z.literal("json_schema"),
|
|
1241
|
-
schema: z.string(),
|
|
1242
|
-
}).transform((v) => {
|
|
1243
|
-
return remap$(v, {
|
|
1244
|
-
"_id": "id",
|
|
1245
|
-
"display_name": "displayName",
|
|
1246
|
-
"created_by_id": "createdById",
|
|
1247
|
-
"updated_by_id": "updatedById",
|
|
1248
|
-
"domain_id": "domainId",
|
|
1249
|
-
"project_id": "projectId",
|
|
1250
|
-
"guardrail_config": "guardrailConfig",
|
|
1251
|
-
"output_type": "outputType",
|
|
1252
|
-
});
|
|
1253
|
-
});
|
|
1254
|
-
|
|
1255
|
-
export function jsonFromJSON(
|
|
1256
|
-
jsonString: string,
|
|
1257
|
-
): SafeParseResult<Json, SDKValidationError> {
|
|
1258
|
-
return safeParse(
|
|
1259
|
-
jsonString,
|
|
1260
|
-
(x) => Json$inboundSchema.parse(JSON.parse(x)),
|
|
1261
|
-
`Failed to parse 'Json' from JSON`,
|
|
1262
|
-
);
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
/** @internal */
|
|
1266
|
-
export const GetEvalResponseBodyMetadata$inboundSchema: z.ZodType<
|
|
1267
|
-
GetEvalResponseBodyMetadata,
|
|
1268
|
-
z.ZodTypeDef,
|
|
1269
|
-
unknown
|
|
1270
|
-
> = z.object({
|
|
1271
|
-
required_model_with_tools_support: z.boolean().optional(),
|
|
1272
|
-
required_retrieval_context: z.boolean().optional(),
|
|
1273
|
-
required_expected_output: z.boolean().optional(),
|
|
1274
|
-
supported_on_input_type: z.boolean().optional(),
|
|
1275
|
-
supported_on_output_type: z.boolean().optional(),
|
|
1276
|
-
support_use_as_guardrail: z.boolean().optional(),
|
|
1277
|
-
}).transform((v) => {
|
|
1278
|
-
return remap$(v, {
|
|
1279
|
-
"required_model_with_tools_support": "requiredModelWithToolsSupport",
|
|
1280
|
-
"required_retrieval_context": "requiredRetrievalContext",
|
|
1281
|
-
"required_expected_output": "requiredExpectedOutput",
|
|
1282
|
-
"supported_on_input_type": "supportedOnInputType",
|
|
1283
|
-
"supported_on_output_type": "supportedOnOutputType",
|
|
1284
|
-
"support_use_as_guardrail": "supportUseAsGuardrail",
|
|
1285
|
-
});
|
|
1286
|
-
});
|
|
1287
|
-
|
|
1288
|
-
export function getEvalResponseBodyMetadataFromJSON(
|
|
1289
|
-
jsonString: string,
|
|
1290
|
-
): SafeParseResult<GetEvalResponseBodyMetadata, SDKValidationError> {
|
|
1291
|
-
return safeParse(
|
|
1292
|
-
jsonString,
|
|
1293
|
-
(x) => GetEvalResponseBodyMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
1294
|
-
`Failed to parse 'GetEvalResponseBodyMetadata' from JSON`,
|
|
1295
|
-
);
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
/** @internal */
|
|
1299
|
-
export const GetEvalResponseBodyEvalsOutputType$inboundSchema: z.ZodNativeEnum<
|
|
1300
|
-
typeof GetEvalResponseBodyEvalsOutputType
|
|
1301
|
-
> = z.nativeEnum(GetEvalResponseBodyEvalsOutputType);
|
|
1302
|
-
|
|
1303
|
-
/** @internal */
|
|
1304
|
-
export const ResponseBodyModel$inboundSchema: z.ZodType<
|
|
1305
|
-
ResponseBodyModel,
|
|
1306
|
-
z.ZodTypeDef,
|
|
1307
|
-
unknown
|
|
1308
|
-
> = z.object({
|
|
1309
|
-
id: z.string(),
|
|
1310
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
1311
|
-
}).transform((v) => {
|
|
1312
|
-
return remap$(v, {
|
|
1313
|
-
"integration_id": "integrationId",
|
|
1314
|
-
});
|
|
1315
|
-
});
|
|
1316
|
-
|
|
1317
|
-
export function responseBodyModelFromJSON(
|
|
1318
|
-
jsonString: string,
|
|
1319
|
-
): SafeParseResult<ResponseBodyModel, SDKValidationError> {
|
|
1320
|
-
return safeParse(
|
|
1321
|
-
jsonString,
|
|
1322
|
-
(x) => ResponseBodyModel$inboundSchema.parse(JSON.parse(x)),
|
|
1323
|
-
`Failed to parse 'ResponseBodyModel' from JSON`,
|
|
1324
|
-
);
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
/** @internal */
|
|
1328
|
-
export const RagasMetric$inboundSchema: z.ZodNativeEnum<typeof RagasMetric> = z
|
|
1329
|
-
.nativeEnum(RagasMetric);
|
|
1330
|
-
|
|
1331
|
-
/** @internal */
|
|
1332
|
-
export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
1333
|
-
.object({
|
|
1334
|
-
enabled: z.boolean().default(true),
|
|
1335
|
-
metadata: z.lazy(() => GetEvalResponseBodyMetadata$inboundSchema),
|
|
1336
|
-
_id: z.string(),
|
|
1337
|
-
display_name: z.string(),
|
|
1338
|
-
description: z.string(),
|
|
1339
|
-
owner: z.string(),
|
|
1340
|
-
created: z.string().default("2026-08-26T09:46:51.830Z"),
|
|
1341
|
-
updated: z.string().default("2026-08-26T09:46:51.831Z"),
|
|
1342
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
1343
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
1344
|
-
domain_id: z.string(),
|
|
1345
|
-
project_id: z.string().optional(),
|
|
1346
|
-
guardrail_config: z.any().optional(),
|
|
1347
|
-
output_type: GetEvalResponseBodyEvalsOutputType$inboundSchema.optional(),
|
|
1348
|
-
type: z.literal("ragas"),
|
|
1349
|
-
model: z.lazy(() => ResponseBodyModel$inboundSchema),
|
|
1350
|
-
ragas_metric: RagasMetric$inboundSchema,
|
|
1351
|
-
}).transform((v) => {
|
|
1352
|
-
return remap$(v, {
|
|
1353
|
-
"_id": "id",
|
|
1354
|
-
"display_name": "displayName",
|
|
1355
|
-
"created_by_id": "createdById",
|
|
1356
|
-
"updated_by_id": "updatedById",
|
|
1357
|
-
"domain_id": "domainId",
|
|
1358
|
-
"project_id": "projectId",
|
|
1359
|
-
"guardrail_config": "guardrailConfig",
|
|
1360
|
-
"output_type": "outputType",
|
|
1361
|
-
"ragas_metric": "ragasMetric",
|
|
1362
|
-
});
|
|
1363
|
-
});
|
|
1364
|
-
|
|
1365
|
-
export function ragasFromJSON(
|
|
1366
|
-
jsonString: string,
|
|
1367
|
-
): SafeParseResult<Ragas, SDKValidationError> {
|
|
1368
|
-
return safeParse(
|
|
1369
|
-
jsonString,
|
|
1370
|
-
(x) => Ragas$inboundSchema.parse(JSON.parse(x)),
|
|
1371
|
-
`Failed to parse 'Ragas' from JSON`,
|
|
1372
|
-
);
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
/** @internal */
|
|
1376
|
-
export const ResponseBodyMetadata$inboundSchema: z.ZodType<
|
|
1377
|
-
ResponseBodyMetadata,
|
|
1378
|
-
z.ZodTypeDef,
|
|
1379
|
-
unknown
|
|
1380
|
-
> = z.object({
|
|
1381
|
-
required_model_with_tools_support: z.boolean().optional(),
|
|
1382
|
-
required_retrieval_context: z.boolean().optional(),
|
|
1383
|
-
required_expected_output: z.boolean().optional(),
|
|
1384
|
-
supported_on_input_type: z.boolean().optional(),
|
|
1385
|
-
supported_on_output_type: z.boolean().optional(),
|
|
1386
|
-
support_use_as_guardrail: z.boolean().optional(),
|
|
1387
|
-
}).transform((v) => {
|
|
1388
|
-
return remap$(v, {
|
|
1389
|
-
"required_model_with_tools_support": "requiredModelWithToolsSupport",
|
|
1390
|
-
"required_retrieval_context": "requiredRetrievalContext",
|
|
1391
|
-
"required_expected_output": "requiredExpectedOutput",
|
|
1392
|
-
"supported_on_input_type": "supportedOnInputType",
|
|
1393
|
-
"supported_on_output_type": "supportedOnOutputType",
|
|
1394
|
-
"support_use_as_guardrail": "supportUseAsGuardrail",
|
|
1395
|
-
});
|
|
1396
|
-
});
|
|
1397
|
-
|
|
1398
|
-
export function responseBodyMetadataFromJSON(
|
|
1399
|
-
jsonString: string,
|
|
1400
|
-
): SafeParseResult<ResponseBodyMetadata, SDKValidationError> {
|
|
1401
|
-
return safeParse(
|
|
1402
|
-
jsonString,
|
|
1403
|
-
(x) => ResponseBodyMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
1404
|
-
`Failed to parse 'ResponseBodyMetadata' from JSON`,
|
|
1405
|
-
);
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
/** @internal */
|
|
1409
|
-
export const GetEvalResponseBodyOutputType$inboundSchema: z.ZodNativeEnum<
|
|
1410
|
-
typeof GetEvalResponseBodyOutputType
|
|
1411
|
-
> = z.nativeEnum(GetEvalResponseBodyOutputType);
|
|
1412
|
-
|
|
1413
|
-
/** @internal */
|
|
1414
|
-
export const ThirtyTwo$inboundSchema: z.ZodType<
|
|
1415
|
-
ThirtyTwo,
|
|
1416
|
-
z.ZodTypeDef,
|
|
1417
|
-
unknown
|
|
1418
|
-
> = z.object({
|
|
1419
|
-
type: z.literal("grammar_diversity"),
|
|
1420
|
-
});
|
|
1421
|
-
|
|
1422
|
-
export function thirtyTwoFromJSON(
|
|
1423
|
-
jsonString: string,
|
|
1424
|
-
): SafeParseResult<ThirtyTwo, SDKValidationError> {
|
|
1425
|
-
return safeParse(
|
|
1426
|
-
jsonString,
|
|
1427
|
-
(x) => ThirtyTwo$inboundSchema.parse(JSON.parse(x)),
|
|
1428
|
-
`Failed to parse 'ThirtyTwo' from JSON`,
|
|
1429
|
-
);
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
/** @internal */
|
|
1433
|
-
export const ThirtyOne$inboundSchema: z.ZodType<
|
|
1434
|
-
ThirtyOne,
|
|
1435
|
-
z.ZodTypeDef,
|
|
1436
|
-
unknown
|
|
1437
|
-
> = z.object({
|
|
1438
|
-
type: z.literal("lexical_repetition"),
|
|
1439
|
-
});
|
|
1440
|
-
|
|
1441
|
-
export function thirtyOneFromJSON(
|
|
1442
|
-
jsonString: string,
|
|
1443
|
-
): SafeParseResult<ThirtyOne, SDKValidationError> {
|
|
1444
|
-
return safeParse(
|
|
1445
|
-
jsonString,
|
|
1446
|
-
(x) => ThirtyOne$inboundSchema.parse(JSON.parse(x)),
|
|
1447
|
-
`Failed to parse 'ThirtyOne' from JSON`,
|
|
1448
|
-
);
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
/** @internal */
|
|
1452
|
-
export const Thirty$inboundSchema: z.ZodType<Thirty, z.ZodTypeDef, unknown> = z
|
|
1453
|
-
.object({
|
|
1454
|
-
type: z.literal("sentences_count"),
|
|
1455
|
-
});
|
|
1456
|
-
|
|
1457
|
-
export function thirtyFromJSON(
|
|
1458
|
-
jsonString: string,
|
|
1459
|
-
): SafeParseResult<Thirty, SDKValidationError> {
|
|
1460
|
-
return safeParse(
|
|
1461
|
-
jsonString,
|
|
1462
|
-
(x) => Thirty$inboundSchema.parse(JSON.parse(x)),
|
|
1463
|
-
`Failed to parse 'Thirty' from JSON`,
|
|
1464
|
-
);
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
/** @internal */
|
|
1468
|
-
export const TwentyNine$inboundSchema: z.ZodType<
|
|
1469
|
-
TwentyNine,
|
|
1470
|
-
z.ZodTypeDef,
|
|
1471
|
-
unknown
|
|
1472
|
-
> = z.object({
|
|
1473
|
-
type: z.literal("words_count"),
|
|
1474
|
-
});
|
|
1475
|
-
|
|
1476
|
-
export function twentyNineFromJSON(
|
|
1477
|
-
jsonString: string,
|
|
1478
|
-
): SafeParseResult<TwentyNine, SDKValidationError> {
|
|
1479
|
-
return safeParse(
|
|
1480
|
-
jsonString,
|
|
1481
|
-
(x) => TwentyNine$inboundSchema.parse(JSON.parse(x)),
|
|
1482
|
-
`Failed to parse 'TwentyNine' from JSON`,
|
|
1483
|
-
);
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
/** @internal */
|
|
1487
|
-
export const TwentyEight$inboundSchema: z.ZodType<
|
|
1488
|
-
TwentyEight,
|
|
1489
|
-
z.ZodTypeDef,
|
|
1490
|
-
unknown
|
|
1491
|
-
> = z.object({
|
|
1492
|
-
type: z.literal("gse_english_level"),
|
|
1493
|
-
});
|
|
1494
|
-
|
|
1495
|
-
export function twentyEightFromJSON(
|
|
1496
|
-
jsonString: string,
|
|
1497
|
-
): SafeParseResult<TwentyEight, SDKValidationError> {
|
|
1498
|
-
return safeParse(
|
|
1499
|
-
jsonString,
|
|
1500
|
-
(x) => TwentyEight$inboundSchema.parse(JSON.parse(x)),
|
|
1501
|
-
`Failed to parse 'TwentyEight' from JSON`,
|
|
1502
|
-
);
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
/** @internal */
|
|
1506
|
-
export const TwentySeven$inboundSchema: z.ZodType<
|
|
1507
|
-
TwentySeven,
|
|
1508
|
-
z.ZodTypeDef,
|
|
1509
|
-
unknown
|
|
1510
|
-
> = z.object({
|
|
1511
|
-
type: z.literal("flesch_reading_ease"),
|
|
1512
|
-
});
|
|
1513
|
-
|
|
1514
|
-
export function twentySevenFromJSON(
|
|
1515
|
-
jsonString: string,
|
|
1516
|
-
): SafeParseResult<TwentySeven, SDKValidationError> {
|
|
1517
|
-
return safeParse(
|
|
1518
|
-
jsonString,
|
|
1519
|
-
(x) => TwentySeven$inboundSchema.parse(JSON.parse(x)),
|
|
1520
|
-
`Failed to parse 'TwentySeven' from JSON`,
|
|
1521
|
-
);
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
/** @internal */
|
|
1525
|
-
export const TwentySix$inboundSchema: z.ZodType<
|
|
1526
|
-
TwentySix,
|
|
1527
|
-
z.ZodTypeDef,
|
|
1528
|
-
unknown
|
|
1529
|
-
> = z.object({
|
|
1530
|
-
type: z.literal("most_repeated_words"),
|
|
1531
|
-
});
|
|
1532
|
-
|
|
1533
|
-
export function twentySixFromJSON(
|
|
1534
|
-
jsonString: string,
|
|
1535
|
-
): SafeParseResult<TwentySix, SDKValidationError> {
|
|
1536
|
-
return safeParse(
|
|
1537
|
-
jsonString,
|
|
1538
|
-
(x) => TwentySix$inboundSchema.parse(JSON.parse(x)),
|
|
1539
|
-
`Failed to parse 'TwentySix' from JSON`,
|
|
1540
|
-
);
|
|
1541
|
-
}
|
|
1542
|
-
|
|
1543
|
-
/** @internal */
|
|
1544
|
-
export const TwentyFive$inboundSchema: z.ZodType<
|
|
1545
|
-
TwentyFive,
|
|
1546
|
-
z.ZodTypeDef,
|
|
1547
|
-
unknown
|
|
1548
|
-
> = z.object({
|
|
1549
|
-
type: z.literal("keywords_match"),
|
|
1550
|
-
keywords: z.array(z.string()),
|
|
1551
|
-
});
|
|
1552
|
-
|
|
1553
|
-
export function twentyFiveFromJSON(
|
|
1554
|
-
jsonString: string,
|
|
1555
|
-
): SafeParseResult<TwentyFive, SDKValidationError> {
|
|
1556
|
-
return safeParse(
|
|
1557
|
-
jsonString,
|
|
1558
|
-
(x) => TwentyFive$inboundSchema.parse(JSON.parse(x)),
|
|
1559
|
-
`Failed to parse 'TwentyFive' from JSON`,
|
|
1560
|
-
);
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
/** @internal */
|
|
1564
|
-
export const TwentyFour$inboundSchema: z.ZodType<
|
|
1565
|
-
TwentyFour,
|
|
1566
|
-
z.ZodTypeDef,
|
|
1567
|
-
unknown
|
|
1568
|
-
> = z.object({
|
|
1569
|
-
type: z.literal("levenshtein_distance"),
|
|
1570
|
-
});
|
|
1571
|
-
|
|
1572
|
-
export function twentyFourFromJSON(
|
|
1573
|
-
jsonString: string,
|
|
1574
|
-
): SafeParseResult<TwentyFour, SDKValidationError> {
|
|
1575
|
-
return safeParse(
|
|
1576
|
-
jsonString,
|
|
1577
|
-
(x) => TwentyFour$inboundSchema.parse(JSON.parse(x)),
|
|
1578
|
-
`Failed to parse 'TwentyFour' from JSON`,
|
|
1579
|
-
);
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
/** @internal */
|
|
1583
|
-
export const TwentyThree$inboundSchema: z.ZodType<
|
|
1584
|
-
TwentyThree,
|
|
1585
|
-
z.ZodTypeDef,
|
|
1586
|
-
unknown
|
|
1587
|
-
> = z.object({
|
|
1588
|
-
type: z.literal("cosine_similarity"),
|
|
1589
|
-
});
|
|
1590
|
-
|
|
1591
|
-
export function twentyThreeFromJSON(
|
|
1592
|
-
jsonString: string,
|
|
1593
|
-
): SafeParseResult<TwentyThree, SDKValidationError> {
|
|
1594
|
-
return safeParse(
|
|
1595
|
-
jsonString,
|
|
1596
|
-
(x) => TwentyThree$inboundSchema.parse(JSON.parse(x)),
|
|
1597
|
-
`Failed to parse 'TwentyThree' from JSON`,
|
|
1598
|
-
);
|
|
1599
|
-
}
|
|
1600
|
-
|
|
1601
|
-
/** @internal */
|
|
1602
|
-
export const TwentyTwo$inboundSchema: z.ZodType<
|
|
1603
|
-
TwentyTwo,
|
|
1604
|
-
z.ZodTypeDef,
|
|
1605
|
-
unknown
|
|
1606
|
-
> = z.object({
|
|
1607
|
-
type: z.literal("meteor_score"),
|
|
1608
|
-
});
|
|
1609
|
-
|
|
1610
|
-
export function twentyTwoFromJSON(
|
|
1611
|
-
jsonString: string,
|
|
1612
|
-
): SafeParseResult<TwentyTwo, SDKValidationError> {
|
|
1613
|
-
return safeParse(
|
|
1614
|
-
jsonString,
|
|
1615
|
-
(x) => TwentyTwo$inboundSchema.parse(JSON.parse(x)),
|
|
1616
|
-
`Failed to parse 'TwentyTwo' from JSON`,
|
|
1617
|
-
);
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
/** @internal */
|
|
1621
|
-
export const TwentyOne$inboundSchema: z.ZodType<
|
|
1622
|
-
TwentyOne,
|
|
1623
|
-
z.ZodTypeDef,
|
|
1624
|
-
unknown
|
|
1625
|
-
> = z.object({
|
|
1626
|
-
type: z.literal("rouge_n"),
|
|
1627
|
-
});
|
|
1628
|
-
|
|
1629
|
-
export function twentyOneFromJSON(
|
|
1630
|
-
jsonString: string,
|
|
1631
|
-
): SafeParseResult<TwentyOne, SDKValidationError> {
|
|
1632
|
-
return safeParse(
|
|
1633
|
-
jsonString,
|
|
1634
|
-
(x) => TwentyOne$inboundSchema.parse(JSON.parse(x)),
|
|
1635
|
-
`Failed to parse 'TwentyOne' from JSON`,
|
|
1636
|
-
);
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
/** @internal */
|
|
1640
|
-
export const Twenty$inboundSchema: z.ZodType<Twenty, z.ZodTypeDef, unknown> = z
|
|
1641
|
-
.object({
|
|
1642
|
-
type: z.literal("bleu_score"),
|
|
1643
|
-
});
|
|
1644
|
-
|
|
1645
|
-
export function twentyFromJSON(
|
|
1646
|
-
jsonString: string,
|
|
1647
|
-
): SafeParseResult<Twenty, SDKValidationError> {
|
|
1648
|
-
return safeParse(
|
|
1649
|
-
jsonString,
|
|
1650
|
-
(x) => Twenty$inboundSchema.parse(JSON.parse(x)),
|
|
1651
|
-
`Failed to parse 'Twenty' from JSON`,
|
|
1652
|
-
);
|
|
1653
|
-
}
|
|
1654
|
-
|
|
1655
|
-
/** @internal */
|
|
1656
|
-
export const Nineteen$inboundSchema: z.ZodType<
|
|
1657
|
-
Nineteen,
|
|
1658
|
-
z.ZodTypeDef,
|
|
1659
|
-
unknown
|
|
1660
|
-
> = z.object({
|
|
1661
|
-
type: z.literal("bert_score"),
|
|
1662
|
-
});
|
|
1663
|
-
|
|
1664
|
-
export function nineteenFromJSON(
|
|
1665
|
-
jsonString: string,
|
|
1666
|
-
): SafeParseResult<Nineteen, SDKValidationError> {
|
|
1667
|
-
return safeParse(
|
|
1668
|
-
jsonString,
|
|
1669
|
-
(x) => Nineteen$inboundSchema.parse(JSON.parse(x)),
|
|
1670
|
-
`Failed to parse 'Nineteen' from JSON`,
|
|
1671
|
-
);
|
|
1672
|
-
}
|
|
1673
|
-
|
|
1674
|
-
/** @internal */
|
|
1675
|
-
export const Eighteen$inboundSchema: z.ZodType<
|
|
1676
|
-
Eighteen,
|
|
1677
|
-
z.ZodTypeDef,
|
|
1678
|
-
unknown
|
|
1679
|
-
> = z.object({
|
|
1680
|
-
type: z.literal("moderations_google"),
|
|
1681
|
-
});
|
|
1682
|
-
|
|
1683
|
-
export function eighteenFromJSON(
|
|
1684
|
-
jsonString: string,
|
|
1685
|
-
): SafeParseResult<Eighteen, SDKValidationError> {
|
|
1686
|
-
return safeParse(
|
|
1687
|
-
jsonString,
|
|
1688
|
-
(x) => Eighteen$inboundSchema.parse(JSON.parse(x)),
|
|
1689
|
-
`Failed to parse 'Eighteen' from JSON`,
|
|
1690
|
-
);
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
/** @internal */
|
|
1694
|
-
export const Seventeen$inboundSchema: z.ZodType<
|
|
1695
|
-
Seventeen,
|
|
1696
|
-
z.ZodTypeDef,
|
|
1697
|
-
unknown
|
|
1698
|
-
> = z.object({
|
|
1699
|
-
type: z.literal("moderations_openai"),
|
|
1700
|
-
});
|
|
1701
|
-
|
|
1702
|
-
export function seventeenFromJSON(
|
|
1703
|
-
jsonString: string,
|
|
1704
|
-
): SafeParseResult<Seventeen, SDKValidationError> {
|
|
1705
|
-
return safeParse(
|
|
1706
|
-
jsonString,
|
|
1707
|
-
(x) => Seventeen$inboundSchema.parse(JSON.parse(x)),
|
|
1708
|
-
`Failed to parse 'Seventeen' from JSON`,
|
|
1709
|
-
);
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
/** @internal */
|
|
1713
|
-
export const Sixteen$inboundSchema: z.ZodType<Sixteen, z.ZodTypeDef, unknown> =
|
|
1714
|
-
z.object({
|
|
1715
|
-
type: z.literal("is_valid_json"),
|
|
1716
|
-
});
|
|
1717
|
-
|
|
1718
|
-
export function sixteenFromJSON(
|
|
1719
|
-
jsonString: string,
|
|
1720
|
-
): SafeParseResult<Sixteen, SDKValidationError> {
|
|
1721
|
-
return safeParse(
|
|
1722
|
-
jsonString,
|
|
1723
|
-
(x) => Sixteen$inboundSchema.parse(JSON.parse(x)),
|
|
1724
|
-
`Failed to parse 'Sixteen' from JSON`,
|
|
1725
|
-
);
|
|
1726
|
-
}
|
|
1727
|
-
|
|
1728
|
-
/** @internal */
|
|
1729
|
-
export const Fifteen$inboundSchema: z.ZodType<Fifteen, z.ZodTypeDef, unknown> =
|
|
1730
|
-
z.object({
|
|
1731
|
-
type: z.literal("regex"),
|
|
1732
|
-
pattern: z.string(),
|
|
1733
|
-
});
|
|
1734
|
-
|
|
1735
|
-
export function fifteenFromJSON(
|
|
1736
|
-
jsonString: string,
|
|
1737
|
-
): SafeParseResult<Fifteen, SDKValidationError> {
|
|
1738
|
-
return safeParse(
|
|
1739
|
-
jsonString,
|
|
1740
|
-
(x) => Fifteen$inboundSchema.parse(JSON.parse(x)),
|
|
1741
|
-
`Failed to parse 'Fifteen' from JSON`,
|
|
1742
|
-
);
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
/** @internal */
|
|
1746
|
-
export const Fourteen$inboundSchema: z.ZodType<
|
|
1747
|
-
Fourteen,
|
|
1748
|
-
z.ZodTypeDef,
|
|
1749
|
-
unknown
|
|
1750
|
-
> = z.object({
|
|
1751
|
-
type: z.literal("one_line"),
|
|
1752
|
-
});
|
|
1753
|
-
|
|
1754
|
-
export function fourteenFromJSON(
|
|
1755
|
-
jsonString: string,
|
|
1756
|
-
): SafeParseResult<Fourteen, SDKValidationError> {
|
|
1757
|
-
return safeParse(
|
|
1758
|
-
jsonString,
|
|
1759
|
-
(x) => Fourteen$inboundSchema.parse(JSON.parse(x)),
|
|
1760
|
-
`Failed to parse 'Fourteen' from JSON`,
|
|
1761
|
-
);
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
|
-
/** @internal */
|
|
1765
|
-
export const Thirteen$inboundSchema: z.ZodType<
|
|
1766
|
-
Thirteen,
|
|
1767
|
-
z.ZodTypeDef,
|
|
1768
|
-
unknown
|
|
1769
|
-
> = z.object({
|
|
1770
|
-
type: z.literal("length_greater_than"),
|
|
1771
|
-
value: z.number(),
|
|
1772
|
-
});
|
|
1773
|
-
|
|
1774
|
-
export function thirteenFromJSON(
|
|
1775
|
-
jsonString: string,
|
|
1776
|
-
): SafeParseResult<Thirteen, SDKValidationError> {
|
|
1777
|
-
return safeParse(
|
|
1778
|
-
jsonString,
|
|
1779
|
-
(x) => Thirteen$inboundSchema.parse(JSON.parse(x)),
|
|
1780
|
-
`Failed to parse 'Thirteen' from JSON`,
|
|
1781
|
-
);
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1784
|
-
/** @internal */
|
|
1785
|
-
export const Twelve$inboundSchema: z.ZodType<Twelve, z.ZodTypeDef, unknown> = z
|
|
1786
|
-
.object({
|
|
1787
|
-
type: z.literal("length_between"),
|
|
1788
|
-
min: z.number(),
|
|
1789
|
-
max: z.number(),
|
|
1790
|
-
});
|
|
1791
|
-
|
|
1792
|
-
export function twelveFromJSON(
|
|
1793
|
-
jsonString: string,
|
|
1794
|
-
): SafeParseResult<Twelve, SDKValidationError> {
|
|
1795
|
-
return safeParse(
|
|
1796
|
-
jsonString,
|
|
1797
|
-
(x) => Twelve$inboundSchema.parse(JSON.parse(x)),
|
|
1798
|
-
`Failed to parse 'Twelve' from JSON`,
|
|
1799
|
-
);
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
/** @internal */
|
|
1803
|
-
export const Eleven$inboundSchema: z.ZodType<Eleven, z.ZodTypeDef, unknown> = z
|
|
1804
|
-
.object({
|
|
1805
|
-
type: z.literal("length_less_than"),
|
|
1806
|
-
value: z.number(),
|
|
1807
|
-
});
|
|
1808
|
-
|
|
1809
|
-
export function elevenFromJSON(
|
|
1810
|
-
jsonString: string,
|
|
1811
|
-
): SafeParseResult<Eleven, SDKValidationError> {
|
|
1812
|
-
return safeParse(
|
|
1813
|
-
jsonString,
|
|
1814
|
-
(x) => Eleven$inboundSchema.parse(JSON.parse(x)),
|
|
1815
|
-
`Failed to parse 'Eleven' from JSON`,
|
|
1816
|
-
);
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
/** @internal */
|
|
1820
|
-
export const Ten$inboundSchema: z.ZodType<Ten, z.ZodTypeDef, unknown> = z
|
|
1821
|
-
.object({
|
|
1822
|
-
type: z.literal("exact_match"),
|
|
1823
|
-
});
|
|
1824
|
-
|
|
1825
|
-
export function tenFromJSON(
|
|
1826
|
-
jsonString: string,
|
|
1827
|
-
): SafeParseResult<Ten, SDKValidationError> {
|
|
1828
|
-
return safeParse(
|
|
1829
|
-
jsonString,
|
|
1830
|
-
(x) => Ten$inboundSchema.parse(JSON.parse(x)),
|
|
1831
|
-
`Failed to parse 'Ten' from JSON`,
|
|
1832
|
-
);
|
|
1833
|
-
}
|
|
1834
|
-
|
|
1835
|
-
/** @internal */
|
|
1836
|
-
export const Nine$inboundSchema: z.ZodType<Nine, z.ZodTypeDef, unknown> = z
|
|
1837
|
-
.object({
|
|
1838
|
-
type: z.literal("ends_with"),
|
|
1839
|
-
value: z.string(),
|
|
1840
|
-
});
|
|
1841
|
-
|
|
1842
|
-
export function nineFromJSON(
|
|
1843
|
-
jsonString: string,
|
|
1844
|
-
): SafeParseResult<Nine, SDKValidationError> {
|
|
1845
|
-
return safeParse(
|
|
1846
|
-
jsonString,
|
|
1847
|
-
(x) => Nine$inboundSchema.parse(JSON.parse(x)),
|
|
1848
|
-
`Failed to parse 'Nine' from JSON`,
|
|
1849
|
-
);
|
|
1850
|
-
}
|
|
1851
|
-
|
|
1852
|
-
/** @internal */
|
|
1853
|
-
export const Eight$inboundSchema: z.ZodType<Eight, z.ZodTypeDef, unknown> = z
|
|
1854
|
-
.object({
|
|
1855
|
-
type: z.literal("start_with"),
|
|
1856
|
-
value: z.string(),
|
|
1857
|
-
});
|
|
1858
|
-
|
|
1859
|
-
export function eightFromJSON(
|
|
1860
|
-
jsonString: string,
|
|
1861
|
-
): SafeParseResult<Eight, SDKValidationError> {
|
|
1862
|
-
return safeParse(
|
|
1863
|
-
jsonString,
|
|
1864
|
-
(x) => Eight$inboundSchema.parse(JSON.parse(x)),
|
|
1865
|
-
`Failed to parse 'Eight' from JSON`,
|
|
1866
|
-
);
|
|
1867
|
-
}
|
|
1868
|
-
|
|
1869
|
-
/** @internal */
|
|
1870
|
-
export const Seven$inboundSchema: z.ZodType<Seven, z.ZodTypeDef, unknown> = z
|
|
1871
|
-
.object({
|
|
1872
|
-
type: z.literal("contains_valid_link"),
|
|
1873
|
-
});
|
|
1874
|
-
|
|
1875
|
-
export function sevenFromJSON(
|
|
1876
|
-
jsonString: string,
|
|
1877
|
-
): SafeParseResult<Seven, SDKValidationError> {
|
|
1878
|
-
return safeParse(
|
|
1879
|
-
jsonString,
|
|
1880
|
-
(x) => Seven$inboundSchema.parse(JSON.parse(x)),
|
|
1881
|
-
`Failed to parse 'Seven' from JSON`,
|
|
1882
|
-
);
|
|
1883
|
-
}
|
|
1884
|
-
|
|
1885
|
-
/** @internal */
|
|
1886
|
-
export const Six$inboundSchema: z.ZodType<Six, z.ZodTypeDef, unknown> = z
|
|
1887
|
-
.object({
|
|
1888
|
-
type: z.literal("contains_url"),
|
|
1889
|
-
});
|
|
1890
|
-
|
|
1891
|
-
export function sixFromJSON(
|
|
1892
|
-
jsonString: string,
|
|
1893
|
-
): SafeParseResult<Six, SDKValidationError> {
|
|
1894
|
-
return safeParse(
|
|
1895
|
-
jsonString,
|
|
1896
|
-
(x) => Six$inboundSchema.parse(JSON.parse(x)),
|
|
1897
|
-
`Failed to parse 'Six' from JSON`,
|
|
1898
|
-
);
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
/** @internal */
|
|
1902
|
-
export const Five$inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown> = z
|
|
1903
|
-
.object({
|
|
1904
|
-
type: z.literal("contains_email"),
|
|
1905
|
-
});
|
|
1906
|
-
|
|
1907
|
-
export function fiveFromJSON(
|
|
1908
|
-
jsonString: string,
|
|
1909
|
-
): SafeParseResult<Five, SDKValidationError> {
|
|
1910
|
-
return safeParse(
|
|
1911
|
-
jsonString,
|
|
1912
|
-
(x) => Five$inboundSchema.parse(JSON.parse(x)),
|
|
1913
|
-
`Failed to parse 'Five' from JSON`,
|
|
1914
|
-
);
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
/** @internal */
|
|
1918
|
-
export const FunctionParams4$inboundSchema: z.ZodType<
|
|
1919
|
-
FunctionParams4,
|
|
1920
|
-
z.ZodTypeDef,
|
|
1921
|
-
unknown
|
|
1922
|
-
> = z.object({
|
|
1923
|
-
type: z.literal("contains_any"),
|
|
1924
|
-
keywords: z.array(z.string()),
|
|
1925
|
-
});
|
|
1926
|
-
|
|
1927
|
-
export function functionParams4FromJSON(
|
|
1928
|
-
jsonString: string,
|
|
1929
|
-
): SafeParseResult<FunctionParams4, SDKValidationError> {
|
|
1930
|
-
return safeParse(
|
|
1931
|
-
jsonString,
|
|
1932
|
-
(x) => FunctionParams4$inboundSchema.parse(JSON.parse(x)),
|
|
1933
|
-
`Failed to parse 'FunctionParams4' from JSON`,
|
|
1934
|
-
);
|
|
1935
|
-
}
|
|
1936
|
-
|
|
1937
|
-
/** @internal */
|
|
1938
|
-
export const FunctionParams3$inboundSchema: z.ZodType<
|
|
1939
|
-
FunctionParams3,
|
|
1940
|
-
z.ZodTypeDef,
|
|
1941
|
-
unknown
|
|
1942
|
-
> = z.object({
|
|
1943
|
-
type: z.literal("contains_all"),
|
|
1944
|
-
keywords: z.array(z.string()),
|
|
1945
|
-
});
|
|
1946
|
-
|
|
1947
|
-
export function functionParams3FromJSON(
|
|
1948
|
-
jsonString: string,
|
|
1949
|
-
): SafeParseResult<FunctionParams3, SDKValidationError> {
|
|
1950
|
-
return safeParse(
|
|
1951
|
-
jsonString,
|
|
1952
|
-
(x) => FunctionParams3$inboundSchema.parse(JSON.parse(x)),
|
|
1953
|
-
`Failed to parse 'FunctionParams3' from JSON`,
|
|
1954
|
-
);
|
|
1955
|
-
}
|
|
1956
|
-
|
|
1957
|
-
/** @internal */
|
|
1958
|
-
export const FunctionParams2$inboundSchema: z.ZodType<
|
|
1959
|
-
FunctionParams2,
|
|
1960
|
-
z.ZodTypeDef,
|
|
1961
|
-
unknown
|
|
1962
|
-
> = z.object({
|
|
1963
|
-
type: z.literal("contains_none"),
|
|
1964
|
-
keywords: z.array(z.string()),
|
|
1965
|
-
});
|
|
1966
|
-
|
|
1967
|
-
export function functionParams2FromJSON(
|
|
1968
|
-
jsonString: string,
|
|
1969
|
-
): SafeParseResult<FunctionParams2, SDKValidationError> {
|
|
1970
|
-
return safeParse(
|
|
1971
|
-
jsonString,
|
|
1972
|
-
(x) => FunctionParams2$inboundSchema.parse(JSON.parse(x)),
|
|
1973
|
-
`Failed to parse 'FunctionParams2' from JSON`,
|
|
1974
|
-
);
|
|
1975
|
-
}
|
|
1976
|
-
|
|
1977
|
-
/** @internal */
|
|
1978
|
-
export const FunctionParams1$inboundSchema: z.ZodType<
|
|
1979
|
-
FunctionParams1,
|
|
1980
|
-
z.ZodTypeDef,
|
|
1981
|
-
unknown
|
|
1982
|
-
> = z.object({
|
|
1983
|
-
type: z.literal("contains"),
|
|
1984
|
-
value: z.string(),
|
|
1985
|
-
});
|
|
1986
|
-
|
|
1987
|
-
export function functionParams1FromJSON(
|
|
1988
|
-
jsonString: string,
|
|
1989
|
-
): SafeParseResult<FunctionParams1, SDKValidationError> {
|
|
1990
|
-
return safeParse(
|
|
1991
|
-
jsonString,
|
|
1992
|
-
(x) => FunctionParams1$inboundSchema.parse(JSON.parse(x)),
|
|
1993
|
-
`Failed to parse 'FunctionParams1' from JSON`,
|
|
1994
|
-
);
|
|
1995
|
-
}
|
|
1996
|
-
|
|
1997
|
-
/** @internal */
|
|
1998
|
-
export const FunctionParams$inboundSchema: z.ZodType<
|
|
1999
|
-
FunctionParams,
|
|
2000
|
-
z.ZodTypeDef,
|
|
2001
|
-
unknown
|
|
2002
|
-
> = z.union([
|
|
2003
|
-
z.lazy(() => FunctionParams1$inboundSchema),
|
|
2004
|
-
z.lazy(() => FunctionParams2$inboundSchema),
|
|
2005
|
-
z.lazy(() => FunctionParams3$inboundSchema),
|
|
2006
|
-
z.lazy(() => FunctionParams4$inboundSchema),
|
|
2007
|
-
z.lazy(() => Five$inboundSchema),
|
|
2008
|
-
z.lazy(() => Six$inboundSchema),
|
|
2009
|
-
z.lazy(() => Seven$inboundSchema),
|
|
2010
|
-
z.lazy(() => Eight$inboundSchema),
|
|
2011
|
-
z.lazy(() => Nine$inboundSchema),
|
|
2012
|
-
z.lazy(() => Ten$inboundSchema),
|
|
2013
|
-
z.lazy(() => Eleven$inboundSchema),
|
|
2014
|
-
z.lazy(() => Twelve$inboundSchema),
|
|
2015
|
-
z.lazy(() => Thirteen$inboundSchema),
|
|
2016
|
-
z.lazy(() => Fourteen$inboundSchema),
|
|
2017
|
-
z.lazy(() => Fifteen$inboundSchema),
|
|
2018
|
-
z.lazy(() => Sixteen$inboundSchema),
|
|
2019
|
-
z.lazy(() => Seventeen$inboundSchema),
|
|
2020
|
-
z.lazy(() => Eighteen$inboundSchema),
|
|
2021
|
-
z.lazy(() => Nineteen$inboundSchema),
|
|
2022
|
-
z.lazy(() => Twenty$inboundSchema),
|
|
2023
|
-
z.lazy(() => TwentyOne$inboundSchema),
|
|
2024
|
-
z.lazy(() => TwentyTwo$inboundSchema),
|
|
2025
|
-
z.lazy(() => TwentyThree$inboundSchema),
|
|
2026
|
-
z.lazy(() => TwentyFour$inboundSchema),
|
|
2027
|
-
z.lazy(() => TwentyFive$inboundSchema),
|
|
2028
|
-
z.lazy(() => TwentySix$inboundSchema),
|
|
2029
|
-
z.lazy(() => TwentySeven$inboundSchema),
|
|
2030
|
-
z.lazy(() => TwentyEight$inboundSchema),
|
|
2031
|
-
z.lazy(() => TwentyNine$inboundSchema),
|
|
2032
|
-
z.lazy(() => Thirty$inboundSchema),
|
|
2033
|
-
z.lazy(() => ThirtyOne$inboundSchema),
|
|
2034
|
-
z.lazy(() => ThirtyTwo$inboundSchema),
|
|
2035
|
-
]);
|
|
2036
|
-
|
|
2037
|
-
export function functionParamsFromJSON(
|
|
2038
|
-
jsonString: string,
|
|
2039
|
-
): SafeParseResult<FunctionParams, SDKValidationError> {
|
|
2040
|
-
return safeParse(
|
|
2041
|
-
jsonString,
|
|
2042
|
-
(x) => FunctionParams$inboundSchema.parse(JSON.parse(x)),
|
|
2043
|
-
`Failed to parse 'FunctionParams' from JSON`,
|
|
2044
|
-
);
|
|
2045
|
-
}
|
|
2046
|
-
|
|
2047
|
-
/** @internal */
|
|
2048
|
-
export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
2049
|
-
ResponseBodyFunction,
|
|
2050
|
-
z.ZodTypeDef,
|
|
2051
|
-
unknown
|
|
2052
|
-
> = z.object({
|
|
2053
|
-
enabled: z.boolean().default(true),
|
|
2054
|
-
metadata: z.lazy(() => ResponseBodyMetadata$inboundSchema),
|
|
2055
|
-
_id: z.string(),
|
|
2056
|
-
display_name: z.string(),
|
|
2057
|
-
description: z.string(),
|
|
2058
|
-
owner: z.string(),
|
|
2059
|
-
created: z.string().default("2026-08-26T09:46:51.830Z"),
|
|
2060
|
-
updated: z.string().default("2026-08-26T09:46:51.831Z"),
|
|
2061
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
2062
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
2063
|
-
domain_id: z.string(),
|
|
2064
|
-
project_id: z.string().optional(),
|
|
2065
|
-
guardrail_config: z.any().optional(),
|
|
2066
|
-
output_type: GetEvalResponseBodyOutputType$inboundSchema,
|
|
2067
|
-
type: z.literal("function_eval"),
|
|
2068
|
-
function_params: z.union([
|
|
2069
|
-
z.lazy(() => FunctionParams1$inboundSchema),
|
|
2070
|
-
z.lazy(() => FunctionParams2$inboundSchema),
|
|
2071
|
-
z.lazy(() => FunctionParams3$inboundSchema),
|
|
2072
|
-
z.lazy(() => FunctionParams4$inboundSchema),
|
|
2073
|
-
z.lazy(() => Five$inboundSchema),
|
|
2074
|
-
z.lazy(() => Six$inboundSchema),
|
|
2075
|
-
z.lazy(() => Seven$inboundSchema),
|
|
2076
|
-
z.lazy(() => Eight$inboundSchema),
|
|
2077
|
-
z.lazy(() => Nine$inboundSchema),
|
|
2078
|
-
z.lazy(() => Ten$inboundSchema),
|
|
2079
|
-
z.lazy(() => Eleven$inboundSchema),
|
|
2080
|
-
z.lazy(() => Twelve$inboundSchema),
|
|
2081
|
-
z.lazy(() => Thirteen$inboundSchema),
|
|
2082
|
-
z.lazy(() => Fourteen$inboundSchema),
|
|
2083
|
-
z.lazy(() => Fifteen$inboundSchema),
|
|
2084
|
-
z.lazy(() => Sixteen$inboundSchema),
|
|
2085
|
-
z.lazy(() => Seventeen$inboundSchema),
|
|
2086
|
-
z.lazy(() => Eighteen$inboundSchema),
|
|
2087
|
-
z.lazy(() => Nineteen$inboundSchema),
|
|
2088
|
-
z.lazy(() => Twenty$inboundSchema),
|
|
2089
|
-
z.lazy(() => TwentyOne$inboundSchema),
|
|
2090
|
-
z.lazy(() => TwentyTwo$inboundSchema),
|
|
2091
|
-
z.lazy(() => TwentyThree$inboundSchema),
|
|
2092
|
-
z.lazy(() => TwentyFour$inboundSchema),
|
|
2093
|
-
z.lazy(() => TwentyFive$inboundSchema),
|
|
2094
|
-
z.lazy(() => TwentySix$inboundSchema),
|
|
2095
|
-
z.lazy(() => TwentySeven$inboundSchema),
|
|
2096
|
-
z.lazy(() => TwentyEight$inboundSchema),
|
|
2097
|
-
z.lazy(() => TwentyNine$inboundSchema),
|
|
2098
|
-
z.lazy(() => Thirty$inboundSchema),
|
|
2099
|
-
z.lazy(() => ThirtyOne$inboundSchema),
|
|
2100
|
-
z.lazy(() => ThirtyTwo$inboundSchema),
|
|
2101
|
-
]),
|
|
2102
|
-
}).transform((v) => {
|
|
2103
|
-
return remap$(v, {
|
|
2104
|
-
"_id": "id",
|
|
2105
|
-
"display_name": "displayName",
|
|
2106
|
-
"created_by_id": "createdById",
|
|
2107
|
-
"updated_by_id": "updatedById",
|
|
2108
|
-
"domain_id": "domainId",
|
|
2109
|
-
"project_id": "projectId",
|
|
2110
|
-
"guardrail_config": "guardrailConfig",
|
|
2111
|
-
"output_type": "outputType",
|
|
2112
|
-
"function_params": "functionParams",
|
|
2113
|
-
});
|
|
2114
|
-
});
|
|
2115
|
-
|
|
2116
|
-
export function responseBodyFunctionFromJSON(
|
|
2117
|
-
jsonString: string,
|
|
2118
|
-
): SafeParseResult<ResponseBodyFunction, SDKValidationError> {
|
|
2119
|
-
return safeParse(
|
|
2120
|
-
jsonString,
|
|
2121
|
-
(x) => ResponseBodyFunction$inboundSchema.parse(JSON.parse(x)),
|
|
2122
|
-
`Failed to parse 'ResponseBodyFunction' from JSON`,
|
|
2123
|
-
);
|
|
2124
|
-
}
|
|
2125
|
-
|
|
2126
|
-
/** @internal */
|
|
2127
|
-
export const GetEvalResponseBodyEvalsResponse200ApplicationJson1Metadata$inboundSchema:
|
|
2128
|
-
z.ZodType<
|
|
2129
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJson1Metadata,
|
|
2130
|
-
z.ZodTypeDef,
|
|
2131
|
-
unknown
|
|
2132
|
-
> = z.object({
|
|
2133
|
-
required_model_with_tools_support: z.boolean().optional(),
|
|
2134
|
-
required_retrieval_context: z.boolean().optional(),
|
|
2135
|
-
required_expected_output: z.boolean().optional(),
|
|
2136
|
-
supported_on_input_type: z.boolean().optional(),
|
|
2137
|
-
supported_on_output_type: z.boolean().optional(),
|
|
2138
|
-
support_use_as_guardrail: z.boolean().optional(),
|
|
2139
|
-
}).transform((v) => {
|
|
2140
|
-
return remap$(v, {
|
|
2141
|
-
"required_model_with_tools_support": "requiredModelWithToolsSupport",
|
|
2142
|
-
"required_retrieval_context": "requiredRetrievalContext",
|
|
2143
|
-
"required_expected_output": "requiredExpectedOutput",
|
|
2144
|
-
"supported_on_input_type": "supportedOnInputType",
|
|
2145
|
-
"supported_on_output_type": "supportedOnOutputType",
|
|
2146
|
-
"support_use_as_guardrail": "supportUseAsGuardrail",
|
|
2147
|
-
});
|
|
2148
|
-
});
|
|
2149
|
-
|
|
2150
|
-
export function getEvalResponseBodyEvalsResponse200ApplicationJSON1MetadataFromJSON(
|
|
2151
|
-
jsonString: string,
|
|
2152
|
-
): SafeParseResult<
|
|
2153
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJson1Metadata,
|
|
2154
|
-
SDKValidationError
|
|
2155
|
-
> {
|
|
2156
|
-
return safeParse(
|
|
2157
|
-
jsonString,
|
|
2158
|
-
(x) =>
|
|
2159
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJson1Metadata$inboundSchema
|
|
2160
|
-
.parse(JSON.parse(x)),
|
|
2161
|
-
`Failed to parse 'GetEvalResponseBodyEvalsResponse200ApplicationJson1Metadata' from JSON`,
|
|
2162
|
-
);
|
|
2163
|
-
}
|
|
2164
|
-
|
|
2165
|
-
/** @internal */
|
|
2166
|
-
export const ResponseBodyOutputType$inboundSchema: z.ZodNativeEnum<
|
|
2167
|
-
typeof ResponseBodyOutputType
|
|
2168
|
-
> = z.nativeEnum(ResponseBodyOutputType);
|
|
2169
|
-
|
|
2170
|
-
/** @internal */
|
|
2171
|
-
export const ResponseBodyMode$inboundSchema: z.ZodNativeEnum<
|
|
2172
|
-
typeof ResponseBodyMode
|
|
2173
|
-
> = z.nativeEnum(ResponseBodyMode);
|
|
2174
|
-
|
|
2175
|
-
/** @internal */
|
|
2176
|
-
export const ResponseBodyModelParameters$inboundSchema: z.ZodType<
|
|
2177
|
-
ResponseBodyModelParameters,
|
|
2178
|
-
z.ZodTypeDef,
|
|
2179
|
-
unknown
|
|
2180
|
-
> = z.object({
|
|
2181
|
-
temperature: z.number().optional(),
|
|
2182
|
-
max_tokens: z.number().optional(),
|
|
2183
|
-
top_k: z.number().optional(),
|
|
2184
|
-
top_p: z.number().optional(),
|
|
2185
|
-
frequency_penalty: z.number().optional(),
|
|
2186
|
-
presence_penalty: z.number().optional(),
|
|
2187
|
-
reasoning_effort: z.string().optional(),
|
|
2188
|
-
budget_tokens: z.number().optional(),
|
|
2189
|
-
}).transform((v) => {
|
|
2190
|
-
return remap$(v, {
|
|
2191
|
-
"max_tokens": "maxTokens",
|
|
2192
|
-
"top_k": "topK",
|
|
2193
|
-
"top_p": "topP",
|
|
2194
|
-
"frequency_penalty": "frequencyPenalty",
|
|
2195
|
-
"presence_penalty": "presencePenalty",
|
|
2196
|
-
"reasoning_effort": "reasoningEffort",
|
|
2197
|
-
"budget_tokens": "budgetTokens",
|
|
2198
|
-
});
|
|
2199
|
-
});
|
|
2200
|
-
|
|
2201
|
-
export function responseBodyModelParametersFromJSON(
|
|
2202
|
-
jsonString: string,
|
|
2203
|
-
): SafeParseResult<ResponseBodyModelParameters, SDKValidationError> {
|
|
2204
|
-
return safeParse(
|
|
2205
|
-
jsonString,
|
|
2206
|
-
(x) => ResponseBodyModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2207
|
-
`Failed to parse 'ResponseBodyModelParameters' from JSON`,
|
|
2208
|
-
);
|
|
2209
|
-
}
|
|
2210
|
-
|
|
2211
|
-
/** @internal */
|
|
2212
|
-
export const GetEvalResponseBodyModel$inboundSchema: z.ZodType<
|
|
2213
|
-
GetEvalResponseBodyModel,
|
|
2214
|
-
z.ZodTypeDef,
|
|
2215
|
-
unknown
|
|
2216
|
-
> = z.object({
|
|
2217
|
-
id: z.string(),
|
|
2218
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
2219
|
-
model_parameters: z.lazy(() => ResponseBodyModelParameters$inboundSchema)
|
|
2220
|
-
.optional(),
|
|
2221
|
-
}).transform((v) => {
|
|
2222
|
-
return remap$(v, {
|
|
2223
|
-
"integration_id": "integrationId",
|
|
2224
|
-
"model_parameters": "modelParameters",
|
|
2225
|
-
});
|
|
2226
|
-
});
|
|
2227
|
-
|
|
2228
|
-
export function getEvalResponseBodyModelFromJSON(
|
|
2229
|
-
jsonString: string,
|
|
2230
|
-
): SafeParseResult<GetEvalResponseBodyModel, SDKValidationError> {
|
|
2231
|
-
return safeParse(
|
|
2232
|
-
jsonString,
|
|
2233
|
-
(x) => GetEvalResponseBodyModel$inboundSchema.parse(JSON.parse(x)),
|
|
2234
|
-
`Failed to parse 'GetEvalResponseBodyModel' from JSON`,
|
|
2235
|
-
);
|
|
2236
|
-
}
|
|
2237
|
-
|
|
2238
|
-
/** @internal */
|
|
2239
|
-
export const GetEvalResponseBodyEvalsModelParameters$inboundSchema: z.ZodType<
|
|
2240
|
-
GetEvalResponseBodyEvalsModelParameters,
|
|
2241
|
-
z.ZodTypeDef,
|
|
2242
|
-
unknown
|
|
2243
|
-
> = z.object({
|
|
2244
|
-
temperature: z.number().optional(),
|
|
2245
|
-
max_tokens: z.number().optional(),
|
|
2246
|
-
top_k: z.number().optional(),
|
|
2247
|
-
top_p: z.number().optional(),
|
|
2248
|
-
frequency_penalty: z.number().optional(),
|
|
2249
|
-
presence_penalty: z.number().optional(),
|
|
2250
|
-
reasoning_effort: z.string().optional(),
|
|
2251
|
-
budget_tokens: z.number().optional(),
|
|
2252
|
-
}).transform((v) => {
|
|
2253
|
-
return remap$(v, {
|
|
2254
|
-
"max_tokens": "maxTokens",
|
|
2255
|
-
"top_k": "topK",
|
|
2256
|
-
"top_p": "topP",
|
|
2257
|
-
"frequency_penalty": "frequencyPenalty",
|
|
2258
|
-
"presence_penalty": "presencePenalty",
|
|
2259
|
-
"reasoning_effort": "reasoningEffort",
|
|
2260
|
-
"budget_tokens": "budgetTokens",
|
|
2261
|
-
});
|
|
2262
|
-
});
|
|
2263
|
-
|
|
2264
|
-
export function getEvalResponseBodyEvalsModelParametersFromJSON(
|
|
2265
|
-
jsonString: string,
|
|
2266
|
-
): SafeParseResult<
|
|
2267
|
-
GetEvalResponseBodyEvalsModelParameters,
|
|
2268
|
-
SDKValidationError
|
|
2269
|
-
> {
|
|
2270
|
-
return safeParse(
|
|
2271
|
-
jsonString,
|
|
2272
|
-
(x) =>
|
|
2273
|
-
GetEvalResponseBodyEvalsModelParameters$inboundSchema.parse(
|
|
2274
|
-
JSON.parse(x),
|
|
2275
|
-
),
|
|
2276
|
-
`Failed to parse 'GetEvalResponseBodyEvalsModelParameters' from JSON`,
|
|
2277
|
-
);
|
|
2278
|
-
}
|
|
2279
|
-
|
|
2280
|
-
/** @internal */
|
|
2281
|
-
export const GetEvalResponseBodyEvalsModel$inboundSchema: z.ZodType<
|
|
2282
|
-
GetEvalResponseBodyEvalsModel,
|
|
2283
|
-
z.ZodTypeDef,
|
|
2284
|
-
unknown
|
|
2285
|
-
> = z.object({
|
|
2286
|
-
id: z.string(),
|
|
2287
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
2288
|
-
model_parameters: z.lazy(() =>
|
|
2289
|
-
GetEvalResponseBodyEvalsModelParameters$inboundSchema
|
|
2290
|
-
).optional(),
|
|
2291
|
-
}).transform((v) => {
|
|
2292
|
-
return remap$(v, {
|
|
2293
|
-
"integration_id": "integrationId",
|
|
2294
|
-
"model_parameters": "modelParameters",
|
|
2295
|
-
});
|
|
2296
|
-
});
|
|
2297
|
-
|
|
2298
|
-
export function getEvalResponseBodyEvalsModelFromJSON(
|
|
2299
|
-
jsonString: string,
|
|
2300
|
-
): SafeParseResult<GetEvalResponseBodyEvalsModel, SDKValidationError> {
|
|
2301
|
-
return safeParse(
|
|
2302
|
-
jsonString,
|
|
2303
|
-
(x) => GetEvalResponseBodyEvalsModel$inboundSchema.parse(JSON.parse(x)),
|
|
2304
|
-
`Failed to parse 'GetEvalResponseBodyEvalsModel' from JSON`,
|
|
2305
|
-
);
|
|
2306
|
-
}
|
|
2307
|
-
|
|
2308
|
-
/** @internal */
|
|
2309
|
-
export const ResponseBodyRetry$inboundSchema: z.ZodType<
|
|
2310
|
-
ResponseBodyRetry,
|
|
2311
|
-
z.ZodTypeDef,
|
|
2312
|
-
unknown
|
|
2313
|
-
> = z.object({
|
|
2314
|
-
count: z.number().int().default(2),
|
|
2315
|
-
on_codes: z.array(z.number().int()).optional(),
|
|
2316
|
-
}).transform((v) => {
|
|
2317
|
-
return remap$(v, {
|
|
2318
|
-
"on_codes": "onCodes",
|
|
2319
|
-
});
|
|
2320
|
-
});
|
|
2321
|
-
|
|
2322
|
-
export function responseBodyRetryFromJSON(
|
|
2323
|
-
jsonString: string,
|
|
2324
|
-
): SafeParseResult<ResponseBodyRetry, SDKValidationError> {
|
|
2325
|
-
return safeParse(
|
|
2326
|
-
jsonString,
|
|
2327
|
-
(x) => ResponseBodyRetry$inboundSchema.parse(JSON.parse(x)),
|
|
2328
|
-
`Failed to parse 'ResponseBodyRetry' from JSON`,
|
|
2329
|
-
);
|
|
2330
|
-
}
|
|
2331
|
-
|
|
2332
|
-
/** @internal */
|
|
2333
|
-
export const GetEvalResponseBodyEvalsResponse200ModelParameters$inboundSchema:
|
|
2334
|
-
z.ZodType<
|
|
2335
|
-
GetEvalResponseBodyEvalsResponse200ModelParameters,
|
|
2336
|
-
z.ZodTypeDef,
|
|
2337
|
-
unknown
|
|
2338
|
-
> = z.object({
|
|
2339
|
-
temperature: z.number().optional(),
|
|
2340
|
-
max_tokens: z.number().optional(),
|
|
2341
|
-
top_k: z.number().optional(),
|
|
2342
|
-
top_p: z.number().optional(),
|
|
2343
|
-
frequency_penalty: z.number().optional(),
|
|
2344
|
-
presence_penalty: z.number().optional(),
|
|
2345
|
-
reasoning_effort: z.string().optional(),
|
|
2346
|
-
budget_tokens: z.number().optional(),
|
|
2347
|
-
}).transform((v) => {
|
|
2348
|
-
return remap$(v, {
|
|
2349
|
-
"max_tokens": "maxTokens",
|
|
2350
|
-
"top_k": "topK",
|
|
2351
|
-
"top_p": "topP",
|
|
2352
|
-
"frequency_penalty": "frequencyPenalty",
|
|
2353
|
-
"presence_penalty": "presencePenalty",
|
|
2354
|
-
"reasoning_effort": "reasoningEffort",
|
|
2355
|
-
"budget_tokens": "budgetTokens",
|
|
2356
|
-
});
|
|
2357
|
-
});
|
|
2358
|
-
|
|
2359
|
-
export function getEvalResponseBodyEvalsResponse200ModelParametersFromJSON(
|
|
2360
|
-
jsonString: string,
|
|
2361
|
-
): SafeParseResult<
|
|
2362
|
-
GetEvalResponseBodyEvalsResponse200ModelParameters,
|
|
2363
|
-
SDKValidationError
|
|
2364
|
-
> {
|
|
2365
|
-
return safeParse(
|
|
2366
|
-
jsonString,
|
|
2367
|
-
(x) =>
|
|
2368
|
-
GetEvalResponseBodyEvalsResponse200ModelParameters$inboundSchema.parse(
|
|
2369
|
-
JSON.parse(x),
|
|
2370
|
-
),
|
|
2371
|
-
`Failed to parse 'GetEvalResponseBodyEvalsResponse200ModelParameters' from JSON`,
|
|
2372
|
-
);
|
|
2373
|
-
}
|
|
2374
|
-
|
|
2375
|
-
/** @internal */
|
|
2376
|
-
export const GetEvalResponseBodyEvalsResponse200Model$inboundSchema: z.ZodType<
|
|
2377
|
-
GetEvalResponseBodyEvalsResponse200Model,
|
|
2378
|
-
z.ZodTypeDef,
|
|
2379
|
-
unknown
|
|
2380
|
-
> = z.object({
|
|
2381
|
-
id: z.string(),
|
|
2382
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
2383
|
-
model_parameters: z.lazy(() =>
|
|
2384
|
-
GetEvalResponseBodyEvalsResponse200ModelParameters$inboundSchema
|
|
2385
|
-
).optional(),
|
|
2386
|
-
}).transform((v) => {
|
|
2387
|
-
return remap$(v, {
|
|
2388
|
-
"integration_id": "integrationId",
|
|
2389
|
-
"model_parameters": "modelParameters",
|
|
2390
|
-
});
|
|
2391
|
-
});
|
|
2392
|
-
|
|
2393
|
-
export function getEvalResponseBodyEvalsResponse200ModelFromJSON(
|
|
2394
|
-
jsonString: string,
|
|
2395
|
-
): SafeParseResult<
|
|
2396
|
-
GetEvalResponseBodyEvalsResponse200Model,
|
|
2397
|
-
SDKValidationError
|
|
2398
|
-
> {
|
|
2399
|
-
return safeParse(
|
|
2400
|
-
jsonString,
|
|
2401
|
-
(x) =>
|
|
2402
|
-
GetEvalResponseBodyEvalsResponse200Model$inboundSchema.parse(
|
|
2403
|
-
JSON.parse(x),
|
|
2404
|
-
),
|
|
2405
|
-
`Failed to parse 'GetEvalResponseBodyEvalsResponse200Model' from JSON`,
|
|
2406
|
-
);
|
|
2407
|
-
}
|
|
2408
|
-
|
|
2409
|
-
/** @internal */
|
|
2410
|
-
export const ResponseBodyFallbacks$inboundSchema: z.ZodType<
|
|
2411
|
-
ResponseBodyFallbacks,
|
|
2412
|
-
z.ZodTypeDef,
|
|
2413
|
-
unknown
|
|
2414
|
-
> = z.object({
|
|
2415
|
-
model: z.lazy(() => GetEvalResponseBodyEvalsResponse200Model$inboundSchema),
|
|
2416
|
-
});
|
|
2417
|
-
|
|
2418
|
-
export function responseBodyFallbacksFromJSON(
|
|
2419
|
-
jsonString: string,
|
|
2420
|
-
): SafeParseResult<ResponseBodyFallbacks, SDKValidationError> {
|
|
2421
|
-
return safeParse(
|
|
2422
|
-
jsonString,
|
|
2423
|
-
(x) => ResponseBodyFallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
2424
|
-
`Failed to parse 'ResponseBodyFallbacks' from JSON`,
|
|
2425
|
-
);
|
|
2426
|
-
}
|
|
2427
|
-
|
|
2428
|
-
/** @internal */
|
|
2429
|
-
export const ResponseBodyJudges$inboundSchema: z.ZodType<
|
|
2430
|
-
ResponseBodyJudges,
|
|
2431
|
-
z.ZodTypeDef,
|
|
2432
|
-
unknown
|
|
2433
|
-
> = z.object({
|
|
2434
|
-
model: z.lazy(() => GetEvalResponseBodyEvalsModel$inboundSchema),
|
|
2435
|
-
retry: z.lazy(() => ResponseBodyRetry$inboundSchema).optional(),
|
|
2436
|
-
fallbacks: z.array(z.lazy(() => ResponseBodyFallbacks$inboundSchema))
|
|
2437
|
-
.optional(),
|
|
2438
|
-
});
|
|
2439
|
-
|
|
2440
|
-
export function responseBodyJudgesFromJSON(
|
|
2441
|
-
jsonString: string,
|
|
2442
|
-
): SafeParseResult<ResponseBodyJudges, SDKValidationError> {
|
|
2443
|
-
return safeParse(
|
|
2444
|
-
jsonString,
|
|
2445
|
-
(x) => ResponseBodyJudges$inboundSchema.parse(JSON.parse(x)),
|
|
2446
|
-
`Failed to parse 'ResponseBodyJudges' from JSON`,
|
|
2447
|
-
);
|
|
2448
|
-
}
|
|
2449
|
-
|
|
2450
|
-
/** @internal */
|
|
2451
|
-
export const GetEvalResponseBodyModelParameters$inboundSchema: z.ZodType<
|
|
2452
|
-
GetEvalResponseBodyModelParameters,
|
|
2453
|
-
z.ZodTypeDef,
|
|
2454
|
-
unknown
|
|
2455
|
-
> = z.object({
|
|
2456
|
-
temperature: z.number().optional(),
|
|
2457
|
-
max_tokens: z.number().optional(),
|
|
2458
|
-
top_k: z.number().optional(),
|
|
2459
|
-
top_p: z.number().optional(),
|
|
2460
|
-
frequency_penalty: z.number().optional(),
|
|
2461
|
-
presence_penalty: z.number().optional(),
|
|
2462
|
-
reasoning_effort: z.string().optional(),
|
|
2463
|
-
budget_tokens: z.number().optional(),
|
|
2464
|
-
}).transform((v) => {
|
|
2465
|
-
return remap$(v, {
|
|
2466
|
-
"max_tokens": "maxTokens",
|
|
2467
|
-
"top_k": "topK",
|
|
2468
|
-
"top_p": "topP",
|
|
2469
|
-
"frequency_penalty": "frequencyPenalty",
|
|
2470
|
-
"presence_penalty": "presencePenalty",
|
|
2471
|
-
"reasoning_effort": "reasoningEffort",
|
|
2472
|
-
"budget_tokens": "budgetTokens",
|
|
2473
|
-
});
|
|
2474
|
-
});
|
|
2475
|
-
|
|
2476
|
-
export function getEvalResponseBodyModelParametersFromJSON(
|
|
2477
|
-
jsonString: string,
|
|
2478
|
-
): SafeParseResult<GetEvalResponseBodyModelParameters, SDKValidationError> {
|
|
2479
|
-
return safeParse(
|
|
2480
|
-
jsonString,
|
|
2481
|
-
(x) =>
|
|
2482
|
-
GetEvalResponseBodyModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2483
|
-
`Failed to parse 'GetEvalResponseBodyModelParameters' from JSON`,
|
|
2484
|
-
);
|
|
2485
|
-
}
|
|
2486
|
-
|
|
2487
|
-
/** @internal */
|
|
2488
|
-
export const GetEvalResponseBodyEvalsResponseModel$inboundSchema: z.ZodType<
|
|
2489
|
-
GetEvalResponseBodyEvalsResponseModel,
|
|
2490
|
-
z.ZodTypeDef,
|
|
2491
|
-
unknown
|
|
2492
|
-
> = z.object({
|
|
2493
|
-
id: z.string(),
|
|
2494
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
2495
|
-
model_parameters: z.lazy(() =>
|
|
2496
|
-
GetEvalResponseBodyModelParameters$inboundSchema
|
|
2497
|
-
).optional(),
|
|
2498
|
-
}).transform((v) => {
|
|
2499
|
-
return remap$(v, {
|
|
2500
|
-
"integration_id": "integrationId",
|
|
2501
|
-
"model_parameters": "modelParameters",
|
|
2502
|
-
});
|
|
2503
|
-
});
|
|
2504
|
-
|
|
2505
|
-
export function getEvalResponseBodyEvalsResponseModelFromJSON(
|
|
2506
|
-
jsonString: string,
|
|
2507
|
-
): SafeParseResult<GetEvalResponseBodyEvalsResponseModel, SDKValidationError> {
|
|
2508
|
-
return safeParse(
|
|
2509
|
-
jsonString,
|
|
2510
|
-
(x) =>
|
|
2511
|
-
GetEvalResponseBodyEvalsResponseModel$inboundSchema.parse(JSON.parse(x)),
|
|
2512
|
-
`Failed to parse 'GetEvalResponseBodyEvalsResponseModel' from JSON`,
|
|
2513
|
-
);
|
|
2514
|
-
}
|
|
2515
|
-
|
|
2516
|
-
/** @internal */
|
|
2517
|
-
export const GetEvalResponseBodyRetry$inboundSchema: z.ZodType<
|
|
2518
|
-
GetEvalResponseBodyRetry,
|
|
2519
|
-
z.ZodTypeDef,
|
|
2520
|
-
unknown
|
|
2521
|
-
> = z.object({
|
|
2522
|
-
count: z.number().int().default(2),
|
|
2523
|
-
on_codes: z.array(z.number().int()).optional(),
|
|
2524
|
-
}).transform((v) => {
|
|
2525
|
-
return remap$(v, {
|
|
2526
|
-
"on_codes": "onCodes",
|
|
2527
|
-
});
|
|
2528
|
-
});
|
|
2529
|
-
|
|
2530
|
-
export function getEvalResponseBodyRetryFromJSON(
|
|
2531
|
-
jsonString: string,
|
|
2532
|
-
): SafeParseResult<GetEvalResponseBodyRetry, SDKValidationError> {
|
|
2533
|
-
return safeParse(
|
|
2534
|
-
jsonString,
|
|
2535
|
-
(x) => GetEvalResponseBodyRetry$inboundSchema.parse(JSON.parse(x)),
|
|
2536
|
-
`Failed to parse 'GetEvalResponseBodyRetry' from JSON`,
|
|
2537
|
-
);
|
|
2538
|
-
}
|
|
2539
|
-
|
|
2540
|
-
/** @internal */
|
|
2541
|
-
export const GetEvalResponseBodyEvalsResponseModelParameters$inboundSchema:
|
|
2542
|
-
z.ZodType<
|
|
2543
|
-
GetEvalResponseBodyEvalsResponseModelParameters,
|
|
2544
|
-
z.ZodTypeDef,
|
|
2545
|
-
unknown
|
|
2546
|
-
> = z.object({
|
|
2547
|
-
temperature: z.number().optional(),
|
|
2548
|
-
max_tokens: z.number().optional(),
|
|
2549
|
-
top_k: z.number().optional(),
|
|
2550
|
-
top_p: z.number().optional(),
|
|
2551
|
-
frequency_penalty: z.number().optional(),
|
|
2552
|
-
presence_penalty: z.number().optional(),
|
|
2553
|
-
reasoning_effort: z.string().optional(),
|
|
2554
|
-
budget_tokens: z.number().optional(),
|
|
2555
|
-
}).transform((v) => {
|
|
2556
|
-
return remap$(v, {
|
|
2557
|
-
"max_tokens": "maxTokens",
|
|
2558
|
-
"top_k": "topK",
|
|
2559
|
-
"top_p": "topP",
|
|
2560
|
-
"frequency_penalty": "frequencyPenalty",
|
|
2561
|
-
"presence_penalty": "presencePenalty",
|
|
2562
|
-
"reasoning_effort": "reasoningEffort",
|
|
2563
|
-
"budget_tokens": "budgetTokens",
|
|
2564
|
-
});
|
|
2565
|
-
});
|
|
2566
|
-
|
|
2567
|
-
export function getEvalResponseBodyEvalsResponseModelParametersFromJSON(
|
|
2568
|
-
jsonString: string,
|
|
2569
|
-
): SafeParseResult<
|
|
2570
|
-
GetEvalResponseBodyEvalsResponseModelParameters,
|
|
2571
|
-
SDKValidationError
|
|
2572
|
-
> {
|
|
2573
|
-
return safeParse(
|
|
2574
|
-
jsonString,
|
|
2575
|
-
(x) =>
|
|
2576
|
-
GetEvalResponseBodyEvalsResponseModelParameters$inboundSchema.parse(
|
|
2577
|
-
JSON.parse(x),
|
|
2578
|
-
),
|
|
2579
|
-
`Failed to parse 'GetEvalResponseBodyEvalsResponseModelParameters' from JSON`,
|
|
2580
|
-
);
|
|
2581
|
-
}
|
|
2582
|
-
|
|
2583
|
-
/** @internal */
|
|
2584
|
-
export const GetEvalResponseBodyEvalsResponse200ApplicationJSONModel$inboundSchema:
|
|
2585
|
-
z.ZodType<
|
|
2586
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJSONModel,
|
|
2587
|
-
z.ZodTypeDef,
|
|
2588
|
-
unknown
|
|
2589
|
-
> = z.object({
|
|
2590
|
-
id: z.string(),
|
|
2591
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
2592
|
-
model_parameters: z.lazy(() =>
|
|
2593
|
-
GetEvalResponseBodyEvalsResponseModelParameters$inboundSchema
|
|
2594
|
-
).optional(),
|
|
2595
|
-
}).transform((v) => {
|
|
2596
|
-
return remap$(v, {
|
|
2597
|
-
"integration_id": "integrationId",
|
|
2598
|
-
"model_parameters": "modelParameters",
|
|
2599
|
-
});
|
|
2600
|
-
});
|
|
2601
|
-
|
|
2602
|
-
export function getEvalResponseBodyEvalsResponse200ApplicationJSONModelFromJSON(
|
|
2603
|
-
jsonString: string,
|
|
2604
|
-
): SafeParseResult<
|
|
2605
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJSONModel,
|
|
2606
|
-
SDKValidationError
|
|
2607
|
-
> {
|
|
2608
|
-
return safeParse(
|
|
2609
|
-
jsonString,
|
|
2610
|
-
(x) =>
|
|
2611
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJSONModel$inboundSchema
|
|
2612
|
-
.parse(JSON.parse(x)),
|
|
2613
|
-
`Failed to parse 'GetEvalResponseBodyEvalsResponse200ApplicationJSONModel' from JSON`,
|
|
2614
|
-
);
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
/** @internal */
|
|
2618
|
-
export const GetEvalResponseBodyFallbacks$inboundSchema: z.ZodType<
|
|
2619
|
-
GetEvalResponseBodyFallbacks,
|
|
2620
|
-
z.ZodTypeDef,
|
|
2621
|
-
unknown
|
|
2622
|
-
> = z.object({
|
|
2623
|
-
model: z.lazy(() =>
|
|
2624
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJSONModel$inboundSchema
|
|
2625
|
-
),
|
|
2626
|
-
});
|
|
2627
|
-
|
|
2628
|
-
export function getEvalResponseBodyFallbacksFromJSON(
|
|
2629
|
-
jsonString: string,
|
|
2630
|
-
): SafeParseResult<GetEvalResponseBodyFallbacks, SDKValidationError> {
|
|
2631
|
-
return safeParse(
|
|
2632
|
-
jsonString,
|
|
2633
|
-
(x) => GetEvalResponseBodyFallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
2634
|
-
`Failed to parse 'GetEvalResponseBodyFallbacks' from JSON`,
|
|
2635
|
-
);
|
|
2636
|
-
}
|
|
2637
|
-
|
|
2638
|
-
/** @internal */
|
|
2639
|
-
export const ResponseBodyReplacementJudges$inboundSchema: z.ZodType<
|
|
2640
|
-
ResponseBodyReplacementJudges,
|
|
2641
|
-
z.ZodTypeDef,
|
|
2642
|
-
unknown
|
|
2643
|
-
> = z.object({
|
|
2644
|
-
model: z.lazy(() => GetEvalResponseBodyEvalsResponseModel$inboundSchema),
|
|
2645
|
-
retry: z.lazy(() => GetEvalResponseBodyRetry$inboundSchema).optional(),
|
|
2646
|
-
fallbacks: z.array(z.lazy(() => GetEvalResponseBodyFallbacks$inboundSchema))
|
|
2647
|
-
.optional(),
|
|
2648
|
-
});
|
|
2649
|
-
|
|
2650
|
-
export function responseBodyReplacementJudgesFromJSON(
|
|
2651
|
-
jsonString: string,
|
|
2652
|
-
): SafeParseResult<ResponseBodyReplacementJudges, SDKValidationError> {
|
|
2653
|
-
return safeParse(
|
|
2654
|
-
jsonString,
|
|
2655
|
-
(x) => ResponseBodyReplacementJudges$inboundSchema.parse(JSON.parse(x)),
|
|
2656
|
-
`Failed to parse 'ResponseBodyReplacementJudges' from JSON`,
|
|
2657
|
-
);
|
|
2658
|
-
}
|
|
2659
|
-
|
|
2660
|
-
/** @internal */
|
|
2661
|
-
export const ResponseBodyTieValue$inboundSchema: z.ZodNativeEnum<
|
|
2662
|
-
typeof ResponseBodyTieValue
|
|
2663
|
-
> = z.nativeEnum(ResponseBodyTieValue);
|
|
2664
|
-
|
|
2665
|
-
/** @internal */
|
|
2666
|
-
export const ResponseBodyJury$inboundSchema: z.ZodType<
|
|
2667
|
-
ResponseBodyJury,
|
|
2668
|
-
z.ZodTypeDef,
|
|
2669
|
-
unknown
|
|
2670
|
-
> = z.object({
|
|
2671
|
-
judges: z.array(z.lazy(() => ResponseBodyJudges$inboundSchema)),
|
|
2672
|
-
replacement_judges: z.array(
|
|
2673
|
-
z.lazy(() => ResponseBodyReplacementJudges$inboundSchema),
|
|
2674
|
-
).optional(),
|
|
2675
|
-
min_successful_judges: z.number().int().default(2),
|
|
2676
|
-
tie_value: ResponseBodyTieValue$inboundSchema.default("Tie"),
|
|
2677
|
-
}).transform((v) => {
|
|
2678
|
-
return remap$(v, {
|
|
2679
|
-
"replacement_judges": "replacementJudges",
|
|
2680
|
-
"min_successful_judges": "minSuccessfulJudges",
|
|
2681
|
-
"tie_value": "tieValue",
|
|
2682
|
-
});
|
|
2683
|
-
});
|
|
2684
|
-
|
|
2685
|
-
export function responseBodyJuryFromJSON(
|
|
2686
|
-
jsonString: string,
|
|
2687
|
-
): SafeParseResult<ResponseBodyJury, SDKValidationError> {
|
|
2688
|
-
return safeParse(
|
|
2689
|
-
jsonString,
|
|
2690
|
-
(x) => ResponseBodyJury$inboundSchema.parse(JSON.parse(x)),
|
|
2691
|
-
`Failed to parse 'ResponseBodyJury' from JSON`,
|
|
2692
|
-
);
|
|
2693
|
-
}
|
|
2694
|
-
|
|
2695
|
-
/** @internal */
|
|
2696
|
-
export const ResponseBodyCategoricalLabels$inboundSchema: z.ZodType<
|
|
2697
|
-
ResponseBodyCategoricalLabels,
|
|
2698
|
-
z.ZodTypeDef,
|
|
2699
|
-
unknown
|
|
2700
|
-
> = z.object({
|
|
2701
|
-
value: z.string(),
|
|
2702
|
-
description: z.string().optional(),
|
|
2703
|
-
});
|
|
2704
|
-
|
|
2705
|
-
export function responseBodyCategoricalLabelsFromJSON(
|
|
2706
|
-
jsonString: string,
|
|
2707
|
-
): SafeParseResult<ResponseBodyCategoricalLabels, SDKValidationError> {
|
|
2708
|
-
return safeParse(
|
|
2709
|
-
jsonString,
|
|
2710
|
-
(x) => ResponseBodyCategoricalLabels$inboundSchema.parse(JSON.parse(x)),
|
|
2711
|
-
`Failed to parse 'ResponseBodyCategoricalLabels' from JSON`,
|
|
2712
|
-
);
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
|
-
/** @internal */
|
|
2716
|
-
export const ResponseBodyLLM$inboundSchema: z.ZodType<
|
|
2717
|
-
ResponseBodyLLM,
|
|
2718
|
-
z.ZodTypeDef,
|
|
2719
|
-
unknown
|
|
2720
|
-
> = z.object({
|
|
2721
|
-
enabled: z.boolean().default(true),
|
|
2722
|
-
metadata: z.lazy(() =>
|
|
2723
|
-
GetEvalResponseBodyEvalsResponse200ApplicationJson1Metadata$inboundSchema
|
|
2724
|
-
),
|
|
2725
|
-
_id: z.string(),
|
|
2726
|
-
display_name: z.string(),
|
|
2727
|
-
description: z.string(),
|
|
2728
|
-
owner: z.string(),
|
|
2729
|
-
created: z.string().default("2026-08-26T09:46:51.830Z"),
|
|
2730
|
-
updated: z.string().default("2026-08-26T09:46:51.831Z"),
|
|
2731
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
2732
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
2733
|
-
domain_id: z.string(),
|
|
2734
|
-
project_id: z.string().optional(),
|
|
2735
|
-
guardrail_config: z.any().optional(),
|
|
2736
|
-
output_type: ResponseBodyOutputType$inboundSchema.optional(),
|
|
2737
|
-
type: z.literal("llm_eval"),
|
|
2738
|
-
mode: z.nullable(ResponseBodyMode$inboundSchema).optional(),
|
|
2739
|
-
repetitions: z.nullable(z.number().int()).optional(),
|
|
2740
|
-
model: z.lazy(() => GetEvalResponseBodyModel$inboundSchema).optional(),
|
|
2741
|
-
jury: z.nullable(z.lazy(() => ResponseBodyJury$inboundSchema)).optional(),
|
|
2742
|
-
prompt: z.string(),
|
|
2743
|
-
categories: z.nullable(z.array(z.string())).optional(),
|
|
2744
|
-
categorical_labels: z.nullable(
|
|
2745
|
-
z.array(z.lazy(() => ResponseBodyCategoricalLabels$inboundSchema)),
|
|
2746
|
-
).optional(),
|
|
2747
|
-
dataset_id: z.nullable(z.string()).optional(),
|
|
2748
|
-
}).transform((v) => {
|
|
2749
|
-
return remap$(v, {
|
|
2750
|
-
"_id": "id",
|
|
2751
|
-
"display_name": "displayName",
|
|
2752
|
-
"created_by_id": "createdById",
|
|
2753
|
-
"updated_by_id": "updatedById",
|
|
2754
|
-
"domain_id": "domainId",
|
|
2755
|
-
"project_id": "projectId",
|
|
2756
|
-
"guardrail_config": "guardrailConfig",
|
|
2757
|
-
"output_type": "outputType",
|
|
2758
|
-
"categorical_labels": "categoricalLabels",
|
|
2759
|
-
"dataset_id": "datasetId",
|
|
2760
|
-
});
|
|
2761
|
-
});
|
|
2762
|
-
|
|
2763
|
-
export function responseBodyLLMFromJSON(
|
|
2764
|
-
jsonString: string,
|
|
2765
|
-
): SafeParseResult<ResponseBodyLLM, SDKValidationError> {
|
|
2766
|
-
return safeParse(
|
|
2767
|
-
jsonString,
|
|
2768
|
-
(x) => ResponseBodyLLM$inboundSchema.parse(JSON.parse(x)),
|
|
2769
|
-
`Failed to parse 'ResponseBodyLLM' from JSON`,
|
|
2770
|
-
);
|
|
2771
|
-
}
|
|
2772
|
-
|
|
2773
|
-
/** @internal */
|
|
2774
|
-
export const GetEvalResponseBody$inboundSchema: z.ZodType<
|
|
2775
|
-
GetEvalResponseBody,
|
|
2776
|
-
z.ZodTypeDef,
|
|
2777
|
-
unknown
|
|
2778
|
-
> = z.union([
|
|
2779
|
-
z.lazy(() => ResponseBodyLLM$inboundSchema),
|
|
2780
|
-
z.lazy(() => ResponseBodyFunction$inboundSchema),
|
|
2781
|
-
z.lazy(() => Ragas$inboundSchema),
|
|
2782
|
-
z.lazy(() => Json$inboundSchema),
|
|
2783
|
-
z.lazy(() => ResponseBodyHTTP$inboundSchema),
|
|
2784
|
-
z.lazy(() => ResponseBodyPython$inboundSchema),
|
|
2785
|
-
z.lazy(() => Typescript$inboundSchema),
|
|
2786
|
-
z.lazy(() => BedrockGuardrail$inboundSchema),
|
|
2787
|
-
]);
|
|
2788
|
-
|
|
2789
|
-
export function getEvalResponseBodyFromJSON(
|
|
2790
|
-
jsonString: string,
|
|
2791
|
-
): SafeParseResult<GetEvalResponseBody, SDKValidationError> {
|
|
2792
|
-
return safeParse(
|
|
2793
|
-
jsonString,
|
|
2794
|
-
(x) => GetEvalResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
2795
|
-
`Failed to parse 'GetEvalResponseBody' from JSON`,
|
|
2796
|
-
);
|
|
2797
|
-
}
|