Tutorial/multi agent agentcore deployment#225
Open
manoj-selvakumar5 wants to merge 2 commits intostrands-agents:mainfrom
Open
Tutorial/multi agent agentcore deployment#225manoj-selvakumar5 wants to merge 2 commits intostrands-agents:mainfrom
manoj-selvakumar5 wants to merge 2 commits intostrands-agents:mainfrom
Conversation
|
Latest scan for commit: ✅ Security Scan Report (PR Files Only)Scanned Files
Security Scan Results
Threshold: High No security issues detected in your changes. Great job! This scan only covers files changed in this PR. |
7706f78 to
db77d63
Compare
9cbae1a to
d42bbf7
Compare
akshseh
reviewed
Mar 3, 2026
akshseh
requested changes
Mar 3, 2026
| "execution_count": null, | ||
| "metadata": {}, | ||
| "outputs": [], | ||
| "source": "# Import standard libraries\nimport os\nfrom pathlib import Path\nfrom urllib.parse import quote\nfrom uuid import uuid4\n\n# Import AWS SDK\nimport boto3\n\n# Import utilities\nfrom utils import (\n PRODUCT_AGENT_NAME,\n PRODUCT_ROLE_NAME,\n SSM_PRODUCT_AGENT_URL,\n create_agentcore_role,\n)\nfrom utils.ssm_helpers import store_ssm_parameter\n\n# Get AWS account information\nsts = boto3.client(\"sts\")\naccount_id = sts.get_caller_identity()[\"Account\"]\nregion = \"us-west-2\" # Multi-agent tutorial uses us-west-2\n\n# Set paths\nNOTEBOOK_DIR = Path.cwd()\n\n# Ensure product_agent directory exists for %%writefile\n(NOTEBOOK_DIR / \"product_agent\").mkdir(exist_ok=True)\n\nprint(f\"AWS Account: {account_id}\")\nprint(f\"Region: {region}\")" |
Collaborator
There was a problem hiding this comment.
pip install cell is missing - I see it in prereq.. but add it as a cell. I think it's easier to "run all"
| # Notebook dependencies for E-commerce Shopping Assistant deployment | ||
| boto3>=1.35.0 | ||
| python-dotenv>=1.0.0 | ||
| bedrock-agentcore-starter-toolkit>=0.1.0 |
Collaborator
There was a problem hiding this comment.
This is very broad.
with toolkit v0.1.x I get ValueError: protocol must be either HTTP or MCP.. Tested with
bedrock-agentcore==1.4.2
bedrock-agentcore-starter-toolkit==0.3.1
boto3==1.42.60
It works fine.
Collaborator
Author
There was a problem hiding this comment.
@akshseh - I updated the notebooks. Added pinned versions and pip install
2d47af6 to
d4cd244
Compare
d4cd244 to
59a10fe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
What's included
3 Jupyter notebooks (run in order):
A2AClientToolProviderto discover specialist agents and route user queries via SigV4-authenticated A2A callsAgent source files (
product_agent/,order_agent/,orchestrator/):requirements.txtfor container buildsShared utilities (
utils/):config.py— SSM paths and agent name constantsiam.py— IAM execution role creation with cross-account protection and scoped permissionssigv4_auth.py—httpx.Authimplementation for SigV4-signed inter-agent requestsdynamodb_setup.py— Table creation and sample data seedingssm_helpers.py— Parameter Store read/write helpersstreaming.py— Streaming display with in-place status updates and A2A event handlingcallbacks.py— Tool logging callback handlers with deduplicationSample data (
sample_data/orders.json):Test plan
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.