批量修改 LTM 记忆
POST/ltm/spaces/:space_id/memories:batchUpdate
一次修改最多 100 条记忆。列出 LTM 记忆 能返回的 Facts 和 Profile 都能修改,包括从对话提炼出来的;Summary 不能修改(code 1747)。
可以修改内容、Facts 的主题和元数据,没传的字段保持不变;归属、类型和所属策略不能改,要改请删除后重新新增。修改后,这条记录的时间变成请求里的 timestamp,不再引用原来提炼它的 Event(原文引用和 trace ID 会清空),source_type 变为 api。修订历史会记下修改前后的内容和修改者。
之后的对话提到这件事时,比 timestamp 旧的证据改不动这次修改,更新的证据照常更新它。
逐条独立处理,一条失败不影响其他条。
Request
Responses
- 200
- 400
- 401
- 404
每条记录的处理结果。
Malformed body: no records or more than 100, a repeated record_id, a record that changes none of content, topic and metadata, or a field outside its format (code 1004).
Missing or invalid Turing authentication.
Space not found in the caller's scope (code 1751).