 tempandCursor
|
d88cfea761
|
fix: 为 Eino agentic 路径补充 tool_call/tool_result 配对防御中间件
agentic 路径(单代理模式)缺少 toolPairReconciler 和 orphanToolPruner,
当 summarization 截断历史破坏配对后,序列化到 OpenAI API 触发 400
"insufficient tool messages following tool_calls message"。
新增 AgenticMessage 版本的 reconciler 和 pruner,与 classic 路径对齐。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-08-19 17:24:03 +08:00 |
|