Last Updated on : 2026-02-26 09:15:55download
Based on the device ID, query the list of role templates of the AI agent.
GET: /v1.0/cloud/agent/ai/chat/b/devices/{device_id}/role-templates
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| device_id | String | path | true | The ID of the specified device. |
| Parameter name | Type | Description |
|---|---|---|
| result | List | Indicates whether the operation is successful. |
Description of result
| Parameter name | Type | Description |
|---|---|---|
| use_llm_id | String | The ID of the specified large language model. |
| use_timbre_id | String | The ID of the specified voice tone. |
| role_introduce | String | The introduction to the specified role. |
| role_desc | String | The description of the specified role. |
| last_text_answer | String | The last text answer. |
| use_llm_name | String | The name of the specified large language model (LLM). |
| role_name | String | The name of the specified role. |
| use_lang_code | String | The code of the specified language. |
| template_id | String | The ID of the specified template. |
| role_img_url | String | The URL of the specified role image. |
| use_lang_name | String | The name of the specified language. |
| use_timbre_name | String | The name of the specified voice tone. |
| bind_status | Boolean | The binding status. Valid values:
|
GET: /v1.0/cloud/agent/ai/chat/b/devices/{device_id}/role-templates
{
"device_id": "6c3585ebfe301b40a8u***"
}
{
"result": [
{
"use_llm_id": "8*",
"use_timbre_id": "5*",
"role_introduce": "I am a***",
"last_text_answer": "I am***",
"use_llm_name": "1.5 Pro ***",
"role_name": "Template***",
"bind_status": false,
"use_lang_code": "zh",
"template_id": "63700***",
"role_desc": "I am***",
"role_img_url": "https://images.tuyacn.com/smart/***/17459093538f665740***.png",
"use_lang_name": "Chinese",
"use_timbre_name": "Test***"
}
],
"t": 1753252060794,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback