Skip to main content
GET
/
api
/
v2
/
projects
/
{project_id}
/
datasets
/
name
/
{dataset_name}
/
test-cases
List Prompt Test Cases by Dataset Name
curl --request GET \
  --url https://api.example.com/api/v2/projects/{project_id}/datasets/name/{dataset_name}/test-cases \
  --header 'Content-Type: application/json' \
  --data '{}'
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "values": "<unknown>",
    "output": "<string>",
    "output_message": {
      "content": [
        {
          "text": "<string>",
          "type": "text"
        }
      ],
      "role": "user"
    },
    "history": [
      {
        "content": [
          {
            "text": "<string>",
            "type": "text"
          }
        ],
        "role": "user"
      }
    ],
    "metadata": {}
  }
]

Path Parameters

project_id
string
required
dataset_name
string
required

Query Parameters

page
string | null
page_size
string | null

Body

application/json

The body is of type EmptyRequest · object.

Response

200 - application/json

Built-in mutable sequence.

If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.

id
string<uuid>
required
values
any
required
output
string | null
required
output_message
UserMessageInfo · object
required
history
(UserMessageInfo · object | SystemMessageInfo · object | AssistantMessageInfo · object | UserMessage · object | AssistantMessage · object | SystemMessage · object)[] | null
required
metadata
Metadata · object
required