getPanelAgentChatSummary(params: GetPanelAgentChatSummaryParams)

版本要求:
@tuya-miniapp/cloud-api≥1.0.6

描述

查询角色对话总结。

参数

参数类型必填说明
是请求体

返回值

类型:Promise<string>
GetPanelAgentChatSummaryResult(字段含义见类型定义与 minituya 返回参数)

合法值

GetPanelAgentChatSummaryParams.bindRoleType
值说明最低版本
0--
1--
2--

示例代码

请求示例

import { getPanelAgentChatSummary } from '@tuya-miniapp/cloud-api';

const params = {
  devId: 'your_device_id',
  bindRoleType: 0,
  roleId: 'role_12345',
};

getPanelAgentChatSummary(params)
  .then(result => {
    console.log('对话总结:', result);
  })
  .catch(error => {
    console.error('获取对话总结失败:', error);
  });

返回示例

"用户询问了天气信息,智能体提供了准确的天气预报。用户对服务表示满意。"