查询指定用户已提取的画像属性
获取指定用户的画像属性。画像提取为异步过程;调用 AddMemory 添加对话后,首次查询可能尚未返回属性值,请按业务重试策略再次查询。
若返回的属性值均为空,请确认调用 AddMemory 时已传入相同的
profile_schema。未传该参数时不会触发画像提取。请求方法与路径
GET https://dashscope.aliyuncs.com/api/v2/apps/memory/profile_schemas/{profile_schema_id}/user_profile
请求参数
| 参数 | 类型 | 必填 | 位置 | 说明 |
|---|---|---|---|---|
profile_schema_id | string | 是 | Path | 画像模板 ID |
user_id | string | 是 | Query | 记忆实体 ID |
memory_library_id | string | 否 | Query | 记忆库 ID |
返回结果
| 字段 | 类型 | 说明 |
|---|---|---|
request_id | string | 请求 ID |
profile.schema_name | string | 画像模板名称 |
profile.schema_description | string | 画像模板描述 |
profile.attributes | array | 画像属性列表 |
profile.attributes[].id | string | 属性 ID |
profile.attributes[].name | string | 属性名称 |
profile.attributes[].value | string | 属性值 |