event = self.memory_client.gmdp_client.create_event(
memoryId=self.config.memory_id,
actorId=self._get_full_session_id(session.session_id),
sessionId=self.session_id,
payload=[
{"blob": json.dumps(session.to_dict())},
],
eventTimestamp=self._get_monotonic_timestamp(),
)
Here the actorId is assigned Session information whereas the actorId should be defined by the AI Developer and not updated/changed by the SessionManager.
We could potentially make use of AgentCore Memory metadata feature to add the session metadata.