Call apply and then parse the results.
(
self, input_list: List[Dict[str, Any]], callbacks: Callbacks = None
)
| 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]] |
nothing calls this directly
no test coverage detected