@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,69 @@
|
|
|
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 one problem body with an extra member: a content-dedup `409` names the
|
|
14
|
+
* artifact that already holds the content, so a client recovers it without a
|
|
15
|
+
* follow-up search.
|
|
16
|
+
*
|
|
17
|
+
* A separate type rather than an `Option` on [`ProblemDetails`] because a single
|
|
18
|
+
* shared schema meant all 816 error responses in the published specs advertised
|
|
19
|
+
* `existing_artifact_id`, and only this one can return it.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ArtifactConflictProblem
|
|
22
|
+
*/
|
|
23
|
+
export interface ArtifactConflictProblem {
|
|
24
|
+
/**
|
|
25
|
+
* Value of the `code` field.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ArtifactConflictProblem
|
|
28
|
+
*/
|
|
29
|
+
code: string;
|
|
30
|
+
/**
|
|
31
|
+
* Value of the `detail` field.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ArtifactConflictProblem
|
|
34
|
+
*/
|
|
35
|
+
detail: string;
|
|
36
|
+
/**
|
|
37
|
+
* Current lifecycle state.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ArtifactConflictProblem
|
|
40
|
+
*/
|
|
41
|
+
status: number;
|
|
42
|
+
/**
|
|
43
|
+
* Value of the `title` field.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ArtifactConflictProblem
|
|
46
|
+
*/
|
|
47
|
+
title: string;
|
|
48
|
+
/**
|
|
49
|
+
* Stable identifier of the related trace resource.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ArtifactConflictProblem
|
|
52
|
+
*/
|
|
53
|
+
traceId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Present only when `code == "duplicate_content"`; absent when the existing
|
|
56
|
+
* artifact could not be resolved.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ArtifactConflictProblem
|
|
59
|
+
*/
|
|
60
|
+
existingArtifactId?: string | null;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ArtifactConflictProblem interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfArtifactConflictProblem(value: object): value is ArtifactConflictProblem;
|
|
66
|
+
export declare function ArtifactConflictProblemFromJSON(json: any): ArtifactConflictProblem;
|
|
67
|
+
export declare function ArtifactConflictProblemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactConflictProblem;
|
|
68
|
+
export declare function ArtifactConflictProblemToJSON(json: any): ArtifactConflictProblem;
|
|
69
|
+
export declare function ArtifactConflictProblemToJSONTyped(value?: ArtifactConflictProblem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfArtifactConflictProblem = instanceOfArtifactConflictProblem;
|
|
17
|
+
exports.ArtifactConflictProblemFromJSON = ArtifactConflictProblemFromJSON;
|
|
18
|
+
exports.ArtifactConflictProblemFromJSONTyped = ArtifactConflictProblemFromJSONTyped;
|
|
19
|
+
exports.ArtifactConflictProblemToJSON = ArtifactConflictProblemToJSON;
|
|
20
|
+
exports.ArtifactConflictProblemToJSONTyped = ArtifactConflictProblemToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ArtifactConflictProblem interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfArtifactConflictProblem(value) {
|
|
25
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('detail' in value) || value['detail'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ArtifactConflictProblemFromJSON(json) {
|
|
36
|
+
return ArtifactConflictProblemFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ArtifactConflictProblemFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'code': json['code'],
|
|
44
|
+
'detail': json['detail'],
|
|
45
|
+
'status': json['status'],
|
|
46
|
+
'title': json['title'],
|
|
47
|
+
'traceId': json['trace_id'] == null ? undefined : json['trace_id'],
|
|
48
|
+
'existingArtifactId': json['existing_artifact_id'] === undefined ? undefined : json['existing_artifact_id'] === null ? null : json['existing_artifact_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function ArtifactConflictProblemToJSON(json) {
|
|
52
|
+
return ArtifactConflictProblemToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function ArtifactConflictProblemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'code': value['code'],
|
|
60
|
+
'detail': value['detail'],
|
|
61
|
+
'status': value['status'],
|
|
62
|
+
'title': value['title'],
|
|
63
|
+
'trace_id': value['traceId'],
|
|
64
|
+
'existing_artifact_id': value['existingArtifactId'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* Per-span cost. Mirrors `otel::CostView`.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CostView
|
|
16
|
+
*/
|
|
17
|
+
export interface CostView {
|
|
18
|
+
/**
|
|
19
|
+
* Input cost in US dollars.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CostView
|
|
22
|
+
*/
|
|
23
|
+
inputCostUsd: number;
|
|
24
|
+
/**
|
|
25
|
+
* Output cost in US dollars.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CostView
|
|
28
|
+
*/
|
|
29
|
+
outputCostUsd: number;
|
|
30
|
+
/**
|
|
31
|
+
* Origin of this data.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CostView
|
|
34
|
+
*/
|
|
35
|
+
source?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Total cost in US dollars.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CostView
|
|
40
|
+
*/
|
|
41
|
+
totalCostUsd: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the CostView interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfCostView(value: object): value is CostView;
|
|
47
|
+
export declare function CostViewFromJSON(json: any): CostView;
|
|
48
|
+
export declare function CostViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): CostView;
|
|
49
|
+
export declare function CostViewToJSON(json: any): CostView;
|
|
50
|
+
export declare function CostViewToJSONTyped(value?: CostView | 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.instanceOfCostView = instanceOfCostView;
|
|
17
|
+
exports.CostViewFromJSON = CostViewFromJSON;
|
|
18
|
+
exports.CostViewFromJSONTyped = CostViewFromJSONTyped;
|
|
19
|
+
exports.CostViewToJSON = CostViewToJSON;
|
|
20
|
+
exports.CostViewToJSONTyped = CostViewToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CostView interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCostView(value) {
|
|
25
|
+
if ((!('inputCostUsd' in value) && !('input_cost_usd' in value)) || (value['inputCostUsd'] === undefined && value['input_cost_usd'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('outputCostUsd' in value) && !('output_cost_usd' in value)) || (value['outputCostUsd'] === undefined && value['output_cost_usd'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
if ((!('totalCostUsd' in value) && !('total_cost_usd' in value)) || (value['totalCostUsd'] === undefined && value['total_cost_usd'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function CostViewFromJSON(json) {
|
|
34
|
+
return CostViewFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function CostViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'inputCostUsd': json['input_cost_usd'],
|
|
42
|
+
'outputCostUsd': json['output_cost_usd'],
|
|
43
|
+
'source': json['source'] === undefined ? undefined : json['source'] === null ? null : json['source'],
|
|
44
|
+
'totalCostUsd': json['total_cost_usd'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function CostViewToJSON(json) {
|
|
48
|
+
return CostViewToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function CostViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'input_cost_usd': value['inputCostUsd'],
|
|
56
|
+
'output_cost_usd': value['outputCostUsd'],
|
|
57
|
+
'source': value['source'],
|
|
58
|
+
'total_cost_usd': value['totalCostUsd'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* Keyset page metadata for a facade list response (cursor, not offset).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CursorPage
|
|
16
|
+
*/
|
|
17
|
+
export interface CursorPage {
|
|
18
|
+
/**
|
|
19
|
+
* Maximum number of items to return.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CursorPage
|
|
22
|
+
*/
|
|
23
|
+
limit: number;
|
|
24
|
+
/**
|
|
25
|
+
* Opaque pagination cursor.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CursorPage
|
|
28
|
+
*/
|
|
29
|
+
nextCursor?: string | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CursorPage interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCursorPage(value: object): value is CursorPage;
|
|
35
|
+
export declare function CursorPageFromJSON(json: any): CursorPage;
|
|
36
|
+
export declare function CursorPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): CursorPage;
|
|
37
|
+
export declare function CursorPageToJSON(json: any): CursorPage;
|
|
38
|
+
export declare function CursorPageToJSONTyped(value?: CursorPage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfCursorPage = instanceOfCursorPage;
|
|
17
|
+
exports.CursorPageFromJSON = CursorPageFromJSON;
|
|
18
|
+
exports.CursorPageFromJSONTyped = CursorPageFromJSONTyped;
|
|
19
|
+
exports.CursorPageToJSON = CursorPageToJSON;
|
|
20
|
+
exports.CursorPageToJSONTyped = CursorPageToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CursorPage interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCursorPage(value) {
|
|
25
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function CursorPageFromJSON(json) {
|
|
30
|
+
return CursorPageFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function CursorPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'limit': json['limit'],
|
|
38
|
+
'nextCursor': json['next_cursor'] === undefined ? undefined : json['next_cursor'] === null ? null : json['next_cursor'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function CursorPageToJSON(json) {
|
|
42
|
+
return CursorPageToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function CursorPageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'limit': value['limit'],
|
|
50
|
+
'next_cursor': value['nextCursor'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
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 shared artifact fields of every create body in this extension.
|
|
14
|
+
*
|
|
15
|
+
* Flattened into each `*Create` so the wire object stays flat (matching
|
|
16
|
+
* `ArtifactCreate`), while the create schemas reference one envelope component
|
|
17
|
+
* instead of repeating seven fields each.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface EvalArtifactEnvelope
|
|
20
|
+
*/
|
|
21
|
+
export interface EvalArtifactEnvelope {
|
|
22
|
+
/**
|
|
23
|
+
* RFC 3339. The upstream's own creation time, never the commit time.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EvalArtifactEnvelope
|
|
26
|
+
*/
|
|
27
|
+
sourceCreatedAt?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The upstream author, git `Name <email>` form (distinct from the registry
|
|
30
|
+
* principal `created_by`). The first author; see `source_last_modified_by`
|
|
31
|
+
* for who changed it last.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EvalArtifactEnvelope
|
|
34
|
+
*/
|
|
35
|
+
sourceCreatedBy?: string;
|
|
36
|
+
/**
|
|
37
|
+
* What the upstream calls this object. The reconciliation key for a re-sync,
|
|
38
|
+
* and the reason to prefer it over matching on `name`.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof EvalArtifactEnvelope
|
|
41
|
+
*/
|
|
42
|
+
sourceId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* RFC 3339.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof EvalArtifactEnvelope
|
|
47
|
+
*/
|
|
48
|
+
sourceLastModifiedAt?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The upstream author of the last change, git `Name <email>` form.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof EvalArtifactEnvelope
|
|
53
|
+
*/
|
|
54
|
+
sourceLastModifiedBy?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {any}
|
|
58
|
+
* @memberof EvalArtifactEnvelope
|
|
59
|
+
*/
|
|
60
|
+
sourceMetadata?: any | null;
|
|
61
|
+
/**
|
|
62
|
+
* RFC 3339. The time of the sync that produced this version.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof EvalArtifactEnvelope
|
|
65
|
+
*/
|
|
66
|
+
sourceSyncedAt?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The content authority: `git`, `atlan`, `local`, or `external` for a
|
|
69
|
+
* customer's own system. Omitted, the registry defaults it.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof EvalArtifactEnvelope
|
|
72
|
+
*/
|
|
73
|
+
sourceType?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Scheme-tagged origin — where the upstream object lives.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof EvalArtifactEnvelope
|
|
78
|
+
*/
|
|
79
|
+
sourceUri?: string;
|
|
80
|
+
/**
|
|
81
|
+
* The upstream revision (a commit hash or tag), distinct from `version_label`.
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof EvalArtifactEnvelope
|
|
84
|
+
*/
|
|
85
|
+
sourceVersion?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Human-readable description.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof EvalArtifactEnvelope
|
|
90
|
+
*/
|
|
91
|
+
description?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Human-readable label. Omitted, the gateway defaults it to `name`.
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof EvalArtifactEnvelope
|
|
96
|
+
*/
|
|
97
|
+
displayName?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* Stable machine handle ([AIP-122](https://google.aip.dev/122)) — short and
|
|
100
|
+
* identifier-shaped, kebab-case by convention. Unique per `(workspace,
|
|
101
|
+
* kind)` among live rows (`artifacts_name_idx`), but not identity: `id`
|
|
102
|
+
* is the only stable handle.
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof EvalArtifactEnvelope
|
|
105
|
+
*/
|
|
106
|
+
name: string;
|
|
107
|
+
/**
|
|
108
|
+
* Optional canonical owner (`users.user_id`). Omitted, the gateway
|
|
109
|
+
* attributes the caller.
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof EvalArtifactEnvelope
|
|
112
|
+
*/
|
|
113
|
+
ownerId?: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* Optional `project_`-prefixed handle to group under. Must belong to
|
|
116
|
+
* `workspace_id` (else 422).
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof EvalArtifactEnvelope
|
|
119
|
+
*/
|
|
120
|
+
projectId?: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* Optional `repo_`-prefixed source repository. No default — a repo is a
|
|
123
|
+
* factual claim about provenance, so it is never guessed.
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof EvalArtifactEnvelope
|
|
126
|
+
*/
|
|
127
|
+
repoId?: string | null;
|
|
128
|
+
/**
|
|
129
|
+
* `workspace_`-prefixed handle to create in. **Required** — there is
|
|
130
|
+
* deliberately no default, because guessing a tenant's namespace is
|
|
131
|
+
* invisible until someone else reads the data.
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof EvalArtifactEnvelope
|
|
134
|
+
*/
|
|
135
|
+
workspaceId: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Check if a given object implements the EvalArtifactEnvelope interface.
|
|
139
|
+
*/
|
|
140
|
+
export declare function instanceOfEvalArtifactEnvelope(value: object): value is EvalArtifactEnvelope;
|
|
141
|
+
export declare function EvalArtifactEnvelopeFromJSON(json: any): EvalArtifactEnvelope;
|
|
142
|
+
export declare function EvalArtifactEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EvalArtifactEnvelope;
|
|
143
|
+
export declare function EvalArtifactEnvelopeToJSON(json: any): EvalArtifactEnvelope;
|
|
144
|
+
export declare function EvalArtifactEnvelopeToJSONTyped(value?: EvalArtifactEnvelope | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
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.instanceOfEvalArtifactEnvelope = instanceOfEvalArtifactEnvelope;
|
|
17
|
+
exports.EvalArtifactEnvelopeFromJSON = EvalArtifactEnvelopeFromJSON;
|
|
18
|
+
exports.EvalArtifactEnvelopeFromJSONTyped = EvalArtifactEnvelopeFromJSONTyped;
|
|
19
|
+
exports.EvalArtifactEnvelopeToJSON = EvalArtifactEnvelopeToJSON;
|
|
20
|
+
exports.EvalArtifactEnvelopeToJSONTyped = EvalArtifactEnvelopeToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the EvalArtifactEnvelope interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfEvalArtifactEnvelope(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('workspaceId' in value) && !('workspace_id' in value)) || (value['workspaceId'] === undefined && value['workspace_id'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function EvalArtifactEnvelopeFromJSON(json) {
|
|
32
|
+
return EvalArtifactEnvelopeFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function EvalArtifactEnvelopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'sourceCreatedAt': json['source_created_at'] == null ? undefined : json['source_created_at'],
|
|
40
|
+
'sourceCreatedBy': json['source_created_by'] == null ? undefined : json['source_created_by'],
|
|
41
|
+
'sourceId': json['source_id'] == null ? undefined : json['source_id'],
|
|
42
|
+
'sourceLastModifiedAt': json['source_last_modified_at'] == null ? undefined : json['source_last_modified_at'],
|
|
43
|
+
'sourceLastModifiedBy': json['source_last_modified_by'] == null ? undefined : json['source_last_modified_by'],
|
|
44
|
+
'sourceMetadata': json['source_metadata'] === undefined ? undefined : json['source_metadata'] === null ? null : json['source_metadata'],
|
|
45
|
+
'sourceSyncedAt': json['source_synced_at'] == null ? undefined : json['source_synced_at'],
|
|
46
|
+
'sourceType': json['source_type'] == null ? undefined : json['source_type'],
|
|
47
|
+
'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
|
|
48
|
+
'sourceVersion': json['source_version'] == null ? undefined : json['source_version'],
|
|
49
|
+
'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
|
|
50
|
+
'displayName': json['display_name'] === undefined ? undefined : json['display_name'] === null ? null : json['display_name'],
|
|
51
|
+
'name': json['name'],
|
|
52
|
+
'ownerId': json['owner_id'] === undefined ? undefined : json['owner_id'] === null ? null : json['owner_id'],
|
|
53
|
+
'projectId': json['project_id'] === undefined ? undefined : json['project_id'] === null ? null : json['project_id'],
|
|
54
|
+
'repoId': json['repo_id'] === undefined ? undefined : json['repo_id'] === null ? null : json['repo_id'],
|
|
55
|
+
'workspaceId': json['workspace_id'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function EvalArtifactEnvelopeToJSON(json) {
|
|
59
|
+
return EvalArtifactEnvelopeToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function EvalArtifactEnvelopeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'source_created_at': value['sourceCreatedAt'],
|
|
67
|
+
'source_created_by': value['sourceCreatedBy'],
|
|
68
|
+
'source_id': value['sourceId'],
|
|
69
|
+
'source_last_modified_at': value['sourceLastModifiedAt'],
|
|
70
|
+
'source_last_modified_by': value['sourceLastModifiedBy'],
|
|
71
|
+
'source_metadata': value['sourceMetadata'],
|
|
72
|
+
'source_synced_at': value['sourceSyncedAt'],
|
|
73
|
+
'source_type': value['sourceType'],
|
|
74
|
+
'source_uri': value['sourceUri'],
|
|
75
|
+
'source_version': value['sourceVersion'],
|
|
76
|
+
'description': value['description'],
|
|
77
|
+
'display_name': value['displayName'],
|
|
78
|
+
'name': value['name'],
|
|
79
|
+
'owner_id': value['ownerId'],
|
|
80
|
+
'project_id': value['projectId'],
|
|
81
|
+
'repo_id': value['repoId'],
|
|
82
|
+
'workspace_id': value['workspaceId'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
* Discovery over one kind. Kind-independent grammar, so one definition serves
|
|
14
|
+
* every `POST /<plural>/search` route.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface EvalArtifactSearchRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface EvalArtifactSearchRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Opaque resume token from a prior page's `page.next_cursor`. Mutually
|
|
21
|
+
* exclusive with a non-zero `offset`.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof EvalArtifactSearchRequest
|
|
24
|
+
*/
|
|
25
|
+
cursor?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Maximum number of items to return.
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof EvalArtifactSearchRequest
|
|
30
|
+
*/
|
|
31
|
+
limit?: number | null;
|
|
32
|
+
/**
|
|
33
|
+
* Number of items to skip before this page.
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof EvalArtifactSearchRequest
|
|
36
|
+
*/
|
|
37
|
+
offset?: number | null;
|
|
38
|
+
/**
|
|
39
|
+
* Free-text term over the envelope's name + description.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof EvalArtifactSearchRequest
|
|
42
|
+
*/
|
|
43
|
+
query?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Sort keys; a leading `-` is descending. Overrides relevance ordering.
|
|
46
|
+
* @type {Array<string>}
|
|
47
|
+
* @memberof EvalArtifactSearchRequest
|
|
48
|
+
*/
|
|
49
|
+
sorts?: Array<string>;
|
|
50
|
+
/**
|
|
51
|
+
* `fts` (default) | `vector` | `hybrid`. The semantic strategies embed
|
|
52
|
+
* `query` server-side — no embedding model is needed here.
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof EvalArtifactSearchRequest
|
|
55
|
+
*/
|
|
56
|
+
strategy?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Restrict to one workspace; omitted searches the whole account.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof EvalArtifactSearchRequest
|
|
61
|
+
*/
|
|
62
|
+
workspaceId?: string | null;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the EvalArtifactSearchRequest interface.
|
|
66
|
+
*/
|
|
67
|
+
export declare function instanceOfEvalArtifactSearchRequest(value: object): value is EvalArtifactSearchRequest;
|
|
68
|
+
export declare function EvalArtifactSearchRequestFromJSON(json: any): EvalArtifactSearchRequest;
|
|
69
|
+
export declare function EvalArtifactSearchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EvalArtifactSearchRequest;
|
|
70
|
+
export declare function EvalArtifactSearchRequestToJSON(json: any): EvalArtifactSearchRequest;
|
|
71
|
+
export declare function EvalArtifactSearchRequestToJSONTyped(value?: EvalArtifactSearchRequest | null, ignoreDiscriminator?: boolean): any;
|