Decide an agent’s pending draft
Approves or discards one post waiting for approval, exactly as its card would: approve posts the text unchanged, once; discard drops it. The answer is the outcome: succeeded, denied, failed (nothing was sent), or outcome_unknown (it may have posted and is never retried). A proposal is approved or denied the same way: approval starts it as a task and answers executing, and while the agent already runs as many tasks as it may, approval is refused with 409 SUBSESSION_LIMIT and the proposal keeps waiting. Approving a proposal with followUp takes that follow-up instead, with the caller as the one it follows up for, and answers succeeded with the follow-up taken and its conversation where the caller may view it; it counts against no limit. The card is rewritten to the decision. A draft that expired or was already decided is refused with 409 and posts nothing. An agent outside assistant mode is answered only when its daemon serves every agent’s Activity, and 409 ASSISTANT_MODE_OFF otherwise. Only callers who can edit the agent may decide, and they are recorded as the decider.
授权
bearerAuth 位置: header
路径参数
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuid1 <= length <= 512请求主体
application/json
TypeScript 定义
在 TypeScript 中使用 request body 类型。
响应主体
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/orgs/string/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/assistant/drafts/string/decision" \ -H "Content-Type: application/json" \ -d '{ "decision": "approve" }'{ "status": "awaiting_review", "failure": "string", "followUp": { "id": "string", "conversation": { "sessionId": "string", "title": "string", "platform": "string", "channelName": "string" } }}