create_retry_decorator#
- langchain_community.utilities.vertexai.create_retry_decorator(llm: BaseLLM, *, max_retries: int = 1, run_manager: AsyncCallbackManagerForLLMRun | CallbackManagerForLLMRun | None = None) Callable[[Any], Any] [source]#
Create a retry decorator for Vertex / Palm LLMs.
- Parameters:
llm (BaseLLM) –
max_retries (int) –
run_manager (AsyncCallbackManagerForLLMRun | CallbackManagerForLLMRun | None) –
- Return type:
Callable[[Any], Any]