Files
dify/api/core/datasource/utils/uuid_utils.py
T

9 lines
156 B
Python
Raw Normal View History

+9
2025-09-18 12:49:10 +08:00
import uuid
def is_valid_uuid(uuid_str: str) -> bool:
try:
uuid.UUID(uuid_str)
return True
except Exception:
return False