MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / generate_unique_id

Function generate_unique_id

src/utils/string_utils.py:40–44  ·  view source on GitHub ↗

Generate a unique id using timestamp and UUID.

(prefix: str = "session")

Source from the content-addressed store, hash-verified

38 return clean
39
40def generate_unique_id(prefix: str = "session") -> str:
41 """Generate a unique id using timestamp and UUID."""
42 timestamp = datetime.now().strftime("%Y%m%d-%H%M%S")
43 unique_id = str(uuid.uuid4())[:8]
44 return f"{prefix}_{timestamp}_{unique_id}"

Callers 5

add_eventMethod · 0.90
SessionContextClass · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected