GetOptimizeTask
Queries the type, status, configuration, and scheduling checkpoint of a specified optimization task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:GetOptimizeTask |
get |
*OptimizeTask
|
None | None |
Request syntax
GET /agentspace/{agentSpace}/optimizetasks/{optimizeTaskName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| agentSpace |
string |
No |
The name of the AgentSpace. |
my-agent-space |
| optimizeTaskName |
string |
No |
The name of the optimization task. |
efficiency-analysis |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The optimization task details. |
||
| requestId |
string |
The request ID. |
9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M |
| 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. |
EfficiencyAnalysis |
| status |
string |
The status of the task. Valid values: Enabled and Disabled. |
Enabled |
| config |
object |
The type-specific configuration. For ExperienceMining and SkillOptimize, optional prompts support only inline Markdown. The main text is saved to inputs.prompt.content, which must be a non-empty UTF-8 string of 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 watermark. |
{ "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",
"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.