提供用于在模型驱动Power Apps中与 M365 Copilot交互的方法,包括用于执行已注册Microsoft Copilot Studio主题的预览 API。
Methods
| 方法 | Description |
|---|---|
| addActionHandler | 为智能 Microsoft 365 Copilot 副驾驶®操作注册自定义处理程序函数。 |
| addDefaultActionHandlers | 还原智能 Microsoft 365 Copilot 副驾驶®操作的平台默认处理程序。 |
| executeEvent | (预览版)根据已注册的事件名称执行Microsoft Copilot Studio主题。 返回 MCSResponse 类型的数组。 |
| executePrompt | (预览版)根据主题中注册的触发器查询执行Microsoft Copilot Studio主题。 返回 MCSResponse 类型的数组。 |
| getCurrentAgent | 返回当前处于活动状态的 Microsoft 365 Copilot 智能体;如果未确定代理状态,则返回未定义。 |
| isM365CopilotEnabled | 返回当前环境中是否启用智能 Microsoft 365 Copilot 副驾驶®。 |
| openM365CopilotPanel | 打开智能 Microsoft 365 Copilot 副驾驶®侧面板。 |
| removeActionHandler | 删除以前为智能 Microsoft 365 Copilot 副驾驶®操作注册的自定义处理程序。 |
| removeDefaultActionHandlers | 删除智能 Microsoft 365 Copilot 副驾驶®操作的平台默认处理程序。 |
| sendPromptToM365Copilot | 将提示发送到智能 Microsoft 365 Copilot 副驾驶®侧面板,导致Copilot代表用户处理和响应。 |
| 更新上下文 | (预览版)将更新的应用上下文发送到智能 Microsoft 365 Copilot 副驾驶®侧面板。 |
Interfaces
| Interface | Description |
|---|---|
| M365CopilotAgent | 描述当前活动Microsoft 365 Copilot 智能体 - 由 getCurrentAgent 返回。 |
| M365CopilotAgentMode | 描述如何引用 Microsoft 365 Copilot 智能体。 |
| MCSResponse | 描述 executeEvent 和 executePrompt 方法返回的数据。 |
| PowerAppsContent | 描述传递给 updateContext 方法的上下文数据。 所有属性都是可选的。 |
| SendPromptToM365CopilotOptions | 描述传递给 sendPromptToM365Copilot 方法的可选参数。 |