Get a single evaluation item
evaluation_items.retrieve(strevaluation_item_id, EvaluationItemRetrieveParams**kwargs) -> EvaluationItem
GET/v5/evaluation-items/{evaluation_item_id}
Retrieve a single evaluation item by its ID within the caller’s account.
By default only non-archived items are returned; pass include_archived=true to
also retrieve an item that has been archived. The response merges the item’s cached
task results into its data field and exposes a task_errors map keyed by task
alias, so a task that failed on this item surfaces as an entry there rather than as a
request error. Use this to inspect one item’s input data and per-task results; to page
through many items, use the list endpoint instead. The request fails if no item with
the given ID exists in the caller’s account.
Get a single evaluation item
import os
from scale_gp_beta import SGPClient
client = SGPClient(
api_key=os.environ.get("SGP_API_KEY"), # This is the default and can be omitted
)
evaluation_item = client.evaluation_items.retrieve(
evaluation_item_id="evaluation_item_id",
)
print(evaluation_item.id){
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": {
"id": "id",
"type": "user",
"object": "identity"
},
"data": {
"foo": "bar"
},
"evaluation_id": "evaluation_id",
"archived_at": "2019-12-27T18:11:19.117Z",
"dataset_item_id": "dataset_item_id",
"dataset_item_version_num": 0,
"files": {
"foo": "string"
},
"object": "evaluation.item",
"task_errors": {
"foo": {
"message": "message",
"type": "type"
}
},
"task_result_statuses": {
"foo": "completed"
}
}Returns Examples
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": {
"id": "id",
"type": "user",
"object": "identity"
},
"data": {
"foo": "bar"
},
"evaluation_id": "evaluation_id",
"archived_at": "2019-12-27T18:11:19.117Z",
"dataset_item_id": "dataset_item_id",
"dataset_item_version_num": 0,
"files": {
"foo": "string"
},
"object": "evaluation.item",
"task_errors": {
"foo": {
"message": "message",
"type": "type"
}
},
"task_result_statuses": {
"foo": "completed"
}
}