mirror of
https://github.com/hwchase17/langchain.git
synced 2026-07-29 20:07:39 +00:00
docs(langchain): clarify ToolRetryMiddleware exception handling (#38884)
This commit is contained in:
@@ -152,7 +152,8 @@ class ToolRetryMiddleware(AgentMiddleware[AgentState[ResponseT], ContextT, Respo
|
||||
retry_on: Either a tuple of exception types to retry on, or a callable
|
||||
that takes an exception and returns `True` if it should be retried.
|
||||
|
||||
Default is to retry on all exceptions.
|
||||
Default is to retry on all exceptions. Exceptions that do not match
|
||||
propagate immediately and are not handled by `on_failure`.
|
||||
on_failure: Behavior when all retries are exhausted.
|
||||
|
||||
Options:
|
||||
|
||||
Reference in New Issue
Block a user