AnthropicClaude 托管智能体

运行部署

立即触发一次定时部署,不必等到下一个计划时间点。

POST /anthropic/v1/deployments/{deployment_id}/run○ 未支持

请求参数

  • deployment_idstring必填

    path: 部署 ID(路径或查询参数)。

返回

501 平台还没有实现这个端点;调用会得到下面这个响应:

平台还不能按计划或触发条件自动运行智能体。调用会返回 501(not_implemented_error),不产生副作用,官方 SDK 不会重试。

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

响应

HTTP 200

Successful response

application/json

名称类型说明
idstringUnique identifier for this run (`drun_...`).
agentobjectA resolved agent reference with a concrete version.
agent.idstring
agent.typestring
agent.versionnumber
created_atstringA timestamp in RFC 3339 format
deployment_idstringID of the deployment that produced this run.
errornull | objectWhy the run failed to create a session. The type identifies the failure; message is human-readable detail.
error.messagestringHuman-readable error description.
error.typestring
session_idnull | stringPopulated on success. Null on creation failure. Exactly one of `session_id` or `error` is non-null.
trigger_contextobjectDescribes what triggered a deployment run, with trigger-specific metadata.
trigger_context.scheduled_atstringA timestamp in RFC 3339 format
trigger_context.typestring
typestring