dify / api /core /tools /utils /uuid_utils.py
kikuepi's picture
Upload 4913 files
4304c6d verified
raw
history blame contribute delete
165 Bytes
import uuid
def is_valid_uuid(uuid_str: str) -> bool:
try:
uuid.UUID(uuid_str)
return True
except Exception:
return False