MCPcopy
hub / github.com/agent0ai/agent-zero / remove

Method remove

agent.py:165–170  ·  view source on GitHub ↗
(id: str)

Source from the content-addressed store, hash-verified

163 @staticmethod
164 @extension.extensible
165 def remove(id: str):
166 with AgentContext._contexts_lock:
167 context = AgentContext._contexts.pop(id, None)
168 if context and context.task:
169 context.task.kill()
170 return context
171
172 def get_data(self, key: str, recursive: bool = True):
173 # recursive is not used now, prepared for context hierarchy

Calls 2

popMethod · 0.80
killMethod · 0.45