from_llm(
cls,
llm: BaseLanguageModel,
parser: BaseOutputParser[T],
prompt: BasePromptTemplate| Name | Type | Description |
|---|---|---|
llm* | BaseLanguageModel | The LLM to use to retry the completion. |
parser* | BaseOutputParser[T] | The parser to use to parse the output. |
prompt | BasePromptTemplate | Default: NAIVE_RETRY_WITH_ERROR_PROMPTThe prompt to use to retry the completion. |
max_retries | int | Default: 1 |
Create a RetryWithErrorOutputParser from an LLM.
The maximum number of times to retry the completion.