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

Method end_session

src/memory/context.py:1197–1209  ·  view source on GitHub ↗

End 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

1195 return await instance.add_event(step_number, event_type, data, agent_name, task_id, ctx=ctx, **kwargs)
1196
1197 async def end_session(self, memory_name: str,
1198 ctx: SessionContext = None,
1199 **kwargs):
1200 """End a memory session (delegates to memory system instance).
1201
1202 Args:
1203 memory_name: Name of the memory system
1204 ctx: Memory context
1205 """
1206 instance = await self.get(memory_name)
1207 if instance is None:
1208 raise ValueError(f"Memory system '{memory_name}' not found")
1209 return await instance.end_session(ctx=ctx, **kwargs)
1210
1211 async def get_session_info(self, memory_name: str,
1212 ctx: SessionContext = None,

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected