pub(crate) fn parse_qwen_tool_call_output(
text: &str,
contract: &ToolCallOutputContract,
tolerant: bool,
) -> ParsedToolCallOutputExpand description
Parse the Qwen XML-like tool-call format. Content before the first marker is retained as ordinary text; a malformed marker region falls back to the whole input, marker included. Tolerant mode recovers complete calls from a truncated or suffixed region.