Skip to content

[feat]Implement Dynamic Metadata-Driven ValidatorsΒ #1076

@Anchaliya75

Description

@Anchaliya75

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"]
image

End result
User can dynamically change categories for multiple guardrails from client-side using guard.validate()
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions