MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / clear_session

Method clear_session

src/memory/context.py:1228–1241  ·  view source on GitHub ↗

Clear a memory session (delegates to memory system instance). Args: memory_name: Name of the memory system ctx: Memory context

(self, 
                            memory_name: str, 
                            ctx: SessionContext = None,
                            **kwargs)

Source from the content-addressed store, hash-verified

1226 return await instance.get_session_info(ctx=ctx, **kwargs)
1227
1228 async def clear_session(self,
1229 memory_name: str,
1230 ctx: SessionContext = None,
1231 **kwargs):
1232 """Clear a memory session (delegates to memory system instance).
1233
1234 Args:
1235 memory_name: Name of the memory system
1236 ctx: Memory context
1237 """
1238 instance = await self.get(memory_name)
1239 if instance is None:
1240 raise ValueError(f"Memory system '{memory_name}' not found")
1241 return await instance.clear_session(ctx=ctx, **kwargs)
1242
1243 async def get_state(self,
1244 memory_name: str,

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected