MCPcopy Index your code
hub / github.com/idank/explainshell / make_extractor

Function make_extractor

explainshell/extraction/__init__.py:33–39  ·  view source on GitHub ↗
(mode: str, config: ExtractorConfig | None = None)

Source from the content-addressed store, hash-verified

31
32
33def make_extractor(mode: str, config: ExtractorConfig | None = None) -> Extractor:
34 config = config or ExtractorConfig()
35 if mode == "llm":
36 from explainshell.extraction.llm.extractor import LLMExtractor
37
38 return LLMExtractor(config)
39 raise ValueError(f"unknown mode: {mode!r}")

Callers 5

run_extractorFunction · 0.90
_run_diff_extractorsFunction · 0.90
_run_diff_dbFunction · 0.90
extractFunction · 0.90
run_benchFunction · 0.90

Calls 2

ExtractorConfigClass · 0.90
LLMExtractorClass · 0.90

Tested by

no test coverage detected