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

Method __init__

examples/server/server.py:15464–15475  ·  view source on GitHub ↗
(self, scheduler: CompletionScheduler)

Source from the content-addressed store, hash-verified

15462
15463class CompletionService:
15464 def __init__(self, scheduler: CompletionScheduler) -> None:
15465 self.scheduler = scheduler
15466 self.formatter = scheduler.formatter
15467 self.condition = threading.Condition()
15468 self.commands: Deque[Callable[[], None]] = deque()
15469 self.closed = False
15470 self.worker = threading.Thread(
15471 target=self.run_loop,
15472 name="completion-service",
15473 daemon=True,
15474 )
15475 self.worker.start()
15476
15477 def close(self) -> None:
15478 with self.condition:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected