Method to get the format instructions for the parser.
The format instructions for the parser.
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.
Optionalcallbacks: anyOptional callbacks to be used during parsing.
The parsed output.
StaticfromStatic 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.
Optionalfields: { prompt?: any }Optional fields which may contain a prompt.
A new instance of OutputFixingParser.
Staticlc_
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.