docs(comments): 注释中文化 · internal/runtime/multimodal(21 文件,纯替换)
- 只翻注释/文档字符串,代码零变化:go/scanner 词法流比对 21 文件 token+字面量全等,增删行数 1:1(467/467) - 刻意保留非散文英文:JSON Schema description、工具 Description() 返回值、adapter prompt、API 路径与命令示例、环境变量名 - 逐行确认代码前缀未变,未触碰其他模块
This commit is contained in:
1 parent
b9e042d07d
commit
b0fbb8bc0d
21 files changed
+467
-467
No files matched your search
@@ -96,14 +96,14 @@ func TestRouter_Route(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// fakeVision implements VisionAdapter for tool tests.
|
||||
// fakeVision 为工具测试实现 VisionAdapter。
|
||||
type fakeVision struct{ desc string }
|
||||
|
||||
func (f *fakeVision) Describe(_ context.Context, _ ImageRef, _ string) (string, error) {
|
||||
return f.desc, nil
|
||||
}
|
||||
|
||||
// fakeOCR implements OCRAdapter for tool tests.
|
||||
// fakeOCR 为工具测试实现 OCRAdapter。
|
||||
type fakeOCR struct{ text string }
|
||||
|
||||
func (f *fakeOCR) Extract(_ context.Context, _ ImageRef) (string, error) {
|
||||
|
||||
Reference in new issue
Block a user