ListOptimizeTasks
Performs a paging query for optimization tasks in a specified AgentSpace and returns the task status, configurations, and scheduling checkpoints.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:ListOptimizeTasks |
list |
*OptimizeTask
|
None | None |
Request syntax
GET /agentspace/{agentSpace}/optimizetasks HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| agentSpace |
string |
No |
The name of the AgentSpace. |
my-agent-space |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| type |
string |
No |
Filters the results by task type. |
EfficiencyAnalysis |
| status |
string |
No |
Filters the results by status. |
Enabled |
| nextToken |
string |
No |
The pagination token. |
MTIzNDU2Nzg5MA== |
| maxResults |
integer |
No |
The maximum number of entries to return. Default value: 20. Maximum value: 100. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The list of optimization tasks. |
||
| requestId |
string |
The request ID. |
9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M |
| nextToken |
string |
The token for the next page. |
MTIzNDU2Nzg5MA== |
| maxResults |
integer |
The maximum number of entries per page. |
20 |
| totalCount |
integer |
The total number of entries. |
1 |
| optimizeTasks |
array<object> |
The list of optimization tasks. |
|
|
array<object> |
The optimization task. |
||
| regionId |
string |
The region ID. |
cn-hangzhou |
| optimizeTaskName |
string |
The name of the optimization task. |
efficiency-analysis |
| type |
string |
The type of the optimization task. Valid values: ExperienceMining, SkillOptimize, EfficiencyAnalysis, SOPGeneration, EvalMining, PolicyMining, and AssetMining. |
EfficiencyAnalysis |
| status |
string |
The status of the task. |
Enabled |
| config |
object |
The type-specific configuration. For ExperienceMining and SkillOptimize, the optional prompt supports only inline Markdown, and the body is saved to inputs.prompt.content (non-empty UTF-8, up to 16 KiB). |
{"ioVersion":2,"inputs":{"experienceLibrary":{"type":"dataset","dataset":"experiences"},"trajectory":{"type":"sls","project":"my-project","logstore":"agent-trajectory","format":"atif"},"prompt":{"type":"inline","format":"markdown","content":"# Guidance\\nExtract evidence-backed tool contracts."}},"outputs":{"changePlan":{"type":"dataset","dataset":"experience-plans"}},"operators":["tool_contract"],"application":{"mode":"manual"}} |
|
any |
The value of a single field in the task configuration. The fields are defined by the task type. For example, the value of the ioVersion field is 2. |
2 |
|
| checkpoint |
object |
The scheduling checkpoint, which stores states such as the general scheduling progress. |
{ "lastWindowEndTime": 1787133600000, "lastScheduleStatus": "Succeeded", "nextWindowStartTime": 1787133600000, "lastScheduleAttemptTime": 1787137386912, "lastScheduleSuccessTime": 1787137386912 } |
|
any |
The value of a single state field in the scheduling checkpoint. The fields are defined by the task type. If no checkpoint is generated, the entire checkpoint object is empty. |
{ "lastWindowEndTime": 1787133600000, "lastScheduleStatus": "Succeeded", "nextWindowStartTime": 1787133600000, "lastScheduleAttemptTime": 1787137386912, "lastScheduleSuccessTime": 1787137386912 } |
|
| nextTriggerTime |
string |
The next scheduling trigger time. |
2026-08-13T16:00:00Z |
| createTime |
string |
The creation time. |
2026-08-12T10:00:00Z |
| updateTime |
string |
The update time. |
2026-08-12T10:00:00Z |
Examples
Success response
JSON format
{
"requestId": "9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M",
"nextToken": "MTIzNDU2Nzg5MA==",
"maxResults": 20,
"totalCount": 1,
"optimizeTasks": [
{
"regionId": "cn-hangzhou",
"optimizeTaskName": "efficiency-analysis",
"type": "EfficiencyAnalysis",
"status": "Enabled",
"config": {
"key": "2"
},
"checkpoint": {
"key": "{\n\t\"lastWindowEndTime\": 1787133600000,\n\t\"lastScheduleStatus\": \"Succeeded\",\n\t\"nextWindowStartTime\": 1787133600000,\n\t\"lastScheduleAttemptTime\": 1787137386912,\n\t\"lastScheduleSuccessTime\": 1787137386912\n}"
},
"nextTriggerTime": "2026-08-13T16:00:00Z",
"createTime": "2026-08-12T10:00:00Z",
"updateTime": "2026-08-12T10:00:00Z"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.