修改上下文
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cms:UpdateContext |
update |
*ContextStore
|
无 | 无 |
请求语法
PUT /workspace/{workspace}/contextstore/{contextStoreName}/context/{contextId} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| workspace |
string |
是 |
工作空间 ID |
workspace-test |
| contextStoreName |
string |
是 |
上下文库名称 |
test-context-store |
| contextId |
string |
是 |
上下文 Id |
897294a7-67a4-4f60-976c-e136edc5f97e |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| body |
object |
否 |
请求 Body |
|
| content |
string |
否 |
更新长期记忆文本 |
Users prefer to first view the SLS error logs, index configuration, and the most recent Agent execution trace. |
| payload |
object |
否 |
更新 payload |
{ "userId": "u-10001", "agentId": "sls-agent", "appId": "console", "categories": [ "preference" ], "source": "user_confirmed", "topic": "debugging_preference", "immutable": false, "createdAt": 1776319200, "updatedAt": 1776319200 } |
| triggerCondition |
string |
否 |
触发条件 |
Identify and troubleshoot SLs issues |
| experience |
object |
否 |
经验 |
{ "taskType": "troubleshooting", "complexity": "medium", "confidence": 0.95 } |
| metadata |
object |
否 |
元数据 |
{"sessionId":"test_session_001"} |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
响应数据 |
{} |
示例
正常返回示例
JSON格式
{}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。