Last Updated on : 2026-02-26 09:17:13download
Based on the device ID, query the memory list for the specified AI agent role.
GET: /v1.0/cloud/agent/ai/chat/b/devices/{device_id}/memories
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| device_id | String | path | true | The ID of the specified device. |
| bind_role_type | Integer | query | true | The type of role to bind. Valid values:
role_id has a value, this parameter value must be passed. |
| role_id | String | query | true | The ID of the specified role. |
| Parameter name | Type | Description |
|---|---|---|
| effective_scope_name | String | The effective scope name of the memory. |
| effective_scope | Integer | The ID of the memory scope. |
| memory_list | List | The list of memory information. |
Description of memory_list
| Parameter name | Type | Description |
|---|---|---|
| memory_value | String | The memory content. |
| memory_key | String | The memory key. |
| memory_name | String | The memory name. |
| effective_scope_name | String | The effective scope name of the memory. |
| effective_scope | Integer | The ID of the memory scope. |
GET: /v1.0/cloud/agent/ai/chat/b/devices/{device_id}/memories
{
"device_id": "6c3585ebfe301b40a8u***",
"bind_role_type": 1,
"role_id": "94300***"
}
[
{
"effective_scope_name": "Role's memory",
"memory_list": [
{
"memory_value": "Playing football, playing basketball, writing code, reading",
"memory_name": "Hobbies",
"effective_scope_name": "Role's memory",
"memory_key": "sys.memoryInterests",
"effective_scope": 3
},
{
"memory_value": "100 years old",
"memory_name": "Age",
"effective_scope_name": "Role's memory",
"memory_key": "sys.memoryAge",
"effective_scope": 3
},
{
"memory_value": "July 7",
"memory_name": "Birthday",
"effective_scope_name": "Role's memory",
"memory_key": "sys.memoryBirthday",
"effective_scope": 3
},
{
"memory_value": "Tuyaya",
"memory_name": "Name",
"effective_scope_name": "Role's memory",
"memory_key": "sys.memoryUserFullName",
"effective_scope": 3
}
],
"effective_scope": 3
}
]
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback