W21: anthropic Stream+Tools + --prompt batch + sanitizer fix + plugin unit tests (W21.1-W21.6)
- W21.1: ci-sanitize preset 独立 Linux-clang + ci-threadsan (TSan) - W21.2: anthropic tool_use content_block 解析 + configure 缓存 tools_json - W21.3: --prompt 非交互批处理模式 - W21.4: session auto-save 失败告警 + 当前目录 fallback - W21.5: smoke 补 tool_calls 边界用例 4 块 12 断言 - W21.6: anthropic 11 块 78 CHECK + deepseek 12 块 78 CHECK Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -65,6 +65,23 @@ 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: "W21.2: anthropic_plugin Stream+Tools -- configure() + SSE tool_use content_block delta"
|
||||
rating: completed
|
||||
details: |
|
||||
L32: static g_tools_json cache from tools service.
|
||||
L79-133 build_request_json: tools_json param + tools field (L127-130).
|
||||
L138-235 parse_response: extract tool_use blocks -> OpenAI JSON (L172-201).
|
||||
L237-329 parse_sse_data: content_block_start(type=tool_use) -> ToolCallAccum (L262-278),
|
||||
input_json_delta -> accumulate partial_json (L296-308), content_block_stop/message_stop.
|
||||
L242-258 ToolCallAccum + StreamContext.tool_calls vector.
|
||||
L328-337 my_configure: query_service("tools") -> get_tools_json() -> g_tools_json.
|
||||
L358-361 my_chat: tools_json uncommented, build_request_json(tools_json?:g_tools_json).
|
||||
L484 my_chat_stream: build_request_json(g_tools_json).
|
||||
L498-519: serialize tool_calls -> OpenAI JSON -> result.tool_calls_json.
|
||||
Aligns with W20.2 pattern (cache + incremental), adapted for Anthropic format
|
||||
(content_block_start/input_json_delta vs delta.tool_calls).
|
||||
Build: cmake --build Release 0 error (anthropic plugin); ctest 6/6 pass.
|
||||
- date: 2026-05-27
|
||||
event: "W20.2: deepseek_plugin Stream+Tools 支持 — configure() 缓存 tools_json + SSE 增量 tool_calls 解析"
|
||||
rating: completed
|
||||
|
||||
Reference in New Issue
Block a user