Patch Changes
-
#11342
3b0e4c4Thanks @thushanth-bengre-langchain! - feat(google): mark Google provider errors as retryable or notBuilds on
stampRetryablein@langchain/coreso the retry middleware can tell a transient failure from a deterministic one. Timeouts, rate limits, and server errors are marked retryable; bad credentials, blocked prompts, invalid tools, and invalid input non-retryable. Errors that may succeed on a regeneration stay unmarked and retry as before.Also forwards a per-call
maxRetriesto the retry loop, so a surrounding retry loop such asmodelRetryMiddlewarecan take over instead of the two multiplying against each other.The
@langchain/corepeer range moves from^1.0.0toworkspace:^, since this release depends onstampRetryable.