Home
Docs
Github
Blog
0.1.21
Get Started
Installation
Quick Start
Tutorials
Constrained Decoding
Workflow of XGrammar
Advanced Topics
Integration with LLM Engine
JSON Generation
EBNF-Guided Generation
XGrammar Features
Runtime Safeguards
JavaScript API
Developer Guide
Building Docs
Code Coverage
API Reference
XGrammar Python API
Table of Contents
Docs
>
Index
Edit on GitHub
Index
_
|
A
|
B
|
C
|
D
|
E
|
F
|
G
|
I
|
L
|
M
|
P
|
R
|
S
|
T
|
U
|
V
|
X
_
__init__() (xgrammar.GrammarCompiler method)
(xgrammar.GrammarMatcher method)
(xgrammar.TokenizerInfo method)
__str__() (xgrammar.Grammar method)
_bool_mask_to_bitmask() (in module xgrammar.testing)
_ebnf_to_grammar_no_normalization() (in module xgrammar.testing)
_generate_float_regex() (in module xgrammar.testing)
_generate_range_regex() (in module xgrammar.testing)
_get_allow_empty_rule_ids() (in module xgrammar.testing)
_get_masked_tokens_from_bitmask() (in module xgrammar.testing)
_get_matcher_from_grammar() (in module xgrammar.testing)
_get_matcher_from_grammar_and_tokenizer_info() (in module xgrammar.testing)
_is_grammar_accept_string() (in module xgrammar.testing)
_is_single_token_bitmask() (in module xgrammar.testing)
_json_schema_to_ebnf() (in module xgrammar.testing)
_regex_to_ebnf() (in module xgrammar.testing)
A
accept_string() (xgrammar.GrammarMatcher method)
accept_token() (xgrammar.GrammarMatcher method)
add_prefix_space (xgrammar.TokenizerInfo property)
allocate_token_bitmask() (in module xgrammar)
apply_token_bitmask_inplace() (in module xgrammar)
B
begin (xgrammar.StructuralTagItem attribute)
bitmask_dtype (in module xgrammar)
builtin_json_grammar() (xgrammar.Grammar static method)
BYTE_FALLBACK (xgrammar.VocabType attribute)
BYTE_LEVEL (xgrammar.VocabType attribute)
byte_string_fuser() (xgrammar.testing.GrammarFunctor static method)
C
cache_limit_bytes (xgrammar.GrammarCompiler property)
clear_cache() (xgrammar.GrammarCompiler method)
compile_builtin_json_grammar() (xgrammar.GrammarCompiler method)
compile_grammar() (xgrammar.GrammarCompiler method)
compile_json_schema() (xgrammar.GrammarCompiler method)
compile_regex() (xgrammar.GrammarCompiler method)
compile_structural_tag() (xgrammar.GrammarCompiler method)
CompiledGrammar (class in xgrammar)
concat() (xgrammar.Grammar static method)
D
dead_code_eliminator() (xgrammar.testing.GrammarFunctor static method)
decoded_vocab (xgrammar.TokenizerInfo property)
deserialize_json() (xgrammar.CompiledGrammar static method)
(xgrammar.Grammar static method)
(xgrammar.TokenizerInfo static method)
dump_metadata() (xgrammar.TokenizerInfo method)
E
end (xgrammar.StructuralTagItem attribute)
F
fill_next_token_bitmask() (xgrammar.GrammarMatcher method)
find_jump_forward_string() (xgrammar.GrammarMatcher method)
from_ebnf() (xgrammar.Grammar static method)
from_huggingface() (xgrammar.TokenizerInfo static method)
from_json_schema() (xgrammar.Grammar static method)
from_regex() (xgrammar.Grammar static method)
from_structural_tag() (xgrammar.Grammar static method)
from_vocab_and_metadata() (xgrammar.TokenizerInfo static method)
G
get_bitmask_shape() (in module xgrammar)
get_cache_size_bytes() (xgrammar.GrammarCompiler method)
get_max_recursion_depth() (in module xgrammar)
Grammar (class in xgrammar)
grammar (xgrammar.CompiledGrammar property)
GrammarCompiler (class in xgrammar)
GrammarFunctor (class in xgrammar.testing)
GrammarMatcher (class in xgrammar)
I
is_terminated() (xgrammar.GrammarMatcher method)
L
lookahead_assertion_analyzer() (xgrammar.testing.GrammarFunctor static method)
M
max_recursion_depth() (in module xgrammar)
max_rollback_tokens (xgrammar.GrammarMatcher property)
memory_size_bytes (xgrammar.CompiledGrammar property)
module
xgrammar.testing
P
prepend_space_in_tokenization (xgrammar.TokenizerInfo property)
R
RAW (xgrammar.VocabType attribute)
reset() (xgrammar.GrammarMatcher method)
reset_token_bitmask() (in module xgrammar)
rollback() (xgrammar.GrammarMatcher method)
rule_inliner() (xgrammar.testing.GrammarFunctor static method)
S
schema_ (xgrammar.StructuralTagItem attribute)
serialize_json() (xgrammar.CompiledGrammar method)
(xgrammar.Grammar method)
(xgrammar.TokenizerInfo method)
set_max_recursion_depth() (in module xgrammar)
special_token_ids (xgrammar.TokenizerInfo property)
stop_token_ids (xgrammar.GrammarMatcher property)
(xgrammar.TokenizerInfo property)
StructuralTagItem (class in xgrammar)
structure_normalizer() (xgrammar.testing.GrammarFunctor static method)
T
tokenizer_info (xgrammar.CompiledGrammar property)
TokenizerInfo (class in xgrammar)
U
union() (xgrammar.Grammar static method)
V
vocab_size (xgrammar.TokenizerInfo property)
vocab_type (xgrammar.TokenizerInfo property)
VocabType (class in xgrammar)
X
xgrammar.testing
module