Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
XGrammar 0.2.5
Light Logo Dark Logo
XGrammar 0.2.5

Get Started

  • Installation
  • Quick Start
  • Constrained Decoding
  • Workflow of XGrammar

Structural Tag

  • Structural Tag Usage
  • Tool Calling and Reasoning
  • Advanced Topics of Structural Tag

Using XGrammar

  • Integration with LLM Engine
  • Serialization
  • Runtime Safeguards
  • JavaScript API

Defining Structures

  • JSON Generation
  • EBNF Grammar
  • Lark Grammar

Developer Guide

  • Building Docs
  • Code Coverage

API Reference

  • XGrammar Python API
    • xgr.Grammar
    • xgr.TokenizerInfo
    • xgr.GrammarCompiler
    • xgr.CompiledGrammar
    • xgr.GrammarMatcher
    • xgr.testing
    • Structural Tag
    • Builtin Structural Tag
    • OpenAI Tool Call Schema
    • Bitmask Operations
    • Config
    • Exception
Back to top
Copyright © 2024-2026, XGrammar Contributors
Made with Sphinx and @pradyunsg's Furo