GET
/
agents
/
{agent_id}
/
datasets
/
tune
curl --request GET \
  --url https://api.contextual.ai/v1/agents/{agent_id}/datasets/tune \
  --header 'Authorization: Bearer <token>'
{
  "dataset_summaries": [
    {
      "name": "<string>",
      "version": "<string>",
      "type": "tuning_set",
      "created_at": "2023-11-07T05:31:56Z",
      "status": "validated",
      "schema": {},
      "num_samples": 123
    }
  ],
  "total_count": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string
required

Agent ID for which to list associated evaluation datasets

Query Parameters

dataset_name
string

Optional dataset name to filter the results by. If provided, only versions from that dataset are listed.

Response

200
application/json
Successful Response

Response to GET /datasets list endpoint

dataset_summaries
object[]
required

Summary information for a dataset

total_count
integer
required

Total number of datasets