dots.v2.genAi.evaluation_datasets.post()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.genAi.evaluation_datasets.post(body: ApiCreateEvaluationDatasetInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiCreateEvaluationDatasetOutput>

Description

To create an evaluation dataset, send a POST request to /v2/gen-ai/evaluation_datasets.

Parameters

datasetParadigm string optional

EvaluationDatasetParadigm is the row/content shape of a dataset, orthogonal to the
surface in EvaluationDatasetType (e.g. a model dataset can be single- or multi-turn).

One of: EVALUATION_DATASET_PARADIGM_SINGLE_TURN, EVALUATION_DATASET_PARADIGM_MULTI_TURN, EVALUATION_DATASET_PARADIGM_CODING, EVALUATION_DATASET_PARADIGM_N_PLUS_1

Default: EVALUATION_DATASET_PARADIGM_SINGLE_TURN

datasetType string optional

One of: EVALUATION_DATASET_TYPE_UNKNOWN, EVALUATION_DATASET_TYPE_MODEL

Default: EVALUATION_DATASET_TYPE_UNKNOWN

fileUploadDataset object optional

File to upload as data source for knowledge base.

Show child properties
originalFileName string optional

Example: example name

The original file name

sizeInBytes string optional

Example: 12345

The size of the file in bytes

storedObjectKey string optional

Example: example string

The object key the file was stored as

name string optional

Example: example name

The name of the agent evaluation dataset.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.genAi.evaluation_datasets.post({
    datasetParadigm: "EVALUATION_DATASET_PARADIGM_SINGLE_TURN",
    datasetType: "EVALUATION_DATASET_TYPE_UNKNOWN",
    fileUploadDataset: {
        originalFileName: "example name",
        sizeInBytes: "12345",
        storedObjectKey: "example string",
    },
    name: "example name",
});

Response Example

Show Response Example
{
  "evaluation_dataset_uuid": "123e4567-e89b-12d3-a456-426614174000"
}

More Information

See /v2/gen-ai/evaluation_datasets in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.