A FastAPI boilerplate integrating OpenAI Agents SDK with Braintrust observability.
- uv package manager
- API keys from:
- OpenAI
- Tavily
- Braintrust
- Copy environment template:
cp .env.example .env
-
Edit
.env
and add your API keys -
Install dependencies:
uv sync
- Run development server:
uv run uvicorn main:app --reload
Run with multiple workers using Gunicorn:
uv run gunicorn main:app \
--workers 3 \
--worker-class uvicorn.workers.UvicornWorker \
--bind 0.0.0.0:7860 \
--timeout 600