These example demonstrate how to integrate a Strands agents with AWS Bedrock AgentCore, enabling you to deploy your agent as a managed service. You can use the `agentcore` CLI to configure and launch these agents.
## Prerequisites
- Python 3.10+
- [uv](https://github.com/astral-sh/uv) - Fast Python package installer and resolver
- AWS account with Bedrock Agentcore access
## Setup Instructions
### 1. Create a Python Environment with uv
```bash
# Install uv if you don't have it already
# Create and activate a virtual environment
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
```
### 2. Install Requirements
```bash
uv pip install -r requirements.txt
```
### 3. Understanding the Agent Code
The `strands_agent_file_system.py` file contains a simple Strands agent with file system capabilities, integrated with Bedrock AgentCore:
```python
import os
os.environ["BYPASS_TOOL_CONSENT"]="true"
from strands import Agent
from strands_tools import file_read, file_write, editor