MCPcopy 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
54def 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
60def test_building_context():

Callers 1

test_building_contextFunction · 0.70

Calls 1

getMethod · 0.80

Tested by 1

test_building_contextFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…