mirror of
				https://github.com/langgenius/dify.git
				synced 2025-11-04 04:43:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			156 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			156 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import uuid
 | 
						|
 | 
						|
 | 
						|
def is_valid_uuid(uuid_str: str) -> bool:
 | 
						|
    try:
 | 
						|
        uuid.UUID(uuid_str)
 | 
						|
        return True
 | 
						|
    except Exception:
 | 
						|
        return False
 |