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.
Optional
callbacks: anyOptional callbacks to be used during parsing.
The parsed output.
Static
fromStatic 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: { prompt?: any }Optional fields which may contain a prompt.
A new instance of OutputFixingParser.
Static
lc_
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.