Rate Limit Decision • AI Agent SDK

RateLimitDecision: Result of a rate-limit evaluation.

RateLimitDecision

Defined in the protocols module.

AI Agent

Result of a rate-limit evaluation.

Attributes: allowed: Whether the request may proceed. retry_after_seconds: Backoff hint populated when `allowed is False (seconds until the caller may retry); None` when allowed.

Properties

ResponseField bool

No description available.

ResponseField Optional[float]

No description available.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 5030