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, $&#123;ENV&#125;, secret ref); a missing, empty or masked key raises ValueError` without the key.

Signature

python
def manager_from_auth_profiles(profiles: Optional[List[Dict[str, Any]]]) -> Optional[FailoverManager]

Parameters

ParamField Optional

No description available.

Returns

ResponseField Optional[FailoverManager]

The result of the operation.

Uses

  • FailoverManager
  • TypeError
  • resolve_secret
  • ValueError
  • manager.add_profile
  • AuthProfile.from_dict

Source

View on GitHub

praisonaiagents/llm/failover.py at line 573


Related Documentation