fix(backend): expose skill_load tool#2991
Draft
LittleChenLiya wants to merge 1 commit into
Draft
Conversation
1e63874 to
158559d
Compare
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.
问题原因
lead agent 的技能加载提示和用户请求会引导模型调用
skill_load,但后端实际绑定的工具列表没有注册该工具,导致运行时返回skill_load is not a valid tool。同时read_file仍可直接读取/mnt/skills,没有按技能加载流程引导模型使用专用工具。修改内容
新增
skill_load内置工具,用于按技能名加载SKILL.md或技能目录内的相对资源文件;将技能加载提示改为使用skill_load;限制read_file直接读取/mnt/skills并提示改用skill_load;确保技能allowed-tools过滤不会移除skill_load。关联 issue
Fixes #2978