Documentation
¶
Overview ¶
Package retry provides the retry classification and backoff shared by the autonomous runtime and the workflow orchestrator, so both apply the same semantics: only errors that explicitly classify themselves as retryable are re-attempted, with exponential backoff and jitter between attempts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Backoff ¶
Backoff sleeps before the given 1-based retry attempt with exponential backoff (100ms base, 2s cap) and ±25% jitter, aborting early with the context error if ctx is done.
func Retryable ¶
Retryable reports whether err is worth retrying. The caller's context must still be live, and the error (or any error in its chain) must classify itself as retryable via a `Retryable() bool` method (e.g. llm.APIError). Unclassified errors are treated as permanent: blindly re-running them would just repeat the failure - or worse, repeat a side effect.
Types ¶
This section is empty.