deerflow2/tests/unit/server
Willem Jiang f2be4d6af1
fix: prevent tool name concatenation in consecutive tool calls to fix #523 (#654)
- Implement index-based grouping of tool call chunks in _process_tool_call_chunks()
- Add _validate_tool_call_chunks() for debug logging and validation
- Enhance _process_message_chunk() with tool call ID validation and boundary detection
- Add comprehensive unit tests (17 tests) for tool call chunk processing
- Fix issue where tool names were incorrectly concatenated (e.g., 'web_searchweb_search')
- Ensure chunks from different tool calls (different indices) remain properly separated
- Add detailed logging for debugging tool call streaming issues

* update the code with suggestions of reviewing
2025-10-24 22:26:25 +08:00
..
test_app.py fix: Refine clarification workflow state handling (#641) 2025-10-22 22:49:07 +08:00
test_chat_request.py feat: 1. replace black with ruff for fomatting and sort import (#489) 2025-08-17 22:57:23 +08:00
test_mcp_request.py feat: 1. replace black with ruff for fomatting and sort import (#489) 2025-08-17 22:57:23 +08:00
test_mcp_utils.py fix: env parameters exception when configuring SSE or HTTP MCP server (#513) 2025-08-20 17:23:57 +08:00
test_tool_call_chunks.py fix: prevent tool name concatenation in consecutive tool calls to fix #523 (#654) 2025-10-24 22:26:25 +08:00