Get Next Profile • AI Agent SDK
get_next_profile: Get the next available profile.
get_next_profile
Method
</div>
This is a method of the FailoverManager class in the failover module.
Get the next available profile.
Returns profiles in priority order, skipping those that are rate limited or in cooldown.
Signature
def get_next_profile() -> Optional[AuthProfile]Returns
ResponseField
Optional[AuthProfile]The next available profile, or None if all are unavailable
Uses
time.timeprofile.reset
Used By
Source
View on GitHubpraisonaiagents/llm/failover.py at line 342