MCPcopy
hub / github.com/SqueezeAILab/LLMCompiler / apply_and_parse

Method apply_and_parse

src/chains/llm_chain.py:352–361  ·  view source on GitHub ↗

Call apply and then parse the results.

(
        self, input_list: List[Dict[str, Any]], callbacks: Callbacks = None
    )

Source from the content-addressed store, hash-verified

350 return result
351
352 def apply_and_parse(
353 self, input_list: List[Dict[str, Any]], callbacks: Callbacks = None
354 ) -> Sequence[Union[str, List[str], Dict[str, str]]]:
355 """Call apply and then parse the results."""
356 warnings.warn(
357 "The apply_and_parse method is deprecated, "
358 "instead pass an output parser directly to LLMChain."
359 )
360 result = self.apply(input_list, callbacks=callbacks)
361 return self._parse_generation(result)
362
363 def _parse_generation(
364 self, generation: List[Dict[str, str]]

Callers

nothing calls this directly

Calls 2

applyMethod · 0.95
_parse_generationMethod · 0.95

Tested by

no test coverage detected