MCPcopy Create free account
hub / github.com/idank/explainshell / __init__

Method __init__

explainshell/extraction/llm/extractor.py:196–206  ·  view source on GitHub ↗
(self, config: ExtractorConfig)

Source from the content-addressed store, hash-verified

194 """
195
196 def __init__(self, config: ExtractorConfig) -> None:
197 self._model = config.model or ""
198 self._run_dir = config.run_dir
199 self._repo_root = config.repo_root
200 self._debug = config.debug
201 self.provider: LLMProvider = make_provider(self._model)
202 try:
203 self.batch_provider: BatchProvider = make_batch_provider(self._model)
204 except ValueError:
205 pass # model doesn't support batch; accessed only via --batch flag
206 self._cancelled = threading.Event()
207
208 def cancel(self) -> None:
209 """Signal all in-progress extract() calls to stop after their current

Callers

nothing calls this directly

Calls 2

make_providerFunction · 0.90
make_batch_providerFunction · 0.90

Tested by

no test coverage detected