ListEvaluationRuns

Updated at:

Queries the list of evaluation runs.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

agentloop:ListEvaluationRuns

list

*EvaluationTask

acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/evaluationtask/{#TaskId}

None None

Request syntax

GET /api/v1/evaluation-task/{agentSpace}/{taskId}/runs HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

agentSpace

string

No

The AgentSpace name.

prod-agentspace

taskId

string

No

The evaluation task ID.

eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25

Request parameters

Parameter

Type

Required

Description

Example

status

string

No

The run status filter.

Valid values:

  • Failed :

    Failed

  • Running :

    Running

  • Completed :

    Completed

  • Terminated :

    Terminated

  • Pending :

    Pending

Running

runType

string

No

The run type filter.

Valid values:

  • continuous :

    continuous

  • backfill :

    backfill

  • continuous_parent :

    continuous_parent

backfill

nextToken

string

No

The pagination token for the next page.

eyJsYXN0SWQiOjEwMX0=

maxResults

integer

No

The maximum number of results to return per page. Default value: 20. Maximum value: 100.

20

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

The request ID.

3FE4CD1E-FF41-56BE-B590-7A021D9C1524

totalCount

integer

The total number of runs that meet the conditions.

3

maxResults

integer

The maximum number of results per page used in this request.

20

nextToken

string

The pagination token for the next page. An empty value indicates that no more pages are available.

eyJsYXN0SWQiOjEyMH0=

evaluationRuns

array<object>

The list of run summaries.

[{"runId":"eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a","runType":"backfill","status":"Running","totalCount":100}]

object

The evaluation run summary object.

{"runId":"eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a"}

runId

string

The run ID.

eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a

runName

string

The run name.

trace_task_completion_eval-backfill

taskId

string

The evaluation task ID.

eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25

runType

string

The run type.

Valid values:

  • continuous :

    continuous

  • backfill :

    backfill

  • continuous_parent :

    continuous_parent

backfill

status

string

The run status.

Valid values:

  • Failed :

    Failed

  • Running :

    Running

  • Completed :

    Completed

  • Terminated :

    Terminated

  • Pending :

    Pending

Running

totalCount

integer

The total number of evaluations.

100

successCount

integer

The number of successful evaluations.

96

failedCount

integer

The number of failed evaluations.

4

createdAt

integer

The creation time. The value is a UNIX timestamp in seconds.

1782816000

updatedAt

integer

The update time. The value is a UNIX timestamp in seconds.

1782816600

dataStartTime

integer

The start time of the data window for this run. The value is a UNIX timestamp in seconds.

1782816000

dataEndTime

integer

The end time of the data window for this run. The value is a UNIX timestamp in seconds.

1782902400

Examples

Success response

JSON format

{
  "requestId": "3FE4CD1E-FF41-56BE-B590-7A021D9C1524",
  "totalCount": 3,
  "maxResults": 20,
  "nextToken": "eyJsYXN0SWQiOjEyMH0=",
  "evaluationRuns": [
    {
      "runId": "eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a",
      "runName": "trace_task_completion_eval-backfill",
      "taskId": "eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25",
      "runType": "backfill",
      "status": "Running",
      "totalCount": 100,
      "successCount": 96,
      "failedCount": 4,
      "createdAt": 1782816000,
      "updatedAt": 1782816600,
      "dataStartTime": 1782816000,
      "dataEndTime": 1782902400
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.