AgentCore Runtime V2用快照加快会话启动
AWS Machine Learning Blog称,Amazon Bedrock AgentCore Runtime V2只需预置一次环境并生成快照,后续会话恢复该快照,从而取代每个会话分别初始化容器的方式。该运行时还支持构建钩子来加载和预热文件;AWS称V2可回收未使用的会话内存,并实现更快、更一致的启动速度,但创建或更新V2运行时需要数分钟生成快照。
这项更新为AI智能体开发者提供了明确路径,可把初始化工作移出请求链路,并通过预热降低聊天和语音场景的延迟。
Agents today review code, process claims, and run unattended for hours. Many also sit behind interactive experiences where a person waits for the first response. Amazon Bedrock AgentCore runtime gives these agents a fully managed, serverless environment: each session runs in its own isolated microVM, the platform scales to zero when there’s no work, and you only pay for the resources your sessions consume.
AgentCore runtime with platformVersion set to “V2” changes how sessions start. Instead of initializing your container for every session, it prepares your environment once, snapshots it, and restores that snapshot for each new session. Session start times are faster and more consistent. V2 also reclaims memory your sessions don’t use, so your bill tracks what your agent uses.
For most agents, switching to V2 is all it takes. Some agents need restructuring to get the full benefit, and for chat and voice experiences even 2 seconds is too slow. This post explains how V2 starts a session, how to measure session start time, and how to keep work off the first request, including build hooks, which AgentCore runtime now supports. We cover four patterns, from changes to your agent’s code to starting sessions before users need them.
#Amazon Bedrock AgentCore Runtime#Amazon Bedrock AgentCore Runtime V2#Amazon ECR#AgentCore Python SDK