ListDataAgentMemory - 获取DataAgent记忆列表

更新时间:
复制 MD 格式

ListDataAgentMemory 获取DataAgent记忆列表(子账号粒度最多50条记忆)

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

DMSUnit

string

当前 DMS 单元

cn-hangzhou

PageNum

integer

分页页码,最小值为 1。

1

PageSize

integer

每页最大数量。默认值:50。

50

ContentPattern

string

内容模式,用于模糊查询搜索

user preference

Order

string

指定的排序字段进行升序或降序。默认值为 desc。

  • asc:升序。

  • desc:降序。

枚举值:

  • asc :

    升序

  • desc :

    降序

desc

OrderBy

string

指定排序字段。默认值为 hitTimes。

  • hitTimes:命中次数。

  • created:创建时间。

枚举值:

  • created :

    创建时间

  • hitTimes :

    命中次数

hitTimes

QueryAll

boolean

是否查询全部状态的记忆。默认值为 true。

true

MemFrom

string

记忆来源

  • 会话生成:session

  • 用户编辑:user

枚举值:

  • session :

    会话生成

  • user :

    用户编辑

session

FromId

string

来源 ID

  • 当 MemFrom 为 session 时:FromId 表示会话 ID

  • 当 MemFrom 为 user 时,FromId 为用户子账号 ID

8zm3**********g3yxa1

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

Id of the request

67E910F2-4B62-5B0C-ACA3-7547695C****

Data

object

返回的结构体

Data

array<object>

返回的结构体

object

返回结果。

Content

string

记忆内容

Diamond pricing analysis requires examining the skewness and outliers of the distribution of each feature.

GmtCreated

string

创建时间

2026-07-29T07:11:23Z

GmtModified

string

修改时间

2026-07-29T07:11:23Z

HintLevel

integer

记忆命中等级(热度)

1

MemFrom

string

记忆来源

session

Status

string

记忆状态

枚举值:

  • init :

    待记忆

  • forgetting :

    遗忘中

  • updating :

    更新中

  • persisting :

    记忆中

  • forgotten :

    已遗忘

  • failed :

    记忆失败

  • memorized :

    已记住

memorized

Uuid

string

记忆 UUID

8zm3w********g3yxa1

FromId

string

记忆来源 ID

w3xa1********x6y8zm

PageNum

integer

当前页数。

1

PageSize

integer

每页记录数。

50

Total

integer

总记录数。

20

Success

boolean

请求是否成功,返回值如下:

  • true:请求成功。

  • false:请求失败。

true

ErrorCode

string

错误码。

InvalidTid

ErrorMessage

string

调用失败时,返回的错误信息。

Specified parameter Tid is not valid.

Code

string

状态码,Success 表示成功。

Success

Timestamp

string

操作时间戳

1768270172

示例

正常返回示例

JSON格式

{
  "RequestId": "67E910F2-4B62-5B0C-ACA3-7547695C****",
  "Data": {
    "Data": [
      {
        "Content": "Diamond pricing analysis requires examining the skewness and outliers of the distribution of each feature.",
        "GmtCreated": "2026-07-29T07:11:23Z",
        "GmtModified": "2026-07-29T07:11:23Z",
        "HintLevel": 1,
        "MemFrom": "session",
        "Status": "memorized",
        "Uuid": "8zm3w********g3yxa1",
        "FromId": "w3xa1********x6y8zm"
      }
    ],
    "PageNum": 1,
    "PageSize": 50,
    "Total": 20
  },
  "Success": true,
  "ErrorCode": "InvalidTid",
  "ErrorMessage": "Specified parameter Tid is not valid.",
  "Code": "Success",
  "Timestamp": "1768270172"
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情