Versions in this module Expand all Collapse all v0 v0.1.3 Jul 4, 2026 v0.1.1 Jun 25, 2026 Changes in this version + type CodeAgentRetry struct + func NewCodeAgentRetry(opts ...Option) *CodeAgentRetry + func (cr *CodeAgentRetry) DecideRetry(ctx context.Context, err error, provider, model string) *RetryDecision + func (cr *CodeAgentRetry) Stats() map[string]interface{} + type Option func(*CodeAgentRetry) + func WithFallback(errorType, model, provider string) Option + func WithStrategy(errorType string, strategy RetryStrategy) Option + type RetryDecision struct + Delay time.Duration + FallbackModel string + FallbackProvider string + Reason string + ShouldRetry bool + type RetryRecord struct + ErrorMessage string + ErrorType string + FallbackUsed bool + Model string + Provider string + Recovered bool + RetryCount int + Timestamp time.Time + type RetryStrategy struct + Backoff float64 + BaseDelay time.Duration + FallbackModel string + FallbackProvider string + MaxDelay time.Duration + MaxRetries int + Name string