langchain_community.utilities.vertexai
.create_retry_decorator
- langchain_community.utilities.vertexai.create_retry_decorator(llm: BaseLLM, *, max_retries: int = 1, run_manager: Optional[Union[AsyncCallbackManagerForLLMRun, CallbackManagerForLLMRun]] = None) Callable[[Any], Any] [source]¶
为 Vertex / Palm LLMs 创建重试装饰器。
- 参数
llm (BaseLLM) –
max_retries (int) –
run_manager (Optional[Union[AsyncCallbackManagerForLLMRun, CallbackManagerForLLMRun]]) –
- 返回类型
Callable[[Any], Any]