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