Project-Mahoraga / utils /validators.py
MridulNegi2005's picture
Initial HF deployment commit
c9d1b27
raw
history blame contribute delete
218 Bytes
from utils.constants import VALID_ACTIONS
def validate_action(action):
if action not in VALID_ACTIONS:
raise ValueError(
f"Invalid action: {action}. Must be one of {VALID_ACTIONS}."
)