Create Human Evaluation
POSThttps://cloud.agenta.ai/api/human-evaluations
Creates a new comparison table document Raises: HTTPException: description Returns: description
Request
- application/json
Body
required
app_id App Id (string)required
variant_ids string[]required
evaluation_type EvaluationType (string)required
Possible values: [human_a_b_testing
, single_model_test
]
inputs string[]required
testset_id Testset Id (string)required
status Status (string)required
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
id Id (string)required
variant_ids string[]required
app_id App Id (string)required
status Status (string)required
evaluation_type EvaluationType (string)required
Possible values: [human_a_b_testing
, single_model_test
]
{
"id": "string",
"variant_ids": [
"string"
],
"app_id": "string",
"status": "string",
"evaluation_type": "human_a_b_testing"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
detail
object[]
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://cloud.agenta.ai/api/human-evaluations' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"app_id": "string",
"variant_ids": [
"string"
],
"evaluation_type": "human_a_b_testing",
"inputs": [
"string"
],
"testset_id": "string",
"status": "string"
}'
ResponseClear