@arizeai/phoenix-client
Version:
A client for the Phoenix API
18 lines • 781 B
TypeScript
import { CreateDatasetParams } from "./createDataset";
export type CreateOrGetDatasetParams = CreateDatasetParams;
export type CreateOrGetDatasetResponse = {
datasetId: string;
};
/**
* Given the parameters to create a dataset, this function will either
* retrieve an existing dataset by name or create a new one with the provided parameters.
*
* This is useful in cases where you would like to re-run a pipeline like:
* - ensure dataset exists
* - create a task
* - run experiment
* - evaluate experiment
* without having to create a new dataset each time.
*/
export declare function createOrGetDataset({ name, description, examples, client: _client, }: CreateOrGetDatasetParams): Promise<CreateOrGetDatasetResponse>;
//# sourceMappingURL=createOrGetDataset.d.ts.map