UNPKG

@arizeai/phoenix-client

Version:

A client for the Phoenix API

18 lines 784 B
import { CreateDatasetParams } from "./createDataset.js"; 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