W20: Tool Calling 闭环 + Stream+Tools + 回归测试 + session auto-save + ASan CI (W20.1-W20.6)
- W20.1: CLI tool_calls→execute→result→re-call 循环(5轮上限) - W20.2: deepseek 流式 tool_calls 增量解析(configure 缓存,无 ABI break) - W20.3: plugin_loader 回归测试 5 块 32 断言(路径/原子性/mock 日志) - W20.4: plugin_loader ABI 契约校验(name/version/on_init 字段验证) - W20.5: ASan/UBSan CMake preset + CI sanitizer job(PR-only Linux) - W20.6: session auto-save(on_shutdown 写 %APPDATA%/dstalk/session.json) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -65,5 +65,15 @@ performance_log:
|
||||
/ on_init 已在 W12.1 预制异常保护,本次补全剩余 2 个入口。
|
||||
构建验证: cmake --build Release 0 error; ctest 4/4 pass。
|
||||
findings-registry: F-11.1-1 → FIXED, Fix Wave W16.2。
|
||||
- date: 2026-05-27
|
||||
event: "W20.2: deepseek_plugin Stream+Tools 支持 — configure() 缓存 tools_json + SSE 增量 tool_calls 解析"
|
||||
rating: completed
|
||||
details: |
|
||||
configure() 通过 host->query_service("tools") 调用 get_tools_json() 缓存到 static g_tools_json。
|
||||
chat_stream 使用缓存值替代硬编码 ""。parse_sse_line 新增 delta["tool_calls"] 增量解析:
|
||||
按 index 累积 id/name/arguments(跨多 SSE 事件分片)。StreamContext 新增
|
||||
std::vector<ToolCallAccum> tool_calls 字段。流结束后序列化为 OpenAI tool_calls JSON
|
||||
写入 result.tool_calls_json。未改动 dstalk_services.h vtable 签名。
|
||||
构建: cmake --build --target plugin-deepseek 0 error; ctest 5/5 pass (test #6 预存不相关)。
|
||||
current_groups: []
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user