langchain_core.language_models.llms.create_base_retry_decorator

langchain_core.language_models.llms.create_base_retry_decorator(error_types: List[Type[BaseException]], max_retries: int = 1, run_manager: Optional[Union[AsyncCallbackManagerForLLMRun, CallbackManagerForLLMRun]] = None) Callable[[Any], Any][source]

Create a retry decorator for a given LLM and provided list of error types.

Parameters
Return type

Callable[[Any], Any]