For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).
Usage
client.v2.genAi.evaluation_datasets.get(requestConfiguration?: RequestConfiguration<Evaluation_datasetsRequestBuilderGetQueryParameters>): Promise<undefined | ApiListEvaluationDatasetsOutput>
Description
To list evaluation datasets, send a GET request to /v2/gen-ai/evaluation_datasets.
Parameters
datasetType string optional
Filter by evaluation dataset type.
One of: EVALUATION_DATASET_TYPE_UNKNOWN, EVALUATION_DATASET_TYPE_MODEL
Default: EVALUATION_DATASET_TYPE_UNKNOWN
datasetParadigm string optional
Filter by evaluation dataset paradigm (row/content shape).
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
hasGroundTruth boolean optional
Example: true
Filter by whether the dataset includes ground-truth values.
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.get();
Response Example
Show Response Example
{
"evaluation_datasets": [
{
"created_at": "2023-01-01T00:00:00Z",
"dataset_name": "example name",
"dataset_paradigm": "EVALUATION_DATASET_PARADIGM_SINGLE_TURN",
"dataset_type": "EVALUATION_DATASET_TYPE_UNKNOWN",
"dataset_uuid": "123e4567-e89b-12d3-a456-426614174000",
"file_size": "12345",
"has_ground_truth": true,
"row_count": 123
}
]
}
See /v2/gen-ai/evaluation_datasets in the API reference for additional detail on responses, headers, parameters, and more.