List and filter evaluation items
evaluation_items.list(EvaluationItemListParams**kwargs) -> SyncCursorPage[EvaluationItem]
GET/v5/evaluation-items
Return a paginated list of evaluation items belonging to the caller’s account.
Pass evaluation_id to restrict the results to a single evaluation’s items. The
completion_status filter selects items by whether any of their tasks errored:
failed returns only items that have task errors, passed returns only items with no
task errors, and all (or omitting the parameter) returns every item. Archived items
are excluded unless include_archived=true. Each returned item has its cached task
results merged into data and its errors exposed in task_errors, identically to the
single-item endpoint.
List and filter evaluation items
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
)
page = client.evaluation_items.list()
page = page.items[0]
print(page.id){
"has_more": true,
"items": [
{
"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"
}
}
],
"total": 0,
"limit": 0,
"object": "list"
}Returns Examples
{
"has_more": true,
"items": [
{
"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"
}
}
],
"total": 0,
"limit": 0,
"object": "list"
}