A dataset is a set of dataset tasks that a benchmark runs; the HTTP API calls a dataset task an item (/items/{taskId}). A dataset task holds a prompt, an optional expected answer, optional input files the agent reads and optional expected files that only the criteria open, never the agent being tested. Changes to tasks and criteria land in the dataset's working copy, and a run grades the latest saved version, so save a version before you start a run that should include them. Archived datasets and tasks are not returned.
List datasets
Lists the datasets in the workspace scope you read; archived datasets are left out. Read a dataset's tasks with GET /datasets/{datasetId}/items.
query Parameters
workspaceScopeSend it as JSON in one value, for example workspaceScope={"kind":"one","workspaceId":"<id>"}. Any other value is refused with 400.
List datasets › Responses
Successful response
Datasets the organization can access
idUnique dataset identifier
orgIdOrganization that owns this dataset
workspaceIdThe workspace this dataset belongs to; null means organization-wide, shown in every workspace
createdByIdUser who created this dataset
ownerUserIdThe person who owns this dataset; null for datasets made before owners were recorded (organization-wide, and changeable by an organization admin)
visibilityWhere this dataset is placed: organization-wide, shared into its workspace, or private to its owner
nameDataset display name
descriptionOptional dataset description
isPublicWhether this dataset is publicly shared
sourceWhere the dataset came from (for example, huggingface:openai/gsm8k). Null for datasets created by hand.
createdAtCreation timestamp
updatedAtLast update timestamp
Create a dataset
A new dataset, optionally with its first tasks. The dataset, its tasks and its version 1 are written together, so a run can grade them at once. In a workspace you can create in (workspaceId), or the one workspace you have.
Headers
Idempotency-KeyA key you choose for this request (a UUID works; at most 255 characters; a blank one is refused 400, code idempotency_key_empty). A retry with the same key and the same body answers the first success again instead of acting twice; kept 24 hours. Send one on every create and run start you might retry.
Create a dataset › Request Body
nameDataset display name
workspaceIdThe workspace to create this in; null = organization-wide (organization admins only); omitted = the caller's only workspace, or every workspace for an organization admin
descriptionOptional description
Tasks to create with the dataset, in order (at most 1000). The dataset, its tasks and its v1 are written in one transaction, so v1 holds them. Defaults to none: callers that predate this field create an empty v1.
Create a dataset › Responses
Success. A retry with the same Idempotency-Key and the same request answers this again, with Idempotent-Replayed: true.
idUnique dataset identifier
orgIdOrganization that owns this dataset
workspaceIdThe workspace this dataset belongs to; null means organization-wide, shown in every workspace
createdByIdUser who created this dataset
ownerUserIdThe person who owns this dataset; null for datasets made before owners were recorded (organization-wide, and changeable by an organization admin)
visibilityWhere this dataset is placed: organization-wide, shared into its workspace, or private to its owner
nameDataset display name
descriptionOptional dataset description
isPublicWhether this dataset is publicly shared
sourceWhere the dataset came from (for example, huggingface:openai/gsm8k). Null for datasets created by hand.
createdAtCreation timestamp
updatedAtLast update timestamp
Get a dataset
Returns one dataset: its name, description, source and where it is placed. An archived dataset, or one outside your organization or your workspaces, answers 404.
path Parameters
datasetIdDataset identifier
Dataset identifier
Get a dataset › Responses
Successful response
idUnique dataset identifier
orgIdOrganization that owns this dataset
workspaceIdThe workspace this dataset belongs to; null means organization-wide, shown in every workspace
createdByIdUser who created this dataset
ownerUserIdThe person who owns this dataset; null for datasets made before owners were recorded (organization-wide, and changeable by an organization admin)
visibilityWhere this dataset is placed: organization-wide, shared into its workspace, or private to its owner
nameDataset display name
descriptionOptional dataset description
isPublicWhether this dataset is publicly shared
sourceWhere the dataset came from (for example, huggingface:openai/gsm8k). Null for datasets created by hand.
createdAtCreation timestamp
updatedAtLast update timestamp
List a dataset's tasks
Returns every dataset task in the dataset's working copy, in the dataset's order, each with its prompt, expected answer, files and status. Archived tasks are left out.
path Parameters
datasetIdDataset identifier
Dataset identifier
List a dataset's tasks › Responses
Successful response
Tasks in the dataset
idUnique task identifier
datasetIdDataset this task belongs to
nameOptional task name or label for display
promptThe prompt sent to the agent
expectedOutputReference answer the judge compares against. Null if the task has no expected output.
fileIdsIDs of the Drive files attached to this task
expectedFileIdsThe task's expected files (answer keys): given to its criteria, never to the agent being evaluated
heldOutA held-out task: graded like every other task, but the system never learns from it, and a run also scores its held-out tasks separately
orderDisplay and execution order within the dataset
statusAuthoring state: ready (ready to measure), draft (still being written), or needs_review (flagged for a second look). Informational only: a run measures every linked task whatever its status.
sourceWhere the task came from: written by hand, imported from a CSV or other file, promoted from a trace, imported from Hugging Face, or generated (a variant written by a model)
createdAtCreation timestamp
updatedAtLast update timestamp
Add a task to a dataset
One task, added to the dataset's working copy. A run grades a dataset's latest saved version, so save one (POST /datasets/{datasetId}/versions) before you start a run that should include it.
path Parameters
datasetIdDataset identifier
Dataset to add the item to
Headers
Idempotency-KeyA key you choose for this request (a UUID works; at most 255 characters; a blank one is refused 400, code idempotency_key_empty). A retry with the same key and the same body answers the first success again instead of acting twice; kept 24 hours. Send one on every create and run start you might retry.
Add a task to a dataset › Request Body
promptPrompt to send to the agent
nameOptional item label
expectedOutputExpected answer for judge comparison
fileIdsTask file IDs to attach
expectedFileIdsExpected files (answer keys) to attach: given to the task's criteria, never to the agent under test
statusAuthoring state (default 'ready')
source'manual' (default) for a task written here, 'trace' for one promoted from a trace
Add a task to a dataset › Responses
Success. A retry with the same Idempotency-Key and the same request answers this again, with Idempotent-Replayed: true.
idUnique task identifier
datasetIdDataset this task belongs to
nameOptional task name or label for display
promptThe prompt sent to the agent
expectedOutputReference answer the judge compares against. Null if the task has no expected output.
fileIdsIDs of the Drive files attached to this task
expectedFileIdsThe task's expected files (answer keys): given to its criteria, never to the agent being evaluated
heldOutA held-out task: graded like every other task, but the system never learns from it, and a run also scores its held-out tasks separately
orderDisplay and execution order within the dataset
statusAuthoring state: ready (ready to measure), draft (still being written), or needs_review (flagged for a second look). Informational only: a run measures every linked task whatever its status.
sourceWhere the task came from: written by hand, imported from a CSV or other file, promoted from a trace, imported from Hugging Face, or generated (a variant written by a model)
createdAtCreation timestamp
updatedAtLast update timestamp
Get a task
Returns one dataset task, read through its dataset: a task whose dataset you can't read answers 404, as does an archived task.
path Parameters
taskIdTask identifier
Task identifier
Get a task › Responses
Successful response
idUnique task identifier
datasetIdDataset this task belongs to
nameOptional task name or label for display
promptThe prompt sent to the agent
expectedOutputReference answer the judge compares against. Null if the task has no expected output.
fileIdsIDs of the Drive files attached to this task
expectedFileIdsThe task's expected files (answer keys): given to its criteria, never to the agent being evaluated
heldOutA held-out task: graded like every other task, but the system never learns from it, and a run also scores its held-out tasks separately
orderDisplay and execution order within the dataset
statusAuthoring state: ready (ready to measure), draft (still being written), or needs_review (flagged for a second look). Informational only: a run measures every linked task whatever its status.
sourceWhere the task came from: written by hand, imported from a CSV or other file, promoted from a trace, imported from Hugging Face, or generated (a variant written by a model)
createdAtCreation timestamp
updatedAtLast update timestamp
Get a dataset's saved-version state
The dataset with its version state: the head version, whether its working copy has unsaved changes, and the workingCopyHash a save names. Read it right before POST /datasets/{datasetId}/versions.
path Parameters
datasetIdDataset identifier
Dataset (from the path)
Get a dataset's saved-version state › Responses
Success
idUnique dataset identifier
orgIdOrganization that owns this dataset
workspaceIdThe workspace this dataset belongs to; null means organization-wide, shown in every workspace
createdByIdUser who created this dataset
ownerUserIdThe person who owns this dataset; null for datasets made before owners were recorded (organization-wide, and changeable by an organization admin)
visibilityWhere this dataset is placed: organization-wide, shared into its workspace, or private to its owner
nameDataset display name
descriptionOptional dataset description
isPublicWhether this dataset is publicly shared
sourceWhere the dataset came from (for example, huggingface:openai/gsm8k). Null for datasets created by hand.
createdAtCreation timestamp
updatedAtLast update timestamp
createdByNameDisplay name of the user who created this dataset, or null if createdById is null or the user row could not be resolved (resolver logs a warn in the missing-row case)
A dataset's head version and whether its working copy differs from it. Worked out on every read, never stored. Every dataset has a head (v1 at least).
The workflows a dataset reaches through the Evaluations that link it, or why they are not shown
Save a dataset version
Saves the working copy as the next version. Name the head version and workingCopyHash you read (GET /datasets/{datasetId}/version): another save in between is refused 409 (head_moved, working_copy_changed), and a working copy with no changes 400 (nothing_to_save).
path Parameters
datasetIdDataset identifier
Dataset to act on
Save a dataset version › Request Body
baseVersionThe head version the caller saw; refused with head_moved when another save landed first
workingCopyHashThe workingCopyHash the caller saw; refused with working_copy_changed when the tasks or the dataset's criteria changed since
Save a dataset version › Responses
Success
idImmutable version row id
datasetIdDataset this version was saved from
versionVersion number: 1 for the first, one more for each save
taskCountTasks frozen in this version
heldOutCountValidation tasks frozen in this version (stored as held out): graded like every task, never learned from, and scored a second time on their own. The rest, taskCount minus this, are Train. Counted from the frozen tasks on every read, never stored.
createdByIdWho saved it; null for the v1 every dataset received when versions were introduced
createdAtWhen it was saved