Query runtime data sharding

Query the data fragments saved when the agent is running.

HTTP
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/agent-runtime/data-parts

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/data-parts" -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.

Successful response

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

Field

Type

Description

data.items

array of object

Runtime data sharding description.

data.items[].type

string

Data sharding type. Values: moi.tool.call, moi.tool.result, moi.progress, moi.feedback.submit, moi.feedback.received, moi.run.control, moi.run.control.result, moi.provider_interaction.respond, moi.a2ui.surface.

data.items[].version

integer

Data fragmentation protocol version.

data.items[].direction

string

Data flow direction. Value: runtime_to_client, client_to_runtime.

data.items[].transport

string

Transmission method.

data.items[].methods

array of string

Available methods.

data.items[].status

string

Current status.

data.items[].description

string

Description.

data.items[].schema

object

Data sharding structure. Returns if present.

data.total

integer

The number of records that match the current query conditions.

data.limit

integer

The maximum number of queries for this time.

data.offset

integer

The offset of this query.

Error response

Parameter error returns HTTP 400/code=2. The data sharding service error is mapped to HTTP 500/code=13 according to the current interface. If the identity authentication fails, a string type error code may be returned first, which cannot be parsed according to the numeric business code.

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