Ask a question to get started
Enter to send•Shift+Enter new line
RetryOutputParser()
BaseOutputParser[T]
The parser to use to parse the output.
The RunnableSerializable to use to retry the completion (Legacy: LLMChain).
The maximum number of times to retry the parse.
Whether to use the run or arun method of the retry_chain.
Create an RetryOutputParser from a language model and a parser.
Parse the output of an LLM call using a wrapped parser.
Wrap a parser and try to fix parsing errors.
Does this by passing the original prompt and the completion to another LLM, and telling it the completion did not satisfy criteria in the prompt.