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

Method __init__

llama_cpp/llama_grammar.py:381–390  ·  view source on GitHub ↗
(self, *, prop_order, allow_fetch, dotall, raw_pattern)

Source from the content-addressed store, hash-verified

379
380class SchemaConverter:
381 def __init__(self, *, prop_order, allow_fetch, dotall, raw_pattern):
382 self._prop_order = prop_order
383 self._allow_fetch = allow_fetch
384 self._dotall = dotall
385 self._raw_pattern = raw_pattern
386 self._rules = {
387 "space": SPACE_RULE,
388 }
389 self._refs = {}
390 self._refs_being_resolved = set()
391
392 def _format_literal(self, literal):
393 escaped = GRAMMAR_LITERAL_ESCAPE_RE.sub(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected