UNPKG

parea-ai

Version:

Client SDK library to connect to Parea AI.

20 lines (19 loc) 636 B
import { Trial } from './trial'; import { TrialResult } from './types'; /** * Manages the execution of trials in parallel. */ export declare class ExperimentRunner { private concurrency; /** * Creates a new ExperimentRunner instance. * @param concurrency The number of concurrent trials to run. */ constructor(concurrency: number); /** * Runs the given trials in parallel. * @param trials An array of Trial objects to be executed. * @returns A promise that resolves to an array of TrialResult objects. */ runTrials(trials: Trial<any, any>[]): Promise<TrialResult<any, any>[]>; }