Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/supermemoryai/supermemory
/ get_memory
Function
get_memory
packages/docs-test/tests/python/user_profiles.py:54–57 ·
view source on GitHub ↗
(r)
Source
from the content-addressed store, hash-verified
52
53
54
def
get_memory(r):
55
if
hasattr(r,
'memory'
):
56
return
r.memory
57
return
r.get(
'memory'
,
''
)
if
isinstance(r, dict)
else
str(r)
58
59
60
def
test_building_context():
Callers
1
test_building_context
Function · 0.70
Calls
1
get
Method · 0.80
Tested by
1
test_building_context
Function · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…