Fetch Evaluation Scenarios
GET/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 [
- MOD1
Array [
]
Array [
- Error
- MOD1
- MOD1
- MOD1
]
- MOD1
Array [
]
- MOD1
- MOD1
Array [
- Error
- MOD1
]
]
idobject
anyOf
string
evaluation_id Evaluation Id (string)required
inputsobject[]required
name Name (string)required
type Type (string)required
value Valuerequired
outputsobject[]required
resultobjectrequired
type Type (string)required
valueobject
anyOf
errorobject
anyOf
message Message (string)required
stacktraceobject
anyOf
string
costobject
anyOf
number
latencyobject
anyOf
number
correct_answersobject
anyOf
key Key (string)required
value Value (string)required
is_pinnedobject
anyOf
boolean
noteobject
anyOf
string
resultsobject[]required
evaluator_config Evaluator Config (string)required
resultobjectrequired
type Type (string)required
valueobject
anyOf
errorobject
anyOf
message Message (string)required
stacktraceobject
anyOf
string
[
{
"id": "string",
"evaluation_id": "string",
"inputs": [
{
"name": "string",
"type": "string"
}
],
"outputs": [
{
"result": {
"type": "string",
"error": {}
},
"cost": 0,
"latency": 0
}
],
"correct_answers": [
null
],
"is_pinned": true,
"note": "string",
"results": [
{
"evaluator_config": "string",
"result": {
"type": "string",
"error": {}
}
}
]
}
]
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detailobject[]
locobject[]required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...