Mark Failure • AI Agent SDK
mark_failure: Mark a profile as failed.
mark_failure
Method
</div>
This is a method of the FailoverManager class in the failover module.
Mark a profile as failed.
Signature
def mark_failure(profile: AuthProfile, error: str, is_rate_limit: bool) -> NoneParameters
ParamField
AuthProfileThe profile that failed
ParamField
strError message
ParamField
boolWhether this is a rate limit error
Uses
profile.mark_rate_limitedlogger.warningprofile.mark_errorbenchget_next_profilecallbacklogger.error
Source
View on GitHubpraisonaiagents/llm/failover.py at line 384