Method to parse the completion using the parser. If the initial parsing fails, it uses the retryChain to attempt to fix the output and retry the parsing process.
The completion to be parsed.
Optional
callbacks: anyOptional callbacks to be used during parsing.
The parsed output.
Static
fromLLMStatic method to create a new instance of OutputFixingParser using a given language model, parser, and optional fields.
The language model to be used.
The parser to be used.
Optional
fields: { Optional fields which may contain a prompt.
Optional
prompt?: anyA new instance of OutputFixingParser.
Class that extends the BaseOutputParser to handle situations where the initial parsing attempt fails. It contains a retryChain for retrying the parsing process in case of a failure.