Grammar trigger from format-aware chat template
Defines conditions for lazy grammar activation. When grammarLazy is true in FormattedChatResult, generation runs unconstrained until one of these triggers fires, at which point the grammar is activated.
grammarLazy
Token ID (for TOKEN-type triggers, -1 when not applicable)
Trigger type
Trigger value (token text, word, or regex pattern depending on type)
Grammar trigger from format-aware chat template
Defines conditions for lazy grammar activation. When
grammarLazyis true in FormattedChatResult, generation runs unconstrained until one of these triggers fires, at which point the grammar is activated.