Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ cython_debug/

# Abstra
# Abstra is an AI-powered process automation framework.
# Ignore directories containing user credentials, local state, and settings.
# Ignore directories containing credentials, local state, and settings.
# Learn more at https://abstra.io/docs
.abstra/

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ _If you're looking at this in Cursor, please right click on the filename in the

- Please submit your community_contributions, including links to your repos, in the production repo community_contributions folder
- Regularly do a git pull to get the latest code
- Reach out in Udemy or email (ed@edwarddonner.com) if I can help! This is a gigantic project and I am here to help you deliver it!
- Reach out in Udemy or email (ed@edwarddonner.com) if I can help! This is a gigantic project and I am here to help you deliver it!
41 changes: 41 additions & 0 deletions backend/agent_charter/.bedrock_agentcore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
default_agent: charter
agents:
charter:
name: charter
entrypoint: /Users/fotis/Documents/CV/Learning/AI in production/alex/backend/agent_charter/agent.py
platform: linux/arm64
container_runtime: docker
source_path: null
aws:
execution_role: arn:aws:iam::717174128108:role/agentcore-charter-role
execution_role_auto_create: false
account: '717174128108'
region: us-east-1
ecr_repository: 717174128108.dkr.ecr.us-east-1.amazonaws.com/bedrock-agentcore-charter
ecr_auto_create: false
network_configuration:
network_mode: PUBLIC
network_mode_config: null
protocol_configuration:
server_protocol: HTTP
observability:
enabled: true
bedrock_agentcore:
agent_id: charter-mxi7b3F18T
agent_arn: arn:aws:bedrock-agentcore:us-east-1:717174128108:runtime/charter-mxi7b3F18T
agent_session_id: null
codebuild:
project_name: bedrock-agentcore-charter-builder
execution_role: arn:aws:iam::717174128108:role/AmazonBedrockAgentCoreSDKCodeBuild-us-east-1-8399e57405
source_bucket: bedrock-agentcore-codebuild-sources-717174128108-us-east-1
memory:
mode: STM_ONLY
memory_id: charter_mem-LPolp73HEF
memory_arn: arn:aws:bedrock-agentcore:us-east-1:717174128108:memory/charter_mem-LPolp73HEF
memory_name: charter_mem
event_expiry_days: 30
first_invoke_memory_check_done: false
was_created_by_toolkit: false
authorizer_configuration: null
request_header_configuration: null
oauth_configuration: null
69 changes: 69 additions & 0 deletions backend/agent_charter/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Build artifacts
build/
dist/
*.egg-info/
*.egg

# Python cache
__pycache__/
__pycache__*
*.py[cod]
*$py.class
*.so
.Python

# Virtual environments
.venv/
.env
venv/
env/
ENV/

# Testing
.pytest_cache/
.coverage
.coverage*
htmlcov/
.tox/
*.cover
.hypothesis/
.mypy_cache/
.ruff_cache/

# Development
*.log
*.bak
*.swp
*.swo
*~
.DS_Store

# IDEs
.vscode/
.idea/

# Version control
.git/
.gitignore
.gitattributes

# Documentation
docs/
*.md
!README.md

# CI/CD
.github/
.gitlab-ci.yml
.travis.yml

# Project specific
tests/

# Bedrock AgentCore specific - keep config but exclude runtime files
.bedrock_agentcore.yaml
.dockerignore
.bedrock_agentcore/

# Keep wheelhouse for offline installations
# wheelhouse/
1 change: 1 addition & 0 deletions backend/agent_charter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/
43 changes: 43 additions & 0 deletions backend/agent_charter/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
WORKDIR /app

# All environment variables in one layer
ENV UV_SYSTEM_PYTHON=1 \
UV_COMPILE_BYTECODE=1 \
UV_NO_PROGRESS=1 \
PYTHONUNBUFFERED=1 \
DOCKER_CONTAINER=1 \
AWS_REGION=us-east-1 \
AWS_DEFAULT_REGION=us-east-1 \
BEDROCK_AGENTCORE_MEMORY_ID=charter_mem-LPolp73HEF \
BEDROCK_AGENTCORE_MEMORY_NAME=charter_mem



COPY requirements.txt requirements.txt
# Install from requirements file
RUN uv pip install -r requirements.txt




RUN uv pip install aws-opentelemetry-distro>=0.10.1


# Signal that this is running in Docker for host binding logic
ENV DOCKER_CONTAINER=1

# Create non-root user
RUN useradd -m -u 1000 bedrock_agentcore
USER bedrock_agentcore

EXPOSE 9000
EXPOSE 8000
EXPOSE 8080

# Copy entire project (respecting .dockerignore)
COPY . .

# Use the full module path

CMD ["opentelemetry-instrument", "python", "-m", "agent"]
Loading