Langchain Runnables to screen user prompt and/or model response using Google Cloud Model Armor.
Before using Model Armor Runnables, ensure the following steps are completed:
Select or create a Google Cloud Platform project.
Enable billing for your project.
Enable the Model Armor API in your GCP project.
Grant the modelarmor.user IAM role to any user or service account that will use
the Model Armor runnables.
Authentication:
Create Model Armor Template:
modelarmor.admin IAM role is required.