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

Method try_enable

ms_agent/memory/default_memory.py:49–52  ·  view source on GitHub ↗
(self, expired_disable_idx: int)

Source from the content-addressed store, hash-verified

47 self.disable_idx = disable_idx
48
49 def try_enable(self, expired_disable_idx: int):
50 if expired_disable_idx == self.disable_idx:
51 self.valid = True
52 self.disable_idx = -1
53
54 def get(self):
55 return self.value

Callers 1

_delete_singleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected