Repository navigation
docs: 修正第 7 章解释器技能中间件配置并补充说明 - #167
Merged
webup merged 2 commits intoOct 26, 2026
Merged
Conversation
Collaborator
|
感谢 @KissFeng 发现并修正这处失效用法!按当前 正文再调整两处即可:
配图由我们这边更新,你专注正文即可,无需扩展成完整的 PTC 教程。再次感谢你的贡献! |
Signed-off-by: Power <26699525@qq.com>
Author
|
非常感谢 @webup 的细致评审与指导!已根据建议完成调整并推送到分支:
本地完整跑通 |
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.
修复 #166
问题描述
在早期实验版本中曾探索通过
CodeInterpreterMiddleware(skills_backend=backend)导入 Skill 脚本。自langchain-quickjs 0.2.0起,官方移除了skills_backend参数以及向 QuickJS 导入 Skill 模块的机制;若仍使用旧配置,运行时会抛出:TypeError: CodeInterpreterMiddleware.__init__() got an unexpected keyword argument 'skills_backend'修改内容
content/ch07-skills.md中的示例调整为当前标准可运行的CodeInterpreterMiddleware(mode="call")。langchain-quickjs 0.3.9核对,说明skills_backend与模块导入自langchain-quickjs 0.2.0起移除。eval执行循环、筛选与聚合等逻辑,说明mode="call"每次使用全新环境且不保留变量状态;说明复用业务逻辑可结合ptc白名单暴露工具或使用沙箱运行脚本。验证
npm run assets:check:通过(61 张图片、22 份 PDF、61 个正文图片引用验证无误)npm run assets:test:5 项通过npm run docs:test:2 项通过npm run ci:test:10 项通过npm run build:全站 21 个页面静态构建成功通过