MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / validate_uuid

Function validate_uuid

app/api/agentops/api/utils.py:38–46  ·  view source on GitHub ↗
(uuid_string)

Source from the content-addressed store, hash-verified

36
37
38def validate_uuid(uuid_string) -> uuid.UUID:
39 try:
40 return uuid.UUID(uuid_string, version=4)
41 except ValueError:
42 raise InvalidAPIKeyError(401, "Invalid API KEY format")
43 except TypeError:
44 raise InvalidAPIKeyError(401, "Invalid API KEY format")
45 except Exception as e:
46 raise RuntimeError(f"Error validating UUID: {e}")
47
48
49async def get_premium_status(supabase: AsyncSupabaseClient = None, user_id: str = None) -> bool:

Callers 5

create_sessionFunction · 0.90
v2_reauthorize_jwtFunction · 0.90
v2_create_sessionFunction · 0.90
v2_get_session_statsFunction · 0.90
v2_export_sessionFunction · 0.90

Calls 1

InvalidAPIKeyErrorClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…