ตัวแทน AI
แพลตฟอร์มหลักagents_messageตัวแทน AISend a message or task handoff to an opted-in organisation AI Agent or configured external A2A peer, or cancel an in-flight delivery. Call agents_read with action "peers" first to discover peerIds.
Actions:
- send: Send a message to a peer agent. Deliver a message (and optional handoff context) to a peer agent. Waits up to waitSeconds for the reply; if still working, poll with agents_read status using the returned deliveryId. Needs targetPeerId, message. May ask for confirmation.
- cancel: Cancel an active agent delivery. Request cancellation of an in-flight delivery previously started by this caller. Needs deliveryId.
พารามิเตอร์
| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
action* | "send" | "cancel" | สิ่งที่ต้องการทำ การดำเนินการแต่ละรายการมีคำอธิบายอยู่ในคำอธิบายของเครื่องมือ |
targetPeerId | string | Peer identifier (or external peer slug) from agents_read peers. (send) |
message | string | The question, instruction, or handoff request to send. (send) |
subject | string | Optional short title for the target conversation thread. (send) |
context | string | Optional supporting notes or workspace summary for the receiving agent. (send) |
contextId | string | Optional thread identifier from an earlier delivery to continue the same conversation. (send) |
waitSeconds | integer | Seconds to wait inline for a reply (0 for immediate async return, up to 45; default 30). (send) |
deliveryId | string | The deliveryId returned by agents_message send. (cancel) |
confirm | boolean | ตั้งค่าเฉพาะหลังจากผู้ใช้ยืนยันตัวอย่างที่ได้จากการเรียกครั้งแรกแล้วเท่านั้น |
agents_readตัวแทน AIList opted-in AI Agents in your organisation and configured external A2A peers, poll the status or reply of an in-flight delivery, or inspect recent agent-to-agent message history.
Actions:
- peers: List reachable peer agents. Return the opted-in organisation AI Agents and configured external A2A peers this caller is authorised to contact.
- status: Check delivery status. Poll an agent message delivery by deliveryId and return its status and reply once complete. Needs deliveryId.
- history: Recent agent-to-agent history. List recent sent or received agent-to-agent deliveries (redacted summaries, no secrets).
พารามิเตอร์
| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
action* | "peers" | "status" | "history" | สิ่งที่ต้องการทำ การดำเนินการแต่ละรายการมีคำอธิบายอยู่ในคำอธิบายของเครื่องมือ |
kind | "all" | "organisation" | "external" | Filter peers by type: all (default), organisation, or external. (peers) |
limit | integer | Maximum number of peers to return (default 25). (peers, history) |
cursor | string | Pagination cursor from a previous call. (peers, history) |
deliveryId | string | The deliveryId returned by agents_message send. (status) |
waitSeconds | integer | Seconds to wait for completion before returning (0 to 30, default 15). (status) |
direction | "all" | "sent" | "received" | Which deliveries to include: all (default), sent, or received. (history) |