(cls, grammar: str, verbose: bool = True)
| 23 | |
| 24 | @classmethod |
| 25 | def from_string(cls, grammar: str, verbose: bool = True) -> "LlamaGrammar": |
| 26 | return cls(_grammar=grammar) |
| 27 | |
| 28 | @classmethod |
| 29 | def from_file(cls, file: Union[str, Path], verbose: bool = True) -> "LlamaGrammar": |
no outgoing calls