Repository navigation
docs(bridge): describe word_count vs char_count on search/outline/read/list - #9
Merged
Merged
Conversation
…d/list (#100) The stdio bridge re-declares every tool description; mirror the size-field contract Desktop added for local documents (`char_count` = Unicode characters of the extracted body; null = not yet computed or an older Desktop; cloud:// items do not carry it).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs LinklyAI/linkly-ai-workspace#100
LinklyAI/linkly-ai-desktop-v3#318,本 PR 才能上线——描述里承诺的char_count由新版 Desktop 返回,旧版 Desktop 不带该字段。背景
Desktop 在 #318 给本地文档新增
char_count(提取正文的 Unicode 字符数),与word_count(词数,中文下比字符数低 15~40%)并列,并在四个工具描述里写明两种口径。stdio bridge 在src/bridge/handler.rs里独立重写了全部工具的描述,不同步的话 bridge 用户看到结果里的char_count却没有解释。方案
只改
search/outline/read/list四个#[tool(description = …)]的文本,不动 schema、路由或工具集合。口径说明限定为「Desktop 本地文档」:cloud://条目不带char_count,旧版 Desktop 也不带。变动
src/bridge/handler.rssearch/outline/read:末尾追加 size-fields 段;read另注明 Characters 覆盖整份可用正文list:字段清单加char_count,末尾追加同一段说明验证
cargo test:190 passed,0 failedcargo clippy --all-targets:0 警告Windows 手工验证:不适用——本 PR 仅改 CLI bridge 的工具描述文本,未触及路径 / 进程 / 系统集成,桌面端不随之改。
关联 PR:
LinklyAI/linkly-ai-api#47(同一需求的另一份描述同步)。