Skip to content

Commit eb49b0b

Browse files
author
Andrei Bratu
committed
Changed run() signature to use unpacking
1 parent 93e3c10 commit eb49b0b

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

.fernignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ tests
2222
babel.config.js
2323
jest.config.js
2424
.prettierignore
25+
.gitignore
2526

2627
# Package Scripts
2728

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
.DS_Store
3-
/dist
3+
/dist
4+
.env

src/humanloop.client.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,19 @@ class ExtendedEvaluations extends BaseEvaluations {
8282
* @param evaluators - List of evaluators to be. Can be ran on Humanloop if specified only by path, or locally if a callable is provided.
8383
* @param concurrency - Number of datapoints to process in parallel.
8484
*/
85-
async run(
86-
file: File,
87-
dataset: Dataset,
88-
name?: string,
89-
evaluators: Evaluator[] = [],
90-
concurrency: number = 8,
91-
): Promise<EvaluatorCheck[]> {
85+
async run({
86+
file,
87+
dataset,
88+
name,
89+
evaluators = [],
90+
concurrency = 8,
91+
}: {
92+
file: File;
93+
dataset: Dataset;
94+
name?: string;
95+
evaluators: Evaluator[];
96+
concurrency: number;
97+
}): Promise<EvaluatorCheck[]> {
9298
return runEval(this._client, file, dataset, name, evaluators, concurrency);
9399
}
94100
}

0 commit comments

Comments
 (0)