Add an event to memory. Args: memory_name: Name of the memory system step_number: Step number event_type: Event type data: Event data agent_name: Agent name task_id: Optional task ID ctx: Memory cont
(self,
memory_name: str,
step_number: int,
event_type: Any, data: Any,
agent_name: str,
task_id: Optional[str] = None,
ctx: SessionContext = None,
**kwargs)
| 161 | ) |
| 162 | |
| 163 | async def add_event(self, |
| 164 | memory_name: str, |
| 165 | step_number: int, |
| 166 | event_type: Any, data: Any, |
| 167 | agent_name: str, |
| 168 | task_id: Optional[str] = None, |
| 169 | ctx: SessionContext = None, |
| 170 | **kwargs): |
| 171 | """Add an event to memory. |
| 172 | |
| 173 | Args: |
| 174 | memory_name: Name of the memory system |
| 175 | step_number: Step number |
| 176 | event_type: Event type |
| 177 | data: Event data |
| 178 | agent_name: Agent name |
| 179 | task_id: Optional task ID |
| 180 | ctx: Memory context |
| 181 | **kwargs: Additional arguments |
| 182 | """ |
| 183 | return await self.memory_context_manager.add_event( |
| 184 | memory_name, |
| 185 | step_number, |
| 186 | event_type, |
| 187 | data, |
| 188 | agent_name, |
| 189 | task_id, |
| 190 | ctx=ctx, |
| 191 | **kwargs) |
| 192 | |
| 193 | async def end_session(self, |
| 194 | memory_name: str, |
no outgoing calls