Skip to content

Unclear usage of actor_id in AgentCoreMemorySessionManager implementation. #220

@akshseh

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.

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