MCPcopy
hub / github.com/langroid/langroid / get

Method get

langroid/utils/object_registry.py:34–36  ·  view source on GitHub ↗

Retrieves an object by ID if it still exists.

(cls, obj_id: str)

Source from the content-addressed store, hash-verified

32
33 @classmethod
34 def get(cls, obj_id: str) -> Optional[ObjWithId]:
35 """Retrieves an object by ID if it still exists."""
36 return cls.registry.get(obj_id)
37
38 @classmethod
39 def register_object(cls, obj: ObjWithId) -> str:

Callers 15

closeMethod · 0.80
numpy_to_python_typeFunction · 0.80
componentsFunction · 0.80
_responseMethod · 0.80
_response_asyncMethod · 0.80
_get_model_infoFunction · 0.80
from_dictMethod · 0.80
createMethod · 0.80
_get_cached_clientFunction · 0.80
openai_gpt.pyFile · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by 15

user_responseMethod · 0.64
vecdbFunction · 0.64
my_bMethod · 0.64
parentMethod · 0.64
childMethod · 0.64
my_aMethod · 0.64
test_object_lookupFunction · 0.64
test_remove_objectFunction · 0.64
test_cleanup_registryFunction · 0.64
test_chat_documentsFunction · 0.64
vecdbFunction · 0.64