# auto (from_token_zero)
sequence
  optional tag `<think>` text `</think>`
  triggered_tags [`<tool_call>`] excluding [`<think>`, `</think>`, `</tool_call>`, `<function=`]
    tag `<tool_call><function=get_weather>` qwen_xml({ location: string }) `</function></tool_call>`
    tag `<tool_call><function=add>` qwen_xml({ y: number, x: number, items: string[] }) `</function></tool_call>`

# required (from_token_zero)
sequence
  optional tag `<think>` text `</think>`
  triggered_tags [`<tool_call>`] excluding [`<think>`, `</think>`, `</tool_call>`, `<function=`] at_least_one
    tag `<tool_call><function=get_weather>` qwen_xml({ location: string }) `</function></tool_call>`
    tag `<tool_call><function=add>` qwen_xml({ y: number, x: number, items: string[] }) `</function></tool_call>`

# named (from_token_zero)
sequence
  optional tag `<think>` text `</think>`
  tag `<tool_call><function=get_weather>` qwen_xml({ location: string }) `</function></tool_call>`
