MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / __init__

Method __init__

llama_cpp/llama_grammar.py:20–22  ·  view source on GitHub ↗
(self, *args, _grammar: str, **kwargs)

Source from the content-addressed store, hash-verified

18
19class LlamaGrammar:
20 def __init__(self, *args, _grammar: str, **kwargs):
21 self._grammar = _grammar
22 self._root = LLAMA_GRAMMAR_DEFAULT_ROOT
23
24 @classmethod
25 def from_string(cls, grammar: str, verbose: bool = True) -> "LlamaGrammar":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected