M365CopilotAgent インターフェイス (クライアント API リファレンス)

現在アクティブな Microsoft 365 Copilot エージェントについて説明します。getCurrentAgent によって返されます。

プロパティ

Name タイプ Description
agentId string \| null アクティブなエージェントの一意識別子。ユーザーがメインライン Microsoft 365 Copilot上にある場合は null
mode M365CopilotAgentMode\| null エージェントの参照方法、またはアクティブなエージェントがない場合に null

Remarks

agentIdmode 連携します。

  • agentId = 文字列、 mode = "agentPage" 、または "mentioned": エージェントがアクティブです。
  • agentId = null, mode = null: ユーザーはメインライン Microsoft 365 Copilotに明示的にアクセスします。

関連記事

getCurrentAgent メソッド
M365CopilotAgentMode インターフェイス