Skip to content
中文

Read how a consolidation went

Call Create agent first and replace the example agent ID with its returned ID.

GET/agent/v1/agents/{agent_id}/consolidations/{consolidation_id}● Supported

Request parameters

  • agent_idstringrequired

    path: Agent id from agents.create or agents.list, the eight character identity number or the handle; the agent must belong to your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….

  • consolidation_idstringrequired

    path: Consolidation id (cns_...) returned by agents.consolidations.create for this agent.

Returns

200

Status is queued, running, done or failed; done carries engram_id when the pass wrote one.

Errors follow the Anthropic error format (type / message / request_id) — see error codes

Request

curl
# Call Create agent first and replace the example agent ID with its returned ID.
curl https://api.deepraxis.com/agent/v1/agents/agent_123/consolidations/cns_123 \
  -H "Authorization: Bearer $PRAXIS_API_KEY"
Python
# Call Create agent first and replace the example agent ID with its returned ID.
import requests

opts = dict(
    base_url="https://api.deepraxis.com/agent",
    api_key="$PRAXIS_API_KEY",
)

# /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
resp = requests.get(
    f"{opts['base_url']}/v1/agents/agent_123/consolidations/cns_123",
    headers={"Authorization": f"Bearer {opts['api_key']}"},
)
print(resp.status_code, resp.json())
TypeScript
// Call Create agent first and replace the example agent ID with its returned ID.
const opts = {
  baseURL: "https://api.deepraxis.com/agent",
  apiKey: "$PRAXIS_API_KEY",
};

// /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
const resp = await fetch(`${opts.baseURL}/v1/agents/agent_123/consolidations/cns_123`, {
  headers: { Authorization: `Bearer ${opts.apiKey}` },
});
console.log(resp.status, await resp.json());

Response 200

{
  "id": "cns_67a1d6d7bd8a669db13efffd4b6da5b2",
  "session_id": "sesn_67a1d6d7bd8a669db13efffd4b6da5b2",
  "status": "queued"
}

Response

HTTP 200

The consolidation’s current status.

application/json

Name Type Description
id string Consolidation id (cns_...), the id to pass to agents.consolidations.retrieve; derived from the agent and the idempotency_key (or the body), so a replay returns the same id.
session_id string The imported session (sesn_...) that holds the episode: its events are your messages at the times you gave, it is archived, and it is readable with sessions.events.list.
status string Where the consolidation is: queued, running, done or failed.
engram_id string The engram the pass wrote, present only when status is done and the experience held something worth keeping; recall reads it back.
error string Why the pass failed, present only when status is failed.