Skip to content

Unclear usage of actor_id in AgentCoreMemorySessionManager implementation. #220

Closed

Description

@akshseh

Issue

Session manager implementation -> https://github.com/aws/bedrock-agentcore-sdk-python/blob/main/src/bedrock_agentcore/memory/integrations/strands/session_manager.py
states

 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.

Potential Solution

We could potentially make use of AgentCore Memory metadata feature to add the session metadata.

Activity

  1. pulapas commented on Feb 7, 2026

    @pulapas

    pls resolve - we have to use the hooks meanwhile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions