Skip to content

Amazon Bedrock Agentcore accelerates AI agents into production with the scale, reliability, and security, critical to real-world deployment.

License

Notifications You must be signed in to change notification settings

wangkexue-a/amazon-bedrock-agentcore-samples

 
 

Repository files navigation

Amazon Bedrock AgentCore Samples

Welcome to the Amazon Bedrock AgentCore Samples repository!

Caution

The examples provided in this repository are for experimental and educational purposes only. They demonstrate concepts and techniques but are not intended for direct use in production environments. Make sure to have Amazon Bedrock Guardrails in place to protect against prompt injection.

Amazon Bedrock AgentCore is a complete set of capabilities to deploy and operate agents securely, at scale using any agentic framework and any LLM model. With it, developers can accelerate AI agents into production quickly, accelerating the business value timelines.

Amazon Bedrock AgentCore provides tools and capabilities to make agents more effective and capable, purpose-built infrastructure to securely scale agents, and controls to operate trustworthy agents.

Amazon Bedrock AgentCore capabilities are composable and work with popular open-source frameworks and any model, so you don’t have to choose between open-source flexibility and enterprise-grade security and reliability.

This collection provides examples and tutorials to help you understand, implement, and integrate Amazon Bedrock AgentCore capabilities into your applications.

📁 Repository Structure

Interactive Learning & Foundation

This folder contains notebook-based tutorials that teach you the fundamentals of Amazon Bedrock AgentCore capabilities through hands-on examples.

The structure is divided by AgentCore component:

  • Runtime: Amazon Bedrock AgentCore Runtime is a secure, serverless runtime capability that empowers organizations to deploy and scale both AI agents and tools, regardless of framework, protocol, or model choice—enabling rapid prototyping, seamless scaling, and accelerated time to market
  • Gateway: AI agents need tools to perform real-world tasks—from searching databases to sending messages. Amazon Bedrock AgentCore Gateway automatically converts APIs, Lambda functions, and existing services into MCP-compatible tools so developers can quickly make these essential capabilities available to agents without managing integrations.
  • Memory: Amazon Bedrock AgentCore Memory makes it easy for developer to build rich, personalized agent experiences with fully-manged memory infrastructure and the ability to customize memory for your needs.
  • Identity: Amazon Bedrock AgentCore Identity provides seamless agent identity and access management across AWS services and third-party applications such as Slack and Zoom while supporting any standard identity providers such as Okta, Entra, and Amazon Cognito.
  • Tools: Amazon Bedrock AgentCore provides two built-in tools to simplify your agentic AI application development: Amazon Bedrock AgentCore Code Interpreter tool enables AI agents to write and execute code securely, enhancing their accuracy and expanding their ability to solve complex end-to-end tasks. Amazon Bedrock AgentCore Browser Tool is an enterprise-grade capability that enables AI agents to navigate websites, complete multi-step forms, and perform complex web-based tasks with human-like precision within a fully managed, secure sandbox environment with low latency
  • Observability: Amazon Bedrock AgentCore Observability helps developers trace, debug, and monitor agent performance through unified operational dashboards. With support for OpenTelemetry compatible telemetry and detailed visualizations of each step of the agent workflow, Amazon Bedrock AgentCore Observability enables developers to easily gain visibility into agent behavior and maintain quality standards at scale.

The end-to-end example folder provide a simple example of how to combine the different capabilities on a use case.

The examples provided as perfect for beginners and those looking to understand the underlying concepts before building AI Agents applications.

End-to-end Applications

Explore practical use case implementations that demonstrate how to apply Amazon Bedrock AgentCore capabilities to solve real business problems.

Each use case includes complete implementation focused on the AgentCore components with detailed explanations.

Framework & Protocol Integration

Learn how to integrate Amazon Bedrock AgentCore capabilities with popular Agentic frameworks such as Strands Agents, LangChain and CrewAI.

Set agent-to-agent communication with A2A and different multi-agent collaboration patterns. Integrate agentic interfaces and learn how to use Amazon Bedrock AgentCore with different entry points.

🚀 Quick Start

Clone the repository

git clone https://github.com/awslabs/amazon-bedrock-agentcore-samples.git

You will need to install the pre-requisites for deploying your agent into AgentCore Runtime. Follow the instructions below to get your environment up and running:

  1. Install Docker or Finch. You can get started here
  2. Make sure that you Docker or Finch is running
  3. For better package control it is strongly recommended that you create a virtual environment to run your applications. uv tool is a high-speed package and project manager for Python. We recommend using uv to manager your environment here. You can install uv with the instructions from here
  4. Once you have uv installed, create and activate a new environment using the following commands:
uv python install 3.10
uv venv --python 3.10
source .venv/bin/activate
uv init

Next add the required packages to your uv environment:

uv add -r requirements.txt --active

You can start a Jupyter notebook instance from your uv environment using:

uv run --with jupyter jupyter lab

📋 Prerequisites

  • Python 3.10 or higher
  • AWS account
  • Docker or Finch installed and running
  • Jupyter Notebook (for tutorials)

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details on:

  • Adding new samples
  • Improving existing examples
  • Reporting issues
  • Suggesting enhancements

📄 License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

🆘 Support

  • Issues: Report bugs or request features via GitHub Issues
  • Documentation: Check individual folder READMEs for specific guidance

🔄 Updates

This repository is actively maintained and updated with new capabilities and examples. Watch the repository to stay updated with the latest additions.

About

Amazon Bedrock Agentcore accelerates AI agents into production with the scale, reliability, and security, critical to real-world deployment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 82.6%
  • Python 13.7%
  • Shell 1.5%
  • JavaScript 1.4%
  • HTML 0.5%
  • TypeScript 0.2%
  • Other 0.1%