MCPcopy Create free account
hub / github.com/OpenManus/OpenManus-RL / reset

Method reset

openmanus_rl/memory/memory.py:19–24  ·  view source on GitHub ↗
(self, batch_size: int)

Source from the content-addressed store, hash-verified

17 return self._data[idx]
18
19 def reset(self, batch_size: int):
20 if self._data is not None:
21 self._data.clear()
22 self._data = [[] for _ in range(batch_size)]
23 self.batch_size = batch_size
24 self.keys = None
25
26 def store(self, record: Dict[str, List[Any]]):
27 """

Callers

nothing calls this directly

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected