MCPcopy Index your code
hub / github.com/coder/coder / IsRetryable

Function IsRetryable

coderd/x/chatd/chatretry/chatretry.go:35–37  ·  view source on GitHub ↗

IsRetryable determines whether an error from an LLM provider is transient and worth retrying.

(err error)

Source from the content-addressed store, hash-verified

33// IsRetryable determines whether an error from an LLM provider is
34// transient and worth retrying.
35func IsRetryable(err error) bool {
36 return chaterror.Classify(err).Retryable
37}
38
39// Delay returns the backoff duration for the given 0-indexed attempt.
40// Uses exponential backoff: min(InitialDelay * 2^attempt, MaxDelay).

Calls 1

ClassifyFunction · 0.92