peerbench 0.0.1 → 0.0.2-alpha-dev.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.
Files changed (63) hide show
  1. package/README.md +332 -2
  2. package/dist/abstract-Dec9Sc5O.d.ts +12 -0
  3. package/dist/aggregators/index.d.ts +67 -0
  4. package/dist/aggregators/index.js +46 -0
  5. package/dist/aggregators/index.js.map +1 -0
  6. package/dist/benchmarks/index.d.ts +1041 -0
  7. package/dist/benchmarks/index.js +458 -0
  8. package/dist/benchmarks/index.js.map +1 -0
  9. package/dist/chunk-4UBK6452.js +128 -0
  10. package/dist/chunk-4UBK6452.js.map +1 -0
  11. package/dist/chunk-ERALDEZY.js +112 -0
  12. package/dist/chunk-ERALDEZY.js.map +1 -0
  13. package/dist/chunk-HMQYGCKI.js +11 -0
  14. package/dist/chunk-HMQYGCKI.js.map +1 -0
  15. package/dist/chunk-NUEOE3K5.js +8 -0
  16. package/dist/chunk-NUEOE3K5.js.map +1 -0
  17. package/dist/chunk-OQE6TQXZ.js +42 -0
  18. package/dist/chunk-OQE6TQXZ.js.map +1 -0
  19. package/dist/chunk-PZ5AY32C.js +10 -0
  20. package/dist/chunk-PZ5AY32C.js.map +1 -0
  21. package/dist/chunk-Q6GSOHOP.js +44 -0
  22. package/dist/chunk-Q6GSOHOP.js.map +1 -0
  23. package/dist/chunk-QY5MPNNB.js +28 -0
  24. package/dist/chunk-QY5MPNNB.js.map +1 -0
  25. package/dist/chunk-R76XA2K6.js +229 -0
  26. package/dist/chunk-R76XA2K6.js.map +1 -0
  27. package/dist/chunk-TRNCF2BG.js +35 -0
  28. package/dist/chunk-TRNCF2BG.js.map +1 -0
  29. package/dist/chunk-UHHHSYVE.js +11 -0
  30. package/dist/chunk-UHHHSYVE.js.map +1 -0
  31. package/dist/chunk-YY33MNMV.js +65 -0
  32. package/dist/chunk-YY33MNMV.js.map +1 -0
  33. package/dist/chunk-ZEWI24CV.js +365 -0
  34. package/dist/chunk-ZEWI24CV.js.map +1 -0
  35. package/dist/index-BAioQhp2.d.ts +27 -0
  36. package/dist/index.d.ts +59 -3841
  37. package/dist/index.js +31 -3545
  38. package/dist/index.js.map +1 -1
  39. package/dist/json-file-ZwzLUbje.d.ts +73 -0
  40. package/dist/llm-DNj_tp2T.d.ts +22 -0
  41. package/dist/llm-judge-QThCZ9TQ.d.ts +67 -0
  42. package/dist/provider-BDjGp2y-.d.ts +10 -0
  43. package/dist/providers/index.d.ts +69 -0
  44. package/dist/providers/index.js +18 -0
  45. package/dist/providers/index.js.map +1 -0
  46. package/dist/rate-limiter-CSmVIRsM.d.ts +60 -0
  47. package/dist/schemas/extensions/index.d.ts +28 -0
  48. package/dist/schemas/extensions/index.js +19 -0
  49. package/dist/schemas/extensions/index.js.map +1 -0
  50. package/dist/schemas/index.d.ts +200 -0
  51. package/dist/schemas/index.js +24 -0
  52. package/dist/schemas/index.js.map +1 -0
  53. package/dist/schemas/llm/index.d.ts +116 -0
  54. package/dist/schemas/llm/index.js +15 -0
  55. package/dist/schemas/llm/index.js.map +1 -0
  56. package/dist/scorers/index.d.ts +64 -0
  57. package/dist/scorers/index.js +16 -0
  58. package/dist/scorers/index.js.map +1 -0
  59. package/dist/storages/index.d.ts +69 -0
  60. package/dist/storages/index.js +98 -0
  61. package/dist/storages/index.js.map +1 -0
  62. package/package.json +46 -22
  63. package/LICENSE +0 -21
