scorecard-ai 1.0.0-alpha.2 → 1.0.0-alpha.4
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/CHANGELOG.md +28 -0
- package/README.md +10 -12
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +9 -7
- package/client.js.map +1 -1
- package/client.mjs +9 -7
- package/client.mjs.map +1 -1
- package/internal/headers.d.mts +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +2 -0
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +2 -0
- package/internal/headers.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +4 -3
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +4 -3
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +32 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/lib/runAndEvaluate.d.mts +19 -0
- package/lib/runAndEvaluate.d.mts.map +1 -0
- package/lib/runAndEvaluate.d.ts +19 -0
- package/lib/runAndEvaluate.d.ts.map +1 -0
- package/lib/runAndEvaluate.js +40 -0
- package/lib/runAndEvaluate.js.map +1 -0
- package/lib/runAndEvaluate.mjs +36 -0
- package/lib/runAndEvaluate.mjs.map +1 -0
- package/package.json +12 -2
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/projects.d.mts +5 -5
- package/resources/projects.d.ts +5 -5
- package/resources/projects.js +2 -2
- package/resources/projects.mjs +2 -2
- package/resources/records.d.mts +63 -0
- package/resources/records.d.mts.map +1 -0
- package/resources/records.d.ts +63 -0
- package/resources/records.d.ts.map +1 -0
- package/resources/{execution-records.js → records.js} +6 -6
- package/resources/records.js.map +1 -0
- package/resources/{execution-records.mjs → records.mjs} +4 -4
- package/resources/records.mjs.map +1 -0
- package/resources/runs.d.mts +13 -13
- package/resources/runs.d.ts +13 -13
- package/resources/runs.js +2 -2
- package/resources/runs.mjs +2 -2
- package/resources/shared.d.mts +1 -1
- package/resources/shared.d.ts +1 -1
- package/resources/system-configs.d.mts +11 -11
- package/resources/system-configs.d.ts +11 -11
- package/resources/systems.d.mts +20 -20
- package/resources/systems.d.ts +20 -20
- package/resources/testcases.d.mts +23 -23
- package/resources/testcases.d.ts +23 -23
- package/resources/testcases.js +5 -5
- package/resources/testcases.mjs +5 -5
- package/resources/testsets.d.mts +43 -42
- package/resources/testsets.d.mts.map +1 -1
- package/resources/testsets.d.ts +43 -42
- package/resources/testsets.d.ts.map +1 -1
- package/resources/testsets.js +5 -5
- package/resources/testsets.mjs +5 -5
- package/src/client.ts +11 -15
- package/src/internal/headers.ts +3 -2
- package/src/internal/utils/base64.ts +5 -4
- package/src/internal/utils/bytes.ts +32 -0
- package/src/lib/runAndEvaluate.ts +54 -0
- package/src/resources/index.ts +1 -5
- package/src/resources/projects.ts +5 -5
- package/src/resources/records.ts +79 -0
- package/src/resources/runs.ts +13 -13
- package/src/resources/shared.ts +1 -1
- package/src/resources/system-configs.ts +11 -11
- package/src/resources/systems.ts +20 -20
- package/src/resources/testcases.ts +23 -23
- package/src/resources/testsets.ts +43 -42
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/execution-records.d.mts +0 -62
- package/resources/execution-records.d.mts.map +0 -1
- package/resources/execution-records.d.ts +0 -62
- package/resources/execution-records.d.ts.map +0 -1
- package/resources/execution-records.js.map +0 -1
- package/resources/execution-records.mjs.map +0 -1
- package/src/resources/execution-records.ts +0 -85
|
@@ -8,7 +8,7 @@ import { path } from '../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Testsets extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* Create a new
|
|
11
|
+
* Create a new Testset for a Project. The Testset will be created in the Project
|
|
12
12
|
* specified in the path.
|
|
13
13
|
*/
|
|
14
14
|
create(projectID: string, body: TestsetCreateParams, options?: RequestOptions): APIPromise<Testset> {
|
|
@@ -16,7 +16,7 @@ export class Testsets extends APIResource {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* Update a
|
|
19
|
+
* Update a Testset. Only the fields provided in the request body will be updated.
|
|
20
20
|
* If a field is provided, the new content will replace the existing content. If a
|
|
21
21
|
* field is not provided, the existing content will remain unchanged.
|
|
22
22
|
*
|
|
@@ -38,7 +38,7 @@ export class Testsets extends APIResource {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
* Retrieve a paginated list of
|
|
41
|
+
* Retrieve a paginated list of Testsets belonging to a Project.
|
|
42
42
|
*/
|
|
43
43
|
list(
|
|
44
44
|
projectID: string,
|
|
@@ -52,14 +52,14 @@ export class Testsets extends APIResource {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* Delete
|
|
55
|
+
* Delete Testset
|
|
56
56
|
*/
|
|
57
57
|
delete(testsetID: string, options?: RequestOptions): APIPromise<TestsetDeleteResponse> {
|
|
58
58
|
return this._client.delete(path`/testsets/${testsetID}`, options);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* Get
|
|
62
|
+
* Get Testset by ID
|
|
63
63
|
*/
|
|
64
64
|
get(testsetID: string, options?: RequestOptions): APIPromise<Testset> {
|
|
65
65
|
return this._client.get(path`/testsets/${testsetID}`, options);
|
|
@@ -69,76 +69,77 @@ export class Testsets extends APIResource {
|
|
|
69
69
|
export type TestsetsPaginatedResponse = PaginatedResponse<Testset>;
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
* A collection of
|
|
73
|
-
* structure of its
|
|
74
|
-
*
|
|
75
|
-
*
|
|
72
|
+
* A collection of Testcases that share the same schema. Each Testset defines the
|
|
73
|
+
* structure of its Testcases through a JSON schema. The `fieldMapping` object maps
|
|
74
|
+
* top-level keys of the Testcase schema to their roles (input/label). Fields not
|
|
75
|
+
* mentioned in the `fieldMapping` during creation or update are treated as
|
|
76
76
|
* metadata.
|
|
77
77
|
*
|
|
78
78
|
* ## JSON Schema validation constraints supported:
|
|
79
79
|
*
|
|
80
80
|
* - **Required fields** - Fields listed in the schema's `required` array must be
|
|
81
|
-
* present in
|
|
81
|
+
* present in Testcases.
|
|
82
82
|
* - **Type validation** - Values must match the specified type (string, number,
|
|
83
|
-
* boolean, null, integer, object, array)
|
|
83
|
+
* boolean, null, integer, object, array).
|
|
84
84
|
* - **Enum validation** - Values must be one of the options specified in the
|
|
85
|
-
* `enum` array
|
|
85
|
+
* `enum` array.
|
|
86
86
|
* - **Object property validation** - Properties of objects must conform to their
|
|
87
|
-
* defined schemas
|
|
88
|
-
* - **Array item validation** - Items in arrays must conform to the `items`
|
|
87
|
+
* defined schemas.
|
|
88
|
+
* - **Array item validation** - Items in arrays must conform to the `items`
|
|
89
|
+
* schema.
|
|
89
90
|
* - **Logical composition** - Values must conform to at least one schema in the
|
|
90
|
-
* `anyOf` array
|
|
91
|
+
* `anyOf` array.
|
|
91
92
|
*
|
|
92
93
|
* Testcases that fail validation will still be stored, but will include
|
|
93
|
-
* `validationErrors` detailing the issues. Extra fields in the
|
|
94
|
+
* `validationErrors` detailing the issues. Extra fields in the Testcase data that
|
|
94
95
|
* are not in the schema will be stored but are ignored during validation.
|
|
95
96
|
*/
|
|
96
97
|
export interface Testset {
|
|
97
98
|
/**
|
|
98
|
-
* The ID of the
|
|
99
|
+
* The ID of the Testset.
|
|
99
100
|
*/
|
|
100
101
|
id: string;
|
|
101
102
|
|
|
102
103
|
/**
|
|
103
|
-
* The description of the
|
|
104
|
+
* The description of the Testset.
|
|
104
105
|
*/
|
|
105
106
|
description: string;
|
|
106
107
|
|
|
107
108
|
/**
|
|
108
|
-
* Maps top-level keys of the
|
|
109
|
+
* Maps top-level keys of the Testcase schema to their roles (input/label).
|
|
109
110
|
* Unmapped fields are treated as metadata.
|
|
110
111
|
*/
|
|
111
112
|
fieldMapping: Testset.FieldMapping;
|
|
112
113
|
|
|
113
114
|
/**
|
|
114
|
-
* The JSON schema for each
|
|
115
|
+
* The JSON schema for each Testcase in the Testset.
|
|
115
116
|
*/
|
|
116
117
|
jsonSchema: Record<string, unknown>;
|
|
117
118
|
|
|
118
119
|
/**
|
|
119
|
-
* The name of the
|
|
120
|
+
* The name of the Testset.
|
|
120
121
|
*/
|
|
121
122
|
name: string;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
export namespace Testset {
|
|
125
126
|
/**
|
|
126
|
-
* Maps top-level keys of the
|
|
127
|
+
* Maps top-level keys of the Testcase schema to their roles (input/label).
|
|
127
128
|
* Unmapped fields are treated as metadata.
|
|
128
129
|
*/
|
|
129
130
|
export interface FieldMapping {
|
|
130
131
|
/**
|
|
131
|
-
* Fields that represent inputs to the AI system
|
|
132
|
+
* Fields that represent inputs to the AI system.
|
|
132
133
|
*/
|
|
133
134
|
inputs: Array<string>;
|
|
134
135
|
|
|
135
136
|
/**
|
|
136
|
-
* Fields that represent expected outputs/labels
|
|
137
|
+
* Fields that represent expected outputs/labels.
|
|
137
138
|
*/
|
|
138
139
|
labels: Array<string>;
|
|
139
140
|
|
|
140
141
|
/**
|
|
141
|
-
* Fields that are not inputs or labels
|
|
142
|
+
* Fields that are not inputs or labels.
|
|
142
143
|
*/
|
|
143
144
|
metadata: Array<string>;
|
|
144
145
|
}
|
|
@@ -146,52 +147,52 @@ export namespace Testset {
|
|
|
146
147
|
|
|
147
148
|
export interface TestsetDeleteResponse {
|
|
148
149
|
/**
|
|
149
|
-
* Whether the deletion was successful
|
|
150
|
+
* Whether the deletion was successful.
|
|
150
151
|
*/
|
|
151
152
|
success: boolean;
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
export interface TestsetCreateParams {
|
|
155
156
|
/**
|
|
156
|
-
* The description of the
|
|
157
|
+
* The description of the Testset.
|
|
157
158
|
*/
|
|
158
159
|
description: string;
|
|
159
160
|
|
|
160
161
|
/**
|
|
161
|
-
* Maps top-level keys of the
|
|
162
|
+
* Maps top-level keys of the Testcase schema to their roles (input/label).
|
|
162
163
|
* Unmapped fields are treated as metadata.
|
|
163
164
|
*/
|
|
164
165
|
fieldMapping: TestsetCreateParams.FieldMapping;
|
|
165
166
|
|
|
166
167
|
/**
|
|
167
|
-
* The JSON schema for each
|
|
168
|
+
* The JSON schema for each Testcase in the Testset.
|
|
168
169
|
*/
|
|
169
170
|
jsonSchema: Record<string, unknown>;
|
|
170
171
|
|
|
171
172
|
/**
|
|
172
|
-
* The name of the
|
|
173
|
+
* The name of the Testset.
|
|
173
174
|
*/
|
|
174
175
|
name: string;
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
export namespace TestsetCreateParams {
|
|
178
179
|
/**
|
|
179
|
-
* Maps top-level keys of the
|
|
180
|
+
* Maps top-level keys of the Testcase schema to their roles (input/label).
|
|
180
181
|
* Unmapped fields are treated as metadata.
|
|
181
182
|
*/
|
|
182
183
|
export interface FieldMapping {
|
|
183
184
|
/**
|
|
184
|
-
* Fields that represent inputs to the AI system
|
|
185
|
+
* Fields that represent inputs to the AI system.
|
|
185
186
|
*/
|
|
186
187
|
inputs: Array<string>;
|
|
187
188
|
|
|
188
189
|
/**
|
|
189
|
-
* Fields that represent expected outputs/labels
|
|
190
|
+
* Fields that represent expected outputs/labels.
|
|
190
191
|
*/
|
|
191
192
|
labels: Array<string>;
|
|
192
193
|
|
|
193
194
|
/**
|
|
194
|
-
* Fields that are not inputs or labels
|
|
195
|
+
* Fields that are not inputs or labels.
|
|
195
196
|
*/
|
|
196
197
|
metadata: Array<string>;
|
|
197
198
|
}
|
|
@@ -199,45 +200,45 @@ export namespace TestsetCreateParams {
|
|
|
199
200
|
|
|
200
201
|
export interface TestsetUpdateParams {
|
|
201
202
|
/**
|
|
202
|
-
* The description of the
|
|
203
|
+
* The description of the Testset.
|
|
203
204
|
*/
|
|
204
205
|
description?: string;
|
|
205
206
|
|
|
206
207
|
/**
|
|
207
|
-
* Maps top-level keys of the
|
|
208
|
+
* Maps top-level keys of the Testcase schema to their roles (input/label).
|
|
208
209
|
* Unmapped fields are treated as metadata.
|
|
209
210
|
*/
|
|
210
211
|
fieldMapping?: TestsetUpdateParams.FieldMapping;
|
|
211
212
|
|
|
212
213
|
/**
|
|
213
|
-
* The JSON schema for each
|
|
214
|
+
* The JSON schema for each Testcase in the Testset.
|
|
214
215
|
*/
|
|
215
216
|
jsonSchema?: Record<string, unknown>;
|
|
216
217
|
|
|
217
218
|
/**
|
|
218
|
-
* The name of the
|
|
219
|
+
* The name of the Testset.
|
|
219
220
|
*/
|
|
220
221
|
name?: string;
|
|
221
222
|
}
|
|
222
223
|
|
|
223
224
|
export namespace TestsetUpdateParams {
|
|
224
225
|
/**
|
|
225
|
-
* Maps top-level keys of the
|
|
226
|
+
* Maps top-level keys of the Testcase schema to their roles (input/label).
|
|
226
227
|
* Unmapped fields are treated as metadata.
|
|
227
228
|
*/
|
|
228
229
|
export interface FieldMapping {
|
|
229
230
|
/**
|
|
230
|
-
* Fields that represent inputs to the AI system
|
|
231
|
+
* Fields that represent inputs to the AI system.
|
|
231
232
|
*/
|
|
232
233
|
inputs: Array<string>;
|
|
233
234
|
|
|
234
235
|
/**
|
|
235
|
-
* Fields that represent expected outputs/labels
|
|
236
|
+
* Fields that represent expected outputs/labels.
|
|
236
237
|
*/
|
|
237
238
|
labels: Array<string>;
|
|
238
239
|
|
|
239
240
|
/**
|
|
240
|
-
* Fields that are not inputs or labels
|
|
241
|
+
* Fields that are not inputs or labels.
|
|
241
242
|
*/
|
|
242
243
|
metadata: Array<string>;
|
|
243
244
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.0.0-alpha.
|
|
1
|
+
export const VERSION = '1.0.0-alpha.4'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.0.0-alpha.
|
|
1
|
+
export declare const VERSION = "1.0.0-alpha.4";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.0.0-alpha.
|
|
1
|
+
export declare const VERSION = "1.0.0-alpha.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '1.0.0-alpha.
|
|
4
|
+
exports.VERSION = '1.0.0-alpha.4'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.0.0-alpha.
|
|
1
|
+
export const VERSION = '1.0.0-alpha.4'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
-
export declare class ExecutionRecords extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new execution record.
|
|
7
|
-
*/
|
|
8
|
-
create(runID: string, body: ExecutionRecordCreateParams, options?: RequestOptions): APIPromise<ExecutionRecord>;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* An execution record in the Scorecard system.
|
|
12
|
-
*/
|
|
13
|
-
export interface ExecutionRecord {
|
|
14
|
-
/**
|
|
15
|
-
* The ID of the execution record
|
|
16
|
-
*/
|
|
17
|
-
id: string;
|
|
18
|
-
/**
|
|
19
|
-
* The actual inputs sent to the system, which should match the system's input
|
|
20
|
-
* schema
|
|
21
|
-
*/
|
|
22
|
-
inputs: Record<string, unknown>;
|
|
23
|
-
/**
|
|
24
|
-
* The expected outputs for the testcase
|
|
25
|
-
*/
|
|
26
|
-
labels: Record<string, unknown>;
|
|
27
|
-
/**
|
|
28
|
-
* The actual outputs from the system
|
|
29
|
-
*/
|
|
30
|
-
outputs: Record<string, unknown>;
|
|
31
|
-
/**
|
|
32
|
-
* The ID of the run containing this execution record
|
|
33
|
-
*/
|
|
34
|
-
runId: string;
|
|
35
|
-
/**
|
|
36
|
-
* The ID of the testcase
|
|
37
|
-
*/
|
|
38
|
-
testcaseId?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface ExecutionRecordCreateParams {
|
|
41
|
-
/**
|
|
42
|
-
* The actual inputs sent to the system, which should match the system's input
|
|
43
|
-
* schema
|
|
44
|
-
*/
|
|
45
|
-
inputs: Record<string, unknown>;
|
|
46
|
-
/**
|
|
47
|
-
* The expected outputs for the testcase
|
|
48
|
-
*/
|
|
49
|
-
labels: Record<string, unknown>;
|
|
50
|
-
/**
|
|
51
|
-
* The actual outputs from the system
|
|
52
|
-
*/
|
|
53
|
-
outputs: Record<string, unknown>;
|
|
54
|
-
/**
|
|
55
|
-
* The ID of the testcase
|
|
56
|
-
*/
|
|
57
|
-
testcaseId?: string;
|
|
58
|
-
}
|
|
59
|
-
export declare namespace ExecutionRecords {
|
|
60
|
-
export { type ExecutionRecord as ExecutionRecord, type ExecutionRecordCreateParams as ExecutionRecordCreateParams, };
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=execution-records.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-records.d.mts","sourceRoot":"","sources":["../src/resources/execution-records.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;CAG/B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
-
export declare class ExecutionRecords extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new execution record.
|
|
7
|
-
*/
|
|
8
|
-
create(runID: string, body: ExecutionRecordCreateParams, options?: RequestOptions): APIPromise<ExecutionRecord>;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* An execution record in the Scorecard system.
|
|
12
|
-
*/
|
|
13
|
-
export interface ExecutionRecord {
|
|
14
|
-
/**
|
|
15
|
-
* The ID of the execution record
|
|
16
|
-
*/
|
|
17
|
-
id: string;
|
|
18
|
-
/**
|
|
19
|
-
* The actual inputs sent to the system, which should match the system's input
|
|
20
|
-
* schema
|
|
21
|
-
*/
|
|
22
|
-
inputs: Record<string, unknown>;
|
|
23
|
-
/**
|
|
24
|
-
* The expected outputs for the testcase
|
|
25
|
-
*/
|
|
26
|
-
labels: Record<string, unknown>;
|
|
27
|
-
/**
|
|
28
|
-
* The actual outputs from the system
|
|
29
|
-
*/
|
|
30
|
-
outputs: Record<string, unknown>;
|
|
31
|
-
/**
|
|
32
|
-
* The ID of the run containing this execution record
|
|
33
|
-
*/
|
|
34
|
-
runId: string;
|
|
35
|
-
/**
|
|
36
|
-
* The ID of the testcase
|
|
37
|
-
*/
|
|
38
|
-
testcaseId?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface ExecutionRecordCreateParams {
|
|
41
|
-
/**
|
|
42
|
-
* The actual inputs sent to the system, which should match the system's input
|
|
43
|
-
* schema
|
|
44
|
-
*/
|
|
45
|
-
inputs: Record<string, unknown>;
|
|
46
|
-
/**
|
|
47
|
-
* The expected outputs for the testcase
|
|
48
|
-
*/
|
|
49
|
-
labels: Record<string, unknown>;
|
|
50
|
-
/**
|
|
51
|
-
* The actual outputs from the system
|
|
52
|
-
*/
|
|
53
|
-
outputs: Record<string, unknown>;
|
|
54
|
-
/**
|
|
55
|
-
* The ID of the testcase
|
|
56
|
-
*/
|
|
57
|
-
testcaseId?: string;
|
|
58
|
-
}
|
|
59
|
-
export declare namespace ExecutionRecords {
|
|
60
|
-
export { type ExecutionRecord as ExecutionRecord, type ExecutionRecordCreateParams as ExecutionRecordCreateParams, };
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=execution-records.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-records.d.ts","sourceRoot":"","sources":["../src/resources/execution-records.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;CAG/B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-records.js","sourceRoot":"","sources":["../src/resources/execution-records.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;OAEG;IACH,MAAM,CACJ,KAAa,EACb,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,SAAS,KAAK,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF;AAXD,4CAWC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-records.mjs","sourceRoot":"","sources":["../src/resources/execution-records.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CACJ,KAAa,EACb,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,SAAS,KAAK,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
import { path } from '../internal/utils/path';
|
|
7
|
-
|
|
8
|
-
export class ExecutionRecords extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create a new execution record.
|
|
11
|
-
*/
|
|
12
|
-
create(
|
|
13
|
-
runID: string,
|
|
14
|
-
body: ExecutionRecordCreateParams,
|
|
15
|
-
options?: RequestOptions,
|
|
16
|
-
): APIPromise<ExecutionRecord> {
|
|
17
|
-
return this._client.post(path`/runs/${runID}/executionrecords`, { body, ...options });
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* An execution record in the Scorecard system.
|
|
23
|
-
*/
|
|
24
|
-
export interface ExecutionRecord {
|
|
25
|
-
/**
|
|
26
|
-
* The ID of the execution record
|
|
27
|
-
*/
|
|
28
|
-
id: string;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* The actual inputs sent to the system, which should match the system's input
|
|
32
|
-
* schema
|
|
33
|
-
*/
|
|
34
|
-
inputs: Record<string, unknown>;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The expected outputs for the testcase
|
|
38
|
-
*/
|
|
39
|
-
labels: Record<string, unknown>;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The actual outputs from the system
|
|
43
|
-
*/
|
|
44
|
-
outputs: Record<string, unknown>;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The ID of the run containing this execution record
|
|
48
|
-
*/
|
|
49
|
-
runId: string;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* The ID of the testcase
|
|
53
|
-
*/
|
|
54
|
-
testcaseId?: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface ExecutionRecordCreateParams {
|
|
58
|
-
/**
|
|
59
|
-
* The actual inputs sent to the system, which should match the system's input
|
|
60
|
-
* schema
|
|
61
|
-
*/
|
|
62
|
-
inputs: Record<string, unknown>;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* The expected outputs for the testcase
|
|
66
|
-
*/
|
|
67
|
-
labels: Record<string, unknown>;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* The actual outputs from the system
|
|
71
|
-
*/
|
|
72
|
-
outputs: Record<string, unknown>;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* The ID of the testcase
|
|
76
|
-
*/
|
|
77
|
-
testcaseId?: string;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export declare namespace ExecutionRecords {
|
|
81
|
-
export {
|
|
82
|
-
type ExecutionRecord as ExecutionRecord,
|
|
83
|
-
type ExecutionRecordCreateParams as ExecutionRecordCreateParams,
|
|
84
|
-
};
|
|
85
|
-
}
|