{"id":31385,"date":"2026-08-07T20:16:08","date_gmt":"2026-08-07T11:16:08","guid":{"rendered":"https:\/\/aireviewirush.com\/?p=31385"},"modified":"2026-08-07T20:16:09","modified_gmt":"2026-08-07T11:16:09","slug":"runtime-cases-persistent-compute-for-manufacturing-ai-brokers-on-amazon-bedrock-agentcore","status":"publish","type":"post","link":"https:\/\/aireviewirush.com\/?p=31385","title":{"rendered":"Runtime cases: persistent compute for manufacturing AI brokers on Amazon Bedrock AgentCore"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div id=\"\">\n<table id=\"amazon-polly-audio-table\">\n<tbody>\n<tr>\n<td id=\"amazon-polly-audio-tab\">\n<div id=\"amazon-polly-by-tab\">\n            <a href=\"https:\/\/aws.amazon.com\/polly\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/a0.awsstatic.com\/aws-blog\/images\/Voiced_by_Amazon_Polly_EN.png\" alt=\"Voiced by Polly\" width=\"554\" height=\"56\"\/><\/a>\n           <\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Once you transfer AI brokers from prototype to manufacturing, the infrastructure challenges multiply. Your brokers must persist state throughout multi-step workflows that run for hours or days. They should coordinate with different brokers, share context, and generally entry GPUs for specialised duties. Amazon Bedrock AgentCore runtime microVMs present a totally managed surroundings for invocations that may run for as much as 8 hours and assist stateful workflows by way of managed session storage. Some workloads additionally profit from devoted, larger-capacity environments \u2014 for instance, when brokers must run repeatedly for a number of days, entry GPUs or the underlying OS, or run a number of collaborating brokers on the identical host.<\/p>\n<p>At the moment, I\u2019m blissful to announce runtime cases, a brand new complementary compute choice in <a href=\"https:\/\/aws.amazon.com\/bedrock\/agentcore\/\" target=\"_blank\" rel=\"noopener\">Amazon Bedrock AgentCore Runtime<\/a> that offers your brokers persistent, managed infrastructure purpose-built for advanced agent workloads.<\/p>\n<p><span style=\"text-decoration: underline\"><strong>What you get<\/strong><\/span><br \/>\n        <br \/>Runtime cases offers AWS-managed EC2 infrastructure the place you deploy a number of brokers in a single runtime, every with their very own dependencies and artifact sorts. Your brokers can collaborate on the identical host inside shared periods that persist for as much as 14 days. The service helps GPU acceleration for compute-intensive duties, session cease\/restart to save lots of prices throughout idle intervals, and containerized deployments for groups that need to ship independently. For data that should survive past a session, runtime cases pairs naturally with <a href=\"https:\/\/aws.amazon.com\/ebs\/\" target=\"_blank\" rel=\"noopener\">Amazon Elastic Block Retailer (Amazon EBS)<\/a> and AgentCore Reminiscence, which supplies your brokers long-term recall throughout periods and environments.<\/p>\n<p>Earlier than right this moment, in the event you wished to maintain your brokers operating for days or they wanted GPU entry, or multi-agent coordination, you needed to construct and handle that infrastructure your self. You provisioned EC2 cases, configured networking, arrange session administration, dealt with scaling, and stitched collectively monitoring. Runtime cases handles all of that for you whereas integrating with the identical AgentCore APIs, id controls, and observability you already use with AgentCore Runtime microVMs.<\/p>\n<p>A couple of issues that ought to make agent builders smile: your brokers can name one another as instruments inside a shared session, iterating autonomously till the job is completed. You deliver any framework (<a href=\"https:\/\/crewai.com\/\" target=\"_blank\" rel=\"noopener\">CrewAI<\/a>, <a href=\"https:\/\/www.langchain.com\/langgraph\" target=\"_blank\" rel=\"noopener\">LangGraph<\/a>, <a href=\"https:\/\/www.llamaindex.ai\/\" target=\"_blank\" rel=\"noopener\">LlamaIndex<\/a>, Strands) and any mannequin. Packaging is minimal, a <code>@app.entrypoint<\/code> decorator and a zipper file or container picture. And in case your workflow spans days, hibernate Monday evening and resume Wednesday morning with all the pieces intact.<\/p>\n<p>Runtime microVMs and runtime cases are complementary compute choices that you should use independently or collectively by way of the identical AgentCore runtime APIs. A light-weight orchestrator agent on runtime microVM can coordinate and dispatch work to specialised employee brokers operating on cases. The orchestrator handles API calls, job routing, and end result aggregation utilizing runtime microVM\u2019s quick scaling, whereas staff on Situations carry out compute-intensive duties like code compilation, safety scanning, or GUI automation that require persistent state and direct OS entry.<\/p>\n<p><span style=\"text-decoration: underline\"><strong>Let me present you the way it works<br \/>\n          <br \/><\/strong><\/span>I constructed two brokers for this demo: a code author agent that generates Python code from pure language descriptions, and a code reviewer agent that analyzes the generated code for bugs, safety points, and elegance enhancements. Each brokers share the identical file system, so the reviewer can learn regardless of the author produces with none information switch or API calls between them.<\/p>\n<p>Right here is the code author (simplified, no error dealing with):<\/p>\n<pre><code class=\"lang-python\">author = Agent(\n    mannequin=\"us.anthropic.claude-sonnet-4-5-20250929-v1:0\",\n    system_prompt=(\n        \"You're a senior Python engineer. \"\n        \"Given a job, return ONLY a single Python code block \u2014 no prose.\"\n    ),\n)\n\n@app.entrypoint\ndef handler(occasion, context):\n    job = occasion.get(\"job\") or occasion.get(\"immediate\")\n    session_id = getattr(context, \"session_id\", None) or occasion.get(\"session_id\")\n    session_dir = SHARED_DIR \/ session_id\n    session_dir.mkdir(mother and father=True, exist_ok=True)\n\n    code = str(author(job))\n    (session_dir \/ \"code.py\").write_text(code)\n\n    return {\"agent\": \"author\", \"wrote\": str(session_dir \/ \"code.py\"), \"code\": code}<\/code><\/pre>\n<p>Right here is the code reviewer agent (simplified, no error dealing with):<\/p>\n<pre><code class=\"lang-python\">reviewer = Agent(\n    mannequin=\"us.anthropic.claude-sonnet-4-5-20250929-v1:0\",\n    system_prompt=(\n        \"You're a strict Python code reviewer. \"\n        \"Given code, return 3 bullet factors: bugs, model, strategies.\"\n    ),\n)\n\n@app.entrypoint\ndef handler(occasion, context):\n    session_id = getattr(context, \"session_id\", None) or occasion.get(\"session_id\")\n    code_path = SHARED_DIR \/ session_id \/ \"code.py\"\n    code = code_path.read_text()\n    evaluation = str(reviewer(f\"Overview this code:nn{code}\"))\n\n    return {\"agent\": \"reviewer\", \"learn\": str(code_path), \"evaluation\": evaluation}\n<\/code><\/pre>\n<p>Every agent is a Python utility utilizing <a href=\"https:\/\/strandsagents.com\/\" target=\"_blank\" rel=\"noopener\">Strands Brokers<\/a> with an <code>@app.entrypoint<\/code> decorator and a mannequin of its selection. I bundle each as a zipper file. For this demo, I exploit the <a href=\"https:\/\/console.aws.amazon.com\" target=\"_blank\" rel=\"noopener\">AWS Administration Console<\/a>. It&#8217;s also possible to use the <a href=\"https:\/\/docs.aws.amazon.com\/bedrock-agentcore\/latest\/devguide\/runtime-get-started-cli.html\" target=\"_blank\" rel=\"noopener\">AgentCore CLI<\/a>, the <a href=\"https:\/\/aws.amazon.com\/cli\/\" target=\"_blank\" rel=\"noopener\">AWS Command Line Interface (AWS CLI)<\/a> or infrastructure as code.<\/p>\n<p><strong>Step 1: Create a capability supplier.<\/strong><\/p>\n<p>A capability supplier defines the EC2 infrastructure your brokers run on. Within the AgentCore console, I choose <strong>Runtime<\/strong> within the left navigation, then choose the <strong>Capability suppliers<\/strong> tab and <strong>Create capability supplier<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-104781 size-full\" style=\"border: solid 1px #ccc\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2026\/06\/19\/2026-06-18_12-25-58.png\" alt=\"ACI Create Capcity Provider 1\" width=\"1254\" height=\"942\"\/><\/p>\n<p>I give it a <strong>Identify<\/strong>, choose Linux (64-bit ARM) because the <strong>Working system<\/strong>, and select <code>c7g.2xlarge<\/code> because the <strong>Allowed occasion sorts<\/strong>. This provides me 8 vCPUs and 16 GiB of reminiscence, sufficient for each brokers to run comfortably aspect by aspect.<\/p>\n<p>Additional down, I configure the <strong>VPC<\/strong>, <strong>subnets<\/strong>, and <strong>safety teams<\/strong> for community entry. Underneath <strong>Storage configuration<\/strong>, I maintain the default gp3 quantity. Underneath <strong>Service entry<\/strong>, I choose <strong>Create a brand new service position<\/strong> and let the console create the infrastructure position that manages EC2 cases on my behalf.<\/p>\n<p>I choose <strong>Create capability<\/strong> supplier and wait a number of seconds. The standing strikes to <strong>Lively<\/strong>.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-104783 size-full\" style=\"border: solid 1px #ccc\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2026\/06\/19\/2026-06-18_12-31-53.png\" alt=\"ACI Create Capacity Provider 2\" width=\"1164\" height=\"948\"\/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-104784 size-full\" style=\"border: solid 1px #ccc\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2026\/06\/19\/2026-06-18_12-32-39.png\" alt=\"ACI Create Capacity Provider 3\" width=\"934\" height=\"712\"\/><\/p>\n<p>Word the capability supplier configuration abstract: working system, occasion kind, subnets, safety group, occasion profile, and infrastructure position. As soon as created, solely the outline might be edited, so confirm your settings earlier than you proceed.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-104782 size-full\" style=\"border: solid 1px #ccc\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2026\/06\/19\/2026-06-18_12-35-42.png\" alt=\"ACI Create Capcity Provider 2\" width=\"1327\" height=\"1115\"\/><\/p>\n<p><strong>Step 2: Create a runtime and deploy the primary agent.<\/strong><\/p>\n<p>Again on the <strong>Runtime<\/strong> web page, I choose <strong>Create runtime<\/strong>. I give it a <strong>Identify<\/strong>, choose Situations because the <strong>Compute kind<\/strong>, and select the <strong>Capability supplier<\/strong> I created within the earlier step.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-104785 size-full\" style=\"border: solid 1px #ccc\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2026\/06\/19\/2026-06-19_11-34-29.png\" alt=\"ACI Create Runtime 1\" width=\"1510\" height=\"655\"\/><\/p>\n<p>Underneath <strong>Agent supply<\/strong>, I choose <strong>S3 Supply<\/strong>, then <strong>Add to S3<\/strong>. I select my agent zip file (<code>ACIDemoWriter.zip<\/code>), set the <strong>Language runtime<\/strong> to <code>Python 3.13,<\/code> and specify <code>agent.py<\/code> because the <strong>Agent entry level<\/strong>. That is the file that accommodates my <code>@app.entrypoint<\/code> embellished operate. Underneath <strong>Permissions<\/strong>, I choose <strong>Create default position<\/strong> to let the console provision the IAM position my agent wants.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-104786 size-full\" style=\"border: solid 1px #ccc\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2026\/06\/19\/2026-06-19_11-34-45.png\" alt=\"ACI Create Runtime 2\" width=\"1164\" height=\"1121\"\/><\/p>\n<p>I choose <strong>Create runtime<\/strong> and await the standing to turn into <strong>Prepared<\/strong>.<\/p>\n<p>I repeat the identical course of for my code reviewer agent. I create a second runtime, choose the identical capability supplier, add my reviewer agent zip file, and await it to turn into <strong>Prepared<\/strong>. Each brokers now share the identical underlying EC2 infrastructure.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-104926 size-full\" style=\"border: solid 1px #ccc\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2026\/06\/30\/2026-06-19_16-19-53.png\" alt=\"AgentCore Runtime Instances - Agent Ready\" width=\"1559\" height=\"983\"\/>The console reveals me a <strong>View invocation code<\/strong> part with ready-to-use Python, TypeScript, and JavaScript snippets to invoke my agent programmatically. However for this demo, I exploit the built-in check characteristic. I choose <strong>Check<\/strong> on the author agent\u2019s web page.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-104927 size-full\" style=\"border: solid 1px #ccc\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2026\/06\/30\/2026-06-19_16-21-30.png\" alt=\"AgentCore Runtime Instances - Show invocation code\" width=\"1564\" height=\"1037\"\/><strong>Step 3: Invoke brokers and observe collaboration.<\/strong><\/p>\n<p>The <strong>Runtime playground<\/strong> opens. On the high, I see three fields: <strong>Runtime agent<\/strong>, <strong>Endpoint<\/strong>, and <strong>Session ID<\/strong>. The console generates a session ID robotically. I pay attention to it as a result of I&#8217;ll reuse it with the reviewer agent.<\/p>\n<p>Within the <strong>Enter<\/strong> subject, I kind a JSON payload asking the author agent to generate code:<\/p>\n<pre><code class=\"lang-json\">{\"immediate\": \"write a fibonacci suite\"}<\/code><\/pre>\n<p>I choose <strong>Run<\/strong>. After a number of seconds, the <strong>Output<\/strong> panel reveals the agent\u2019s response. The author agent generated a Python module with two implementations of a Fibonacci sequence (a list-based operate and a generator) and wrote it to <code>\/tmp\/agentcore-session\/ca5ec24d-07f5-4eeb-add1-5ba416bf9eb2\/code.py<\/code>. Discover the session ID within the file path. That listing is the shared file system for this session.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-104928 size-full\" style=\"border: solid 1px #ccc\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2026\/06\/30\/2026-06-30_06-45-53.png\" alt=\"AgentCore Runtime Instances - Invoke code writer agent\" width=\"1407\" height=\"992\"\/><\/p>\n<p><strong>Step 4: Invoke the reviewer agent in the identical session.<\/strong><\/p>\n<p>Now I swap the <strong>Runtime agent<\/strong> dropdown to <strong>ACIDemoReviewer<\/strong>. The vital half: I paste the identical session ID (<code>ca5ec24d-07f5-4eeb-add1-5ba416bf9eb2)<\/code> within the <strong>Session ID<\/strong> subject. That is what connects the 2 brokers.<\/p>\n<p>I kind a easy immediate:<\/p>\n<pre><code class=\"lang-json\">{\"immediate\": \"evaluation the code\"}<\/code><\/pre>\n<p>I choose <strong>Run<\/strong>. The reviewer agent reads the file the author produced from the shared session listing and returns an in depth code evaluation. It finds no important bugs however suggests including kind hints, enter validation, and simplifying the sting case dealing with.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-104929 size-full\" style=\"border: solid 1px #ccc\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/da4b9237bacccdf19c0760cab7aec4a8359010b0\/2026\/06\/30\/2026-06-30_06-49-53.png\" alt=\"AgentCore Runtime Instances - Invoke code reviewer agent\" width=\"1400\" height=\"1012\"\/>The 2 brokers by no means exchanged messages or referred to as one another\u2019s APIs. They collaborated by way of the shared file system that runtime cases present inside a session. You may prolong this sample to any variety of brokers: a check agent that runs the code, a documentation agent that generates README information, a safety agent that scans for vulnerabilities, all sharing the identical working listing.<\/p>\n<p><span style=\"text-decoration: underline\"><strong>Key particulars<br \/>\n          <br \/><\/strong><\/span>Right here are some things to know as you get began:<\/p>\n<ul>\n<li><strong>Supported OS<\/strong>: Linux (ARM64 and x86_64) at launch.<\/li>\n<li><strong>Session persistence<\/strong>: Periods persist for as much as 14 days.<\/li>\n<li><strong>Runtimes<\/strong>: Python 3.11-14 with native code assist. Container pictures additionally supported.<\/li>\n<li><strong>GPU<\/strong>: Help for GPU-accelerated occasion sorts.<\/li>\n<li><strong>Integration<\/strong>: Makes use of the identical AgentCore APIs, id, observability, and coverage controls as AgentCore Runtime.<\/li>\n<li><strong>Pricing<\/strong>: Commonplace EC2 pricing plus a administration price for AgentCore orchestration.<\/li>\n<li><strong>Areas<\/strong>: US East (Ohio, N. Virginia), US West (Oregon), Asia Pacific (Mumbai, Singapore, Sydney, Tokyo), and Europe (Frankfurt, Eire)<\/li>\n<\/ul>\n<p>To get began, go to the runtime occasion in <a href=\"https:\/\/docs.aws.amazon.com\/bedrock-agentcore\/latest\/devguide\/runtime-instances-how-it-works.html\" target=\"_blank\" rel=\"noopener\">Amazon Bedrock AgentCore documentation<\/a><strong>\u00a0<\/strong>and create your first capability supplier.<\/p>\n<p>       <a href=\"https:\/\/linktr.ee\/sebsto\" target=\"_blank\" rel=\"noopener\">\u2014 seb<\/a> <!-- '\"` -->\n      <\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Once you transfer AI brokers from prototype to manufacturing, the infrastructure challenges multiply. Your brokers must persist state throughout multi-step workflows that run for hours or days. They should coordinate with different brokers, share context, and generally entry GPUs for specialised duties. Amazon Bedrock AgentCore runtime microVMs present a totally managed surroundings for invocations that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":31387,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-31385","post","type-post","status-publish","format-standard","has-post-thumbnail","category-cloud-computing"],"_links":{"self":[{"href":"https:\/\/aireviewirush.com\/index.php?rest_route=\/wp\/v2\/posts\/31385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aireviewirush.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aireviewirush.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aireviewirush.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aireviewirush.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=31385"}],"version-history":[{"count":1,"href":"https:\/\/aireviewirush.com\/index.php?rest_route=\/wp\/v2\/posts\/31385\/revisions"}],"predecessor-version":[{"id":31386,"href":"https:\/\/aireviewirush.com\/index.php?rest_route=\/wp\/v2\/posts\/31385\/revisions\/31386"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aireviewirush.com\/index.php?rest_route=\/wp\/v2\/media\/31387"}],"wp:attachment":[{"href":"https:\/\/aireviewirush.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aireviewirush.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aireviewirush.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}