The agent stores the memory for each session against the unique memory identifier (memoryId
) provided for each user when you invoke the agent.
The next time you invoke the agent with the same memoryId
, the entire memory is loaded to the session. After you end the session, the agent
generates a summarized version of the session and stores the session summary.
Note
It can take several minutes after you end your session for the session summaries to appear in the console or in the API response.
To learn how to view the session summaries, choose the tab for your preferred method, and then follow the steps:
To view session summaries,
-
Sign in to the AWS Management Console using an IAM role with Amazon Bedrock permissions, and open the Amazon Bedrock console at https://console.aws.amazon.com/bedrock/
. -
Select Agents from the left navigation pane. Then, choose an agent in the Agents section.
-
In the Test window, choose the expand icon and choose Memory tab.
If you are in Agent builder page, in the Memory section, choose View memory.
-
You can also view memory sessions when you are testing your agent. To view sessions stored in the memory when you are testing,
-
In the test window, choose Show trace and then choose Memory tab.
Note
If you are viewing memory sessions when you are testing your agent, you can view the session summary only after the latest session has ended. If you try to view memory sessions when the current session is in progress you will be informed that session summary is being generated and it will take time to generate the sessions. You can force end the current session by choosing the broom icon.
-