I’m collecting the retry configurations people use in practice for ModelRetryMiddleware (Python, langchain>=1.3.16) as part of a research study on error handling in LLM agents. Responses may be quoted or summarized, anonymously, in a published paper. There are no right or wrong answers, and “I left it at the default” is just as useful as a tuned setup.
If you use this middleware (or did and stopped), please copy the template below and fill in what applies. Skip any field you don’t know.
langchain version:
Model provider(s) / model(s):
Use case (e.g. chatbot, batch pipeline, multi-step agent):
Environment (prototype / internal tool / production):
max_retries:
retry_on: (exception types, a custom callable, or default)
on_failure: ('continue', 'error', a custom callable, or default)
backoff_factor:
initial_delay:
max_delay:
jitter: (true / false / default)
Latency or cost constraints that shaped these values:
Failures you actually see (e.g. 429 rate limits, timeouts, 5xx, malformed output):
Why you chose these values (testing, provider docs, trial and error, defaults):
Anything you changed after running it for a while, and why:
If you don’t use ModelRetryMiddleware at all (e.g. you rely on the provider SDK’s built-in retries, with_retry(), or your own wrapper), a short note on what you use instead and why is also welcome.