docs(langchain): clarify ToolRetryMiddleware exception handling (#38884)

This commit is contained in:
ccurme
2026-07-16 09:33:16 -04:00
committed by GitHub
parent 185119f98e
commit a4538dbf07

View File

@@ -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: