Description
Modify the validators' base code to read data from metadata instead of initialization kwargs.
Why is this needed
To dynamically add metadata in validate on the client side without redeploying docker image again.
Ex: we need to redeploy docker image If we want to change the categories for pii_entities from ["PERSON","LOCATION"] to ["PERSON","PHONE_NUMBER","LOCATION"]
End result
User can dynamically change categories for multiple guardrails from client-side using guard.validate()
Description Modify the validators' base code to read data from metadata instead of initialization kwargs.
Why is this needed To dynamically add metadata in validate on the client side without redeploying docker image again. Ex: we need to redeploy docker image If we want to change the categories for pii_entities from ["PERSON","LOCATION"] to ["PERSON","PHONE_NUMBER","LOCATION"]
End result User can dynamically change categories for multiple guardrails from client-side using guard.validate()