MCPcopy Create free account
hub / github.com/modelscope/ms-agent / init_cache_messages

Method init_cache_messages

ms_agent/memory/default_memory.py:106–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

104 self.load_cache()
105
106 async def init_cache_messages(self):
107 if len(self.cache_messages) and not len(self.memory_snapshot):
108 for id, messages in self.cache_messages.items():
109 await self.add_single(messages, msg_id=id)
110
111 def save_cache(self):
112 """

Callers

nothing calls this directly

Calls 1

add_singleMethod · 0.95

Tested by

no test coverage detected