MCPcopy Index your code
hub / github.com/supermemoryai/supermemory / get_memory

Function get_memory

packages/docs-test/tests/python/quickstart.py:25–28  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

23print(f"Profile response: {profile}")
24
25def get_memory(r):
26 if hasattr(r, 'memory'):
27 return r.memory
28 return r.get('memory', '') if isinstance(r, dict) else str(r)
29
30context = f"""Static profile:
31{chr(10).join(profile.profile.static)}

Callers 1

quickstart.pyFile · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…