peerbench 0.0.5 → 0.0.7
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/dist/{abstract-Dec9Sc5O.d.ts → abstract-BdgLjkNC.d.ts} +7 -1
- package/dist/aggregators/index.d.ts +3 -3
- package/dist/benchmarks/index.d.ts +641 -16
- package/dist/benchmarks/index.js +15 -15
- package/dist/{chunk-DNGT4SJC.js → chunk-3JHDJEY3.js} +16 -7
- package/dist/chunk-3JHDJEY3.js.map +1 -0
- package/dist/{chunk-QY5MPNNB.js → chunk-RTEAK4II.js} +11 -2
- package/dist/chunk-RTEAK4II.js.map +1 -0
- package/dist/{chunk-HPPCDSJ3.js → chunk-SMLNDQFX.js} +17 -8
- package/dist/chunk-SMLNDQFX.js.map +1 -0
- package/dist/{chunk-Q6GSOHOP.js → chunk-ZXTQJFGL.js} +4 -4
- package/dist/{index-BAioQhp2.d.ts → index-Cn20kPrz.d.ts} +2 -2
- package/dist/index.d.ts +25 -6
- package/dist/index.js +4 -4
- package/dist/{llm-BND163ns.d.ts → llm-8ecJmwKJ.d.ts} +1 -1
- package/dist/{llm-judge-BS_oNYUK.d.ts → llm-judge-BuF80-5-.d.ts} +12 -4
- package/dist/provider-DnEBdl1n.d.ts +16 -0
- package/dist/providers/index.d.ts +18 -6
- package/dist/providers/index.js +1 -1
- package/dist/schemas/index.d.ts +7 -7
- package/dist/schemas/llm/index.d.ts +5 -5
- package/dist/schemas/llm/index.js +2 -2
- package/dist/scorers/index.d.ts +11 -7
- package/dist/scorers/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-DNGT4SJC.js.map +0 -1
- package/dist/chunk-HPPCDSJ3.js.map +0 -1
- package/dist/chunk-QY5MPNNB.js.map +0 -1
- package/dist/provider-BDjGp2y-.d.ts +0 -10
- /package/dist/{chunk-Q6GSOHOP.js.map → chunk-ZXTQJFGL.js.map} +0 -0
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
declare abstract class AbstractScorer {
|
|
2
|
-
|
|
2
|
+
readonly kind: string;
|
|
3
|
+
constructor();
|
|
3
4
|
abstract score(params: any): Promise<BaseScorerResult | null>;
|
|
5
|
+
static withKind<TKind extends string, TThis extends abstract new (...args: any[]) => AbstractScorer>(this: TThis, kind: TKind): (new () => InstanceType<TThis> & {
|
|
6
|
+
readonly kind: TKind;
|
|
7
|
+
}) & {
|
|
8
|
+
readonly kind: TKind;
|
|
9
|
+
};
|
|
4
10
|
}
|
|
5
11
|
type BaseScorerResult = {
|
|
6
12
|
value: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseScoreV1, BaseTestCaseV1, BaseResponseV1 } from '../schemas/index.js';
|
|
2
|
-
import { a as InferExtension } from '../index-
|
|
2
|
+
import { a as InferExtension } from '../index-Cn20kPrz.js';
|
|
3
3
|
import z__default from 'zod';
|
|
4
|
-
import '../provider-
|
|
5
|
-
import '../abstract-
|
|
4
|
+
import '../provider-DnEBdl1n.js';
|
|
5
|
+
import '../abstract-BdgLjkNC.js';
|
|
6
6
|
|
|
7
7
|
declare abstract class AbstractAggregator {
|
|
8
8
|
abstract push(params: {
|