def parse(self, output: str) -> Any:
        """Parse, validate, and correct errors programmatically."""
        # Convert output to string if needed, then parse
        output_str = str(output) if not isinstance(output, str) else output
        return self._output_parser.parse(output_str)
Parse, validate, and correct errors programmatically.
llama-index-core/llama_index/core/output_parsers/langchain.py