List an agent’s pending drafts
Lists the posts and proposals waiting for an internal member’s approval, the soonest to lapse first, at most 50: where each would post, its exact text, who is asked to approve it and when it expires. A proposal (kind: task) is what a check of an assistant-mode agent’s follow-up, or its conversation after getting to know a place, asks to do: its sentence, its reason and its follow-up (itemId, itemTitle), with the work it asks to do as its text; once approved it runs in the conversation its follow-up belongs to. A proposal with followUp runs nothing: approving it takes that follow-up of the conversation, with the approver as the one it follows up for. permissionRequests lists the runtime permission requests tasks are waiting on, oldest first: what each asks to run, when it is denied and its task stops unless someone answers, and its options; the task and its conversation are named only where the caller may view them. Decide one with decideAgentPermissionRequest. An agent outside assistant mode is answered, without proposals, only when its daemon serves every agent’s Activity, and 409 ASSISTANT_MODE_OFF otherwise. This read changes nothing. Only callers who can edit the agent may read it.
授权
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)$uuid响应主体
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/orgs/string/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/assistant/drafts"{ "drafts": [ { "id": "string", "kind": "reply", "target": { "platform": "string", "integrationId": "string", "channel": "string", "thread": "string", "name": "string", "dm": true, "external": true }, "text": "string", "approver": { "kind": "member", "integrationId": "string", "channel": "string", "userId": "string", "consoleUserId": "string", "name": "string" }, "proposal": { "sentence": "string", "why": "string", "itemId": "string", "itemTitle": "string", "followUp": { "title": "string", "doneWhen": "string", "nextCheck": "2019-08-24T14:15:22Z", "watch": "string" } }, "inConversation": true, "createdAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z" } ], "truncated": true, "permissionRequests": [ { "requestId": "string", "tool": "string", "createdAt": "string", "expiresAt": "string", "options": [ { "optionId": "string", "name": "string", "kind": "allow_once" } ], "subsession": { "sessionId": "string", "title": "string" }, "parent": { "sessionId": "string", "title": "string", "platform": "string", "channelName": "string" } } ]}