Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.