Fetch Evaluation Scenarios
GEThttps://cloud.agenta.ai/api/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 [
]
id Id (string)
evaluation_id Evaluation Id (string)required
inputs
object[]
required
outputs
object[]
required
evaluation Evaluation (string)
correct_answer Correct Answer (string)
is_pinned Is Pinned (boolean)
note Note (string)
results
object[]
required
[
{
"id": "string",
"evaluation_id": "string",
"inputs": [
{
"name": "string",
"type": "string"
}
],
"outputs": [
{
"result": {
"type": "string",
"error": {
"message": "string",
"stacktrace": "string"
}
},
"cost": 0,
"latency": 0
}
],
"evaluation": "string",
"correct_answer": "string",
"is_pinned": true,
"note": "string",
"results": [
{
"evaluator_config": "string",
"result": {
"type": "string",
"error": {
"message": "string",
"stacktrace": "string"
}
}
}
]
}
]
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/evaluations/:evaluation_id/evaluation_scenarios' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear