On Failover • AI Agent SDK
on_failover: Register a callback for failover events.
on_failover
Method
</div>
This is a method of the FailoverManager class in the failover module.
Register a callback for failover events.
Signature
def on_failover(callback: Callable[[AuthProfile, AuthProfile], None]) -> NoneParameters
ParamField
CallableFunction called with (failed_profile, new_profile)
Source
View on GitHubpraisonaiagents/llm/failover.py at line 483