-
Notifications
You must be signed in to change notification settings - Fork 490
AgentCore Memory - Sample Update - Long Term - Langraph Agent #487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…ger notebook with cleaner docs
…memory manager SDK
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
| langgraph | ||
| langgraph-checkpoint-aws | ||
| langchain-aws | ||
| bedrock-agentcore-starter-toolkit==0.1.19 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the new version of the starter toolkit.
| "from bedrock_agentcore.memory.models import MemoryRecord\n", | ||
| "\n", | ||
| "# Import custom memory prompts\n", | ||
| "from custom_memory_prompts import consolidation_prompt, extraction_prompt\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
relative import - might not work in different environments. Please add the
current_dir = os.path.dirname(os.path.abspath(os.getcwd()))
sys.path.append(current_dir)
before this.
| " logger.error(f\"Error type: {type(e).__name__}\")\n", | ||
| " import traceback\n", | ||
| " traceback.print_exc()\n", | ||
| " raise" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Throws an error:
2025-10-17 15:04:28,779 - ERROR - ❌ Memory creation failed: An error occurred (ValidationException) when calling the CreateMemory operation: Validation failed during CreateMemory: Please provide a role with a valid trust policy
2025-10-17 15:04:28,780 - ERROR - Error type: ValidationException
Amazon Bedrock AgentCore Samples Pull Request
Important
review readylabel to it. Only PRs withreview readywill be reviewed.Issue number:
Concise description of the PR
User experience
Checklist
If your change doesn't seem to apply, please leave them unchecked.
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.