Utils
Utility functions for Provider app.
- smarter.apps.provider.utils.get_google_maps_api_key(recursed=False)[source]
Get the Google Maps API key from the secret store.
- smarter.apps.provider.utils.get_google_service_account_bearer_token()[source]
Get a Google service account bearer token.
- smarter.apps.provider.utils.get_model_verification_for_type(provider_model, verification_type)[source]
Get the model verification for a specific type.
- Return type:
- smarter.apps.provider.utils.get_provider_verification_for_type(provider, verification_type)[source]
Get the provider verification for a specific type.
- Return type:
- smarter.apps.provider.utils.initialize_google_maps()[source]
Initialize Google Maps provider.
- Return type:
- smarter.apps.provider.utils.initialize_secret(secret_string, secret_name, description, user_profile)[source]
Initialize a secret from an environment variable.
- smarter.apps.provider.utils.set_model_verification(provider_model_verification, is_successful, **kwargs)[source]
Set the model verification status.
- Return type:
- smarter.apps.provider.utils.set_provider_verification(provider_verification, is_successful, **kwargs)[source]
Set the provider verification status.
- Return type: