Manager From Auth Profiles • AI Agent SDK
manager_from_auth_profiles: Build a FailoverManager from “LLMConfig.auth_profiles“ dicts.
manager_from_auth_profiles
Function
</div>
This function is defined in the failover module.
Build a FailoverManager from `LLMConfig.auth_profiles` dicts.
`api_key goes through resolve_secret (plaintext, ${ENV}, secret ref); a missing, empty or masked key raises ValueError` without the key.
Signature
def manager_from_auth_profiles(profiles: Optional[List[Dict[str, Any]]]) -> Optional[FailoverManager]Parameters
ParamField
OptionalNo description available.
Returns
ResponseField
Optional[FailoverManager]The result of the operation.
Uses
FailoverManagerTypeErrorresolve_secretValueErrormanager.add_profileAuthProfile.from_dict
Source
View on GitHubpraisonaiagents/llm/failover.py at line 573