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

python
def mark_failure(profile: AuthProfile, error: str, is_rate_limit: bool) -> None

Parameters

ParamField AuthProfile

The profile that failed

ParamField str

Error message

ParamField bool

Whether this is a rate limit error

Uses

  • profile.mark_rate_limited
  • logger.warning
  • profile.mark_error
  • bench
  • get_next_profile
  • callback
  • logger.error

Source

View on GitHub

praisonaiagents/llm/failover.py at line 384