Skip to content

v0.2.1

Choose a tag to compare

@yifanes yifanes released this 11 Jun 06:26
· 5 commits to main since this release

借鉴 MiMoCode 工具层机制的三项改造:

新增 / 改进

  • 错误感知截断bounded_preview / clip_overflow 在截断超长工具输出时按 head 70% / tail 30% 保留尾部报错段,不再丢失错误信息;sandbox 与 local 运行时共享同一实现,消除重复的 head-only 逻辑。
  • 统一执行包装层 BoundedToolRuntime<R>:在 AgentLoopHarness::new 中包裹所有运行时——tracing span、幂等的 schema 修复(ToolRuntime::repair_invocation 作为单一事实源)、轻量校验(失败给教学式错误)、以及对未自限工具(MCP / 自定义)的兜底输出上限。
  • 成功静默 / 失败教学edit 成功路径不再向模型回传 repair 字段;非法入参时追加由 schema 合成的 Expected shape 示例(validate_against_schema / example_for_schema)。

修复

  • e2b unary 解码路径中既有的 clippy::never_loop

测试 182 全绿;--all-features clippy 无 error。