MCPcopy Create free account
hub / github.com/MemTensor/MemOS / add

Method add

evaluation/scripts/utils/client.py:26–34  ·  view source on GitHub ↗
(self, messages, user_id, timestamp)

Source from the content-addressed store, hash-verified

24 self.client = Zep(api_key=api_key)
25
26 def add(self, messages, user_id, timestamp):
27 iso_date = datetime.fromtimestamp(timestamp).isoformat()
28 for msg in messages:
29 self.client.graph.add(
30 data=msg.get("role") + ": " + msg.get("content"),
31 type="message",
32 created_at=iso_date,
33 group_id=user_id,
34 )
35
36 def search(self, query, user_id, top_k):
37 search_results = (

Callers 15

kv_cache_memory.pyFile · 0.45
mainFunction · 0.45
mainFunction · 0.45
addMethod · 0.45
addMethod · 0.45
client.pyFile · 0.45
mirix_utils.pyFile · 0.45
ingest_sessionFunction · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected