This repo contains the code for running an agent-app and supports 2 environments:
- dev: A development environment running locally on docker
- prd: A production environment running on AWS ECS
- Install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh
from the
api-ws-templatedir:
- Install workspace and activate the virtual env:
./scripts/install.sh
source .venv/bin/activate- Copy
workspace/example_secretstoworkspace/secrets:
cp -r workspace/example_secrets workspace/secrets- Optional: Create
.envfile:
cp example.env .env-
Install docker desktop
-
Set OpenAI Key
Set the OPENAI_API_KEY environment variable using
export OPENAI_API_KEY=sk-***OR set in the .env file
- Start the workspace using:
ag ws up devOpen localhost:8000/docs to view the FastAPI docs. Open localhost:8501 to view the Streamlit App.
- Stop the workspace using:
ag ws down dev- Run the App Workspace Template on AWS - Docs coming soon