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

python
def get_next_profile() -> Optional[AuthProfile]

Returns

ResponseField Optional[AuthProfile]

The next available profile, or None if all are unavailable

Uses

  • time.time
  • profile.reset

Used By

Source

View on GitHub

praisonaiagents/llm/failover.py at line 342


Related Documentation