Breyta

M365CopilotAgent Interface (Client API reference)

Describes the currently active Microsoft 365 Copilot agent — returned by getCurrentAgent.

Properties

Name Type Description
agentId string \| null The unique identifier of the active agent, or null if the user is on mainline Microsoft 365 Copilot.
mode M365CopilotAgentMode \| null How the agent is being referenced, or null when no agent is active.

Remarks

agentId and mode work together:

  • agentId = string, mode = "agentPage" or "mentioned": an agent is active.
  • agentId = null, mode = null: the user is explicitly on mainline Microsoft 365 Copilot.

Related article

getCurrentAgent method
M365CopilotAgentMode interface