Fetch Human Evaluation Scenarios
GEThttps://cloud.agenta.ai/api/human-evaluations/:evaluation_id/evaluation_scenarios
Fetches evaluation scenarios for a given evaluation ID.
Arguments: evaluation_id (str): The ID of the evaluation for which to fetch scenarios.
Raises: HTTPException: If the evaluation is not found or access is denied.
Returns: List[EvaluationScenario]: A list of evaluation scenarios.
Request
Path Parameters
evaluation_id Evaluation Idrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
idobject
evaluation_id Evaluation Id (string)required
inputsobject[]required
outputsobject[]required
voteobject
scoreobject
correct_answerobject
is_pinnedobject
noteobject
[
{
"id": "string",
"evaluation_id": "string",
"inputs": [
{
"input_name": "string",
"input_value": "string"
}
],
"outputs": [
{
"variant_id": "string",
"variant_output": "string"
}
],
"vote": "string",
"score": "string",
"correct_answer": "string",
"is_pinned": true,
"note": "string"
}
]
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
detailobject[]
{
"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/:evaluation_id/evaluation_scenarios' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear