create_base_retry_decorator(
error_types: list[type[BaseException]],
max_retries: int = 1,
| Name | Type | Description |
|---|---|---|
error_types* | list[type[BaseException]] | List of error types to retry on. |
max_retries | int | Default: 1Number of retries. |
run_manager | AsyncCallbackManagerForLLMRun | CallbackManagerForLLMRun | None | Default: None |
Create a retry decorator for a given LLM and provided a list of error types.
Callback manager for the run.