Query the runtime task list

Query the tasks saved while the agent is running.

HTTP
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.

Shell
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

workspace_id

string

Yes

The workspace ID to which it belongs.

Query parameters

Parameter

Type

Required

Description

agent_id

string

No

Only tasks for the specified agent are returned.

agent_workspace_id

string

No

Current workspace or system. When omitted, the agent source is not limited.

context_id

string

No

Only tasks for the specified context are returned.

state

string

No

Filter by task current status.

limit

integer

No

Quantity per page. 50 when not provided, maximum 200.

offset

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

JSON
{
  "code": 0,
  "data": {
    "items": [],
    "total": 0,
    "limit": 0,
    "offset": 0
  }
}

Field

Type

Description

data.items

array of object

The runtime task for the current page.

data.items[].id

string

Task ID, you can fill in the task details or the task_id of the event request.

data.items[].workspace_id

string

The workspace ID to which it belongs.

data.items[].agent_workspace_id

string

agent source workspace. Current workspace or system, not limited when filtering is omitted.

data.items[].agent_id

string

agent ID.

data.items[].context_id

string

Context ID.

data.items[].state

string

Current task status. Values: submitted, queued, working, input_required, auth_required, completed, failed, canceled, rejected, cancel_requested, reconciling.

data.items[].a2a_state

string

A2A task status. Values: submitted, working, input-required, auth-required, completed, failed, canceled, rejected.

data.items[].manifest_id

string

The runtime manifest ID used by the task.

data.items[].provider

string

Provider.

data.items[].runtime_provider

string

Run the provider.

data.items[].runtime_profile

string

Run configuration.

data.items[].runtime_facade

string

Run the entry.

data.items[].backend_implementation

string

Backend implementation.

data.items[].backend_selection_policy

string

Backend selection strategy.

data.items[].tool_mode

string

Tool mode.

data.items[].trace_id

string

TraceID。

data.items[].event_cursor

integer

Event cursor.

data.items[].turn_input_snapshot_id

string

Enter the snapshot ID for this round.

data.items[].turn_output_snapshot_id

string

This round output snapshot ID.

data.items[].turn_output_committed

boolean

Whether the output of this round has been submitted.

data.items[].input_summary

string

Enter a summary.

data.items[].summary

string

Summary.

data.items[].artifact_refs

array of object

Product reference.

data.items[].instruction

object

Task instructions.

data.items[].model_config

object

Model configuration.

data.items[].skills

array of object

Skill set.

data.items[].tools

array of object

Tool collection.

data.items[].tools[].id

string

logo.

data.items[].tools[].name

string

Name.

data.items[].tools[].kind

string

category.

data.items[].tools[].description

string

Description.

data.items[].tools[].side_effect_class

string

Side Effect Category. Values: read, write, external_effect.

data.items[].tools[].input_schema

object

Input field structure.

data.items[].tools[].output_schema

object

Output field structure.

data.items[].tools[].metadata

object

Extended metadata.

data.items[].tools[].credential_ref

string

Credentials reference.

data.items[].knowledge_bases

array of object

knowledge base reference.

data.items[].knowledge_bases[].id

string

logo.

data.items[].knowledge_bases[].name

string

Name.

data.items[].knowledge_bases[].description

string

Description.

data.items[].knowledge_bases[].metadata

object

Extended metadata.

data.items[].knowledge_bases[].catalog_asset_refs

array of object

Catalog asset reference.

data.items[].attempt

object

Number of attempts.

data.items[].attempt.snapshot_id

string

Snapshot ID.

data.items[].attempt.attempt

integer

Number of attempts.

data.items[].attempt.turn_index

integer

Interaction round number.

data.items[].attempt.kind

string

category. Values: turn_input, turn_output, mcp_source_candidates, provider_run_terminal, provider_run_successor, provider_start_delivery_ack, astra_recovery_dispatch.

data.items[].attempt.regenerate

boolean

Whether to regenerate.

data.items[].attempt.retry_of_task_id

string

The task ID to be retried.

data.items[].attempt.same_manifest

boolean

Whether to use the same run manifest.

data.items[].error

object

error message.

data.items[].created_at

string

Creation time. RFC 3339 time.

data.items[].updated_at

string

Update time. RFC 3339 time.

data.total

integer

The total number of matching tasks.

data.limit

integer

Current page limit.

data.offset

integer

The starting offset of the current page.

Error response

JSON
{
  "code": 15,
  "message": "runtime read model is not available"
}

Field

Type

Description

code

integer

error code.

message

string

Error message for the caller.

Last updated on