scorecard-ai 1.0.0-alpha.8 → 1.0.0
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 +46 -0
- package/README.md +25 -37
- package/client.d.mts +5 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -4
- package/client.d.ts.map +1 -1
- package/client.js +19 -4
- package/client.js.map +1 -1
- package/client.mjs +19 -4
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/detect-platform.js +3 -3
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +3 -3
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/shim-types.d.mts +11 -22
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +11 -22
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +2 -2
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +2 -2
- package/internal/shims.d.ts.map +1 -1
- package/internal/tslib.js +6 -6
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/lib/runAndEvaluate.d.mts +62 -10
- package/lib/runAndEvaluate.d.mts.map +1 -1
- package/lib/runAndEvaluate.d.ts +62 -10
- package/lib/runAndEvaluate.d.ts.map +1 -1
- package/lib/runAndEvaluate.js +72 -19
- package/lib/runAndEvaluate.js.map +1 -1
- package/lib/runAndEvaluate.mjs +72 -19
- package/lib/runAndEvaluate.mjs.map +1 -1
- package/package.json +1 -4
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/metrics.d.mts +421 -0
- package/resources/metrics.d.mts.map +1 -0
- package/resources/metrics.d.ts +421 -0
- package/resources/metrics.d.ts.map +1 -0
- package/resources/metrics.js +33 -0
- package/resources/metrics.js.map +1 -0
- package/resources/metrics.mjs +29 -0
- package/resources/metrics.mjs.map +1 -0
- package/resources/runs.d.mts +8 -8
- package/resources/runs.d.mts.map +1 -1
- package/resources/runs.d.ts +8 -8
- package/resources/runs.d.ts.map +1 -1
- package/resources/runs.js +1 -1
- package/resources/runs.mjs +1 -1
- package/resources/systems/index.d.mts +3 -0
- package/resources/systems/index.d.mts.map +1 -0
- package/resources/systems/index.d.ts +3 -0
- package/resources/systems/index.d.ts.map +1 -0
- package/resources/systems/index.js +9 -0
- package/resources/systems/index.js.map +1 -0
- package/resources/systems/index.mjs +4 -0
- package/resources/systems/index.mjs.map +1 -0
- package/resources/systems/systems.d.mts +229 -0
- package/resources/systems/systems.d.mts.map +1 -0
- package/resources/systems/systems.d.ts +229 -0
- package/resources/systems/systems.d.ts.map +1 -0
- package/resources/systems/systems.js +151 -0
- package/resources/systems/systems.js.map +1 -0
- package/resources/systems/systems.mjs +146 -0
- package/resources/systems/systems.mjs.map +1 -0
- package/resources/systems/versions.d.mts +132 -0
- package/resources/systems/versions.d.mts.map +1 -0
- package/resources/systems/versions.d.ts +132 -0
- package/resources/systems/versions.d.ts.map +1 -0
- package/resources/systems/versions.js +82 -0
- package/resources/systems/versions.js.map +1 -0
- package/resources/systems/versions.mjs +78 -0
- package/resources/systems/versions.mjs.map +1 -0
- package/resources/systems.d.mts +1 -224
- package/resources/systems.d.mts.map +1 -1
- package/resources/systems.d.ts +1 -224
- package/resources/systems.d.ts.map +1 -1
- package/resources/systems.js +2 -139
- package/resources/systems.js.map +1 -1
- package/resources/systems.mjs +1 -137
- package/resources/systems.mjs.map +1 -1
- package/resources/testsets.d.mts +1 -1
- package/resources/testsets.d.ts +1 -1
- package/resources/testsets.js +1 -1
- package/resources/testsets.mjs +1 -1
- package/src/client.ts +28 -28
- package/src/core/pagination.ts +1 -1
- package/src/index.ts +2 -0
- package/src/internal/detect-platform.ts +3 -3
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +2 -2
- package/src/internal/uploads.ts +1 -1
- package/src/lib/runAndEvaluate.ts +159 -31
- package/src/resources/index.ts +2 -9
- package/src/resources/metrics.ts +525 -0
- package/src/resources/runs.ts +8 -8
- package/src/resources/systems/index.ts +18 -0
- package/src/resources/systems/systems.ts +299 -0
- package/src/resources/systems/versions.ts +166 -0
- package/src/resources/systems.ts +1 -277
- package/src/resources/testsets.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/system-configs.d.mts +0 -155
- package/resources/system-configs.d.mts.map +0 -1
- package/resources/system-configs.d.ts +0 -155
- package/resources/system-configs.d.ts.map +0 -1
- package/resources/system-configs.js +0 -83
- package/resources/system-configs.js.map +0 -1
- package/resources/system-configs.mjs +0 -79
- package/resources/system-configs.mjs.map +0 -1
- package/src/internal/shim-types.d.ts +0 -28
- package/src/resources/system-configs.ts +0 -203
|
@@ -0,0 +1,421 @@
|
|
|
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 Metrics extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new Metric for evaluating system outputs.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const metric = await client.metrics.create('314', {
|
|
11
|
+
* evalType: 'ai',
|
|
12
|
+
* name: 'Response Accuracy',
|
|
13
|
+
* outputType: 'boolean',
|
|
14
|
+
* promptTemplate:
|
|
15
|
+
* 'Please evaluate if the following response is factually accurate: {{outputs.response}}',
|
|
16
|
+
* description:
|
|
17
|
+
* 'Evaluates if the response is factually accurate',
|
|
18
|
+
* evalModelName: 'gpt-4o',
|
|
19
|
+
* guidelines:
|
|
20
|
+
* 'Check if the response contains factually correct information',
|
|
21
|
+
* temperature: 0.1,
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
create(projectID: string, body: MetricCreateParams, options?: RequestOptions): APIPromise<Metric>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A Metric defines how to evaluate system outputs against expected results.
|
|
29
|
+
*/
|
|
30
|
+
export type Metric = Metric.AIIntMetric | Metric.HumanIntMetric | Metric.HeuristicIntMetric | Metric.AIBooleanMetric | Metric.HumanBooleanMetric | Metric.HeuristicBooleanMetric;
|
|
31
|
+
export declare namespace Metric {
|
|
32
|
+
/**
|
|
33
|
+
* A Metric with AI evaluation and integer output.
|
|
34
|
+
*/
|
|
35
|
+
interface AIIntMetric {
|
|
36
|
+
/**
|
|
37
|
+
* The ID of the Metric.
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
/**
|
|
41
|
+
* The description of the Metric.
|
|
42
|
+
*/
|
|
43
|
+
description: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* The AI model to use for evaluation.
|
|
46
|
+
*/
|
|
47
|
+
evalModelName: string;
|
|
48
|
+
/**
|
|
49
|
+
* AI-based evaluation type.
|
|
50
|
+
*/
|
|
51
|
+
evalType: 'ai';
|
|
52
|
+
/**
|
|
53
|
+
* Guidelines for AI evaluation on how to score the metric.
|
|
54
|
+
*/
|
|
55
|
+
guidelines: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* The name of the Metric.
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
/**
|
|
61
|
+
* Integer output type.
|
|
62
|
+
*/
|
|
63
|
+
outputType: 'int';
|
|
64
|
+
/**
|
|
65
|
+
* The threshold for determining pass/fail from integer scores (1-5).
|
|
66
|
+
*/
|
|
67
|
+
passingThreshold: number;
|
|
68
|
+
/**
|
|
69
|
+
* The complete prompt template for AI evaluation. Should include placeholders for
|
|
70
|
+
* dynamic content.
|
|
71
|
+
*/
|
|
72
|
+
promptTemplate: string;
|
|
73
|
+
/**
|
|
74
|
+
* The temperature for AI evaluation (0-2).
|
|
75
|
+
*/
|
|
76
|
+
temperature: number;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* A Metric with human evaluation and integer output.
|
|
80
|
+
*/
|
|
81
|
+
interface HumanIntMetric {
|
|
82
|
+
/**
|
|
83
|
+
* The ID of the Metric.
|
|
84
|
+
*/
|
|
85
|
+
id: string;
|
|
86
|
+
/**
|
|
87
|
+
* The description of the Metric.
|
|
88
|
+
*/
|
|
89
|
+
description: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Human-based evaluation type.
|
|
92
|
+
*/
|
|
93
|
+
evalType: 'human';
|
|
94
|
+
/**
|
|
95
|
+
* The name of the Metric.
|
|
96
|
+
*/
|
|
97
|
+
name: string;
|
|
98
|
+
/**
|
|
99
|
+
* Integer output type.
|
|
100
|
+
*/
|
|
101
|
+
outputType: 'int';
|
|
102
|
+
/**
|
|
103
|
+
* The threshold for determining pass/fail from integer scores (1-5).
|
|
104
|
+
*/
|
|
105
|
+
passingThreshold: number;
|
|
106
|
+
/**
|
|
107
|
+
* Guidelines for human evaluators.
|
|
108
|
+
*/
|
|
109
|
+
guidelines?: string;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* A Metric with heuristic evaluation and integer output.
|
|
113
|
+
*/
|
|
114
|
+
interface HeuristicIntMetric {
|
|
115
|
+
/**
|
|
116
|
+
* The ID of the Metric.
|
|
117
|
+
*/
|
|
118
|
+
id: string;
|
|
119
|
+
/**
|
|
120
|
+
* The description of the Metric.
|
|
121
|
+
*/
|
|
122
|
+
description: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* Heuristic-based evaluation type.
|
|
125
|
+
*/
|
|
126
|
+
evalType: 'heuristic';
|
|
127
|
+
/**
|
|
128
|
+
* The name of the Metric.
|
|
129
|
+
*/
|
|
130
|
+
name: string;
|
|
131
|
+
/**
|
|
132
|
+
* Integer output type.
|
|
133
|
+
*/
|
|
134
|
+
outputType: 'int';
|
|
135
|
+
/**
|
|
136
|
+
* The threshold for determining pass/fail from integer scores (1-5).
|
|
137
|
+
*/
|
|
138
|
+
passingThreshold: number;
|
|
139
|
+
/**
|
|
140
|
+
* Optional guidelines for heuristic evaluation logic.
|
|
141
|
+
*/
|
|
142
|
+
guidelines?: string;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* A Metric with AI evaluation and boolean output.
|
|
146
|
+
*/
|
|
147
|
+
interface AIBooleanMetric {
|
|
148
|
+
/**
|
|
149
|
+
* The ID of the Metric.
|
|
150
|
+
*/
|
|
151
|
+
id: string;
|
|
152
|
+
/**
|
|
153
|
+
* The description of the Metric.
|
|
154
|
+
*/
|
|
155
|
+
description: string | null;
|
|
156
|
+
/**
|
|
157
|
+
* The AI model to use for evaluation.
|
|
158
|
+
*/
|
|
159
|
+
evalModelName: string;
|
|
160
|
+
/**
|
|
161
|
+
* AI-based evaluation type.
|
|
162
|
+
*/
|
|
163
|
+
evalType: 'ai';
|
|
164
|
+
/**
|
|
165
|
+
* Guidelines for AI evaluation on how to score the metric.
|
|
166
|
+
*/
|
|
167
|
+
guidelines: string | null;
|
|
168
|
+
/**
|
|
169
|
+
* The name of the Metric.
|
|
170
|
+
*/
|
|
171
|
+
name: string;
|
|
172
|
+
/**
|
|
173
|
+
* Boolean output type.
|
|
174
|
+
*/
|
|
175
|
+
outputType: 'boolean';
|
|
176
|
+
/**
|
|
177
|
+
* The complete prompt template for AI evaluation. Should include placeholders for
|
|
178
|
+
* dynamic content.
|
|
179
|
+
*/
|
|
180
|
+
promptTemplate: string;
|
|
181
|
+
/**
|
|
182
|
+
* The temperature for AI evaluation (0-2).
|
|
183
|
+
*/
|
|
184
|
+
temperature: number;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* A Metric with human evaluation and boolean output.
|
|
188
|
+
*/
|
|
189
|
+
interface HumanBooleanMetric {
|
|
190
|
+
/**
|
|
191
|
+
* The ID of the Metric.
|
|
192
|
+
*/
|
|
193
|
+
id: string;
|
|
194
|
+
/**
|
|
195
|
+
* The description of the Metric.
|
|
196
|
+
*/
|
|
197
|
+
description: string | null;
|
|
198
|
+
/**
|
|
199
|
+
* Human-based evaluation type.
|
|
200
|
+
*/
|
|
201
|
+
evalType: 'human';
|
|
202
|
+
/**
|
|
203
|
+
* The name of the Metric.
|
|
204
|
+
*/
|
|
205
|
+
name: string;
|
|
206
|
+
/**
|
|
207
|
+
* Boolean output type.
|
|
208
|
+
*/
|
|
209
|
+
outputType: 'boolean';
|
|
210
|
+
/**
|
|
211
|
+
* Guidelines for human evaluators.
|
|
212
|
+
*/
|
|
213
|
+
guidelines?: string;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* A Metric with heuristic evaluation and boolean output.
|
|
217
|
+
*/
|
|
218
|
+
interface HeuristicBooleanMetric {
|
|
219
|
+
/**
|
|
220
|
+
* The ID of the Metric.
|
|
221
|
+
*/
|
|
222
|
+
id: string;
|
|
223
|
+
/**
|
|
224
|
+
* The description of the Metric.
|
|
225
|
+
*/
|
|
226
|
+
description: string | null;
|
|
227
|
+
/**
|
|
228
|
+
* Heuristic-based evaluation type.
|
|
229
|
+
*/
|
|
230
|
+
evalType: 'heuristic';
|
|
231
|
+
/**
|
|
232
|
+
* The name of the Metric.
|
|
233
|
+
*/
|
|
234
|
+
name: string;
|
|
235
|
+
/**
|
|
236
|
+
* Boolean output type.
|
|
237
|
+
*/
|
|
238
|
+
outputType: 'boolean';
|
|
239
|
+
/**
|
|
240
|
+
* Optional guidelines for heuristic evaluation logic.
|
|
241
|
+
*/
|
|
242
|
+
guidelines?: string;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
export type MetricCreateParams = MetricCreateParams.AIIntMetric | MetricCreateParams.HumanIntMetric | MetricCreateParams.HeuristicIntMetric | MetricCreateParams.AIBooleanMetric | MetricCreateParams.HumanBooleanMetric | MetricCreateParams.HeuristicBooleanMetric;
|
|
246
|
+
export declare namespace MetricCreateParams {
|
|
247
|
+
interface AIIntMetric {
|
|
248
|
+
/**
|
|
249
|
+
* AI-based evaluation type.
|
|
250
|
+
*/
|
|
251
|
+
evalType: 'ai';
|
|
252
|
+
/**
|
|
253
|
+
* The name of the Metric.
|
|
254
|
+
*/
|
|
255
|
+
name: string;
|
|
256
|
+
/**
|
|
257
|
+
* Integer output type.
|
|
258
|
+
*/
|
|
259
|
+
outputType: 'int';
|
|
260
|
+
/**
|
|
261
|
+
* The complete prompt template for AI evaluation. Should include placeholders for
|
|
262
|
+
* dynamic content.
|
|
263
|
+
*/
|
|
264
|
+
promptTemplate: string;
|
|
265
|
+
/**
|
|
266
|
+
* The description of the Metric.
|
|
267
|
+
*/
|
|
268
|
+
description?: string | null;
|
|
269
|
+
/**
|
|
270
|
+
* The AI model to use for evaluation.
|
|
271
|
+
*/
|
|
272
|
+
evalModelName?: string;
|
|
273
|
+
/**
|
|
274
|
+
* Guidelines for AI evaluation on how to score the metric.
|
|
275
|
+
*/
|
|
276
|
+
guidelines?: string | null;
|
|
277
|
+
/**
|
|
278
|
+
* The threshold for determining pass/fail from integer scores (1-5).
|
|
279
|
+
*/
|
|
280
|
+
passingThreshold?: number;
|
|
281
|
+
/**
|
|
282
|
+
* The temperature for AI evaluation (0-2).
|
|
283
|
+
*/
|
|
284
|
+
temperature?: number;
|
|
285
|
+
}
|
|
286
|
+
interface HumanIntMetric {
|
|
287
|
+
/**
|
|
288
|
+
* Human-based evaluation type.
|
|
289
|
+
*/
|
|
290
|
+
evalType: 'human';
|
|
291
|
+
/**
|
|
292
|
+
* The name of the Metric.
|
|
293
|
+
*/
|
|
294
|
+
name: string;
|
|
295
|
+
/**
|
|
296
|
+
* Integer output type.
|
|
297
|
+
*/
|
|
298
|
+
outputType: 'int';
|
|
299
|
+
/**
|
|
300
|
+
* The description of the Metric.
|
|
301
|
+
*/
|
|
302
|
+
description?: string | null;
|
|
303
|
+
/**
|
|
304
|
+
* Guidelines for human evaluators.
|
|
305
|
+
*/
|
|
306
|
+
guidelines?: string;
|
|
307
|
+
/**
|
|
308
|
+
* The threshold for determining pass/fail from integer scores (1-5).
|
|
309
|
+
*/
|
|
310
|
+
passingThreshold?: number;
|
|
311
|
+
}
|
|
312
|
+
interface HeuristicIntMetric {
|
|
313
|
+
/**
|
|
314
|
+
* Heuristic-based evaluation type.
|
|
315
|
+
*/
|
|
316
|
+
evalType: 'heuristic';
|
|
317
|
+
/**
|
|
318
|
+
* The name of the Metric.
|
|
319
|
+
*/
|
|
320
|
+
name: string;
|
|
321
|
+
/**
|
|
322
|
+
* Integer output type.
|
|
323
|
+
*/
|
|
324
|
+
outputType: 'int';
|
|
325
|
+
/**
|
|
326
|
+
* The description of the Metric.
|
|
327
|
+
*/
|
|
328
|
+
description?: string | null;
|
|
329
|
+
/**
|
|
330
|
+
* Optional guidelines for heuristic evaluation logic.
|
|
331
|
+
*/
|
|
332
|
+
guidelines?: string;
|
|
333
|
+
/**
|
|
334
|
+
* The threshold for determining pass/fail from integer scores (1-5).
|
|
335
|
+
*/
|
|
336
|
+
passingThreshold?: number;
|
|
337
|
+
}
|
|
338
|
+
interface AIBooleanMetric {
|
|
339
|
+
/**
|
|
340
|
+
* AI-based evaluation type.
|
|
341
|
+
*/
|
|
342
|
+
evalType: 'ai';
|
|
343
|
+
/**
|
|
344
|
+
* The name of the Metric.
|
|
345
|
+
*/
|
|
346
|
+
name: string;
|
|
347
|
+
/**
|
|
348
|
+
* Boolean output type.
|
|
349
|
+
*/
|
|
350
|
+
outputType: 'boolean';
|
|
351
|
+
/**
|
|
352
|
+
* The complete prompt template for AI evaluation. Should include placeholders for
|
|
353
|
+
* dynamic content.
|
|
354
|
+
*/
|
|
355
|
+
promptTemplate: string;
|
|
356
|
+
/**
|
|
357
|
+
* The description of the Metric.
|
|
358
|
+
*/
|
|
359
|
+
description?: string | null;
|
|
360
|
+
/**
|
|
361
|
+
* The AI model to use for evaluation.
|
|
362
|
+
*/
|
|
363
|
+
evalModelName?: string;
|
|
364
|
+
/**
|
|
365
|
+
* Guidelines for AI evaluation on how to score the metric.
|
|
366
|
+
*/
|
|
367
|
+
guidelines?: string | null;
|
|
368
|
+
/**
|
|
369
|
+
* The temperature for AI evaluation (0-2).
|
|
370
|
+
*/
|
|
371
|
+
temperature?: number;
|
|
372
|
+
}
|
|
373
|
+
interface HumanBooleanMetric {
|
|
374
|
+
/**
|
|
375
|
+
* Human-based evaluation type.
|
|
376
|
+
*/
|
|
377
|
+
evalType: 'human';
|
|
378
|
+
/**
|
|
379
|
+
* The name of the Metric.
|
|
380
|
+
*/
|
|
381
|
+
name: string;
|
|
382
|
+
/**
|
|
383
|
+
* Boolean output type.
|
|
384
|
+
*/
|
|
385
|
+
outputType: 'boolean';
|
|
386
|
+
/**
|
|
387
|
+
* The description of the Metric.
|
|
388
|
+
*/
|
|
389
|
+
description?: string | null;
|
|
390
|
+
/**
|
|
391
|
+
* Guidelines for human evaluators.
|
|
392
|
+
*/
|
|
393
|
+
guidelines?: string;
|
|
394
|
+
}
|
|
395
|
+
interface HeuristicBooleanMetric {
|
|
396
|
+
/**
|
|
397
|
+
* Heuristic-based evaluation type.
|
|
398
|
+
*/
|
|
399
|
+
evalType: 'heuristic';
|
|
400
|
+
/**
|
|
401
|
+
* The name of the Metric.
|
|
402
|
+
*/
|
|
403
|
+
name: string;
|
|
404
|
+
/**
|
|
405
|
+
* Boolean output type.
|
|
406
|
+
*/
|
|
407
|
+
outputType: 'boolean';
|
|
408
|
+
/**
|
|
409
|
+
* The description of the Metric.
|
|
410
|
+
*/
|
|
411
|
+
description?: string | null;
|
|
412
|
+
/**
|
|
413
|
+
* Optional guidelines for heuristic evaluation logic.
|
|
414
|
+
*/
|
|
415
|
+
guidelines?: string;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
export declare namespace Metrics {
|
|
419
|
+
export { type Metric as Metric, type MetricCreateParams as MetricCreateParams };
|
|
420
|
+
}
|
|
421
|
+
//# sourceMappingURL=metrics.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metrics.d.mts","sourceRoot":"","sources":["../src/resources/metrics.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAGlG;AAED;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,MAAM,CAAC,WAAW,GAClB,MAAM,CAAC,cAAc,GACrB,MAAM,CAAC,kBAAkB,GACzB,MAAM,CAAC,eAAe,GACtB,MAAM,CAAC,kBAAkB,GACzB,MAAM,CAAC,sBAAsB,CAAC;AAElC,yBAAiB,MAAM,CAAC;IACtB;;OAEG;IACH,UAAiB,WAAW;QAC1B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,QAAQ,EAAE,IAAI,CAAC;QAEf;;WAEG;QACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B;;WAE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