You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deploy-to-production/README.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,23 @@
4
4
5
5
Deploy the multimodal travel assistant agent to production using [Amazon Bedrock AgentCore Runtime](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/agents-tools-runtime.html). This agent features persistent memory, multimodal content analysis (images, videos, documents), and personalized travel recommendations.
6
6
7
+
### AgentCore Services
8
+
9
+
-**[AgentCore Runtime](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime.html)** ⭐ - Serverless execution with auto-scaling and session management
10
+
-**[AgentCore Identity](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/identity.html)** - Secure credential management for API keys and tokens
11
+
-**[AgentCore Memory](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/memory.html)** ⭐ - State persistence and conversation history
-**[AgentCore Gateway](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway.html)** - API management and tool discovery
15
+
-**[AgentCore Observability](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/observability.html)** - Monitoring, tracing, and debugging
16
+
-**[AgentCore Policy](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/policy.html)** - Deterministic control and security boundaries for agent-tool interactions
17
+
-**[AgentCore Evaluations](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/evaluations.html)** - Automated assessment and performance measurement for agents
18
+
7
19
## Production Features
8
20
9
21
-**Persistent Memory**: Cross-session memory using Bedrock AgentCore Memory
22
+
-**Short-term Memory**: Captures turn-by-turn interactions within a single session
23
+
-**Long-term Memory**: Automatically extracts and stores key insights across multiple sessions
10
24
-**Multimodal Analysis**: Process images, videos, and documents with built-in tools
11
25
-**Travel Expertise**: Personalized recommendations based on user preferences
12
26
-**Production Ready**: Secure, scalable deployment on AWS infrastructure
@@ -17,6 +31,7 @@ Deploy the multimodal travel assistant agent to production using [Amazon Bedrock
17
31
-**Python 3.10+** installed
18
32
-**AWS CLI configured** (`aws configure`)
19
33
-**Model Access**: Enable `us.anthropic.claude-3-5-sonnet-20241022-v2:0` in Amazon Bedrock console
34
+
- Basic understanding of [AI agents](https://aws.amazon.com/what-is/ai-agents/) and [AWS services](https://aws.amazon.com/what-is-aws/)
Select YES in *Request Header Allow list*, and in *Request Header Allow* paste `X-Amzn-Bedrock-AgentCore-Runtime-Custom-Actor-Id`
75
+
76
+
This header allows passing a user identifier from your application to the agent. The agent extracts it from `context.request_headers` (normalized to lowercase: `x-amzn-bedrock-agentcore-runtime-custom-actor-id`) and uses it to namespace memory per user.
77
+
78
+
At the end `.bedrock_agentcore.yaml`, must look like this:
This creates a `.bedrock_agentcore.yaml` configuration file.
58
87
59
88
**Note**: When you enable memory during configuration, the AgentCore CLI automatically creates the memory resource (if needed) and sets the `BEDROCK_AGENTCORE_MEMORY_ID` environment variable during deployment. Your agent code reads this variable automatically.
@@ -114,6 +143,8 @@ This script tests:
114
143
- Cross-session memory recall
115
144
- User-specific memory isolation
116
145
146
+
**Important:** Long-term memory extraction is an [asynchronous background process](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/long-term-saving-and-retrieving-insights.html#long-term-step-2-retrieve-extracted-insights) that can take a minute or more. The test waits 60 seconds between invocations for reliable memory retrieval.
147
+
117
148
**Generate test content (optional):**
118
149
119
150
If you need sample travel content for testing, use the travel content generator from the parent directory:
@@ -161,8 +192,10 @@ The notebook demonstrates:
161
192
162
193
**If you want to start using the agent by creating your own code, keep the following points in mind**:
163
194
- Session IDs must be 33+ characters for proper session management
195
+
- Use custom headers for user identification: `X-Amzn-Bedrock-AgentCore-Runtime-Custom-Actor-Id`
164
196
- Same user ID enables cross-session memory
165
197
- Different session IDs simulate different conversations
198
+
- Headers are normalized to lowercase in the agent code
0 commit comments