@@ -0,0 +1,1041 @@
1
+ import { I as IdGenerator } from '../index-BAioQhp2.js';
2
+ import { z } from 'zod';
3
+ import { A as AbstractLLMProvider } from '../llm-DNj_tp2T.js';
4
+ import { a as MCQScorer, L as LLMAsAJudgeScorer } from '../llm-judge-QThCZ9TQ.js';
5
+ import { J as JSONFileStorage } from '../json-file-ZwzLUbje.js';
6
+ import '../provider-BDjGp2y-.js';
7
+ import '../abstract-Dec9Sc5O.js';
8
+ import 'openai/resources/shared';
9
+ import 'openai/resources/chat/completions';
10
+ import '../rate-limiter-CSmVIRsM.js';
11
+ import 'node:fs/promises';
12
+
13
+ declare const MCQKind: "llm/mcq";
14
+ declare const MCQTestCaseSchemaV1: z.ZodObject<Omit<{
15
+ id: z.ZodString;
16
+ namespace: z.ZodString;
17
+ schemaVersion: z.ZodNumber;
18
+ kind: z.ZodString;
19
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
20
+ }, "kind" | "namespace" | "schemaVersion"> & {
21
+ question: z.ZodString;
22
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
23
+ correctAnswerKeys: z.ZodArray<z.ZodString>;
24
+ } & {
25
+ namespace: z.ZodLiteral<"peerbench.ai">;
26
+ kind: z.ZodLiteral<"llm/mcq.tc">;
27
+ schemaVersion: z.ZodLiteral<1>;
28
+ }, z.core.$strip> & {
29
+ new: (input: Omit<{
30
+ id: string;
31
+ question: string;
32
+ options: Record<string, string>;
33
+ correctAnswerKeys: string[];
34
+ namespace: "peerbench.ai";
35
+ kind: "llm/mcq.tc";
36
+ schemaVersion: 1;
37
+ metadata?: Record<string, unknown> | undefined;
38
+ }, "kind" | "namespace" | "schemaVersion">) => {
39
+ id: string;
40
+ question: string;
41
+ options: Record<string, string>;
42
+ correctAnswerKeys: string[];
43
+ namespace: "peerbench.ai";
44
+ kind: "llm/mcq.tc";
45
+ schemaVersion: 1;
46
+ metadata?: Record<string, unknown> | undefined;
47
+ };
48
+ newWithId(input: Omit<{
49
+ id: string;
50
+ question: string;
51
+ options: Record<string, string>;
52
+ correctAnswerKeys: string[];
53
+ namespace: "peerbench.ai";
54
+ kind: "llm/mcq.tc";
55
+ schemaVersion: 1;
56
+ metadata?: Record<string, unknown> | undefined;
57
+ }, "id" | "kind" | "namespace" | "schemaVersion">, generator: IdGenerator): Promise<{
58
+ id: string;
59
+ question: string;
60
+ options: Record<string, string>;
61
+ correctAnswerKeys: string[];
62
+ namespace: "peerbench.ai";
63
+ kind: "llm/mcq.tc";
64
+ schemaVersion: 1;
65
+ metadata?: Record<string, unknown> | undefined;
66
+ }>;
67
+ };
68
+ type MCQTestCaseV1 = z.infer<typeof MCQTestCaseSchemaV1>;
69
+ declare const MCQResponseSchemaV1: z.ZodObject<Omit<{
70
+ id: z.ZodString;
71
+ namespace: z.ZodString;
72
+ schemaVersion: z.ZodNumber;
73
+ kind: z.ZodString;
74
+ startedAt: z.ZodNumber;
75
+ completedAt: z.ZodNumber;
76
+ testCaseId: z.ZodString;
77
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
78
+ }, "kind" | "namespace" | "schemaVersion"> & {
79
+ data: z.ZodString;
80
+ modelSlug: z.ZodString;
81
+ provider: z.ZodString;
82
+ systemPromptId: z.ZodOptional<z.ZodString>;
83
+ inputTokensUsed: z.ZodOptional<z.ZodNumber>;
84
+ outputTokensUsed: z.ZodOptional<z.ZodNumber>;
85
+ inputCost: z.ZodOptional<z.ZodString>;
86
+ outputCost: z.ZodOptional<z.ZodString>;
87
+ } & {
88
+ namespace: z.ZodLiteral<"peerbench.ai">;
89
+ kind: z.ZodLiteral<"llm/mcq.rs">;
90
+ schemaVersion: z.ZodLiteral<1>;
91
+ }, z.core.$strip> & {
92
+ new: (input: Omit<{
93
+ startedAt: number;
94
+ completedAt: number;
95
+ id: string;
96
+ testCaseId: string;
97
+ data: string;
98
+ modelSlug: string;
99
+ provider: string;
100
+ namespace: "peerbench.ai";
101
+ kind: "llm/mcq.rs";
102
+ schemaVersion: 1;
103
+ metadata?: Record<string, unknown> | undefined;
104
+ systemPromptId?: string | undefined;
105
+ inputTokensUsed?: number | undefined;
106
+ outputTokensUsed?: number | undefined;
107
+ inputCost?: string | undefined;
108
+ outputCost?: string | undefined;
109
+ }, "kind" | "namespace" | "schemaVersion">) => {
110
+ startedAt: number;
111
+ completedAt: number;
112
+ id: string;
113
+ testCaseId: string;
114
+ data: string;
115
+ modelSlug: string;
116
+ provider: string;
117
+ namespace: "peerbench.ai";
118
+ kind: "llm/mcq.rs";
119
+ schemaVersion: 1;
120
+ metadata?: Record<string, unknown> | undefined;
121
+ systemPromptId?: string | undefined;
122
+ inputTokensUsed?: number | undefined;
123
+ outputTokensUsed?: number | undefined;
124
+ inputCost?: string | undefined;
125
+ outputCost?: string | undefined;
126
+ };
127
+ newWithId(input: Omit<{
128
+ startedAt: number;
129
+ completedAt: number;
130
+ id: string;
131
+ testCaseId: string;
132
+ data: string;
133
+ modelSlug: string;
134
+ provider: string;
135
+ namespace: "peerbench.ai";
136
+ kind: "llm/mcq.rs";
137
+ schemaVersion: 1;
138
+ metadata?: Record<string, unknown> | undefined;
139
+ systemPromptId?: string | undefined;
140
+ inputTokensUsed?: number | undefined;
141
+ outputTokensUsed?: number | undefined;
142
+ inputCost?: string | undefined;
143
+ outputCost?: string | undefined;
144
+ }, "id" | "kind" | "namespace" | "schemaVersion">, generator: IdGenerator): Promise<{
145
+ startedAt: number;
146
+ completedAt: number;
147
+ id: string;
148
+ testCaseId: string;
149
+ data: string;
150
+ modelSlug: string;
151
+ provider: string;
152
+ namespace: "peerbench.ai";
153
+ kind: "llm/mcq.rs";
154
+ schemaVersion: 1;
155
+ metadata?: Record<string, unknown> | undefined;
156
+ systemPromptId?: string | undefined;
157
+ inputTokensUsed?: number | undefined;
158
+ outputTokensUsed?: number | undefined;
159
+ inputCost?: string | undefined;
160
+ outputCost?: string | undefined;
161
+ }>;
162
+ };
163
+ type MCQResponseV1 = z.infer<typeof MCQResponseSchemaV1>;
164
+ declare const MCQScoreSchemaV1: z.ZodObject<Omit<{
165
+ id: z.ZodString;
166
+ namespace: z.ZodString;
167
+ kind: z.ZodString;
168
+ schemaVersion: z.ZodNumber;
169
+ value: z.ZodNumber;
170
+ responseId: z.ZodString;
171
+ explanation: z.ZodOptional<z.ZodString>;
172
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
173
+ scoringMethod: z.ZodEnum<{
174
+ readonly ai: "ai";
175
+ readonly human: "human";
176
+ readonly algo: "algo";
177
+ }>;
178
+ }, "kind" | "namespace" | "schemaVersion"> & {
179
+ extractedAnswers: z.ZodArray<z.ZodString>;
180
+ scorerAISystemPrompt: z.ZodOptional<z.ZodString>;
181
+ scorerAISystemPromptId: z.ZodOptional<z.ZodString>;
182
+ scorerAIProvider: z.ZodOptional<z.ZodString>;
183
+ scorerAIModelSlug: z.ZodOptional<z.ZodString>;
184
+ scorerAIInputTokensUsed: z.ZodOptional<z.ZodNumber>;
185
+ scorerAIOutputTokensUsed: z.ZodOptional<z.ZodNumber>;
186
+ scorerAIInputCost: z.ZodOptional<z.ZodString>;
187
+ scorerAIOutputCost: z.ZodOptional<z.ZodString>;
188
+ } & {
189
+ namespace: z.ZodLiteral<"peerbench.ai">;
190
+ kind: z.ZodLiteral<"llm/mcq.sc">;
191
+ schemaVersion: z.ZodLiteral<1>;
192
+ }, z.core.$strip> & {
193
+ new: (input: Omit<{
194
+ id: string;
195
+ value: number;
196
+ responseId: string;
197
+ scoringMethod: "ai" | "human" | "algo";
198
+ extractedAnswers: string[];
199
+ namespace: "peerbench.ai";
200
+ kind: "llm/mcq.sc";
201
+ schemaVersion: 1;
202
+ explanation?: string | undefined;
203
+ metadata?: Record<string, unknown> | undefined;
204
+ scorerAISystemPrompt?: string | undefined;
205
+ scorerAISystemPromptId?: string | undefined;
206
+ scorerAIProvider?: string | undefined;
207
+ scorerAIModelSlug?: string | undefined;
208
+ scorerAIInputTokensUsed?: number | undefined;
209
+ scorerAIOutputTokensUsed?: number | undefined;
210
+ scorerAIInputCost?: string | undefined;
211
+ scorerAIOutputCost?: string | undefined;
212
+ }, "kind" | "namespace" | "schemaVersion">) => {
213
+ id: string;
214
+ value: number;
215
+ responseId: string;
216
+ scoringMethod: "ai" | "human" | "algo";
217
+ extractedAnswers: string[];
218
+ namespace: "peerbench.ai";
219
+ kind: "llm/mcq.sc";
220
+ schemaVersion: 1;
221
+ explanation?: string | undefined;
222
+ metadata?: Record<string, unknown> | undefined;
223
+ scorerAISystemPrompt?: string | undefined;
224
+ scorerAISystemPromptId?: string | undefined;
225
+ scorerAIProvider?: string | undefined;
226
+ scorerAIModelSlug?: string | undefined;
227
+ scorerAIInputTokensUsed?: number | undefined;
228
+ scorerAIOutputTokensUsed?: number | undefined;
229
+ scorerAIInputCost?: string | undefined;
230
+ scorerAIOutputCost?: string | undefined;
231
+ };
232
+ newWithId(input: Omit<{
233
+ id: string;
234
+ value: number;
235
+ responseId: string;
236
+ scoringMethod: "ai" | "human" | "algo";
237
+ extractedAnswers: string[];
238
+ namespace: "peerbench.ai";
239
+ kind: "llm/mcq.sc";
240
+ schemaVersion: 1;
241
+ explanation?: string | undefined;
242
+ metadata?: Record<string, unknown> | undefined;
243
+ scorerAISystemPrompt?: string | undefined;
244
+ scorerAISystemPromptId?: string | undefined;
245
+ scorerAIProvider?: string | undefined;
246
+ scorerAIModelSlug?: string | undefined;
247
+ scorerAIInputTokensUsed?: number | undefined;
248
+ scorerAIOutputTokensUsed?: number | undefined;
249
+ scorerAIInputCost?: string | undefined;
250
+ scorerAIOutputCost?: string | undefined;
251
+ }, "id" | "kind" | "namespace" | "schemaVersion">, generator: IdGenerator): Promise<{
252
+ id: string;
253
+ value: number;
254
+ responseId: string;
255
+ scoringMethod: "ai" | "human" | "algo";
256
+ extractedAnswers: string[];
257
+ namespace: "peerbench.ai";
258
+ kind: "llm/mcq.sc";
259
+ schemaVersion: 1;
260
+ explanation?: string | undefined;
261
+ metadata?: Record<string, unknown> | undefined;
262
+ scorerAISystemPrompt?: string | undefined;
263
+ scorerAISystemPromptId?: string | undefined;
264
+ scorerAIProvider?: string | undefined;
265
+ scorerAIModelSlug?: string | undefined;
266
+ scorerAIInputTokensUsed?: number | undefined;
267
+ scorerAIOutputTokensUsed?: number | undefined;
268
+ scorerAIInputCost?: string | undefined;
269
+ scorerAIOutputCost?: string | undefined;
270
+ }>;
271
+ };
272
+ type MCQScoreV1 = z.infer<typeof MCQScoreSchemaV1>;
273
+
274
+ declare const MultiTurnKind: "llm/multi-turn";
275
+ declare const MultiTurnTestCaseSchemaV1: z.ZodObject<Omit<{
276
+ id: z.ZodString;
277
+ namespace: z.ZodString;
278
+ schemaVersion: z.ZodNumber;
279
+ kind: z.ZodString;
280
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
281
+ }, "kind" | "namespace" | "schemaVersion"> & {
282
+ messages: z.ZodArray<z.ZodObject<{
283
+ role: z.ZodString;
284
+ content: z.ZodString;
285
+ goodAnswers: z.ZodOptional<z.ZodArray<z.ZodString>>;
286
+ badAnswers: z.ZodOptional<z.ZodArray<z.ZodString>>;
287
+ }, z.core.$strip>>;
288
+ maxTurns: z.ZodOptional<z.ZodNumber>;
289
+ expectedOutcome: z.ZodOptional<z.ZodString>;
290
+ } & {
291
+ namespace: z.ZodLiteral<"peerbench.ai">;
292
+ kind: z.ZodLiteral<"llm/multi-turn.tc">;
293
+ schemaVersion: z.ZodLiteral<1>;
294
+ }, z.core.$strip> & {
295
+ new: (input: Omit<{
296
+ id: string;
297
+ messages: {
298
+ role: string;
299
+ content: string;
300
+ goodAnswers?: string[] | undefined;
301
+ badAnswers?: string[] | undefined;
302
+ }[];
303
+ namespace: "peerbench.ai";
304
+ kind: "llm/multi-turn.tc";
305
+ schemaVersion: 1;
306
+ metadata?: Record<string, unknown> | undefined;
307
+ maxTurns?: number | undefined;
308
+ expectedOutcome?: string | undefined;
309
+ }, "kind" | "namespace" | "schemaVersion">) => {
310
+ id: string;
311
+ messages: {
312
+ role: string;
313
+ content: string;
314
+ goodAnswers?: string[] | undefined;
315
+ badAnswers?: string[] | undefined;
316
+ }[];
317
+ namespace: "peerbench.ai";
318
+ kind: "llm/multi-turn.tc";
319
+ schemaVersion: 1;
320
+ metadata?: Record<string, unknown> | undefined;
321
+ maxTurns?: number | undefined;
322
+ expectedOutcome?: string | undefined;
323
+ };
324
+ newWithId(input: Omit<{
325
+ id: string;
326
+ messages: {
327
+ role: string;
328
+ content: string;
329
+ goodAnswers?: string[] | undefined;
330
+ badAnswers?: string[] | undefined;
331
+ }[];
332
+ namespace: "peerbench.ai";
333
+ kind: "llm/multi-turn.tc";
334
+ schemaVersion: 1;
335
+ metadata?: Record<string, unknown> | undefined;
336
+ maxTurns?: number | undefined;
337
+ expectedOutcome?: string | undefined;
338
+ }, "id" | "kind" | "namespace" | "schemaVersion">, generator: IdGenerator): Promise<{
339
+ id: string;
340
+ messages: {
341
+ role: string;
342
+ content: string;
343
+ goodAnswers?: string[] | undefined;
344
+ badAnswers?: string[] | undefined;
345
+ }[];
346
+ namespace: "peerbench.ai";
347
+ kind: "llm/multi-turn.tc";
348
+ schemaVersion: 1;
349
+ metadata?: Record<string, unknown> | undefined;
350
+ maxTurns?: number | undefined;
351
+ expectedOutcome?: string | undefined;
352
+ }>;
353
+ };
354
+ type MultiTurnTestCaseV1 = z.infer<typeof MultiTurnTestCaseSchemaV1>;
355
+ declare const MultiTurnResponseSchemaV1: z.ZodObject<Omit<{
356
+ id: z.ZodString;
357
+ namespace: z.ZodString;
358
+ schemaVersion: z.ZodNumber;
359
+ kind: z.ZodString;
360
+ startedAt: z.ZodNumber;
361
+ completedAt: z.ZodNumber;
362
+ testCaseId: z.ZodString;
363
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
364
+ }, "kind" | "namespace" | "schemaVersion"> & {
365
+ replies: z.ZodArray<z.ZodObject<{
366
+ messageIndex: z.ZodNumber;
367
+ startedAt: z.ZodNumber;
368
+ completedAt: z.ZodNumber;
369
+ data: z.ZodString;
370
+ inputTokensUsed: z.ZodOptional<z.ZodNumber>;
371
+ outputTokensUsed: z.ZodOptional<z.ZodNumber>;
372
+ inputCost: z.ZodOptional<z.ZodString>;
373
+ outputCost: z.ZodOptional<z.ZodString>;
374
+ }, z.core.$strip>>;
375
+ data: z.ZodString;
376
+ modelSlug: z.ZodString;
377
+ provider: z.ZodString;
378
+ systemPromptId: z.ZodOptional<z.ZodString>;
379
+ inputTokensUsed: z.ZodOptional<z.ZodNumber>;
380
+ outputTokensUsed: z.ZodOptional<z.ZodNumber>;
381
+ inputCost: z.ZodOptional<z.ZodString>;
382
+ outputCost: z.ZodOptional<z.ZodString>;
383
+ } & {
384
+ namespace: z.ZodLiteral<"peerbench.ai">;
385
+ kind: z.ZodLiteral<"llm/multi-turn.rs">;
386
+ schemaVersion: z.ZodLiteral<1>;
387
+ }, z.core.$strip> & {
388
+ new: (input: Omit<{
389
+ startedAt: number;
390
+ completedAt: number;
391
+ id: string;
392
+ testCaseId: string;
393
+ replies: {
394
+ messageIndex: number;
395
+ startedAt: number;
396
+ completedAt: number;
397
+ data: string;
398
+ inputTokensUsed?: number | undefined;
399
+ outputTokensUsed?: number | undefined;
400
+ inputCost?: string | undefined;
401
+ outputCost?: string | undefined;
402
+ }[];
403
+ data: string;
404
+ modelSlug: string;
405
+ provider: string;
406
+ namespace: "peerbench.ai";
407
+ kind: "llm/multi-turn.rs";
408
+ schemaVersion: 1;
409
+ metadata?: Record<string, unknown> | undefined;
410
+ systemPromptId?: string | undefined;
411
+ inputTokensUsed?: number | undefined;
412
+ outputTokensUsed?: number | undefined;
413
+ inputCost?: string | undefined;
414
+ outputCost?: string | undefined;
415
+ }, "kind" | "namespace" | "schemaVersion">) => {
416
+ startedAt: number;
417
+ completedAt: number;
418
+ id: string;
419
+ testCaseId: string;
420
+ replies: {
421
+ messageIndex: number;
422
+ startedAt: number;
423
+ completedAt: number;
424
+ data: string;
425
+ inputTokensUsed?: number | undefined;
426
+ outputTokensUsed?: number | undefined;
427
+ inputCost?: string | undefined;
428
+ outputCost?: string | undefined;
429
+ }[];
430
+ data: string;
431
+ modelSlug: string;
432
+ provider: string;
433
+ namespace: "peerbench.ai";
434
+ kind: "llm/multi-turn.rs";
435
+ schemaVersion: 1;
436
+ metadata?: Record<string, unknown> | undefined;
437
+ systemPromptId?: string | undefined;
438
+ inputTokensUsed?: number | undefined;
439
+ outputTokensUsed?: number | undefined;
440
+ inputCost?: string | undefined;
441
+ outputCost?: string | undefined;
442
+ };
443
+ newWithId(input: Omit<{
444
+ startedAt: number;
445
+ completedAt: number;
446
+ id: string;
447
+ testCaseId: string;
448
+ replies: {
449
+ messageIndex: number;
450
+ startedAt: number;
451
+ completedAt: number;
452
+ data: string;
453
+ inputTokensUsed?: number | undefined;
454
+ outputTokensUsed?: number | undefined;
455
+ inputCost?: string | undefined;
456
+ outputCost?: string | undefined;
457
+ }[];
458
+ data: string;
459
+ modelSlug: string;
460
+ provider: string;
461
+ namespace: "peerbench.ai";
462
+ kind: "llm/multi-turn.rs";
463
+ schemaVersion: 1;
464
+ metadata?: Record<string, unknown> | undefined;
465
+ systemPromptId?: string | undefined;
466
+ inputTokensUsed?: number | undefined;
467
+ outputTokensUsed?: number | undefined;
468
+ inputCost?: string | undefined;
469
+ outputCost?: string | undefined;
470
+ }, "id" | "kind" | "namespace" | "schemaVersion">, generator: IdGenerator): Promise<{
471
+ startedAt: number;
472
+ completedAt: number;
473
+ id: string;
474
+ testCaseId: string;
475
+ replies: {
476
+ messageIndex: number;
477
+ startedAt: number;
478
+ completedAt: number;
479
+ data: string;
480
+ inputTokensUsed?: number | undefined;
481
+ outputTokensUsed?: number | undefined;
482
+ inputCost?: string | undefined;
483
+ outputCost?: string | undefined;
484
+ }[];
485
+ data: string;
486
+ modelSlug: string;
487
+ provider: string;
488
+ namespace: "peerbench.ai";
489
+ kind: "llm/multi-turn.rs";
490
+ schemaVersion: 1;
491
+ metadata?: Record<string, unknown> | undefined;
492
+ systemPromptId?: string | undefined;
493
+ inputTokensUsed?: number | undefined;
494
+ outputTokensUsed?: number | undefined;
495
+ inputCost?: string | undefined;
496
+ outputCost?: string | undefined;
497
+ }>;
498
+ };
499
+ type MultiTurnResponseV1 = z.infer<typeof MultiTurnResponseSchemaV1>;
500
+ declare const MultiTurnScoreSchemaV1: z.ZodObject<Omit<{
501
+ id: z.ZodString;
502
+ namespace: z.ZodString;
503
+ kind: z.ZodString;
504
+ schemaVersion: z.ZodNumber;
505
+ value: z.ZodNumber;
506
+ responseId: z.ZodString;
507
+ explanation: z.ZodOptional<z.ZodString>;
508
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
509
+ scoringMethod: z.ZodEnum<{
510
+ readonly ai: "ai";
511
+ readonly human: "human";
512
+ readonly algo: "algo";
513
+ }>;
514
+ }, "kind" | "namespace" | "schemaVersion"> & {
515
+ individualScores: z.ZodArray<z.ZodObject<{
516
+ replyIndex: z.ZodNumber;
517
+ value: z.ZodNumber;
518
+ }, z.core.$strip>>;
519
+ scorerAISystemPrompt: z.ZodOptional<z.ZodString>;
520
+ scorerAISystemPromptId: z.ZodOptional<z.ZodString>;
521
+ scorerAIProvider: z.ZodOptional<z.ZodString>;
522
+ scorerAIModelSlug: z.ZodOptional<z.ZodString>;
523
+ scorerAIInputTokensUsed: z.ZodOptional<z.ZodNumber>;
524
+ scorerAIOutputTokensUsed: z.ZodOptional<z.ZodNumber>;
525
+ scorerAIInputCost: z.ZodOptional<z.ZodString>;
526
+ scorerAIOutputCost: z.ZodOptional<z.ZodString>;
527
+ } & {
528
+ namespace: z.ZodLiteral<"peerbench.ai">;
529
+ kind: z.ZodLiteral<"llm/multi-turn.sc">;
530
+ schemaVersion: z.ZodLiteral<1>;
531
+ }, z.core.$strip> & {
532
+ new: (input: Omit<{
533
+ id: string;
534
+ value: number;
535
+ responseId: string;
536
+ scoringMethod: "ai" | "human" | "algo";
537
+ individualScores: {
538
+ replyIndex: number;
539
+ value: number;
540
+ }[];
541
+ namespace: "peerbench.ai";
542
+ kind: "llm/multi-turn.sc";
543
+ schemaVersion: 1;
544
+ explanation?: string | undefined;
545
+ metadata?: Record<string, unknown> | undefined;
546
+ scorerAISystemPrompt?: string | undefined;
547
+ scorerAISystemPromptId?: string | undefined;
548
+ scorerAIProvider?: string | undefined;
549
+ scorerAIModelSlug?: string | undefined;
550
+ scorerAIInputTokensUsed?: number | undefined;
551
+ scorerAIOutputTokensUsed?: number | undefined;
552
+ scorerAIInputCost?: string | undefined;
553
+ scorerAIOutputCost?: string | undefined;
554
+ }, "kind" | "namespace" | "schemaVersion">) => {
555
+ id: string;
556
+ value: number;
557
+ responseId: string;
558
+ scoringMethod: "ai" | "human" | "algo";
559
+ individualScores: {
560
+ replyIndex: number;
561
+ value: number;
562
+ }[];
563
+ namespace: "peerbench.ai";
564
+ kind: "llm/multi-turn.sc";
565
+ schemaVersion: 1;
566
+ explanation?: string | undefined;
567
+ metadata?: Record<string, unknown> | undefined;
568
+ scorerAISystemPrompt?: string | undefined;
569
+ scorerAISystemPromptId?: string | undefined;
570
+ scorerAIProvider?: string | undefined;
571
+ scorerAIModelSlug?: string | undefined;
572
+ scorerAIInputTokensUsed?: number | undefined;
573
+ scorerAIOutputTokensUsed?: number | undefined;
574
+ scorerAIInputCost?: string | undefined;
575
+ scorerAIOutputCost?: string | undefined;
576
+ };
577
+ newWithId(input: Omit<{
578
+ id: string;
579
+ value: number;
580
+ responseId: string;
581
+ scoringMethod: "ai" | "human" | "algo";
582
+ individualScores: {
583
+ replyIndex: number;
584
+ value: number;
585
+ }[];
586
+ namespace: "peerbench.ai";
587
+ kind: "llm/multi-turn.sc";
588
+ schemaVersion: 1;
589
+ explanation?: string | undefined;
590
+ metadata?: Record<string, unknown> | undefined;
591
+ scorerAISystemPrompt?: string | undefined;
592
+ scorerAISystemPromptId?: string | undefined;
593
+ scorerAIProvider?: string | undefined;
594
+ scorerAIModelSlug?: string | undefined;
595
+ scorerAIInputTokensUsed?: number | undefined;
596
+ scorerAIOutputTokensUsed?: number | undefined;
597
+ scorerAIInputCost?: string | undefined;
598
+ scorerAIOutputCost?: string | undefined;
599
+ }, "id" | "kind" | "namespace" | "schemaVersion">, generator: IdGenerator): Promise<{
600
+ id: string;
601
+ value: number;
602
+ responseId: string;
603
+ scoringMethod: "ai" | "human" | "algo";
604
+ individualScores: {
605
+ replyIndex: number;
606
+ value: number;
607
+ }[];
608
+ namespace: "peerbench.ai";
609
+ kind: "llm/multi-turn.sc";
610
+ schemaVersion: 1;
611
+ explanation?: string | undefined;
612
+ metadata?: Record<string, unknown> | undefined;
613
+ scorerAISystemPrompt?: string | undefined;
614
+ scorerAISystemPromptId?: string | undefined;
615
+ scorerAIProvider?: string | undefined;
616
+ scorerAIModelSlug?: string | undefined;
617
+ scorerAIInputTokensUsed?: number | undefined;
618
+ scorerAIOutputTokensUsed?: number | undefined;
619
+ scorerAIInputCost?: string | undefined;
620
+ scorerAIOutputCost?: string | undefined;
621
+ }>;
622
+ };
623
+ type MultiTurnScoreV1 = z.infer<typeof MultiTurnScoreSchemaV1>;
624
+
625
+ declare const QAKind: "llm/qa";
626
+ declare const QATestCaseSchemaV1: z.ZodObject<Omit<{
627
+ id: z.ZodString;
628
+ namespace: z.ZodString;
629
+ schemaVersion: z.ZodNumber;
630
+ kind: z.ZodString;
631
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
632
+ }, "kind" | "namespace" | "schemaVersion"> & {
633
+ question: z.ZodString;
634
+ goodAnswers: z.ZodArray<z.ZodString>;
635
+ badAnswers: z.ZodArray<z.ZodString>;
636
+ } & {
637
+ namespace: z.ZodLiteral<"peerbench.ai">;
638
+ kind: z.ZodLiteral<"llm/qa.tc">;
639
+ schemaVersion: z.ZodLiteral<1>;
640
+ }, z.core.$strip> & {
641
+ new: (input: Omit<{
642
+ id: string;
643
+ question: string;
644
+ goodAnswers: string[];
645
+ badAnswers: string[];
646
+ namespace: "peerbench.ai";
647
+ kind: "llm/qa.tc";
648
+ schemaVersion: 1;
649
+ metadata?: Record<string, unknown> | undefined;
650
+ }, "kind" | "namespace" | "schemaVersion">) => {
651
+ id: string;
652
+ question: string;
653
+ goodAnswers: string[];
654
+ badAnswers: string[];
655
+ namespace: "peerbench.ai";
656
+ kind: "llm/qa.tc";
657
+ schemaVersion: 1;
658
+ metadata?: Record<string, unknown> | undefined;
659
+ };
660
+ newWithId(input: Omit<{
661
+ id: string;
662
+ question: string;
663
+ goodAnswers: string[];
664
+ badAnswers: string[];
665
+ namespace: "peerbench.ai";
666
+ kind: "llm/qa.tc";
667
+ schemaVersion: 1;
668
+ metadata?: Record<string, unknown> | undefined;
669
+ }, "id" | "kind" | "namespace" | "schemaVersion">, generator: IdGenerator): Promise<{
670
+ id: string;
671
+ question: string;
672
+ goodAnswers: string[];
673
+ badAnswers: string[];
674
+ namespace: "peerbench.ai";
675
+ kind: "llm/qa.tc";
676
+ schemaVersion: 1;
677
+ metadata?: Record<string, unknown> | undefined;
678
+ }>;
679
+ };
680
+ type QATestCaseV1 = z.infer<typeof QATestCaseSchemaV1>;
681
+ declare const QAResponseSchemaV1: z.ZodObject<Omit<{
682
+ id: z.ZodString;
683
+ namespace: z.ZodString;
684
+ schemaVersion: z.ZodNumber;
685
+ kind: z.ZodString;
686
+ startedAt: z.ZodNumber;
687
+ completedAt: z.ZodNumber;
688
+ testCaseId: z.ZodString;
689
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
690
+ }, "kind" | "namespace" | "schemaVersion"> & {
691
+ data: z.ZodString;
692
+ modelSlug: z.ZodString;
693
+ provider: z.ZodString;
694
+ systemPromptId: z.ZodOptional<z.ZodString>;
695
+ inputTokensUsed: z.ZodOptional<z.ZodNumber>;
696
+ outputTokensUsed: z.ZodOptional<z.ZodNumber>;
697
+ inputCost: z.ZodOptional<z.ZodString>;
698
+ outputCost: z.ZodOptional<z.ZodString>;
699
+ } & {
700
+ namespace: z.ZodLiteral<"peerbench.ai">;
701
+ kind: z.ZodLiteral<"llm/qa.rs">;
702
+ schemaVersion: z.ZodLiteral<1>;
703
+ }, z.core.$strip> & {
704
+ new: (input: Omit<{
705
+ startedAt: number;
706
+ completedAt: number;
707
+ id: string;
708
+ testCaseId: string;
709
+ data: string;
710
+ modelSlug: string;
711
+ provider: string;
712
+ namespace: "peerbench.ai";
713
+ kind: "llm/qa.rs";
714
+ schemaVersion: 1;
715
+ metadata?: Record<string, unknown> | undefined;
716
+ systemPromptId?: string | undefined;
717
+ inputTokensUsed?: number | undefined;
718
+ outputTokensUsed?: number | undefined;
719
+ inputCost?: string | undefined;
720
+ outputCost?: string | undefined;
721
+ }, "kind" | "namespace" | "schemaVersion">) => {
722
+ startedAt: number;
723
+ completedAt: number;
724
+ id: string;
725
+ testCaseId: string;
726
+ data: string;
727
+ modelSlug: string;
728
+ provider: string;
729
+ namespace: "peerbench.ai";
730
+ kind: "llm/qa.rs";
731
+ schemaVersion: 1;
732
+ metadata?: Record<string, unknown> | undefined;
733
+ systemPromptId?: string | undefined;
734
+ inputTokensUsed?: number | undefined;
735
+ outputTokensUsed?: number | undefined;
736
+ inputCost?: string | undefined;
737
+ outputCost?: string | undefined;
738
+ };
739
+ newWithId(input: Omit<{
740
+ startedAt: number;
741
+ completedAt: number;
742
+ id: string;
743
+ testCaseId: string;
744
+ data: string;
745
+ modelSlug: string;
746
+ provider: string;
747
+ namespace: "peerbench.ai";
748
+ kind: "llm/qa.rs";
749
+ schemaVersion: 1;
750
+ metadata?: Record<string, unknown> | undefined;
751
+ systemPromptId?: string | undefined;
752
+ inputTokensUsed?: number | undefined;
753
+ outputTokensUsed?: number | undefined;
754
+ inputCost?: string | undefined;
755
+ outputCost?: string | undefined;
756
+ }, "id" | "kind" | "namespace" | "schemaVersion">, generator: IdGenerator): Promise<{
757
+ startedAt: number;
758
+ completedAt: number;
759
+ id: string;
760
+ testCaseId: string;
761
+ data: string;
762
+ modelSlug: string;
763
+ provider: string;
764
+ namespace: "peerbench.ai";
765
+ kind: "llm/qa.rs";
766
+ schemaVersion: 1;
767
+ metadata?: Record<string, unknown> | undefined;
768
+ systemPromptId?: string | undefined;
769
+ inputTokensUsed?: number | undefined;
770
+ outputTokensUsed?: number | undefined;
771
+ inputCost?: string | undefined;
772
+ outputCost?: string | undefined;
773
+ }>;
774
+ };
775
+ type QAResponseV1 = z.infer<typeof QAResponseSchemaV1>;
776
+ declare const QAScoreSchemaV1: z.ZodObject<Omit<{
777
+ id: z.ZodString;
778
+ namespace: z.ZodString;
779
+ kind: z.ZodString;
780
+ schemaVersion: z.ZodNumber;
781
+ value: z.ZodNumber;
782
+ responseId: z.ZodString;
783
+ explanation: z.ZodOptional<z.ZodString>;
784
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
785
+ scoringMethod: z.ZodEnum<{
786
+ readonly ai: "ai";
787
+ readonly human: "human";
788
+ readonly algo: "algo";
789
+ }>;
790
+ }, "kind" | "namespace" | "schemaVersion"> & {
791
+ scorerAISystemPrompt: z.ZodOptional<z.ZodString>;
792
+ scorerAISystemPromptId: z.ZodOptional<z.ZodString>;
793
+ scorerAIProvider: z.ZodOptional<z.ZodString>;
794
+ scorerAIModelSlug: z.ZodOptional<z.ZodString>;
795
+ scorerAIInputTokensUsed: z.ZodOptional<z.ZodNumber>;
796
+ scorerAIOutputTokensUsed: z.ZodOptional<z.ZodNumber>;
797
+ scorerAIInputCost: z.ZodOptional<z.ZodString>;
798
+ scorerAIOutputCost: z.ZodOptional<z.ZodString>;
799
+ } & {
800
+ namespace: z.ZodLiteral<"peerbench.ai">;
801
+ kind: z.ZodLiteral<"llm/qa.sc">;
802
+ schemaVersion: z.ZodLiteral<1>;
803
+ }, z.core.$strip> & {
804
+ new: (input: Omit<{
805
+ id: string;
806
+ value: number;
807
+ responseId: string;
808
+ scoringMethod: "ai" | "human" | "algo";
809
+ namespace: "peerbench.ai";
810
+ kind: "llm/qa.sc";
811
+ schemaVersion: 1;
812
+ explanation?: string | undefined;
813
+ metadata?: Record<string, unknown> | undefined;
814
+ scorerAISystemPrompt?: string | undefined;
815
+ scorerAISystemPromptId?: string | undefined;
816
+ scorerAIProvider?: string | undefined;
817
+ scorerAIModelSlug?: string | undefined;
818
+ scorerAIInputTokensUsed?: number | undefined;
819
+ scorerAIOutputTokensUsed?: number | undefined;
820
+ scorerAIInputCost?: string | undefined;
821
+ scorerAIOutputCost?: string | undefined;
822
+ }, "kind" | "namespace" | "schemaVersion">) => {
823
+ id: string;
824
+ value: number;
825
+ responseId: string;
826
+ scoringMethod: "ai" | "human" | "algo";
827
+ namespace: "peerbench.ai";
828
+ kind: "llm/qa.sc";
829
+ schemaVersion: 1;
830
+ explanation?: string | undefined;
831
+ metadata?: Record<string, unknown> | undefined;
832
+ scorerAISystemPrompt?: string | undefined;
833
+ scorerAISystemPromptId?: string | undefined;
834
+ scorerAIProvider?: string | undefined;
835
+ scorerAIModelSlug?: string | undefined;
836
+ scorerAIInputTokensUsed?: number | undefined;
837
+ scorerAIOutputTokensUsed?: number | undefined;
838
+ scorerAIInputCost?: string | undefined;
839
+ scorerAIOutputCost?: string | undefined;
840
+ };
841
+ newWithId(input: Omit<{
842
+ id: string;
843
+ value: number;
844
+ responseId: string;
845
+ scoringMethod: "ai" | "human" | "algo";
846
+ namespace: "peerbench.ai";
847
+ kind: "llm/qa.sc";
848
+ schemaVersion: 1;
849
+ explanation?: string | undefined;
850
+ metadata?: Record<string, unknown> | undefined;
851
+ scorerAISystemPrompt?: string | undefined;
852
+ scorerAISystemPromptId?: string | undefined;
853
+ scorerAIProvider?: string | undefined;
854
+ scorerAIModelSlug?: string | undefined;
855
+ scorerAIInputTokensUsed?: number | undefined;
856
+ scorerAIOutputTokensUsed?: number | undefined;
857
+ scorerAIInputCost?: string | undefined;
858
+ scorerAIOutputCost?: string | undefined;
859
+ }, "id" | "kind" | "namespace" | "schemaVersion">, generator: IdGenerator): Promise<{
860
+ id: string;
861
+ value: number;
862
+ responseId: string;
863
+ scoringMethod: "ai" | "human" | "algo";
864
+ namespace: "peerbench.ai";
865
+ kind: "llm/qa.sc";
866
+ schemaVersion: 1;
867
+ explanation?: string | undefined;
868
+ metadata?: Record<string, unknown> | undefined;
869
+ scorerAISystemPrompt?: string | undefined;
870
+ scorerAISystemPromptId?: string | undefined;
871
+ scorerAIProvider?: string | undefined;
872
+ scorerAIModelSlug?: string | undefined;
873
+ scorerAIInputTokensUsed?: number | undefined;
874
+ scorerAIOutputTokensUsed?: number | undefined;
875
+ scorerAIInputCost?: string | undefined;
876
+ scorerAIOutputCost?: string | undefined;
877
+ }>;
878
+ };
879
+ type QAScoreV1 = z.infer<typeof QAScoreSchemaV1>;
880
+
881
+ declare const peerbenchRunner: (params: {
882
+ testCase: {
883
+ id: string;
884
+ question: string;
885
+ options: Record<string, string>;
886
+ correctAnswerKeys: string[];
887
+ namespace: "peerbench.ai";
888
+ kind: "llm/mcq.tc";
889
+ schemaVersion: 1;
890
+ metadata?: Record<string, unknown> | undefined;
891
+ } | {
892
+ id: string;
893
+ question: string;
894
+ goodAnswers: string[];
895
+ badAnswers: string[];
896
+ namespace: "peerbench.ai";
897
+ kind: "llm/qa.tc";
898
+ schemaVersion: 1;
899
+ metadata?: Record<string, unknown> | undefined;
900
+ };
901
+ provider: AbstractLLMProvider;
902
+ scorer?: MCQScorer | LLMAsAJudgeScorer | undefined;
903
+ runConfig: {
904
+ model: string;
905
+ llmJudgeModel?: string | undefined;
906
+ llmJudgeSystemPrompt?: {
907
+ id: string;
908
+ version: number;
909
+ content: string;
910
+ namespace: "peerbench.ai";
911
+ kind: `${string}/simple.sys-prompt`;
912
+ schemaVersion: 1;
913
+ metadata?: Record<string, unknown> | undefined;
914
+ } | undefined;
915
+ systemPrompt?: {
916
+ id: string;
917
+ version: number;
918
+ content: string;
919
+ namespace: "peerbench.ai";
920
+ kind: `${string}/simple.sys-prompt`;
921
+ schemaVersion: 1;
922
+ metadata?: Record<string, unknown> | undefined;
923
+ } | undefined;
924
+ templateVariables?: Record<string, string> | undefined;
925
+ };
926
+ idGenerators?: {
927
+ response?: IdGenerator;
928
+ score?: IdGenerator;
929
+ };
930
+ }) => Promise<{
931
+ response: {
932
+ startedAt: number;
933
+ completedAt: number;
934
+ id: string;
935
+ testCaseId: string;
936
+ data: string;
937
+ modelSlug: string;
938
+ provider: string;
939
+ namespace: "peerbench.ai";
940
+ kind: "llm/mcq.rs";
941
+ schemaVersion: 1;
942
+ metadata?: Record<string, unknown> | undefined;
943
+ systemPromptId?: string | undefined;
944
+ inputTokensUsed?: number | undefined;
945
+ outputTokensUsed?: number | undefined;
946
+ inputCost?: string | undefined;
947
+ outputCost?: string | undefined;
948
+ } | {
949
+ startedAt: number;
950
+ completedAt: number;
951
+ id: string;
952
+ testCaseId: string;
953
+ data: string;
954
+ modelSlug: string;
955
+ provider: string;
956
+ namespace: "peerbench.ai";
957
+ kind: "llm/qa.rs";
958
+ schemaVersion: 1;
959
+ metadata?: Record<string, unknown> | undefined;
960
+ systemPromptId?: string | undefined;
961
+ inputTokensUsed?: number | undefined;
962
+ outputTokensUsed?: number | undefined;
963
+ inputCost?: string | undefined;
964
+ outputCost?: string | undefined;
965
+ };
966
+ score?: {
967
+ id: string;
968
+ value: number;
969
+ responseId: string;
970
+ scoringMethod: "ai" | "human" | "algo";
971
+ extractedAnswers: string[];
972
+ namespace: "peerbench.ai";
973
+ kind: "llm/mcq.sc";
974
+ schemaVersion: 1;
975
+ explanation?: string | undefined;
976
+ metadata?: Record<string, unknown> | undefined;
977
+ scorerAISystemPrompt?: string | undefined;
978
+ scorerAISystemPromptId?: string | undefined;
979
+ scorerAIProvider?: string | undefined;
980
+ scorerAIModelSlug?: string | undefined;
981
+ scorerAIInputTokensUsed?: number | undefined;
982
+ scorerAIOutputTokensUsed?: number | undefined;
983
+ scorerAIInputCost?: string | undefined;
984
+ scorerAIOutputCost?: string | undefined;
985
+ } | {
986
+ id: string;
987
+ value: number;
988
+ responseId: string;
989
+ scoringMethod: "ai" | "human" | "algo";
990
+ namespace: "peerbench.ai";
991
+ kind: "llm/qa.sc";
992
+ schemaVersion: 1;
993
+ explanation?: string | undefined;
994
+ metadata?: Record<string, unknown> | undefined;
995
+ scorerAISystemPrompt?: string | undefined;
996
+ scorerAISystemPromptId?: string | undefined;
997
+ scorerAIProvider?: string | undefined;
998
+ scorerAIModelSlug?: string | undefined;
999
+ scorerAIInputTokensUsed?: number | undefined;
1000
+ scorerAIOutputTokensUsed?: number | undefined;
1001
+ scorerAIInputCost?: string | undefined;
1002
+ scorerAIOutputCost?: string | undefined;
1003
+ } | undefined;
1004
+ }>;
1005
+
1006
+ declare class PeerbenchJSONStorage extends JSONFileStorage<MCQTestCaseV1 | MCQResponseV1 | MCQScoreV1 | QATestCaseV1 | QAResponseV1 | QAScoreV1 | MultiTurnTestCaseV1 | MultiTurnResponseV1 | MultiTurnScoreV1> {
1007
+ constructor(config: {
1008
+ path: string;
1009
+ chunkSize?: number;
1010
+ });
1011
+ }
1012
+
1013
+ declare const index_MCQKind: typeof MCQKind;
1014
+ declare const index_MCQResponseSchemaV1: typeof MCQResponseSchemaV1;
1015
+ type index_MCQResponseV1 = MCQResponseV1;
1016
+ declare const index_MCQScoreSchemaV1: typeof MCQScoreSchemaV1;
1017
+ type index_MCQScoreV1 = MCQScoreV1;
1018
+ declare const index_MCQTestCaseSchemaV1: typeof MCQTestCaseSchemaV1;
1019
+ type index_MCQTestCaseV1 = MCQTestCaseV1;
1020
+ declare const index_MultiTurnKind: typeof MultiTurnKind;
1021
+ declare const index_MultiTurnResponseSchemaV1: typeof MultiTurnResponseSchemaV1;
1022
+ type index_MultiTurnResponseV1 = MultiTurnResponseV1;
1023
+ declare const index_MultiTurnScoreSchemaV1: typeof MultiTurnScoreSchemaV1;
1024
+ type index_MultiTurnScoreV1 = MultiTurnScoreV1;
1025
+ declare const index_MultiTurnTestCaseSchemaV1: typeof MultiTurnTestCaseSchemaV1;
1026
+ type index_MultiTurnTestCaseV1 = MultiTurnTestCaseV1;
1027
+ type index_PeerbenchJSONStorage = PeerbenchJSONStorage;
1028
+ declare const index_PeerbenchJSONStorage: typeof PeerbenchJSONStorage;
1029
+ declare const index_QAKind: typeof QAKind;
1030
+ declare const index_QAResponseSchemaV1: typeof QAResponseSchemaV1;
1031
+ type index_QAResponseV1 = QAResponseV1;
1032
+ declare const index_QAScoreSchemaV1: typeof QAScoreSchemaV1;
1033
+ type index_QAScoreV1 = QAScoreV1;
1034
+ declare const index_QATestCaseSchemaV1: typeof QATestCaseSchemaV1;
1035
+ type index_QATestCaseV1 = QATestCaseV1;
1036
+ declare const index_peerbenchRunner: typeof peerbenchRunner;
1037
+ declare namespace index {
1038
+ export { index_MCQKind as MCQKind, index_MCQResponseSchemaV1 as MCQResponseSchemaV1, type index_MCQResponseV1 as MCQResponseV1, index_MCQScoreSchemaV1 as MCQScoreSchemaV1, type index_MCQScoreV1 as MCQScoreV1, index_MCQTestCaseSchemaV1 as MCQTestCaseSchemaV1, type index_MCQTestCaseV1 as MCQTestCaseV1, index_MultiTurnKind as MultiTurnKind, index_MultiTurnResponseSchemaV1 as MultiTurnResponseSchemaV1, type index_MultiTurnResponseV1 as MultiTurnResponseV1, index_MultiTurnScoreSchemaV1 as MultiTurnScoreSchemaV1, type index_MultiTurnScoreV1 as MultiTurnScoreV1, index_MultiTurnTestCaseSchemaV1 as MultiTurnTestCaseSchemaV1, type index_MultiTurnTestCaseV1 as MultiTurnTestCaseV1, index_PeerbenchJSONStorage as PeerbenchJSONStorage, index_QAKind as QAKind, index_QAResponseSchemaV1 as QAResponseSchemaV1, type index_QAResponseV1 as QAResponseV1, index_QAScoreSchemaV1 as QAScoreSchemaV1, type index_QAScoreV1 as QAScoreV1, index_QATestCaseSchemaV1 as QATestCaseSchemaV1, type index_QATestCaseV1 as QATestCaseV1, index_peerbenchRunner as peerbenchRunner };
1039
+ }
1040
+
1041
+ export { index as peerbench };