deerflow2/backend/src/agents/middlewares
hetao caf12da0f2 feat: add DanglingToolCallMiddleware and SubagentLimitMiddleware
Add two new middlewares to improve robustness of the agent pipeline:
- DanglingToolCallMiddleware injects placeholder ToolMessages for
  interrupted tool calls, preventing LLM errors from malformed history
- SubagentLimitMiddleware truncates excess parallel task tool calls at
  the model response level, replacing the runtime check in task_tool

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 13:22:49 +08:00
..
clarification_middleware.py feat: display ask_clarification tool messages directly in frontend 2026-01-29 01:25:31 +08:00
dangling_tool_call_middleware.py feat: add DanglingToolCallMiddleware and SubagentLimitMiddleware 2026-02-09 13:22:49 +08:00
memory_middleware.py feat: add memory API and optimize memory middleware 2026-02-03 13:41:04 +08:00
subagent_limit_middleware.py feat: add DanglingToolCallMiddleware and SubagentLimitMiddleware 2026-02-09 13:22:49 +08:00
thread_data_middleware.py feat: implement lazy sandbox and thread data initialization (#11) 2026-01-18 13:38:34 +08:00
title_middleware.py feat: add AIO sandbox provider and auto title generation (#1) 2026-01-14 23:29:18 +08:00
uploads_middleware.py feat: support sub agent mechanism 2026-02-05 19:59:25 +08:00
view_image_middleware.py feat: add view_image tool and optimize web fetch tools 2026-01-29 13:44:39 +08:00