Roo-Code/src/core/task
Roo Code c3e2ca41a6 feat: add support for XML-style tool calls from Qwen3-Coder-Next
This adds support for models like Qwen3-Coder-Next that output XML-style
tool calls instead of native JSON tool calls when running via llama.cpp.

XML format supported:
<function=TOOL_NAME>
<parameter=PARAM_NAME>value</parameter>
</function>

Changes:
- Add XmlToolCallParser to detect and parse XML tool calls in text stream
- Integrate parser into Task.ts text chunk processing
- Convert XML tool calls to standard tool_call events for execution
- Add comprehensive tests for the parser

Fixes #11219
2026-02-05 17:26:46 +00:00
..
__tests__ Revert "fix(ai-sdk): preserve reasoning parts in message conversion" (#11216) 2026-02-05 07:40:36 -08:00
AskIgnoredError.ts fix: suppress 'ask promise was ignored' error in handleError (#9914) 2025-12-08 17:19:45 -08:00
build-tools.ts refactor(read_file): Codex-inspired read_file refactor EXT-617 (#10981) 2026-01-29 15:16:32 -07:00
mergeConsecutiveApiMessages.ts Intelligent Context Condensation v2 (#10873) 2026-01-23 12:33:35 -07:00
Task.ts feat: add support for XML-style tool calls from Qwen3-Coder-Next 2026-02-05 17:26:46 +00:00
validateToolResultIds.ts fix: merge approval feedback into tool result instead of pushing duplicate (ROO-410) (#10519) 2026-01-09 10:01:52 -05:00