From 52e51e0197b68d7444c501c91165078bf0cc365a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=2E/c=C2=B2?= Date: Mon, 20 Oct 2025 03:36:09 -0400 Subject: [PATCH] Revise agent deployment instructions in README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the README to reflect changes in agent deployment and usage. Currently the snippet in README is not working. With this changes, snippet is ready to copy-paste. Signed-off-by: ./c² --- README.md | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index f529a19..c068222 100644 --- a/README.md +++ b/README.md @@ -39,27 +39,25 @@ Amazon Bedrock AgentCore enables you to deploy and operate highly effective agen ## šŸš€ From Local Development to Bedrock AgentCore ```python -# Your existing agent (any framework) -from strands import Agent -# or LangGraph, CrewAI, Autogen, custom logic - doesn't matter - -def my_local_agent(query): - # Your carefully crafted agent logic - return agent.process(query) - -# Deploy to Bedrock AgentCore from bedrock_agentcore import BedrockAgentCoreApp app = BedrockAgentCoreApp() +from strands import Agent # or bring your agent. + @app.entrypoint -def production_agent(request): - return my_local_agent(request.get("prompt")) # Same logic, enterprise platform +async def handler(request): + prompt = request.get("prompt") + + agent = Agent() + + async for event in agent.stream_async(prompt): + yield (event) -app.run() # Ready to run on Bedrock AgentCore +app.run() ``` **What you get with Bedrock AgentCore:** -- āœ… **Keep your agent logic** - Works with Strands, LangGraph, CrewAI, Autogen, custom frameworks +- āœ… **Keep your agent logic** - Works with Strands, LangGraph, CrewAI, Autogen, or custom frameworks - āœ… **Zero infrastructure management** - No servers, containers, or scaling concerns - āœ… **Enterprise-grade platform** - Built-in auth, memory, observability, security - āœ… **Production-ready deployment** - Reliable, scalable, compliant hosting