docs(comments): 注释中文化 · internal/runtime/memory(31 文件,纯替换)
- 只翻注释/文档字符串:820 增 / 820 删 严格 1:1;剥掉整行注释与行尾注释尾巴后, 逐文件与 HEAD 比对「代码部分差异 = 0」;裁决/design 编号计数逐项与 HEAD 一致 - 保留可执行 SQL 样例、SQLite 报错原文、pgvector/HNSW/ANN/BLOB 等技术词原文 - 复核:go build 绿 + memory/projectindex/vector 三包测试绿;gofmt 仅剩 2 个既有未格式化文件(改动前即如此,未顺手修)
This commit is contained in:
1 parent
eb1828ee7a
commit
61cf80d5ee
31 files changed
+820
-820
No files matched your search
@@ -6,9 +6,9 @@ import (
|
||||
"git.yeij.top/AskaEth/Cyrene_v2/internal/runtime/model"
|
||||
)
|
||||
|
||||
// messageText returns the concatenated plain-text payload of a message. Image
|
||||
// parts are skipped; text parts are joined with a single space. It is the
|
||||
// shared text view used by the working-memory summary and the manual extractor.
|
||||
// messageText 返回一条消息拼接后的纯文本载荷。图片
|
||||
// 部分跳过;文本部分以单个空格连接。它是
|
||||
// 工作记忆摘要与手动提取器共用的文本视图。
|
||||
func messageText(m model.Message) string {
|
||||
var b strings.Builder
|
||||
for _, part := range m.Content {
|
||||
|
||||
Reference in new issue
Block a user