ListEvaluationTasks
Queries the evaluation task list.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:ListEvaluationTasks |
list |
*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 |
| dataType |
string |
No |
The data source type of the evaluation object. Use trace for trace evaluation. Valid values:
|
trace |
| status |
string |
No |
The filter condition for the evaluation task status. Valid values:
|
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 |
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 |
| dataType |
string |
The data source type of the evaluation object. Valid values:
|
trace |
| status |
string |
The evaluation task status. Valid values:
|
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.