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

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

プロパティ

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

Remarks

agentId と mode 連携します。

  • agentId = 文字列、 mode = "agentPage" 、または "mentioned": エージェントがアクティブです。
  • agentId = null、mode = null: ユーザーがメインライン Microsoft Copilot上に明示的に配置されています。

関連記事

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