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

Class ExtractionError

explainshell/errors.py:50–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49
50class ExtractionError(Exception):
51 def __init__(
52 self,
53 message: str,
54 raw_response: str | None = None,
55 *,
56 reason_class: FailureReason | None = None,
57 ) -> None:
58 super().__init__(message)
59 #: The raw LLM response text that caused the error. Populated only
60 #: by the LLM extractor (parse/validation failures); ``None`` for
61 #: errors raised by other extractors or generic callers.
62 self.raw_response = raw_response
63 #: Classification of the failure, set at the throw site so the
64 #: runner can propagate it onto ``ExtractionResult.reason_class``
65 #: for downstream aggregation.
66 self.reason_class = reason_class
67
68
69class SkippedExtraction(ExtractionError):

Callers 10

sanity_check_line_spansFunction · 0.90
get_manpage_textFunction · 0.90
extractMethod · 0.90
prepareMethod · 0.90
_call_llmMethod · 0.90
parse_json_responseFunction · 0.90
process_llm_resultFunction · 0.90
poll_batchMethod · 0.90
poll_batchMethod · 0.90

Calls

no outgoing calls