retry

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultRetryPolicy

type DefaultRetryPolicy struct {
	sleipnir.BaseMiddleware
}

DefaultRetryPolicy retries anyllm.ErrRateLimit and anyllm.ErrProvider with exponential backoff + 25% jitter. Stateless — the attempt count is passed in.

func (DefaultRetryPolicy) ShouldRetry

func (DefaultRetryPolicy) ShouldRetry(_ context.Context, attempt int, err error) (bool, time.Duration)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL