POST
/
agents
/
{agent_id}
/
datasets
/
evaluate
curl --request POST \
  --url https://api.contextual.ai/v1/agents/{agent_id}/datasets/evaluate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'dataset_name=<string>' \
  --form dataset_type=evaluation_set
{
  "version": "<string>",
  "name": "<string>",
  "type": "tuning_set"
}

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 to associate with the evaluation dataset

Body

multipart/form-data
dataset_name
string
required

Name of the evaluation dataset

dataset_type
enum<string>
required

Type of evaluation dataset which determines its schema and validation rules.

Available options:
tuning_set,
evaluation_set,
evaluation_set_prediction,
evaluation_run_result
file
file
required

JSONL or CSV file containing the evaluation dataset

Response

200
application/json
Successful Response

Response to POST /datasets request

version
string
required

Version number of the dataset

name
string
required

Name of the dataset

type
enum<string>
required

Type of the dataset

Available options:
tuning_set,
evaluation_set,
evaluation_set_prediction,
evaluation_run_result