Optional
defaultOutputKey: stringOptional
defaultReturns a string with instructions on how the LLM output should be formatted to match the regex pattern.
A string with formatting instructions.
Parses the given text using the regex pattern and returns a dictionary with the parsed output. If the regex pattern does not match the text and no defaultOutputKey is provided, throws an OutputParserException.
The text to be parsed.
A dictionary with the parsed output.
Static
lc_
Class to parse the output of an LLM call into a dictionary.