跳转到内容
EN

读取部署运行

GET/anthropic/v1/deployment_runs/{deployment_run_id}● 支持

请求参数

  • deployment_run_idstring必填

    path: 路径参数:部署运行 ID。

返回

501

支持手动运行与 cron 调度,使用固定智能体版本创建会话;创建失败记录错误并自动暂停,恢复后继续调度。错过多个时间点只补跑一次。运行列表支持部署、错误、触发类型、时间范围过滤及游标翻页。

错误按 Claude Managed Agents 格式返回,参见 错误码

请求示例

curl
curl https://api.deepraxis.com/anthropic/v1/deployment_runs/deployment_run_123 \
  -H "x-api-key: $PRAXIS_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "anthropic-beta: managed-agents-2026-04-01"
Python
from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.deepraxis.com/anthropic",
    api_key="$PRAXIS_API_KEY",
)

# 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
result = client.beta.deployment_runs.retrieve("deployment_run_123")
print(result)
TypeScript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  baseURL: "https://api.deepraxis.com/anthropic",
  apiKey: "$PRAXIS_API_KEY",
});

// 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
const result = await client.beta.deploymentRuns.retrieve("deployment_run_123");
console.log(result);

响应示例 501

{
  "type": "error",
  "error": {
    "type": "not_implemented_error",
    "message": "Not implemented: this Managed Agents operation is not implemented on this platform yet (GET /v1/deployment_runs/{deployment_run_id}); see the docs for the supported subset."
  },
  "request_id": "5672f93b-2158-4923-b504-69bf2cb8bcb4"
}

响应

HTTP 200

Successful response

application/json

名称 类型 说明
id string Unique identifier for this run (drun_...).
agent object A resolved agent reference with a concrete version.
agent.id string
agent.type string
agent.version number
created_at string A timestamp in RFC 3339 format
deployment_id string ID of the deployment that produced this run.
error null | object Why the run failed to create a session. The type identifies the failure; message is human-readable detail.
error.message string Human-readable error description.
error.type string
session_id null | string Populated on success. Null on creation failure. Exactly one of session_id or error is non-null.
trigger_context object Describes what triggered a deployment run, with trigger-specific metadata.
trigger_context.scheduled_at string A timestamp in RFC 3339 format
trigger_context.type string
type string