getPanelAgentSoulRecallMoveStatus(params: GetPanelAgentSoulRecallMoveStatusParams)

版本要求:
@tuya-miniapp/cloud-api≥1.x.x

描述

查询记忆找回(灵魂迁移)任务进度。

参数

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

返回值

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

引用对象

interfaceGetPanelAgentSoulRecallMoveStatusResult
属性类型描述
taskIdstring任务 ID
taskStatusnumber0-处理中 / 1-成功 / 2-失败
progressCodestring进度编码
progressDescstring进度文案
failReasonstring失败原因(taskStatus=2 时)

示例代码

请求示例

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

const params = {
  devId: 'your_device_id',
};

getPanelAgentSoulRecallMoveStatus(params)
  .then(result => {
    console.log('灵魂迁移任务进度:', result);
  })
  .catch(error => {
    console.error('查询灵魂迁移任务进度失败:', error);
  });

返回示例

{
  "taskId": "your_task_id",
  "taskStatus": 0,
  "progressCode": "SYNC_MEMORY",
  "progressDesc": "同步聊天与记忆"
}