scorecard-ai 1.0.0-alpha.7 → 1.0.0-alpha.8
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 +24 -0
- package/README.md +1 -1
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/lib/runAndEvaluate.d.mts.map +1 -1
- package/lib/runAndEvaluate.d.ts.map +1 -1
- package/lib/runAndEvaluate.js +1 -5
- package/lib/runAndEvaluate.js.map +1 -1
- package/lib/runAndEvaluate.mjs +1 -5
- package/lib/runAndEvaluate.mjs.map +1 -1
- package/package.json +1 -1
- 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.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/records.d.mts +11 -9
- package/resources/records.d.mts.map +1 -1
- package/resources/records.d.ts +11 -9
- package/resources/records.d.ts.map +1 -1
- package/resources/records.js +3 -1
- package/resources/records.js.map +1 -1
- package/resources/records.mjs +3 -1
- package/resources/records.mjs.map +1 -1
- package/resources/runs.d.mts +1 -28
- package/resources/runs.d.mts.map +1 -1
- package/resources/runs.d.ts +1 -28
- package/resources/runs.d.ts.map +1 -1
- package/resources/runs.js +0 -13
- package/resources/runs.js.map +1 -1
- package/resources/runs.mjs +0 -13
- package/resources/runs.mjs.map +1 -1
- package/resources/testcases.d.mts +10 -18
- package/resources/testcases.d.mts.map +1 -1
- package/resources/testcases.d.ts +10 -18
- package/resources/testcases.d.ts.map +1 -1
- package/resources/testsets.d.mts +31 -31
- package/resources/testsets.d.mts.map +1 -1
- package/resources/testsets.d.ts +31 -31
- package/resources/testsets.d.ts.map +1 -1
- package/resources/testsets.js +1 -1
- package/resources/testsets.mjs +1 -1
- package/src/client.ts +2 -8
- package/src/lib/runAndEvaluate.ts +1 -6
- package/src/resources/index.ts +1 -1
- package/src/resources/records.ts +13 -11
- package/src/resources/runs.ts +1 -53
- package/src/resources/testcases.ts +11 -19
- package/src/resources/testsets.ts +31 -31
- 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/records.mjs
CHANGED
|
@@ -8,8 +8,10 @@ export class Records extends APIResource {
|
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
|
10
10
|
* const record = await client.records.create('135', {
|
|
11
|
+
* expected: {
|
|
12
|
+
* idealAnswer: 'Paris is the capital of France',
|
|
13
|
+
* },
|
|
11
14
|
* inputs: { question: 'What is the capital of France?' },
|
|
12
|
-
* labels: { idealAnswer: 'Paris is the capital of France' },
|
|
13
15
|
* outputs: { response: 'The capital of France is Paris.' },
|
|
14
16
|
* testcaseId: '248',
|
|
15
17
|
* });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records.mjs","sourceRoot":"","sources":["../src/resources/records.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"records.mjs","sourceRoot":"","sources":["../src/resources/records.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,KAAa,EAAE,IAAwB,EAAE,OAAwB;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,SAAS,KAAK,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
package/resources/runs.d.mts
CHANGED
|
@@ -15,17 +15,6 @@ export declare class Runs extends APIResource {
|
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
17
|
create(projectID: string, body: RunCreateParams, options?: RequestOptions): APIPromise<Run>;
|
|
18
|
-
/**
|
|
19
|
-
* Update the status of a Run.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* const run = await client.runs.update('135', {
|
|
24
|
-
* status: 'awaiting_scoring',
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
update(runID: string, body: RunUpdateParams, options?: RequestOptions): APIPromise<RunUpdateResponse>;
|
|
29
18
|
}
|
|
30
19
|
/**
|
|
31
20
|
* A Run in the Scorecard system.
|
|
@@ -52,16 +41,6 @@ export interface Run {
|
|
|
52
41
|
*/
|
|
53
42
|
systemConfigId?: string;
|
|
54
43
|
}
|
|
55
|
-
export interface RunUpdateResponse {
|
|
56
|
-
/**
|
|
57
|
-
* The ID of the Run.
|
|
58
|
-
*/
|
|
59
|
-
id: string;
|
|
60
|
-
/**
|
|
61
|
-
* The status of the Run.
|
|
62
|
-
*/
|
|
63
|
-
status: 'pending' | 'awaiting_execution' | 'running_execution' | 'awaiting_scoring' | 'running_scoring' | 'awaiting_human_scoring' | 'completed';
|
|
64
|
-
}
|
|
65
44
|
export interface RunCreateParams {
|
|
66
45
|
/**
|
|
67
46
|
* The IDs of the metrics this Run is using.
|
|
@@ -76,13 +55,7 @@ export interface RunCreateParams {
|
|
|
76
55
|
*/
|
|
77
56
|
systemConfigId?: string;
|
|
78
57
|
}
|
|
79
|
-
export interface RunUpdateParams {
|
|
80
|
-
/**
|
|
81
|
-
* The status of the Run.
|
|
82
|
-
*/
|
|
83
|
-
status: 'pending' | 'awaiting_execution' | 'running_execution' | 'awaiting_scoring' | 'running_scoring' | 'awaiting_human_scoring' | 'completed';
|
|
84
|
-
}
|
|
85
58
|
export declare namespace Runs {
|
|
86
|
-
export { type Run as Run, type
|
|
59
|
+
export { type Run as Run, type RunCreateParams as RunCreateParams };
|
|
87
60
|
}
|
|
88
61
|
//# sourceMappingURL=runs.d.mts.map
|
package/resources/runs.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.d.mts","sourceRoot":"","sources":["../src/resources/runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"runs.d.mts","sourceRoot":"","sources":["../src/resources/runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,GAAG,CAAC;CAG5F;AAED;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,MAAM,EACF,SAAS,GACT,oBAAoB,GACpB,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,wBAAwB,GACxB,WAAW,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,GAAG,IAAI,GAAG,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACrE"}
|
package/resources/runs.d.ts
CHANGED
|
@@ -15,17 +15,6 @@ export declare class Runs extends APIResource {
|
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
17
|
create(projectID: string, body: RunCreateParams, options?: RequestOptions): APIPromise<Run>;
|
|
18
|
-
/**
|
|
19
|
-
* Update the status of a Run.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* const run = await client.runs.update('135', {
|
|
24
|
-
* status: 'awaiting_scoring',
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
update(runID: string, body: RunUpdateParams, options?: RequestOptions): APIPromise<RunUpdateResponse>;
|
|
29
18
|
}
|
|
30
19
|
/**
|
|
31
20
|
* A Run in the Scorecard system.
|
|
@@ -52,16 +41,6 @@ export interface Run {
|
|
|
52
41
|
*/
|
|
53
42
|
systemConfigId?: string;
|
|
54
43
|
}
|
|
55
|
-
export interface RunUpdateResponse {
|
|
56
|
-
/**
|
|
57
|
-
* The ID of the Run.
|
|
58
|
-
*/
|
|
59
|
-
id: string;
|
|
60
|
-
/**
|
|
61
|
-
* The status of the Run.
|
|
62
|
-
*/
|
|
63
|
-
status: 'pending' | 'awaiting_execution' | 'running_execution' | 'awaiting_scoring' | 'running_scoring' | 'awaiting_human_scoring' | 'completed';
|
|
64
|
-
}
|
|
65
44
|
export interface RunCreateParams {
|
|
66
45
|
/**
|
|
67
46
|
* The IDs of the metrics this Run is using.
|
|
@@ -76,13 +55,7 @@ export interface RunCreateParams {
|
|
|
76
55
|
*/
|
|
77
56
|
systemConfigId?: string;
|
|
78
57
|
}
|
|
79
|
-
export interface RunUpdateParams {
|
|
80
|
-
/**
|
|
81
|
-
* The status of the Run.
|
|
82
|
-
*/
|
|
83
|
-
status: 'pending' | 'awaiting_execution' | 'running_execution' | 'awaiting_scoring' | 'running_scoring' | 'awaiting_human_scoring' | 'completed';
|
|
84
|
-
}
|
|
85
58
|
export declare namespace Runs {
|
|
86
|
-
export { type Run as Run, type
|
|
59
|
+
export { type Run as Run, type RunCreateParams as RunCreateParams };
|
|
87
60
|
}
|
|
88
61
|
//# sourceMappingURL=runs.d.ts.map
|
package/resources/runs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../src/resources/runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../src/resources/runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,GAAG,CAAC;CAG5F;AAED;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,MAAM,EACF,SAAS,GACT,oBAAoB,GACpB,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,wBAAwB,GACxB,WAAW,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,GAAG,IAAI,GAAG,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACrE"}
|
package/resources/runs.js
CHANGED
|
@@ -20,19 +20,6 @@ class Runs extends resource_1.APIResource {
|
|
|
20
20
|
create(projectID, body, options) {
|
|
21
21
|
return this._client.post((0, path_1.path) `/projects/${projectID}/runs`, { body, ...options });
|
|
22
22
|
}
|
|
23
|
-
/**
|
|
24
|
-
* Update the status of a Run.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* const run = await client.runs.update('135', {
|
|
29
|
-
* status: 'awaiting_scoring',
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
update(runID, body, options) {
|
|
34
|
-
return this._client.patch((0, path_1.path) `/runs/${runID}`, { body, ...options });
|
|
35
|
-
}
|
|
36
23
|
}
|
|
37
24
|
exports.Runs = Runs;
|
|
38
25
|
//# sourceMappingURL=runs.js.map
|
package/resources/runs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.js","sourceRoot":"","sources":["../src/resources/runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,SAAiB,EAAE,IAAqB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;
|
|
1
|
+
{"version":3,"file":"runs.js","sourceRoot":"","sources":["../src/resources/runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,SAAiB,EAAE,IAAqB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAhBD,oBAgBC"}
|
package/resources/runs.mjs
CHANGED
|
@@ -17,18 +17,5 @@ export class Runs extends APIResource {
|
|
|
17
17
|
create(projectID, body, options) {
|
|
18
18
|
return this._client.post(path `/projects/${projectID}/runs`, { body, ...options });
|
|
19
19
|
}
|
|
20
|
-
/**
|
|
21
|
-
* Update the status of a Run.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* const run = await client.runs.update('135', {
|
|
26
|
-
* status: 'awaiting_scoring',
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
update(runID, body, options) {
|
|
31
|
-
return this._client.patch(path `/runs/${runID}`, { body, ...options });
|
|
32
|
-
}
|
|
33
20
|
}
|
|
34
21
|
//# sourceMappingURL=runs.mjs.map
|
package/resources/runs.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.mjs","sourceRoot":"","sources":["../src/resources/runs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,SAAiB,EAAE,IAAqB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,SAAS,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;
|
|
1
|
+
{"version":3,"file":"runs.mjs","sourceRoot":"","sources":["../src/resources/runs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,SAAiB,EAAE,IAAqB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,SAAS,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
|
|
@@ -89,17 +89,22 @@ export declare class Testcases extends APIResource {
|
|
|
89
89
|
export type TestcasesPaginatedResponse = PaginatedResponse<Testcase>;
|
|
90
90
|
/**
|
|
91
91
|
* A test case in the Scorecard system. Contains JSON data that is validated
|
|
92
|
-
* against the schema defined by its Testset. The `inputs` and `
|
|
93
|
-
* derived from the `data` field based on the Testset's `fieldMapping`, and
|
|
94
|
-
* all mapped fields, including those with validation errors. Testcases are
|
|
95
|
-
* regardless of validation results, with any validation errors included in
|
|
96
|
-
* `validationErrors` field.
|
|
92
|
+
* against the schema defined by its Testset. The `inputs` and `expected` fields
|
|
93
|
+
* are derived from the `data` field based on the Testset's `fieldMapping`, and
|
|
94
|
+
* include all mapped fields, including those with validation errors. Testcases are
|
|
95
|
+
* stored regardless of validation results, with any validation errors included in
|
|
96
|
+
* the `validationErrors` field.
|
|
97
97
|
*/
|
|
98
98
|
export interface Testcase {
|
|
99
99
|
/**
|
|
100
100
|
* The ID of the Testcase.
|
|
101
101
|
*/
|
|
102
102
|
id: string;
|
|
103
|
+
/**
|
|
104
|
+
* Derived from data based on the Testset's fieldMapping. Contains all fields
|
|
105
|
+
* marked as expected outputs, including those with validation errors.
|
|
106
|
+
*/
|
|
107
|
+
expected: Record<string, unknown>;
|
|
103
108
|
/**
|
|
104
109
|
* Derived from data based on the Testset's fieldMapping. Contains all fields
|
|
105
110
|
* marked as inputs, including those with validation errors.
|
|
@@ -109,11 +114,6 @@ export interface Testcase {
|
|
|
109
114
|
* The JSON data of the Testcase, which is validated against the Testset's schema.
|
|
110
115
|
*/
|
|
111
116
|
jsonData: Record<string, unknown>;
|
|
112
|
-
/**
|
|
113
|
-
* Derived from data based on the Testset's fieldMapping. Contains all fields
|
|
114
|
-
* marked as labels, including those with validation errors.
|
|
115
|
-
*/
|
|
116
|
-
labels: Record<string, unknown>;
|
|
117
117
|
/**
|
|
118
118
|
* The ID of the Testset this Testcase belongs to.
|
|
119
119
|
*/
|
|
@@ -152,14 +152,6 @@ export interface TestcaseCreateParams {
|
|
|
152
152
|
items: Array<TestcaseCreateParams.Item>;
|
|
153
153
|
}
|
|
154
154
|
export declare namespace TestcaseCreateParams {
|
|
155
|
-
/**
|
|
156
|
-
* A test case in the Scorecard system. Contains JSON data that is validated
|
|
157
|
-
* against the schema defined by its Testset. The `inputs` and `labels` fields are
|
|
158
|
-
* derived from the `data` field based on the Testset's `fieldMapping`, and include
|
|
159
|
-
* all mapped fields, including those with validation errors. Testcases are stored
|
|
160
|
-
* regardless of validation results, with any validation errors included in the
|
|
161
|
-
* `validationErrors` field.
|
|
162
|
-
*/
|
|
163
155
|
interface Item {
|
|
164
156
|
/**
|
|
165
157
|
* The JSON data of the Testcase, which is validated against the Testset's schema.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testcases.d.mts","sourceRoot":"","sources":["../src/resources/testcases.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE;OAChE,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAItG;;;;;;;;;;OAUG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,QAAQ,CAAC;IAOpD;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIhG;;;;;;;OAOG;IACH,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAGxE;AAED,MAAM,MAAM,0BAA0B,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,
|
|
1
|
+
{"version":3,"file":"testcases.d.mts","sourceRoot":"","sources":["../src/resources/testcases.ts"],"names":[],"mappings":"OAEO,EAAE,WA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B,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
package/resources/testcases.d.ts
CHANGED
|
@@ -89,17 +89,22 @@ export declare class Testcases extends APIResource {
|
|
|
89
89
|
export type TestcasesPaginatedResponse = PaginatedResponse<Testcase>;
|
|
90
90
|
/**
|
|
91
91
|
* A test case in the Scorecard system. Contains JSON data that is validated
|
|
92
|
-
* against the schema defined by its Testset. The `inputs` and `
|
|
93
|
-
* derived from the `data` field based on the Testset's `fieldMapping`, and
|
|
94
|
-
* all mapped fields, including those with validation errors. Testcases are
|
|
95
|
-
* regardless of validation results, with any validation errors included in
|
|
96
|
-
* `validationErrors` field.
|
|
92
|
+
* against the schema defined by its Testset. The `inputs` and `expected` fields
|
|
93
|
+
* are derived from the `data` field based on the Testset's `fieldMapping`, and
|
|
94
|
+
* include all mapped fields, including those with validation errors. Testcases are
|
|
95
|
+
* stored regardless of validation results, with any validation errors included in
|
|
96
|
+
* the `validationErrors` field.
|
|
97
97
|
*/
|
|
98
98
|
export interface Testcase {
|
|
99
99
|
/**
|
|
100
100
|
* The ID of the Testcase.
|
|
101
101
|
*/
|
|
102
102
|
id: string;
|
|
103
|
+
/**
|
|
104
|
+
* Derived from data based on the Testset's fieldMapping. Contains all fields
|
|
105
|
+
* marked as expected outputs, including those with validation errors.
|
|
106
|
+
*/
|
|
107
|
+
expected: Record<string, unknown>;
|
|
103
108
|
/**
|
|
104
109
|
* Derived from data based on the Testset's fieldMapping. Contains all fields
|
|
105
110
|
* marked as inputs, including those with validation errors.
|
|
@@ -109,11 +114,6 @@ export interface Testcase {
|
|
|
109
114
|
* The JSON data of the Testcase, which is validated against the Testset's schema.
|
|
110
115
|
*/
|
|
111
116
|
jsonData: Record<string, unknown>;
|
|
112
|
-
/**
|
|
113
|
-
* Derived from data based on the Testset's fieldMapping. Contains all fields
|
|
114
|
-
* marked as labels, including those with validation errors.
|
|
115
|
-
*/
|
|
116
|
-
labels: Record<string, unknown>;
|
|
117
117
|
/**
|
|
118
118
|
* The ID of the Testset this Testcase belongs to.
|
|
119
119
|
*/
|
|
@@ -152,14 +152,6 @@ export interface TestcaseCreateParams {
|
|
|
152
152
|
items: Array<TestcaseCreateParams.Item>;
|
|
153
153
|
}
|
|
154
154
|
export declare namespace TestcaseCreateParams {
|
|
155
|
-
/**
|
|
156
|
-
* A test case in the Scorecard system. Contains JSON data that is validated
|
|
157
|
-
* against the schema defined by its Testset. The `inputs` and `labels` fields are
|
|
158
|
-
* derived from the `data` field based on the Testset's `fieldMapping`, and include
|
|
159
|
-
* all mapped fields, including those with validation errors. Testcases are stored
|
|
160
|
-
* regardless of validation results, with any validation errors included in the
|
|
161
|
-
* `validationErrors` field.
|
|
162
|
-
*/
|
|
163
155
|
interface Item {
|
|
164
156
|
/**
|
|
165
157
|
* The JSON data of the Testcase, which is validated against the Testset's schema.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testcases.d.ts","sourceRoot":"","sources":["../src/resources/testcases.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE;OAChE,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAItG;;;;;;;;;;OAUG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,kBAAkB,GAAG,IAAI,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AEG;QACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnC;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,kBAAmB,SAAQ,uBAAuB;CAAG;AAEtE,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
package/resources/testsets.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class Testsets extends APIResource {
|
|
|
13
13
|
* description: 'Testset for long context Q&A chatbot.',
|
|
14
14
|
* fieldMapping: {
|
|
15
15
|
* inputs: ['question'],
|
|
16
|
-
*
|
|
16
|
+
* expected: ['idealAnswer'],
|
|
17
17
|
* metadata: [],
|
|
18
18
|
* },
|
|
19
19
|
* jsonSchema: {
|
|
@@ -88,9 +88,9 @@ export type TestsetsPaginatedResponse = PaginatedResponse<Testset>;
|
|
|
88
88
|
/**
|
|
89
89
|
* A collection of Testcases that share the same schema. Each Testset defines the
|
|
90
90
|
* structure of its Testcases through a JSON schema. The `fieldMapping` object maps
|
|
91
|
-
* top-level keys of the Testcase schema to their roles (input/
|
|
92
|
-
* mentioned in the `fieldMapping` during creation or update are treated
|
|
93
|
-
* metadata.
|
|
91
|
+
* top-level keys of the Testcase schema to their roles (input/expected output).
|
|
92
|
+
* Fields not mentioned in the `fieldMapping` during creation or update are treated
|
|
93
|
+
* as metadata.
|
|
94
94
|
*
|
|
95
95
|
* ## JSON Schema validation constraints supported:
|
|
96
96
|
*
|
|
@@ -121,8 +121,8 @@ export interface Testset {
|
|
|
121
121
|
*/
|
|
122
122
|
description: string;
|
|
123
123
|
/**
|
|
124
|
-
* Maps top-level keys of the Testcase schema to their roles (input/
|
|
125
|
-
* Unmapped fields are treated as metadata.
|
|
124
|
+
* Maps top-level keys of the Testcase schema to their roles (input/expected
|
|
125
|
+
* output). Unmapped fields are treated as metadata.
|
|
126
126
|
*/
|
|
127
127
|
fieldMapping: Testset.FieldMapping;
|
|
128
128
|
/**
|
|
@@ -136,20 +136,20 @@ export interface Testset {
|
|
|
136
136
|
}
|
|
137
137
|
export declare namespace Testset {
|
|
138
138
|
/**
|
|
139
|
-
* Maps top-level keys of the Testcase schema to their roles (input/
|
|
140
|
-
* Unmapped fields are treated as metadata.
|
|
139
|
+
* Maps top-level keys of the Testcase schema to their roles (input/expected
|
|
140
|
+
* output). Unmapped fields are treated as metadata.
|
|
141
141
|
*/
|
|
142
142
|
interface FieldMapping {
|
|
143
143
|
/**
|
|
144
|
-
* Fields that represent
|
|
144
|
+
* Fields that represent expected outputs.
|
|
145
145
|
*/
|
|
146
|
-
|
|
146
|
+
expected: Array<string>;
|
|
147
147
|
/**
|
|
148
|
-
* Fields that represent
|
|
148
|
+
* Fields that represent inputs to the AI system.
|
|
149
149
|
*/
|
|
150
|
-
|
|
150
|
+
inputs: Array<string>;
|
|
151
151
|
/**
|
|
152
|
-
* Fields that are not inputs or
|
|
152
|
+
* Fields that are not inputs or expected outputs.
|
|
153
153
|
*/
|
|
154
154
|
metadata: Array<string>;
|
|
155
155
|
}
|
|
@@ -166,8 +166,8 @@ export interface TestsetCreateParams {
|
|
|
166
166
|
*/
|
|
167
167
|
description: string;
|
|
168
168
|
/**
|
|
169
|
-
* Maps top-level keys of the Testcase schema to their roles (input/
|
|
170
|
-
* Unmapped fields are treated as metadata.
|
|
169
|
+
* Maps top-level keys of the Testcase schema to their roles (input/expected
|
|
170
|
+
* output). Unmapped fields are treated as metadata.
|
|
171
171
|
*/
|
|
172
172
|
fieldMapping: TestsetCreateParams.FieldMapping;
|
|
173
173
|
/**
|
|
@@ -181,20 +181,20 @@ export interface TestsetCreateParams {
|
|
|
181
181
|
}
|
|
182
182
|
export declare namespace TestsetCreateParams {
|
|
183
183
|
/**
|
|
184
|
-
* Maps top-level keys of the Testcase schema to their roles (input/
|
|
185
|
-
* Unmapped fields are treated as metadata.
|
|
184
|
+
* Maps top-level keys of the Testcase schema to their roles (input/expected
|
|
185
|
+
* output). Unmapped fields are treated as metadata.
|
|
186
186
|
*/
|
|
187
187
|
interface FieldMapping {
|
|
188
188
|
/**
|
|
189
|
-
* Fields that represent
|
|
189
|
+
* Fields that represent expected outputs.
|
|
190
190
|
*/
|
|
191
|
-
|
|
191
|
+
expected: Array<string>;
|
|
192
192
|
/**
|
|
193
|
-
* Fields that represent
|
|
193
|
+
* Fields that represent inputs to the AI system.
|
|
194
194
|
*/
|
|
195
|
-
|
|
195
|
+
inputs: Array<string>;
|
|
196
196
|
/**
|
|
197
|
-
* Fields that are not inputs or
|
|
197
|
+
* Fields that are not inputs or expected outputs.
|
|
198
198
|
*/
|
|
199
199
|
metadata: Array<string>;
|
|
200
200
|
}
|
|
@@ -205,8 +205,8 @@ export interface TestsetUpdateParams {
|
|
|
205
205
|
*/
|
|
206
206
|
description?: string;
|
|
207
207
|
/**
|
|
208
|
-
* Maps top-level keys of the Testcase schema to their roles (input/
|
|
209
|
-
* Unmapped fields are treated as metadata.
|
|
208
|
+
* Maps top-level keys of the Testcase schema to their roles (input/expected
|
|
209
|
+
* output). Unmapped fields are treated as metadata.
|
|
210
210
|
*/
|
|
211
211
|
fieldMapping?: TestsetUpdateParams.FieldMapping;
|
|
212
212
|
/**
|
|
@@ -220,20 +220,20 @@ export interface TestsetUpdateParams {
|
|
|
220
220
|
}
|
|
221
221
|
export declare namespace TestsetUpdateParams {
|
|
222
222
|
/**
|
|
223
|
-
* Maps top-level keys of the Testcase schema to their roles (input/
|
|
224
|
-
* Unmapped fields are treated as metadata.
|
|
223
|
+
* Maps top-level keys of the Testcase schema to their roles (input/expected
|
|
224
|
+
* output). Unmapped fields are treated as metadata.
|
|
225
225
|
*/
|
|
226
226
|
interface FieldMapping {
|
|
227
227
|
/**
|
|
228
|
-
* Fields that represent
|
|
228
|
+
* Fields that represent expected outputs.
|
|
229
229
|
*/
|
|
230
|
-
|
|
230
|
+
expected: Array<string>;
|
|
231
231
|
/**
|
|
232
|
-
* Fields that represent
|
|
232
|
+
* Fields that represent inputs to the AI system.
|
|
233
233
|
*/
|
|
234
|
-
|
|
234
|
+
inputs: Array<string>;
|
|
235
235
|
/**
|
|
236
|
-
* Fields that are not inputs or
|
|
236
|
+
* Fields that are not inputs or expected outputs.
|
|
237
237
|
*/
|
|
238
238
|
metadata: Array<string>;
|
|
239
239
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testsets.d.mts","sourceRoot":"","sources":["../src/resources/testsets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE;OAChE,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAInG;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,O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BAAuB;CAAG;AAErE,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/testsets.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class Testsets extends APIResource {
|
|
|
13
13
|
* description: 'Testset for long context Q&A chatbot.',
|
|
14
14
|
* fieldMapping: {
|
|
15
15
|
* inputs: ['question'],
|
|
16
|
-
*
|
|
16
|
+
* expected: ['idealAnswer'],
|
|
17
17
|
* metadata: [],
|
|
18
18
|
* },
|
|
19
19
|
* jsonSchema: {
|
|
@@ -88,9 +88,9 @@ export type TestsetsPaginatedResponse = PaginatedResponse<Testset>;
|
|
|
88
88
|
/**
|
|
89
89
|
* A collection of Testcases that share the same schema. Each Testset defines the
|
|
90
90
|
* structure of its Testcases through a JSON schema. The `fieldMapping` object maps
|
|
91
|
-
* top-level keys of the Testcase schema to their roles (input/
|
|
92
|
-
* mentioned in the `fieldMapping` during creation or update are treated
|
|
93
|
-
* metadata.
|
|
91
|
+
* top-level keys of the Testcase schema to their roles (input/expected output).
|
|
92
|
+
* Fields not mentioned in the `fieldMapping` during creation or update are treated
|
|
93
|
+
* as metadata.
|
|
94
94
|
*
|
|
95
95
|
* ## JSON Schema validation constraints supported:
|
|
96
96
|
*
|
|
@@ -121,8 +121,8 @@ export interface Testset {
|
|
|
121
121
|
*/
|
|
122
122
|
description: string;
|
|
123
123
|
/**
|
|
124
|
-
* Maps top-level keys of the Testcase schema to their roles (input/
|
|
125
|
-
* Unmapped fields are treated as metadata.
|
|
124
|
+
* Maps top-level keys of the Testcase schema to their roles (input/expected
|
|
125
|
+
* output). Unmapped fields are treated as metadata.
|
|
126
126
|
*/
|
|
127
127
|
fieldMapping: Testset.FieldMapping;
|
|
128
128
|
/**
|
|
@@ -136,20 +136,20 @@ export interface Testset {
|
|
|
136
136
|
}
|
|
137
137
|
export declare namespace Testset {
|
|
138
138
|
/**
|
|
139
|
-
* Maps top-level keys of the Testcase schema to their roles (input/
|
|
140
|
-
* Unmapped fields are treated as metadata.
|
|
139
|
+
* Maps top-level keys of the Testcase schema to their roles (input/expected
|
|
140
|
+
* output). Unmapped fields are treated as metadata.
|
|
141
141
|
*/
|
|
142
142
|
interface FieldMapping {
|
|
143
143
|
/**
|
|
144
|
-
* Fields that represent
|
|
144
|
+
* Fields that represent expected outputs.
|
|
145
145
|
*/
|
|
146
|
-
|
|
146
|
+
expected: Array<string>;
|
|
147
147
|
/**
|
|
148
|
-
* Fields that represent
|
|
148
|
+
* Fields that represent inputs to the AI system.
|
|
149
149
|
*/
|
|
150
|
-
|
|
150
|
+
inputs: Array<string>;
|
|
151
151
|
/**
|
|
152
|
-
* Fields that are not inputs or
|
|
152
|
+
* Fields that are not inputs or expected outputs.
|
|
153
153
|
*/
|
|
154
154
|
metadata: Array<string>;
|
|
155
155
|
}
|
|
@@ -166,8 +166,8 @@ export interface TestsetCreateParams {
|
|
|
166
166
|
*/
|
|
167
167
|
description: string;
|
|
168
168
|
/**
|
|
169
|
-
* Maps top-level keys of the Testcase schema to their roles (input/
|
|
170
|
-
* Unmapped fields are treated as metadata.
|
|
169
|
+
* Maps top-level keys of the Testcase schema to their roles (input/expected
|
|
170
|
+
* output). Unmapped fields are treated as metadata.
|
|
171
171
|
*/
|
|
172
172
|
fieldMapping: TestsetCreateParams.FieldMapping;
|
|
173
173
|
/**
|
|
@@ -181,20 +181,20 @@ export interface TestsetCreateParams {
|
|
|
181
181
|
}
|
|
182
182
|
export declare namespace TestsetCreateParams {
|
|
183
183
|
/**
|
|
184
|
-
* Maps top-level keys of the Testcase schema to their roles (input/
|
|
185
|
-
* Unmapped fields are treated as metadata.
|
|
184
|
+
* Maps top-level keys of the Testcase schema to their roles (input/expected
|
|
185
|
+
* output). Unmapped fields are treated as metadata.
|
|
186
186
|
*/
|
|
187
187
|
interface FieldMapping {
|
|
188
188
|
/**
|
|
189
|
-
* Fields that represent
|
|
189
|
+
* Fields that represent expected outputs.
|
|
190
190
|
*/
|
|
191
|
-
|
|
191
|
+
expected: Array<string>;
|
|
192
192
|
/**
|
|
193
|
-
* Fields that represent
|
|
193
|
+
* Fields that represent inputs to the AI system.
|
|
194
194
|
*/
|
|
195
|
-
|
|
195
|
+
inputs: Array<string>;
|
|
196
196
|
/**
|
|
197
|
-
* Fields that are not inputs or
|
|
197
|
+
* Fields that are not inputs or expected outputs.
|
|
198
198
|
*/
|
|
199
199
|
metadata: Array<string>;
|
|
200
200
|
}
|
|
@@ -205,8 +205,8 @@ export interface TestsetUpdateParams {
|
|
|
205
205
|
*/
|
|
206
206
|
description?: string;
|
|
207
207
|
/**
|
|
208
|
-
* Maps top-level keys of the Testcase schema to their roles (input/
|
|
209
|
-
* Unmapped fields are treated as metadata.
|
|
208
|
+
* Maps top-level keys of the Testcase schema to their roles (input/expected
|
|
209
|
+
* output). Unmapped fields are treated as metadata.
|
|
210
210
|
*/
|
|
211
211
|
fieldMapping?: TestsetUpdateParams.FieldMapping;
|
|
212
212
|
/**
|
|
@@ -220,20 +220,20 @@ export interface TestsetUpdateParams {
|
|
|
220
220
|
}
|
|
221
221
|
export declare namespace TestsetUpdateParams {
|
|
222
222
|
/**
|
|
223
|
-
* Maps top-level keys of the Testcase schema to their roles (input/
|
|
224
|
-
* Unmapped fields are treated as metadata.
|
|
223
|
+
* Maps top-level keys of the Testcase schema to their roles (input/expected
|
|
224
|
+
* output). Unmapped fields are treated as metadata.
|
|
225
225
|
*/
|
|
226
226
|
interface FieldMapping {
|
|
227
227
|
/**
|
|
228
|
-
* Fields that represent
|
|
228
|
+
* Fields that represent expected outputs.
|
|
229
229
|
*/
|
|
230
|
-
|
|
230
|
+
expected: Array<string>;
|
|
231
231
|
/**
|
|
232
|
-
* Fields that represent
|
|
232
|
+
* Fields that represent inputs to the AI system.
|
|
233
233
|
*/
|
|
234
|
-
|
|
234
|
+
inputs: Array<string>;
|
|
235
235
|
/**
|
|
236
|
-
* Fields that are not inputs or
|
|
236
|
+
* Fields that are not inputs or expected outputs.
|
|
237
237
|
*/
|
|
238
238
|
metadata: Array<string>;
|
|
239
239
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testsets.d.ts","sourceRoot":"","sources":["../src/resources/testsets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE;OAChE,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAInG;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;IAItB;;;;;;;;;;OAUG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,yBAAyB,EAAE,OAAO,CAAC;IAOlD;;;;;;;OAOG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAItF;;;;;;;OAOG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO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
* description: 'Testset for long context Q&A chatbot.',
|
|
17
17
|
* fieldMapping: {
|
|
18
18
|
* inputs: ['question'],
|
|
19
|
-
*
|
|
19
|
+
* expected: ['idealAnswer'],
|
|
20
20
|
* metadata: [],
|
|
21
21
|
* },
|
|
22
22
|
* jsonSchema: {
|