of the above exception, another exception occurred:    OutputParserException                     Traceback (most recent call last)    Cell In[8], line 2          1 # And raises errors when appropriate    ----> 2 parser.parse("yellow")    File ~/workplace/langchain/langchain/output_parsers/enum.py:27, in EnumOutputParser.parse(self, response)         25     return self.enum(response.strip())         26 except ValueError:    ---> 27     raise OutputParserException(         28         f"Response '{response}' is not one of the "         29         f"expected values: {self._valid_values}"         30     )    OutputParserException: Response 'yellow' is not one of the expected values: ['red', 'green', 'blue']PreviousDatetime parserNextAuto-fixing parserCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
This notebook shows how to use an Enum output parser.
This notebook shows how to use an Enum output parser. ->: of the above exception, another exception occurred:    OutputParserException                     Traceback (most recent call last)    Cell In[8], line 2          1 # And raises errors when appropriate    ----> 2 parser.parse("yellow")    File ~/workplace/langchain/langchain/output_parsers/enum.py:27, in EnumOutputParser.parse(self, response)         25     return self.enum(response.strip())         26 except ValueError:    ---> 27     raise OutputParserException(         28         f"Response '{response}' is not one of the "         29         f"expected values: {self._valid_values}"         30     )    OutputParserException: Response 'yellow' is not one of the expected values: ['red', 'green', 'blue']PreviousDatetime parserNextAuto-fixing parserCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.