@atlanai/sdk 0.1.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/dist/client.js +3 -1
- package/dist/evals.d.ts +46 -0
- package/dist/evals.js +230 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +8 -1
- package/dist/manifest.json +299 -3
- package/dist/raw/eval/apis/DatasetsApi.d.ts +304 -0
- package/dist/raw/eval/apis/DatasetsApi.js +706 -0
- package/dist/raw/eval/apis/ExperimentsApi.d.ts +371 -0
- package/dist/raw/eval/apis/ExperimentsApi.js +869 -0
- package/dist/raw/eval/apis/ScorersApi.d.ts +129 -0
- package/dist/raw/eval/apis/ScorersApi.js +308 -0
- package/dist/raw/eval/apis/index.d.ts +3 -0
- package/dist/raw/eval/apis/index.js +21 -0
- package/dist/raw/eval/index.d.ts +3 -0
- package/dist/raw/eval/index.js +21 -0
- package/dist/raw/eval/models/AccessView.d.ts +57 -0
- package/dist/raw/eval/models/AccessView.js +64 -0
- package/dist/raw/eval/models/ArtifactConflictProblem.d.ts +69 -0
- package/dist/raw/eval/models/ArtifactConflictProblem.js +66 -0
- package/dist/raw/eval/models/CostView.d.ts +50 -0
- package/dist/raw/eval/models/CostView.js +60 -0
- package/dist/raw/eval/models/CursorPage.d.ts +38 -0
- package/dist/raw/eval/models/CursorPage.js +52 -0
- package/dist/raw/eval/models/EvalArtifactEnvelope.d.ts +144 -0
- package/dist/raw/eval/models/EvalArtifactEnvelope.js +84 -0
- package/dist/raw/eval/models/EvalArtifactSearchRequest.d.ts +71 -0
- package/dist/raw/eval/models/EvalArtifactSearchRequest.js +60 -0
- package/dist/raw/eval/models/EvalBulkDatasetRecordResponse.d.ts +33 -0
- package/dist/raw/eval/models/EvalBulkDatasetRecordResponse.js +51 -0
- package/dist/raw/eval/models/EvalBulkDatasetRecordResult.d.ts +52 -0
- package/dist/raw/eval/models/EvalBulkDatasetRecordResult.js +60 -0
- package/dist/raw/eval/models/EvalBulkExperimentResultResponse.d.ts +33 -0
- package/dist/raw/eval/models/EvalBulkExperimentResultResponse.js +51 -0
- package/dist/raw/eval/models/EvalBulkExperimentResultSlot.d.ts +53 -0
- package/dist/raw/eval/models/EvalBulkExperimentResultSlot.js +60 -0
- package/dist/raw/eval/models/EvalCreateDataset400Response.d.ts +65 -0
- package/dist/raw/eval/models/EvalCreateDataset400Response.js +75 -0
- package/dist/raw/eval/models/EvalCreateDataset409Response.d.ts +63 -0
- package/dist/raw/eval/models/EvalCreateDataset409Response.js +75 -0
- package/dist/raw/eval/models/EvalCreateDataset413Response.d.ts +64 -0
- package/dist/raw/eval/models/EvalCreateDataset413Response.js +74 -0
- package/dist/raw/eval/models/EvalCreateDataset415Response.d.ts +64 -0
- package/dist/raw/eval/models/EvalCreateDataset415Response.js +74 -0
- package/dist/raw/eval/models/EvalCreateDataset422Response.d.ts +63 -0
- package/dist/raw/eval/models/EvalCreateDataset422Response.js +75 -0
- package/dist/raw/eval/models/EvalDatasetArtifactView.d.ts +277 -0
- package/dist/raw/eval/models/EvalDatasetArtifactView.js +146 -0
- package/dist/raw/eval/models/EvalDatasetCreate.d.ts +150 -0
- package/dist/raw/eval/models/EvalDatasetCreate.js +86 -0
- package/dist/raw/eval/models/EvalDatasetMeta.d.ts +46 -0
- package/dist/raw/eval/models/EvalDatasetMeta.js +48 -0
- package/dist/raw/eval/models/EvalDatasetPatch.d.ts +52 -0
- package/dist/raw/eval/models/EvalDatasetPatch.js +54 -0
- package/dist/raw/eval/models/EvalDatasetRecordArtifactView.d.ts +330 -0
- package/dist/raw/eval/models/EvalDatasetRecordArtifactView.js +161 -0
- package/dist/raw/eval/models/EvalDatasetRecordBulkCreate.d.ts +33 -0
- package/dist/raw/eval/models/EvalDatasetRecordBulkCreate.js +51 -0
- package/dist/raw/eval/models/EvalDatasetRecordCreate.d.ts +195 -0
- package/dist/raw/eval/models/EvalDatasetRecordCreate.js +101 -0
- package/dist/raw/eval/models/EvalDatasetRecordMeta.d.ts +96 -0
- package/dist/raw/eval/models/EvalDatasetRecordMeta.js +67 -0
- package/dist/raw/eval/models/EvalDatasetRecordPatch.d.ts +81 -0
- package/dist/raw/eval/models/EvalDatasetRecordPatch.js +62 -0
- package/dist/raw/eval/models/EvalExperimentArtifactView.d.ts +320 -0
- package/dist/raw/eval/models/EvalExperimentArtifactView.js +160 -0
- package/dist/raw/eval/models/EvalExperimentCreate.d.ts +193 -0
- package/dist/raw/eval/models/EvalExperimentCreate.js +100 -0
- package/dist/raw/eval/models/EvalExperimentMeta.d.ts +91 -0
- package/dist/raw/eval/models/EvalExperimentMeta.js +62 -0
- package/dist/raw/eval/models/EvalExperimentPatch.d.ts +63 -0
- package/dist/raw/eval/models/EvalExperimentPatch.js +57 -0
- package/dist/raw/eval/models/EvalExperimentResultArtifactView.d.ts +330 -0
- package/dist/raw/eval/models/EvalExperimentResultArtifactView.js +162 -0
- package/dist/raw/eval/models/EvalExperimentResultBulkCreate.d.ts +33 -0
- package/dist/raw/eval/models/EvalExperimentResultBulkCreate.js +51 -0
- package/dist/raw/eval/models/EvalExperimentResultCreate.d.ts +197 -0
- package/dist/raw/eval/models/EvalExperimentResultCreate.js +100 -0
- package/dist/raw/eval/models/EvalExperimentResultMeta.d.ts +102 -0
- package/dist/raw/eval/models/EvalExperimentResultMeta.js +66 -0
- package/dist/raw/eval/models/EvalExperimentStatus.d.ts +31 -0
- package/dist/raw/eval/models/EvalExperimentStatus.js +59 -0
- package/dist/raw/eval/models/EvalGetDataset404Response.d.ts +63 -0
- package/dist/raw/eval/models/EvalGetDataset404Response.js +75 -0
- package/dist/raw/eval/models/EvalGetExperimentTrace400Response.d.ts +63 -0
- package/dist/raw/eval/models/EvalGetExperimentTrace400Response.js +75 -0
- package/dist/raw/eval/models/EvalListDatasets400Response.d.ts +63 -0
- package/dist/raw/eval/models/EvalListDatasets400Response.js +75 -0
- package/dist/raw/eval/models/EvalListDatasets401Response.d.ts +79 -0
- package/dist/raw/eval/models/EvalListDatasets401Response.js +89 -0
- package/dist/raw/eval/models/EvalListDatasets403Response.d.ts +64 -0
- package/dist/raw/eval/models/EvalListDatasets403Response.js +74 -0
- package/dist/raw/eval/models/EvalListDatasets500Response.d.ts +63 -0
- package/dist/raw/eval/models/EvalListDatasets500Response.js +75 -0
- package/dist/raw/eval/models/EvalListDatasets503Response.d.ts +64 -0
- package/dist/raw/eval/models/EvalListDatasets503Response.js +74 -0
- package/dist/raw/eval/models/EvalListDatasets504Response.d.ts +63 -0
- package/dist/raw/eval/models/EvalListDatasets504Response.js +75 -0
- package/dist/raw/eval/models/EvalPageDatasetArtifactView.d.ts +44 -0
- package/dist/raw/eval/models/EvalPageDatasetArtifactView.js +56 -0
- package/dist/raw/eval/models/EvalPageDatasetRecordArtifactView.d.ts +44 -0
- package/dist/raw/eval/models/EvalPageDatasetRecordArtifactView.js +56 -0
- package/dist/raw/eval/models/EvalPageExperimentArtifactView.d.ts +44 -0
- package/dist/raw/eval/models/EvalPageExperimentArtifactView.js +56 -0
- package/dist/raw/eval/models/EvalPageExperimentResultArtifactView.d.ts +44 -0
- package/dist/raw/eval/models/EvalPageExperimentResultArtifactView.js +56 -0
- package/dist/raw/eval/models/EvalPageScorerArtifactView.d.ts +44 -0
- package/dist/raw/eval/models/EvalPageScorerArtifactView.js +56 -0
- package/dist/raw/eval/models/EvalPatchDataset412Response.d.ts +63 -0
- package/dist/raw/eval/models/EvalPatchDataset412Response.js +75 -0
- package/dist/raw/eval/models/EvalRecordSource.d.ts +27 -0
- package/dist/raw/eval/models/EvalRecordSource.js +55 -0
- package/dist/raw/eval/models/EvalScorerArtifactView.d.ts +301 -0
- package/dist/raw/eval/models/EvalScorerArtifactView.js +154 -0
- package/dist/raw/eval/models/EvalScorerCreate.d.ts +172 -0
- package/dist/raw/eval/models/EvalScorerCreate.js +98 -0
- package/dist/raw/eval/models/EvalScorerKind.d.ts +32 -0
- package/dist/raw/eval/models/EvalScorerKind.js +60 -0
- package/dist/raw/eval/models/EvalScorerMeta.d.ts +67 -0
- package/dist/raw/eval/models/EvalScorerMeta.js +60 -0
- package/dist/raw/eval/models/EvalScorerPatch.d.ts +75 -0
- package/dist/raw/eval/models/EvalScorerPatch.js +56 -0
- package/dist/raw/eval/models/EvalScorerScope.d.ts +32 -0
- package/dist/raw/eval/models/EvalScorerScope.js +60 -0
- package/dist/raw/eval/models/EvalSubjectKind.d.ts +33 -0
- package/dist/raw/eval/models/EvalSubjectKind.js +61 -0
- package/dist/raw/eval/models/GatewayArtifactBase.d.ts +250 -0
- package/dist/raw/eval/models/GatewayArtifactBase.js +139 -0
- package/dist/raw/eval/models/GatewayArtifactIdentityRevealView.d.ts +60 -0
- package/dist/raw/eval/models/GatewayArtifactIdentityRevealView.js +58 -0
- package/dist/raw/eval/models/GatewayPageMeta.d.ts +46 -0
- package/dist/raw/eval/models/GatewayPageMeta.js +58 -0
- package/dist/raw/eval/models/GatewaySourceEnvelope.d.ts +106 -0
- package/dist/raw/eval/models/GatewaySourceEnvelope.js +66 -0
- package/dist/raw/eval/models/GatewayTraceStatsBucket.d.ts +25 -0
- package/dist/raw/eval/models/GatewayTraceStatsBucket.js +53 -0
- package/dist/raw/eval/models/GatewayTraceStatsCompareMode.d.ts +25 -0
- package/dist/raw/eval/models/GatewayTraceStatsCompareMode.js +53 -0
- package/dist/raw/eval/models/GatewayTraceStatsComparison.d.ts +45 -0
- package/dist/raw/eval/models/GatewayTraceStatsComparison.js +59 -0
- package/dist/raw/eval/models/GatewayTraceStatsData.d.ts +24 -0
- package/dist/raw/eval/models/GatewayTraceStatsData.js +64 -0
- package/dist/raw/eval/models/GatewayTraceStatsDataOneOf.d.ts +46 -0
- package/dist/raw/eval/models/GatewayTraceStatsDataOneOf.js +66 -0
- package/dist/raw/eval/models/GatewayTraceStatsDataOneOf1.d.ts +53 -0
- package/dist/raw/eval/models/GatewayTraceStatsDataOneOf1.js +71 -0
- package/dist/raw/eval/models/GatewayTraceStatsDataOneOf2.d.ts +46 -0
- package/dist/raw/eval/models/GatewayTraceStatsDataOneOf2.js +66 -0
- package/dist/raw/eval/models/GatewayTraceStatsEnvelope.d.ts +50 -0
- package/dist/raw/eval/models/GatewayTraceStatsEnvelope.js +59 -0
- package/dist/raw/eval/models/GatewayTraceStatsFilter.d.ts +47 -0
- package/dist/raw/eval/models/GatewayTraceStatsFilter.js +59 -0
- package/dist/raw/eval/models/GatewayTraceStatsFilterOperator.d.ts +28 -0
- package/dist/raw/eval/models/GatewayTraceStatsFilterOperator.js +56 -0
- package/dist/raw/eval/models/GatewayTraceStatsFilterValue.d.ts +21 -0
- package/dist/raw/eval/models/GatewayTraceStatsFilterValue.js +85 -0
- package/dist/raw/eval/models/GatewayTraceStatsGroupBy.d.ts +35 -0
- package/dist/raw/eval/models/GatewayTraceStatsGroupBy.js +63 -0
- package/dist/raw/eval/models/GatewayTraceStatsMeasure.d.ts +39 -0
- package/dist/raw/eval/models/GatewayTraceStatsMeasure.js +67 -0
- package/dist/raw/eval/models/GatewayTraceStatsMeta.d.ts +49 -0
- package/dist/raw/eval/models/GatewayTraceStatsMeta.js +53 -0
- package/dist/raw/eval/models/GatewayTraceStatsOrder.d.ts +40 -0
- package/dist/raw/eval/models/GatewayTraceStatsOrder.js +56 -0
- package/dist/raw/eval/models/GatewayTraceStatsOrderBy.d.ts +25 -0
- package/dist/raw/eval/models/GatewayTraceStatsOrderBy.js +53 -0
- package/dist/raw/eval/models/GatewayTraceStatsOrderDirection.d.ts +25 -0
- package/dist/raw/eval/models/GatewayTraceStatsOrderDirection.js +53 -0
- package/dist/raw/eval/models/GatewayTraceStatsPanelQuery.d.ts +69 -0
- package/dist/raw/eval/models/GatewayTraceStatsPanelQuery.js +66 -0
- package/dist/raw/eval/models/GatewayTraceStatsRequest.d.ts +80 -0
- package/dist/raw/eval/models/GatewayTraceStatsRequest.js +72 -0
- package/dist/raw/eval/models/GatewayTraceStatsRequestType.d.ts +26 -0
- package/dist/raw/eval/models/GatewayTraceStatsRequestType.js +54 -0
- package/dist/raw/eval/models/GatewayTraceStatsScalarResult.d.ts +52 -0
- package/dist/raw/eval/models/GatewayTraceStatsScalarResult.js +59 -0
- package/dist/raw/eval/models/GatewayTraceStatsSeries.d.ts +52 -0
- package/dist/raw/eval/models/GatewayTraceStatsSeries.js +62 -0
- package/dist/raw/eval/models/GatewayTraceStatsSeriesPoint.d.ts +38 -0
- package/dist/raw/eval/models/GatewayTraceStatsSeriesPoint.js +52 -0
- package/dist/raw/eval/models/GatewayTraceStatsTableColumn.d.ts +45 -0
- package/dist/raw/eval/models/GatewayTraceStatsTableColumn.js +57 -0
- package/dist/raw/eval/models/GatewayTraceStatsTableColumnType.d.ts +25 -0
- package/dist/raw/eval/models/GatewayTraceStatsTableColumnType.js +53 -0
- package/dist/raw/eval/models/GatewayTraceStatsTableRow.d.ts +38 -0
- package/dist/raw/eval/models/GatewayTraceStatsTableRow.js +54 -0
- package/dist/raw/eval/models/GatewayTraceStatsWindow.d.ts +38 -0
- package/dist/raw/eval/models/GatewayTraceStatsWindow.js +54 -0
- package/dist/raw/eval/models/ProblemDetails.d.ts +76 -0
- package/dist/raw/eval/models/ProblemDetails.js +64 -0
- package/dist/raw/eval/models/RegistryEdgeTarget.d.ts +38 -0
- package/dist/raw/eval/models/RegistryEdgeTarget.js +54 -0
- package/dist/raw/eval/models/RegistryRelationshipEdge.d.ts +96 -0
- package/dist/raw/eval/models/RegistryRelationshipEdge.js +77 -0
- package/dist/raw/eval/models/RegistryRelationshipsView.d.ts +45 -0
- package/dist/raw/eval/models/RegistryRelationshipsView.js +59 -0
- package/dist/raw/eval/models/SpanListEnvelope.d.ts +40 -0
- package/dist/raw/eval/models/SpanListEnvelope.js +56 -0
- package/dist/raw/eval/models/SpanViewDto.d.ts +192 -0
- package/dist/raw/eval/models/SpanViewDto.js +117 -0
- package/dist/raw/eval/models/TraceDetailView.d.ts +177 -0
- package/dist/raw/eval/models/TraceDetailView.js +108 -0
- package/dist/raw/eval/models/TraceLinks.d.ts +45 -0
- package/dist/raw/eval/models/TraceLinks.js +58 -0
- package/dist/raw/eval/models/TraceListEnvelope.d.ts +47 -0
- package/dist/raw/eval/models/TraceListEnvelope.js +61 -0
- package/dist/raw/eval/models/TraceParentView.d.ts +68 -0
- package/dist/raw/eval/models/TraceParentView.js +64 -0
- package/dist/raw/eval/models/TraceStatus.d.ts +26 -0
- package/dist/raw/eval/models/TraceStatus.js +54 -0
- package/dist/raw/eval/models/TraceSummaryStats.d.ts +62 -0
- package/dist/raw/eval/models/TraceSummaryStats.js +62 -0
- package/dist/raw/eval/models/TraceSummaryView.d.ts +150 -0
- package/dist/raw/eval/models/TraceSummaryView.js +96 -0
- package/dist/raw/eval/models/UsageView.d.ts +56 -0
- package/dist/raw/eval/models/UsageView.js +66 -0
- package/dist/raw/eval/models/index.d.ts +100 -0
- package/dist/raw/eval/models/index.js +118 -0
- package/dist/raw/eval/runtime.d.ts +185 -0
- package/dist/raw/eval/runtime.js +369 -0
- package/dist/resources.json +307 -0
- package/dist/tracing/client.js +6 -4
- package/dist/tracing/propagation.d.ts +1 -0
- package/dist/tracing/propagation.js +7 -0
- package/dist/tracing/semconv.d.ts +8 -1
- package/dist/tracing/semconv.js +27 -13
- package/dist/tracing/spans.d.ts +8 -4
- package/dist/tracing/spans.js +28 -13
- package/dist/tracing/version.d.ts +1 -1
- package/dist/tracing/version.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Evaluation catalog
|
|
6
|
+
* The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfEvalScorerCreate = instanceOfEvalScorerCreate;
|
|
17
|
+
exports.EvalScorerCreateFromJSON = EvalScorerCreateFromJSON;
|
|
18
|
+
exports.EvalScorerCreateFromJSONTyped = EvalScorerCreateFromJSONTyped;
|
|
19
|
+
exports.EvalScorerCreateToJSON = EvalScorerCreateToJSON;
|
|
20
|
+
exports.EvalScorerCreateToJSONTyped = EvalScorerCreateToJSONTyped;
|
|
21
|
+
const EvalScorerKind_1 = require("./EvalScorerKind");
|
|
22
|
+
const EvalScorerScope_1 = require("./EvalScorerScope");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the EvalScorerCreate interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfEvalScorerCreate(value) {
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if ((!('workspaceId' in value) && !('workspace_id' in value)) || (value['workspaceId'] === undefined && value['workspace_id'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
if (!('scope' in value) || value['scope'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if ((!('scorerKind' in value) && !('scorer_kind' in value)) || (value['scorerKind'] === undefined && value['scorer_kind'] === undefined))
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function EvalScorerCreateFromJSON(json) {
|
|
38
|
+
return EvalScorerCreateFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function EvalScorerCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'sourceCreatedAt': json['source_created_at'] == null ? undefined : json['source_created_at'],
|
|
46
|
+
'sourceCreatedBy': json['source_created_by'] == null ? undefined : json['source_created_by'],
|
|
47
|
+
'sourceId': json['source_id'] == null ? undefined : json['source_id'],
|
|
48
|
+
'sourceLastModifiedAt': json['source_last_modified_at'] == null ? undefined : json['source_last_modified_at'],
|
|
49
|
+
'sourceLastModifiedBy': json['source_last_modified_by'] == null ? undefined : json['source_last_modified_by'],
|
|
50
|
+
'sourceMetadata': json['source_metadata'] === undefined ? undefined : json['source_metadata'] === null ? null : json['source_metadata'],
|
|
51
|
+
'sourceSyncedAt': json['source_synced_at'] == null ? undefined : json['source_synced_at'],
|
|
52
|
+
'sourceType': json['source_type'] == null ? undefined : json['source_type'],
|
|
53
|
+
'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
|
|
54
|
+
'sourceVersion': json['source_version'] == null ? undefined : json['source_version'],
|
|
55
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
56
|
+
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
57
|
+
'name': json['name'],
|
|
58
|
+
'ownerId': json['owner_id'] == null ? undefined : json['owner_id'],
|
|
59
|
+
'projectId': json['project_id'] == null ? undefined : json['project_id'],
|
|
60
|
+
'repoId': json['repo_id'] == null ? undefined : json['repo_id'],
|
|
61
|
+
'workspaceId': json['workspace_id'],
|
|
62
|
+
'outputs': json['outputs'] === undefined ? undefined : json['outputs'] === null ? null : json['outputs'],
|
|
63
|
+
'scope': (0, EvalScorerScope_1.EvalScorerScopeFromJSON)(json['scope']),
|
|
64
|
+
'scorerKind': (0, EvalScorerKind_1.EvalScorerKindFromJSON)(json['scorer_kind']),
|
|
65
|
+
'spec': json['spec'] === undefined ? undefined : json['spec'] === null ? null : json['spec'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function EvalScorerCreateToJSON(json) {
|
|
69
|
+
return EvalScorerCreateToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
function EvalScorerCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'source_created_at': value['sourceCreatedAt'],
|
|
77
|
+
'source_created_by': value['sourceCreatedBy'],
|
|
78
|
+
'source_id': value['sourceId'],
|
|
79
|
+
'source_last_modified_at': value['sourceLastModifiedAt'],
|
|
80
|
+
'source_last_modified_by': value['sourceLastModifiedBy'],
|
|
81
|
+
'source_metadata': value['sourceMetadata'],
|
|
82
|
+
'source_synced_at': value['sourceSyncedAt'],
|
|
83
|
+
'source_type': value['sourceType'],
|
|
84
|
+
'source_uri': value['sourceUri'],
|
|
85
|
+
'source_version': value['sourceVersion'],
|
|
86
|
+
'description': value['description'],
|
|
87
|
+
'display_name': value['displayName'],
|
|
88
|
+
'name': value['name'],
|
|
89
|
+
'owner_id': value['ownerId'],
|
|
90
|
+
'project_id': value['projectId'],
|
|
91
|
+
'repo_id': value['repoId'],
|
|
92
|
+
'workspace_id': value['workspaceId'],
|
|
93
|
+
'outputs': value['outputs'],
|
|
94
|
+
'scope': (0, EvalScorerScope_1.EvalScorerScopeToJSON)(value['scope']),
|
|
95
|
+
'scorer_kind': (0, EvalScorerKind_1.EvalScorerKindToJSON)(value['scorerKind']),
|
|
96
|
+
'spec': value['spec'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Evaluation catalog
|
|
3
|
+
* The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* What implements a scorer. Promoted to the indexed `scorer_kind` `CHECK`
|
|
14
|
+
* column; doc-comment-free per variant.
|
|
15
|
+
*
|
|
16
|
+
* `llm_judge` and `human` describe evaluations the platform can eventually
|
|
17
|
+
* host (a judge is an LLM call; a review is a form); `code` is cataloged here
|
|
18
|
+
* but **executed externally, permanently** — sandboxing arbitrary grader code
|
|
19
|
+
* is a different product.
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
export declare enum EvalScorerKind {
|
|
24
|
+
LlmJudge = "llm_judge",
|
|
25
|
+
Code = "code",
|
|
26
|
+
Human = "human"
|
|
27
|
+
}
|
|
28
|
+
export declare function instanceOfEvalScorerKind(value: any): boolean;
|
|
29
|
+
export declare function EvalScorerKindFromJSON(json: any): EvalScorerKind;
|
|
30
|
+
export declare function EvalScorerKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): EvalScorerKind;
|
|
31
|
+
export declare function EvalScorerKindToJSON(value?: EvalScorerKind | null): any;
|
|
32
|
+
export declare function EvalScorerKindToJSONTyped(value: any, ignoreDiscriminator: boolean): EvalScorerKind;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Evaluation catalog
|
|
6
|
+
* The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EvalScorerKind = void 0;
|
|
17
|
+
exports.instanceOfEvalScorerKind = instanceOfEvalScorerKind;
|
|
18
|
+
exports.EvalScorerKindFromJSON = EvalScorerKindFromJSON;
|
|
19
|
+
exports.EvalScorerKindFromJSONTyped = EvalScorerKindFromJSONTyped;
|
|
20
|
+
exports.EvalScorerKindToJSON = EvalScorerKindToJSON;
|
|
21
|
+
exports.EvalScorerKindToJSONTyped = EvalScorerKindToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* What implements a scorer. Promoted to the indexed `scorer_kind` `CHECK`
|
|
24
|
+
* column; doc-comment-free per variant.
|
|
25
|
+
*
|
|
26
|
+
* `llm_judge` and `human` describe evaluations the platform can eventually
|
|
27
|
+
* host (a judge is an LLM call; a review is a form); `code` is cataloged here
|
|
28
|
+
* but **executed externally, permanently** — sandboxing arbitrary grader code
|
|
29
|
+
* is a different product.
|
|
30
|
+
* @export
|
|
31
|
+
* @enum {string}
|
|
32
|
+
*/
|
|
33
|
+
var EvalScorerKind;
|
|
34
|
+
(function (EvalScorerKind) {
|
|
35
|
+
EvalScorerKind["LlmJudge"] = "llm_judge";
|
|
36
|
+
EvalScorerKind["Code"] = "code";
|
|
37
|
+
EvalScorerKind["Human"] = "human";
|
|
38
|
+
})(EvalScorerKind || (exports.EvalScorerKind = EvalScorerKind = {}));
|
|
39
|
+
function instanceOfEvalScorerKind(value) {
|
|
40
|
+
for (const key in EvalScorerKind) {
|
|
41
|
+
if (Object.prototype.hasOwnProperty.call(EvalScorerKind, key)) {
|
|
42
|
+
if (EvalScorerKind[key] === value) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
function EvalScorerKindFromJSON(json) {
|
|
50
|
+
return EvalScorerKindFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function EvalScorerKindFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
function EvalScorerKindToJSON(value) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
function EvalScorerKindToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Evaluation catalog
|
|
3
|
+
* The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { EvalScorerKind } from './EvalScorerKind';
|
|
13
|
+
import type { EvalScorerScope } from './EvalScorerScope';
|
|
14
|
+
/**
|
|
15
|
+
* The `scorer` artifact kind: a named, versioned evaluation definition — an
|
|
16
|
+
* LLM judge rubric, a cataloged code grader, or a human review form.
|
|
17
|
+
*
|
|
18
|
+
* Versioned by the artifact line: editing the rubric is a new version of the
|
|
19
|
+
* same scorer, and every `score` pins the version that judged it, so a rubric
|
|
20
|
+
* edit never rewrites what old verdicts meant.
|
|
21
|
+
* @export
|
|
22
|
+
* @interface EvalScorerMeta
|
|
23
|
+
*/
|
|
24
|
+
export interface EvalScorerMeta {
|
|
25
|
+
/**
|
|
26
|
+
* The score keys this scorer emits and their ranges/types, e.g.
|
|
27
|
+
* `{"accuracy": {"type": "numeric", "min": 0, "max": 1}}` — schema
|
|
28
|
+
* governance for consumers, so a console can render columns without
|
|
29
|
+
* guessing.
|
|
30
|
+
* @type {{ [key: string]: any; }}
|
|
31
|
+
* @memberof EvalScorerMeta
|
|
32
|
+
*/
|
|
33
|
+
outputs?: {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
} | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {EvalScorerScope}
|
|
39
|
+
* @memberof EvalScorerMeta
|
|
40
|
+
*/
|
|
41
|
+
scope: EvalScorerScope;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {EvalScorerKind}
|
|
45
|
+
* @memberof EvalScorerMeta
|
|
46
|
+
*/
|
|
47
|
+
scorerKind: EvalScorerKind;
|
|
48
|
+
/**
|
|
49
|
+
* The definition, by kind: an `llm_judge` carries its rubric prompt, judge
|
|
50
|
+
* model, and variable mapping; a `code` scorer carries a repo/entrypoint
|
|
51
|
+
* pointer (the code itself is never executed here); a `human` scorer
|
|
52
|
+
* carries its review form schema. Round-tripped verbatim.
|
|
53
|
+
* @type {{ [key: string]: any; }}
|
|
54
|
+
* @memberof EvalScorerMeta
|
|
55
|
+
*/
|
|
56
|
+
spec?: {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
} | null;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the EvalScorerMeta interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfEvalScorerMeta(value: object): value is EvalScorerMeta;
|
|
64
|
+
export declare function EvalScorerMetaFromJSON(json: any): EvalScorerMeta;
|
|
65
|
+
export declare function EvalScorerMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): EvalScorerMeta;
|
|
66
|
+
export declare function EvalScorerMetaToJSON(json: any): EvalScorerMeta;
|
|
67
|
+
export declare function EvalScorerMetaToJSONTyped(value?: EvalScorerMeta | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Evaluation catalog
|
|
6
|
+
* The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfEvalScorerMeta = instanceOfEvalScorerMeta;
|
|
17
|
+
exports.EvalScorerMetaFromJSON = EvalScorerMetaFromJSON;
|
|
18
|
+
exports.EvalScorerMetaFromJSONTyped = EvalScorerMetaFromJSONTyped;
|
|
19
|
+
exports.EvalScorerMetaToJSON = EvalScorerMetaToJSON;
|
|
20
|
+
exports.EvalScorerMetaToJSONTyped = EvalScorerMetaToJSONTyped;
|
|
21
|
+
const EvalScorerKind_1 = require("./EvalScorerKind");
|
|
22
|
+
const EvalScorerScope_1 = require("./EvalScorerScope");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the EvalScorerMeta interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfEvalScorerMeta(value) {
|
|
27
|
+
if (!('scope' in value) || value['scope'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if ((!('scorerKind' in value) && !('scorer_kind' in value)) || (value['scorerKind'] === undefined && value['scorer_kind'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function EvalScorerMetaFromJSON(json) {
|
|
34
|
+
return EvalScorerMetaFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function EvalScorerMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'outputs': json['outputs'] === undefined ? undefined : json['outputs'] === null ? null : json['outputs'],
|
|
42
|
+
'scope': (0, EvalScorerScope_1.EvalScorerScopeFromJSON)(json['scope']),
|
|
43
|
+
'scorerKind': (0, EvalScorerKind_1.EvalScorerKindFromJSON)(json['scorer_kind']),
|
|
44
|
+
'spec': json['spec'] === undefined ? undefined : json['spec'] === null ? null : json['spec'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function EvalScorerMetaToJSON(json) {
|
|
48
|
+
return EvalScorerMetaToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function EvalScorerMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'outputs': value['outputs'],
|
|
56
|
+
'scope': (0, EvalScorerScope_1.EvalScorerScopeToJSON)(value['scope']),
|
|
57
|
+
'scorer_kind': (0, EvalScorerKind_1.EvalScorerKindToJSON)(value['scorerKind']),
|
|
58
|
+
'spec': value['spec'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Evaluation catalog
|
|
3
|
+
* The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The editable surface of a scorer.
|
|
14
|
+
*
|
|
15
|
+
* `scorer_kind` and `scope` are absent on purpose: they are the scorer's
|
|
16
|
+
* identity, and changing them on the same line would reinterpret every score
|
|
17
|
+
* citing it (the update hook pins them regardless).
|
|
18
|
+
*
|
|
19
|
+
* **Editing `spec`/`outputs` does not currently mint a version.** The plane's
|
|
20
|
+
* PATCH edits the head in place — `version_ordinal` stays where it was, and
|
|
21
|
+
* only source-reconcile appends versions today — so a rubric edit silently
|
|
22
|
+
* changes what every score pinned to that ordinal actually cited. The pin is
|
|
23
|
+
* therefore honest about *which ordinal* judged, but that ordinal's content is
|
|
24
|
+
* mutable, which is not the guarantee this kind is supposed to give. Until
|
|
25
|
+
* update-mints-version lands, treat a material rubric change as a **new
|
|
26
|
+
* scorer**, not a patch. Tracked as an ADR; the alternative fix is to refuse
|
|
27
|
+
* `spec`/`outputs` edits outright.
|
|
28
|
+
* @export
|
|
29
|
+
* @interface EvalScorerPatch
|
|
30
|
+
*/
|
|
31
|
+
export interface EvalScorerPatch {
|
|
32
|
+
/**
|
|
33
|
+
* Set or clear the description. Explicit `null` clears it, per RFC 7396.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof EvalScorerPatch
|
|
36
|
+
*/
|
|
37
|
+
description?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Human-readable name.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof EvalScorerPatch
|
|
42
|
+
*/
|
|
43
|
+
displayName?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Stable machine-readable name.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof EvalScorerPatch
|
|
48
|
+
*/
|
|
49
|
+
name?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* Replace or clear the declared outputs wholesale. Explicit `null` clears
|
|
52
|
+
* it.
|
|
53
|
+
* @type {{ [key: string]: any; }}
|
|
54
|
+
* @memberof EvalScorerPatch
|
|
55
|
+
*/
|
|
56
|
+
outputs?: {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
} | null;
|
|
59
|
+
/**
|
|
60
|
+
* Replace or clear the definition wholesale. Explicit `null` clears it.
|
|
61
|
+
* @type {{ [key: string]: any; }}
|
|
62
|
+
* @memberof EvalScorerPatch
|
|
63
|
+
*/
|
|
64
|
+
spec?: {
|
|
65
|
+
[key: string]: any;
|
|
66
|
+
} | null;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the EvalScorerPatch interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfEvalScorerPatch(value: object): value is EvalScorerPatch;
|
|
72
|
+
export declare function EvalScorerPatchFromJSON(json: any): EvalScorerPatch;
|
|
73
|
+
export declare function EvalScorerPatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): EvalScorerPatch;
|
|
74
|
+
export declare function EvalScorerPatchToJSON(json: any): EvalScorerPatch;
|
|
75
|
+
export declare function EvalScorerPatchToJSONTyped(value?: EvalScorerPatch | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Evaluation catalog
|
|
6
|
+
* The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfEvalScorerPatch = instanceOfEvalScorerPatch;
|
|
17
|
+
exports.EvalScorerPatchFromJSON = EvalScorerPatchFromJSON;
|
|
18
|
+
exports.EvalScorerPatchFromJSONTyped = EvalScorerPatchFromJSONTyped;
|
|
19
|
+
exports.EvalScorerPatchToJSON = EvalScorerPatchToJSON;
|
|
20
|
+
exports.EvalScorerPatchToJSONTyped = EvalScorerPatchToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the EvalScorerPatch interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfEvalScorerPatch(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function EvalScorerPatchFromJSON(json) {
|
|
28
|
+
return EvalScorerPatchFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function EvalScorerPatchFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
|
|
36
|
+
'displayName': json['display_name'] === undefined ? undefined : json['display_name'] === null ? null : json['display_name'],
|
|
37
|
+
'name': json['name'] === undefined ? undefined : json['name'] === null ? null : json['name'],
|
|
38
|
+
'outputs': json['outputs'] === undefined ? undefined : json['outputs'] === null ? null : json['outputs'],
|
|
39
|
+
'spec': json['spec'] === undefined ? undefined : json['spec'] === null ? null : json['spec'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function EvalScorerPatchToJSON(json) {
|
|
43
|
+
return EvalScorerPatchToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function EvalScorerPatchToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'description': value['description'],
|
|
51
|
+
'display_name': value['displayName'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'outputs': value['outputs'],
|
|
54
|
+
'spec': value['spec'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Evaluation catalog
|
|
3
|
+
* The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* What a scorer needs to read. Promoted to the `scope` `CHECK` column;
|
|
14
|
+
* doc-comment-free per variant.
|
|
15
|
+
*
|
|
16
|
+
* An exact-match grader reads only the result's input/output (`result`); the
|
|
17
|
+
* claw critic reads the whole trajectory (`trace`); a conversation review
|
|
18
|
+
* reads the transcript (`session`). Declared so a runner (and, later, the
|
|
19
|
+
* hosted judge) knows what evidence to fetch before scoring.
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
export declare enum EvalScorerScope {
|
|
24
|
+
Result = "result",
|
|
25
|
+
Session = "session",
|
|
26
|
+
Trace = "trace"
|
|
27
|
+
}
|
|
28
|
+
export declare function instanceOfEvalScorerScope(value: any): boolean;
|
|
29
|
+
export declare function EvalScorerScopeFromJSON(json: any): EvalScorerScope;
|
|
30
|
+
export declare function EvalScorerScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EvalScorerScope;
|
|
31
|
+
export declare function EvalScorerScopeToJSON(value?: EvalScorerScope | null): any;
|
|
32
|
+
export declare function EvalScorerScopeToJSONTyped(value: any, ignoreDiscriminator: boolean): EvalScorerScope;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Evaluation catalog
|
|
6
|
+
* The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EvalScorerScope = void 0;
|
|
17
|
+
exports.instanceOfEvalScorerScope = instanceOfEvalScorerScope;
|
|
18
|
+
exports.EvalScorerScopeFromJSON = EvalScorerScopeFromJSON;
|
|
19
|
+
exports.EvalScorerScopeFromJSONTyped = EvalScorerScopeFromJSONTyped;
|
|
20
|
+
exports.EvalScorerScopeToJSON = EvalScorerScopeToJSON;
|
|
21
|
+
exports.EvalScorerScopeToJSONTyped = EvalScorerScopeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* What a scorer needs to read. Promoted to the `scope` `CHECK` column;
|
|
24
|
+
* doc-comment-free per variant.
|
|
25
|
+
*
|
|
26
|
+
* An exact-match grader reads only the result's input/output (`result`); the
|
|
27
|
+
* claw critic reads the whole trajectory (`trace`); a conversation review
|
|
28
|
+
* reads the transcript (`session`). Declared so a runner (and, later, the
|
|
29
|
+
* hosted judge) knows what evidence to fetch before scoring.
|
|
30
|
+
* @export
|
|
31
|
+
* @enum {string}
|
|
32
|
+
*/
|
|
33
|
+
var EvalScorerScope;
|
|
34
|
+
(function (EvalScorerScope) {
|
|
35
|
+
EvalScorerScope["Result"] = "result";
|
|
36
|
+
EvalScorerScope["Session"] = "session";
|
|
37
|
+
EvalScorerScope["Trace"] = "trace";
|
|
38
|
+
})(EvalScorerScope || (exports.EvalScorerScope = EvalScorerScope = {}));
|
|
39
|
+
function instanceOfEvalScorerScope(value) {
|
|
40
|
+
for (const key in EvalScorerScope) {
|
|
41
|
+
if (Object.prototype.hasOwnProperty.call(EvalScorerScope, key)) {
|
|
42
|
+
if (EvalScorerScope[key] === value) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
function EvalScorerScopeFromJSON(json) {
|
|
50
|
+
return EvalScorerScopeFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function EvalScorerScopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
function EvalScorerScopeToJSON(value) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
function EvalScorerScopeToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Evaluation catalog
|
|
3
|
+
* The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Which kind an experiment's subject is. Promoted to the `subject_kind`
|
|
14
|
+
* `CHECK` column; doc-comment-free per variant.
|
|
15
|
+
*
|
|
16
|
+
* The wire values are **exactly the kind names**, for the same reason the agent
|
|
17
|
+
* extension's session pair works this way: `create.pre` passes the
|
|
18
|
+
* discriminator straight into a kind-scoped registry `get`, so a mismatched
|
|
19
|
+
* `(subject_kind, subject_id)` pair 404s on its own. `skill` is a member from
|
|
20
|
+
* day one — evaluating a skill is as first-class as evaluating an agent.
|
|
21
|
+
* @export
|
|
22
|
+
* @enum {string}
|
|
23
|
+
*/
|
|
24
|
+
export declare enum EvalSubjectKind {
|
|
25
|
+
Agent = "agent",
|
|
26
|
+
Harness = "harness",
|
|
27
|
+
Skill = "skill"
|
|
28
|
+
}
|
|
29
|
+
export declare function instanceOfEvalSubjectKind(value: any): boolean;
|
|
30
|
+
export declare function EvalSubjectKindFromJSON(json: any): EvalSubjectKind;
|
|
31
|
+
export declare function EvalSubjectKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): EvalSubjectKind;
|
|
32
|
+
export declare function EvalSubjectKindToJSON(value?: EvalSubjectKind | null): any;
|
|
33
|
+
export declare function EvalSubjectKindToJSONTyped(value: any, ignoreDiscriminator: boolean): EvalSubjectKind;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Evaluation catalog
|
|
6
|
+
* The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EvalSubjectKind = void 0;
|
|
17
|
+
exports.instanceOfEvalSubjectKind = instanceOfEvalSubjectKind;
|
|
18
|
+
exports.EvalSubjectKindFromJSON = EvalSubjectKindFromJSON;
|
|
19
|
+
exports.EvalSubjectKindFromJSONTyped = EvalSubjectKindFromJSONTyped;
|
|
20
|
+
exports.EvalSubjectKindToJSON = EvalSubjectKindToJSON;
|
|
21
|
+
exports.EvalSubjectKindToJSONTyped = EvalSubjectKindToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Which kind an experiment's subject is. Promoted to the `subject_kind`
|
|
24
|
+
* `CHECK` column; doc-comment-free per variant.
|
|
25
|
+
*
|
|
26
|
+
* The wire values are **exactly the kind names**, for the same reason the agent
|
|
27
|
+
* extension's session pair works this way: `create.pre` passes the
|
|
28
|
+
* discriminator straight into a kind-scoped registry `get`, so a mismatched
|
|
29
|
+
* `(subject_kind, subject_id)` pair 404s on its own. `skill` is a member from
|
|
30
|
+
* day one — evaluating a skill is as first-class as evaluating an agent.
|
|
31
|
+
* @export
|
|
32
|
+
* @enum {string}
|
|
33
|
+
*/
|
|
34
|
+
var EvalSubjectKind;
|
|
35
|
+
(function (EvalSubjectKind) {
|
|
36
|
+
EvalSubjectKind["Agent"] = "agent";
|
|
37
|
+
EvalSubjectKind["Harness"] = "harness";
|
|
38
|
+
EvalSubjectKind["Skill"] = "skill";
|
|
39
|
+
})(EvalSubjectKind || (exports.EvalSubjectKind = EvalSubjectKind = {}));
|
|
40
|
+
function instanceOfEvalSubjectKind(value) {
|
|
41
|
+
for (const key in EvalSubjectKind) {
|
|
42
|
+
if (Object.prototype.hasOwnProperty.call(EvalSubjectKind, key)) {
|
|
43
|
+
if (EvalSubjectKind[key] === value) {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
function EvalSubjectKindFromJSON(json) {
|
|
51
|
+
return EvalSubjectKindFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function EvalSubjectKindFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
function EvalSubjectKindToJSON(value) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
function EvalSubjectKindToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|