List Evaluation Groups
evaluation_groups.list(EvaluationGroupListParams**kwargs) -> SyncCursorPage[EvaluationGroup]
GET/v5/evaluation-groups
List the calling account’s evaluation groups with optional filters.
Results are paginated and scoped to the authenticated account. The optional filters combine with AND semantics: name does a case-insensitive partial (substring) match on the group name, tags returns only groups whose tag list contains all of the supplied tags, and evaluation_id returns only groups that have the given evaluation as an active member. By default archived (soft-deleted) groups are excluded; set include_deleted to include them. The views parameter optionally expands each group with its members and/or row_identifiers, and returned members are enriched with each evaluation’s name, tags, and creation time.
List Evaluation Groups
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_groups.list()
page = page.items[0]
print(page.id){
"has_more": true,
"items": [
{
"id": "id",
"account_id": "account_id",
"created_at": "2019-12-27T18:11:19.117Z",
"name": "name",
"tags": [
"string"
],
"deleted_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"members": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"evaluation_group_id": "evaluation_group_id",
"evaluation_id": "evaluation_id",
"deleted_at": "2019-12-27T18:11:19.117Z",
"evaluation_created_at": "2019-12-27T18:11:19.117Z",
"evaluation_name": "evaluation_name",
"evaluation_tags": [
"string"
],
"object": "evaluation_group.member"
}
],
"metadata": {
"foo": "bar"
},
"object": "evaluation_group",
"row_identifiers": [
{
"column_name": "column_name",
"evaluation_id": "evaluation_id",
"object": "evaluation_group.row_identifier"
}
]
}
],
"total": 0,
"limit": 0,
"object": "list"
}Returns Examples
{
"has_more": true,
"items": [
{
"id": "id",
"account_id": "account_id",
"created_at": "2019-12-27T18:11:19.117Z",
"name": "name",
"tags": [
"string"
],
"deleted_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"members": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"evaluation_group_id": "evaluation_group_id",
"evaluation_id": "evaluation_id",
"deleted_at": "2019-12-27T18:11:19.117Z",
"evaluation_created_at": "2019-12-27T18:11:19.117Z",
"evaluation_name": "evaluation_name",
"evaluation_tags": [
"string"
],
"object": "evaluation_group.member"
}
],
"metadata": {
"foo": "bar"
},
"object": "evaluation_group",
"row_identifiers": [
{
"column_name": "column_name",
"evaluation_id": "evaluation_id",
"object": "evaluation_group.row_identifier"
}
]
}
],
"total": 0,
"limit": 0,
"object": "list"
}