feat(runtime): Add AG-UI examples with SSE and WebSocket demos#1139
feat(runtime): Add AG-UI examples with SSE and WebSocket demos#1139rajjainl wants to merge 9 commits intoawslabs:mainfrom
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
Tagging @evandrofranco for the ag_ui notebook creation |
Add tutorial 09-ag-ui-examples demonstrating the AG-UI protocol on AgentCore Runtime with both Cognito/JWT and IAM/SigV4 authentication. Includes: - Document co-authoring agent (FastAPI + Strands + ag-ui-strands) - Cognito notebook with SSE and WebSocket Bearer token demos - IAM notebook with SSE (SigV4 headers) and WebSocket (pre-signed URL) demos - Multi-turn interactive document co-authoring demo - Architecture diagrams for both auth flows and transports - README with AG-UI event reference and troubleshooting
- Rename 09-ag-ui-examples to 10-ag-ui-examples (09 slot taken by execute-command) - Remove hardcoded region_name=us-west-2 from BedrockModel, inherit from env - Use DP variable for both SSE_URL and WS_URL consistently - Regenerate architecture diagrams: single agent with tool boxes, proper auth flow - Improved event flow as full flowchart with color-coded event categories
8e57d16 to
cb1880b
Compare
|
@evandrofranco This is the latest PR |
|
Latest scan for commit: Security Scan ResultsScan Metadata
SummaryScanner ResultsThe table below shows findings by scanner, with status based on severity thresholds and dependencies: Column Explanations: Severity Levels (S/C/H/M/L/I):
Other Columns:
Scanner Results:
Severity Thresholds (Thresh Column):
Threshold Source: Values in parentheses indicate where the threshold is configured:
Statistics calculation:
Detailed FindingsShow 1 actionable findingsFinding 1: B104
Description: Code Snippet: Report generated by Automated Security Helper (ASH) at 2026-03-24T21:03:01+00:00 |
Use ortho splines and increased node spacing to prevent edges cutting through label text in architecture diagrams.
…ency - Use deployment_type=direct_code_deploy with runtime_type=PYTHON_3_13 - Remove auto_create_ecr from configure() - Remove ECR cleanup from both notebooks - Remove Docker from prerequisites
…emove review cell - Use direct_code_deploy with PYTHON_3_13 runtime type - Trim requirements.txt to 5 essential packages - Remove Review Agent Code section from both notebooks - Install zip via sudo apt-get for SageMaker Studio compatibility - Renumber notebook sections
evandrofranco
left a comment
There was a problem hiding this comment.
Please take a look
| "id": "status", | ||
| "metadata": {}, | ||
| "outputs": [], | ||
| "source": [ |
There was a problem hiding this comment.
can this block be simplified:
status_response = agentcore_runtime.status()
status = status_response.endpoint['status']
print(f'\n\u2705 Runtime status: {status}')
| "sys.path.insert(0, os.path.abspath(os.path.join('.', '..', '..')))\n", | ||
| "from utils import setup_cognito_user_pool\n", | ||
| "\n", | ||
| "cognito_config = setup_cognito_user_pool(pool_name='DocGeneratorPool')\n", |
There was a problem hiding this comment.
Can we add a markdown before this, explaining the helper util.py that we are using to create this?
| "\n", | ||
| "print(f'Status: {sr.get(\"status\")}')\n", | ||
| "print(f'Protocol: {sr.get(\"protocolConfiguration\", {})}')\n", | ||
| "print(f'Authorizer: {sr.get(\"authorizerConfiguration\", \"NOT SET\")}')\n", |
Add tutorial 09-ag-ui-examples demonstrating the AG-UI protocol on AgentCore Runtime with both Cognito/JWT and IAM/SigV4 authentication.
Includes:
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.