MCPcopy
hub / github.com/langroid/langroid / new_id

Method new_id

langroid/utils/object_registry.py:57–59  ·  view source on GitHub ↗

Generates a new unique ID.

()

Source from the content-addressed store, hash-verified

55
56 @staticmethod
57 def new_id() -> str:
58 """Generates a new unique ID."""
59 return str(uuid4())
60
61
62def scheduled_cleanup(interval: int = 600) -> None:

Callers 10

get_doc_chunksMethod · 0.80
add_window_idsMethod · 0.80
splitMethod · 0.80
maybe_add_idsMethod · 0.80
add_context_windowMethod · 0.80
AgentClass · 0.80
__init__Method · 0.80
deepcopyMethod · 0.80
cloneMethod · 0.80
ingest_docsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected