M365CopilotAgent Interface (การอ้างอิง API ไคลเอ็นต์)

อธิบาย เอเจนต์ Copilot Microsoft ที่ใช้งานอยู่ในปัจจุบัน — ถูกส่งกลับโดย getCurrentAgent

Properties

ชื่อ Type คำอธิบาย
agentId string \| null ตัวระบุที่ไม่ซ้ําของตัวแทนที่ใช้งานอยู่ หรือnullถ้าผู้ใช้อยู่บน Microsoft Copilot สายหลัก
mode M365CopilotAgentMode\| null วิธีการอ้างอิงถึงตัวแทน หรือ null เมื่อไม่มีเจ้าหน้าที่ทํางานอยู่

หมาย เหตุ

agentId และ mode ทํางานร่วมกัน:

  • agentId = สตริง mode = "agentPage" หรือ "mentioned": ตัวแทนทํางานอยู่
  • agentId = null: mode = nullผู้ใช้อยู่บน Microsoft Copilot สายหลักอย่างชัดเจน

บทความที่เกี่ยวข้อง

getCurrentAgent method
อินเทอร์เฟซ M365CopilotAgentMode