Builtin Structural Tag
================================

.. currentmodule:: xgrammar.builtin_structural_tag

This page contains the API reference for the structural tag template function. For its usage, see
:doc:`Tool Calling and Reasoning <../../structural_tag/tool_calling_and_reasoning>`.

Global Functions
----------------

The main public entry points are:

.. autosummary::

   get_model_structural_tag
   normalize_tool_choice
   register_model_structural_tag

.. function:: get_builtin_structural_tag
   :noindex:

   Deprecated alias for :func:`get_model_structural_tag`.

All APIs
--------

The remaining model-specific structural tag builders are generated from
``xgrammar.builtin_structural_tag`` automatically.

.. automodule:: xgrammar.builtin_structural_tag
   :members:
   :undoc-members:
   :autosummary:
