Last Updated on : 2026-02-26 09:17:37download
Query the list of AI agent variables based on the device ID.
GET: /v1.0/cloud/agent/ai/b/devices/{device_id}/agent-variables
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| device_id | String | path | true | The ID of the specified device. |
| bind_role_type | Integer | query | false | The type of role to bind. Valid values:
role_id has a value, this parameter value must be passed. |
| role_id | String | query | false | The ID of the specified role. |
| Parameter name | Type | Description |
|---|---|---|
| variable_key | String | The key of the specified variable. |
| variable_value | String | The value of the specified variable. |
GET: /v1.0/cloud/agent/ai/b/devices/{device_id}/agent-variables
{
"device_id": "123***"
}
{
"result": [
{
"variable_value": "Obsessed with the universe and the stars, studying all kinds of astronomical knowledge",
"variable_key": "sys.memoryInterests"
},
{
"variable_value": "",
"variable_key": "sys.roleSupplementDesc"
},
{
"variable_value": "You are an astronomer",
"variable_key": "sys.roleIntroduce"
},
{
"variable_value": "99 years old",
"variable_key": "sys.memoryAge"
},
{
"variable_value": "July 7",
"variable_key": "sys.memoryBirthday"
},
{
"variable_value": "User asked ***",
"variable_key": "sys.memoryHistoryChatSummary"
},
{
"variable_value": "Test***",
"variable_key": "sys.roleName"
},
{
"variable_value": "",
"variable_key": "sys.memoryUserFullName"
},
{
"variable_value": "Astronomer",
"variable_key": "sys.roleRemark"
},
{
"variable_value": "Astronomer",
"variable_key": "custom.roleName"
},
{
"variable_value": "Test**",
"variable_key": "custom.familyName"
},
{
"variable_value": "James",
"variable_key": "custom.userName"
},
{
"variable_value": "12345***",
"variable_key": "custom.userId"
}
],
"t": 1753790540058,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback