Skip to content

Commit 83dc898

Browse files
Add prototype structure for banking demo (#1203)
## Summary - add skeleton `frontend` Next.js app - add `backend` folder with FastAPI and Agents SDK hooks - sample env file and script to run both apps - minimal docs stub ## Testing - `make format` - `make lint` - `make mypy` - `make tests` ------ https://chatgpt.com/codex/tasks/task_i_687ed6408eb4832097d775c4cd4641a2
1 parent 68b0ef1 commit 83dc898

File tree

17 files changed

+105
-0
lines changed

17 files changed

+105
-0
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Environment variables for the demo
2+
OPENAI_API_KEY=

backend/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__pycache__
2+
*.pyc

backend/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Backend
2+
3+
This folder contains the Python backend using FastAPI and the OpenAI Agents SDK.
4+
Run `uvicorn backend.main:app --reload` to start the development server.

backend/__init__.py

Whitespace-only changes.

backend/main.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from fastapi import FastAPI
2+
3+
app = FastAPI()
4+
5+
6+
@app.get("/health")
7+
def health() -> dict[str, str]:
8+
return {"status": "ok"}

backend/pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[project]
2+
name = "banking-backend"
3+
version = "0.1.0"
4+
requires-python = ">=3.11"
5+
dependencies = [
6+
"fastapi",
7+
"uvicorn",
8+
"openai",
9+
]
10+
11+
[tool.ruff]
12+
line-length = 88

backend/tests/test_main.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from fastapi.testclient import TestClient
2+
from backend.main import app
3+
4+
5+
def test_health() -> None:
6+
client = TestClient(app)
7+
response = client.get("/health")
8+
assert response.status_code == 200
9+
assert response.json() == {"status": "ok"}

docs/banking-demo.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Agentic Private Banker Demo
2+
3+
This document provides a high-level overview of the multi-agent banking prototype.

frontend/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.next
3+
out

frontend/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Frontend
2+
3+
This folder contains the NextJS frontend for the Agentic Private Banker demo.
4+
Run `npm install` and `npm run dev` to start the development server.

0 commit comments

Comments
 (0)