pydo.genai.create_evaluation_dataset()

Generated on 9 Jun 2026 from pydo version v0.36.0

Usage

client.genai.create_evaluation_dataset(
    body={
        "dataset_type": "EVALUATION_DATASET_TYPE_UNKNOWN",
        "file_upload_dataset": {...},
        "name": "example name",
    },
)
Returns JSONRaises HttpResponseError

Description

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

Parameters

dataset_type string optional

One of: EVALUATION_DATASET_TYPE_UNKNOWN, EVALUATION_DATASET_TYPE_ADK, EVALUATION_DATASET_TYPE_NON_ADK, EVALUATION_DATASET_TYPE_MODEL

Default: EVALUATION_DATASET_TYPE_UNKNOWN

file_upload_dataset object optional

File to upload as data source for knowledge base.

Show child properties
original_file_name string optional

Example: example name

The original file name

size_in_bytes string optional

Example: 12345

The size of the file in bytes

stored_object_key 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 os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "dataset_type": "EVALUATION_DATASET_TYPE_UNKNOWN",
  "file_upload_dataset": {
    "original_file_name": "example name",
    "size_in_bytes": "12345",
    "stored_object_key": "example string"
  },
  "name": "example name"
}

resp = client.genai.create_evaluation_dataset(body=req)

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.