warelik
86162eeb8f
fix(combo/fusion): flatten Anthropic-style tool messages in panel calls
...
flattenToolHistory only recognized OpenAI-style tool calls. Anthropic-compatible clients (Claude Code, /v1/messages) send tool invocations and results as tool_use/tool_result blocks inside the message content array. Since panel calls strip the tools definitions (#1859 ), the panel expert models received structured tool history without schemas, causing them to fail or misbehave (leading to empty responses and 503 errors).
Extend flattenToolHistory to recognize and flatten tool_use and tool_result blocks in the content array into prose text, keeping panel expert execution robust and independent of the client API format.
PR decolua/9router#1910
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-20 15:19:31 +07:00
..
2026-04-17 12:15:10 +07:00
2026-06-06 10:48:14 +07:00
2026-06-14 13:15:48 +07:00
2026-06-14 13:15:48 +07:00
2026-06-14 13:15:48 +07:00
2026-05-16 10:54:41 +07:00
2026-05-16 10:54:41 +07:00
2026-06-18 09:13:27 +07:00
2026-06-06 12:54:01 +07:00
2026-03-30 16:27:28 +07:00
2026-06-15 18:18:04 +07:00
2026-06-06 11:04:36 +07:00
2026-06-15 18:18:04 +07:00
2026-06-20 15:19:31 +07:00
2026-05-01 16:36:36 +07:00
2026-06-14 18:49:38 +07:00
2026-05-07 16:17:03 +07:00
2026-05-21 09:52:30 +07:00
2026-06-15 18:18:04 +07:00
2026-05-09 17:48:20 +07:00
2026-05-09 17:48:20 +07:00
2026-05-09 22:48:07 +07:00
2026-05-09 17:48:20 +07:00
2026-05-09 17:48:20 +07:00
2026-02-18 13:24:02 +07:00
2026-06-13 10:54:51 +07:00
2026-06-15 11:38:43 +07:00
2026-06-15 18:18:04 +07:00
2026-06-15 11:38:43 +07:00
2026-06-13 22:05:01 +07:00
2026-05-26 11:23:47 +07:00
2026-05-29 15:40:42 +07:00
2026-06-20 10:09:50 +07:00
2026-06-02 21:14:36 +08:00
2026-06-15 18:18:04 +07:00
2026-06-13 10:54:51 +07:00
2026-06-06 10:31:39 +07:00
2026-06-17 10:01:30 +07:00
2026-06-13 11:43:18 +07:00
2026-05-13 15:34:10 +07:00
2026-06-06 10:01:05 +07:00
2026-05-13 15:34:10 +07:00
2026-06-15 18:18:04 +07:00
2026-06-14 13:15:48 +07:00
2026-06-18 09:10:52 +07:00
2026-06-03 01:53:34 +08:00
2026-06-14 18:49:38 +07:00
2026-02-20 15:07:43 +07:00
2026-06-06 16:07:43 +07:00
2026-05-26 11:33:38 +07:00
2026-06-06 12:54:01 +07:00
2026-06-14 18:49:38 +07:00
2026-06-18 15:14:42 +07:00
2026-06-15 11:38:43 +07:00
2026-06-20 15:09:11 +07:00
2026-04-22 11:58:53 +07:00
2026-06-15 18:18:04 +07:00
2026-06-20 15:19:22 +07:00
2026-06-14 13:15:48 +07:00
2026-06-06 10:01:05 +07:00
2026-06-15 11:38:43 +07:00
2026-06-02 21:14:36 +08:00
2026-03-16 09:21:05 +07:00
2026-06-06 10:44:37 +07:00
2026-06-06 12:25:12 +07:00
2026-06-06 16:07:43 +07:00
2026-04-22 15:36:51 +07:00
2026-04-22 15:36:51 +07:00
2026-06-15 18:18:04 +07:00
2026-05-17 15:13:37 +07:00
2026-06-18 17:36:08 +07:00
2026-06-13 21:32:52 +07:00
2026-06-14 18:49:38 +07:00
2026-06-14 18:49:38 +07:00
2026-06-15 11:38:43 +07:00
2026-06-13 21:46:13 +07:00
2026-04-22 11:58:53 +07:00
2026-05-21 11:33:18 +07:00
2026-05-21 11:33:18 +07:00