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

Method __init__

examples/server/server.py:291–305  ·  view source on GitHub ↗
(
        self,
        *,
        prop_order: Dict[str, int],
        allow_fetch: bool,
        dotall: bool,
        raw_pattern: bool,
    )

Source from the content-addressed store, hash-verified

289 return cls.RESERVED_NAMES
290
291 def __init__(
292 self,
293 *,
294 prop_order: Dict[str, int],
295 allow_fetch: bool,
296 dotall: bool,
297 raw_pattern: bool,
298 ):
299 self._prop_order = prop_order
300 self._allow_fetch = allow_fetch
301 self._dotall = dotall
302 self._raw_pattern = raw_pattern
303 self._rules: Dict[str, str] = {"space": self.SPACE_RULE}
304 self._refs: Dict[str, Any] = {}
305 self._refs_being_resolved: set[str] = set()
306
307 def _format_literal(self, literal: str) -> str:
308 escaped = self.GRAMMAR_LITERAL_ESCAPE_RE.sub(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected