ListEvaluationTasks

Updated at:

Queries the evaluation task list.

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:ListEvaluationTasks

list

*EvaluationTask

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

None None

Request syntax

GET /api/v1/evaluation-tasks HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

agentSpace

string

No

The AgentSpace name.

prod-agentspace

taskName

string

No

The fuzzy search condition for the task name.

trace_task_completion_eval

taskMode

string

No

The evaluation task mode. If not specified, the backend defaults to batch.

Valid values:

  • batch :

    batch

batch

dataType

string

No

The data source type of the evaluation object. Use trace for trace evaluation.

Valid values:

  • trace :

    trace

  • log :

    log

  • atif :

    atif

  • dataset :

    dataset

trace

status

string

No

The filter condition for the evaluation task status.

Valid values:

  • Failed :

    Failed

  • Running :

    Running

  • Completed :

    Completed

  • Scheduling :

    Scheduling

  • Deleted :

    Deleted

  • Terminated :

    Terminated

  • Pending :

    Pending

Running

nextToken

string

No

The pagination token for the next page, obtained from the previous response.

eyJsYXN0SWQiOjEyMywib2Zmc2V0IjoyMH0=

maxResults

integer

No

The number of entries to return per page. The backend default is 20, and the maximum is 100.

20

channel

string

No

The filter condition for the task source. If not specified, tasks from the default source are queried.

Valid values:

  • default :

    default

default

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

The request ID.

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

evaluationTasks

array<object>

The list of evaluation task summaries.

[{"taskId":"eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25","taskName":"trace_task_completion_eval","taskMode":"batch","dataType":"trace","status":"Running"}]

array<object>

A single evaluation task summary object.

{"taskId":"eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25"}

taskId

string

The evaluation task ID.

eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25

taskName

string

The task name.

trace_task_completion_eval

taskMode

string

The evaluation task mode.

Valid values:

  • batch :

    batch

batch

dataType

string

The data source type of the evaluation object.

Valid values:

  • trace :

    trace

  • log :

    log

  • atif :

    atif

  • dataset :

    dataset

trace

status

string

The evaluation task status.

Valid values:

  • Failed :

    Failed

  • Running :

    Running

  • Completed :

    Completed

  • Scheduling :

    Scheduling

  • Deleted :

    Deleted

  • Terminated :

    Terminated

  • Pending :

    Pending

Running

createdAt

integer

The creation time, in seconds as a UNIX timestamp.

1782816000

updatedAt

integer

The last update time, in seconds as a UNIX timestamp.

1782816600

evaluators

string

The evaluator configuration summary, as a JSON string.

[{"evaluatorRef":"Builtin.agent_task_completion"}]

tags

object

The key-value pairs of task tags. Empty if not set.

{"serviceId":"checkout-service","env":"prod"}

string

A single task tag value. The key name is customized based on the business dimension.

prod

config

object

The data source and execution configuration summary.

{"storeName":"logstore-tracing","dataScope":"trace"}

string

The value of a single configuration item. The key name is determined by the specific field convention.

trace

runStrategyConfig RunStrategies

The structured configuration of the run strategy, including the parsed backfill strategy and continuous evaluation strategy.

{"backfill":{"enabled":true,"startTime":1782816000000,"endTime":1782902400000},"continuous":{"enabled":true,"intervalUnit":"HOUR","intervalValue":1,"dataDelayMinutes":5}}

description

string

The evaluation task description.

Evaluate the completion rate of online agent trace tasks

nextToken

string

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

eyJsYXN0SWQiOjEwMSwib2Zmc2V0IjoyMH0=

maxResults

integer

The number of entries per page used for this request.

20

totalCount

integer

The total number of records. The backend queries the total count only on the first page, so it may be empty on subsequent pages.

126

In the latest Zhenyuan contract, the list response no longer returns the raw JSON string field runStrategies. Callers must read evaluationTasks[].runStrategyConfig to obtain the structured run strategy.

Examples

Success response

JSON format

{
  "requestId": "3FE4CD1E-FF41-56BE-B590-7A021D9C1524",
  "evaluationTasks": [
    {
      "taskId": "eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25",
      "taskName": "trace_task_completion_eval",
      "taskMode": "batch",
      "dataType": "trace",
      "status": "Running",
      "createdAt": 1782816000,
      "updatedAt": 1782816600,
      "evaluators": "[{\"evaluatorRef\":\"Builtin.agent_task_completion\"}]",
      "tags": {
        "key": "prod"
      },
      "config": {
        "key": "trace"
      },
      "runStrategyConfig": {
        "backfill": {
          "enabled": true,
          "startTime": 1782816000000,
          "endTime": 1782902400000
        },
        "continuous": {
          "enabled": true,
          "intervalUnit": "HOUR",
          "intervalValue": 1,
          "dataDelayMinutes": 5
        },
        "selectedData": {
          "startTime": 1735574400,
          "endTime": 1735660800,
          "evalIds": [
            "\"2646a9380bba3c86371f55a0226322941794983634\""
          ]
        }
      },
      "description": "Evaluate the completion rate of online agent trace tasks"
    }
  ],
  "nextToken": "eyJsYXN0SWQiOjEwMSwib2Zmc2V0IjoyMH0=",
  "maxResults": 20,
  "totalCount": 126
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.