"""Configuration for HTTP request retries."""

from datetime import timedelta

from pydantic import BaseModel


class RetryConfig(BaseModel):
    """Configuration for HTTP request retries."""

    total_retries: int = 3
    backoff_factor: float = 1.0
    backoff_max: timedelta = timedelta(seconds=30)
