| 1 | # auto (from_token_zero) |
| 2 | sequence |
| 3 | optional tag `<think>` text `</think>` |
| 4 | triggered_tags [`<tool_call>`] excluding [`<think>`, `</think>`, `</tool_call>`, `<function=`] |
| 5 | tag `<tool_call><function=get_weather>` qwen_xml({ location: string }) `</function></tool_call>` |
| 6 | tag `<tool_call><function=add>` qwen_xml({ y: number, x: number, items: string[] }) `</function></tool_call>` |
| 7 | |
| 8 | # required (from_token_zero) |
| 9 | sequence |
| 10 | optional tag `<think>` text `</think>` |
| 11 | triggered_tags [`<tool_call>`] excluding [`<think>`, `</think>`, `</tool_call>`, `<function=`] at_least_one |
| 12 | tag `<tool_call><function=get_weather>` qwen_xml({ location: string }) `</function></tool_call>` |
| 13 | tag `<tool_call><function=add>` qwen_xml({ y: number, x: number, items: string[] }) `</function></tool_call>` |
| 14 | |
| 15 | # named (from_token_zero) |
| 16 | sequence |
| 17 | optional tag `<think>` text `</think>` |
| 18 | tag `<tool_call><function=get_weather>` qwen_xml({ location: string }) `</function></tool_call>` |