nemoguardrails.library.gcp_moderate_text.actions
nemoguardrails.library.gcp_moderate_text.actions
Module Contents
Functions
Data
API
async
Application Default Credentials (ADC) is a strategy used by the GCP authentication libraries to automatically find credentials based on the application environment. ADC searches for credentials in the following locations (Search order):
- GOOGLE_APPLICATION_CREDENTIALS environment variable
- User credentials set up by using the Google Cloud CLI
- The attached service account, returned by the metadata server
For more information check https://cloud.google.com/docs/authentication/application-default-credentials
Determines whether the output from the GCP text moderation API should be blocked.
Returns True (i.e. block the output) if any of the conditions are met.