Fetch Evaluation
GEThttps://cloud.agenta.ai/api/evaluations/:evaluation_id
Fetches a single evaluation based on its ID.
Args: evaluation_id (str): The ID of the evaluation to fetch.
Returns: Evaluation: The fetched evaluation.
Request
Path Parameters
evaluation_id Evaluation Idrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
id Id (string)required
app_id App Id (string)required
project_id Project Id (string)required
variant_ids string[]required
variant_names string[]required
variant_revision_ids string[]required
revisions string[]required
testset_idobject
testset_nameobject
statusobjectrequired
aggregated_resultsobject[]required
average_costobject
total_costobject
average_latencyobject
created_at date-timerequired
updated_at date-timerequired
{
"id": "string",
"app_id": "string",
"project_id": "string",
"variant_ids": [
"string"
],
"variant_names": [
"string"
],
"variant_revision_ids": [
"string"
],
"revisions": [
"string"
],
"testset_id": "string",
"testset_name": "string",
"status": {
"type": "string",
"error": {}
},
"aggregated_results": [
{
"evaluator_config": {},
"result": {
"type": "string",
"error": {}
}
}
],
"average_cost": {},
"total_cost": {},
"average_latency": {},
"created_at": "2024-11-22T12:54:54.372Z",
"updated_at": "2024-11-22T12:54:54.372Z"
}
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/evaluations/:evaluation_id' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear