Query the runtime task list¶
Query the tasks saved while the agent is running.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/agent-runtime-tasks
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare a personal access token and target workspace ID that can access the target workspace.
Request parameters¶
Replace $WORKSPACE_ID, $CLOUDSIGMA_API_KEY in the example with actual values.
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/agent-runtime-tasks" -H "X-API-Key: $CLOUDSIGMA_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
The workspace ID to which it belongs. |
Query parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Only tasks for the specified agent are returned. |
|
string |
No |
Current workspace or system. When omitted, the agent source is not limited. |
|
string |
No |
Only tasks for the specified context are returned. |
|
string |
No |
Filter by task current status. |
|
integer |
No |
Quantity per page. 50 when not provided, maximum 200. |
|
integer |
No |
Starting offset. Negative numbers are handled as 0. |
When agent_id or agent_workspace_id is omitted, the agent source is not limited according to the corresponding conditions. When filling in agent_workspace_id, only the current workspace or system is accepted, and null values cannot be passed.
When a parameter with the same name is submitted repeatedly, this interface reads the first value.
Successful response¶
{
"code": 0,
"data": {
"items": [],
"total": 0,
"limit": 0,
"offset": 0
}
}
Field |
Type |
Description |
|---|---|---|
|
array of object |
The runtime task for the current page. |
|
string |
Task ID, you can fill in the task details or the task_id of the event request. |
|
string |
The workspace ID to which it belongs. |
|
string |
agent source workspace. Current workspace or system, not limited when filtering is omitted. |
|
string |
agent ID. |
|
string |
Context ID. |
|
string |
Current task status. Values: |
|
string |
A2A task status. Values: |
|
string |
The runtime manifest ID used by the task. |
|
string |
Provider. |
|
string |
Run the provider. |
|
string |
Run configuration. |
|
string |
Run the entry. |
|
string |
Backend implementation. |
|
string |
Backend selection strategy. |
|
string |
Tool mode. |
|
string |
TraceID。 |
|
integer |
Event cursor. |
|
string |
Enter the snapshot ID for this round. |
|
string |
This round output snapshot ID. |
|
boolean |
Whether the output of this round has been submitted. |
|
string |
Enter a summary. |
|
string |
Summary. |
|
array of object |
Product reference. |
|
object |
Task instructions. |
|
object |
Model configuration. |
|
array of object |
Skill set. |
|
array of object |
Tool collection. |
|
string |
logo. |
|
string |
Name. |
|
string |
category. |
|
string |
Description. |
|
string |
Side Effect Category. Values: |
|
object |
Input field structure. |
|
object |
Output field structure. |
|
object |
Extended metadata. |
|
string |
Credentials reference. |
|
array of object |
knowledge base reference. |
|
string |
logo. |
|
string |
Name. |
|
string |
Description. |
|
object |
Extended metadata. |
|
array of object |
Catalog asset reference. |
|
object |
Number of attempts. |
|
string |
Snapshot ID. |
|
integer |
Number of attempts. |
|
integer |
Interaction round number. |
|
string |
category. Values: |
|
boolean |
Whether to regenerate. |
|
string |
The task ID to be retried. |
|
boolean |
Whether to use the same run manifest. |
|
object |
error message. |
|
string |
Creation time. RFC 3339 time. |
|
string |
Update time. RFC 3339 time. |
|
integer |
The total number of matching tasks. |
|
integer |
Current page limit. |
|
integer |
The starting offset of the current page. |
Error response¶
{
"code": 15,
"message": "runtime read model is not available"
}
Field |
Type |
Description |
|---|---|---|
|
integer |
error code. |
|
string |
Error message for the caller. |