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

python
def on_failover(callback: Callable[[AuthProfile, AuthProfile], None]) -> None

Parameters

ParamField Callable

Function called with (failed_profile, new_profile)

Source

View on GitHub

praisonaiagents/llm/failover.py at line 483