File tree Expand file tree Collapse file tree 4 files changed +1524
-146
lines changed
Expand file tree Collapse file tree 4 files changed +1524
-146
lines changed Original file line number Diff line number Diff line change 5454* .tfstate. *
5555.terraform /
5656.terraform.lock.hcl
57+ backend.hcl
5758terraform.tfvars
5859
5960# AWS
Original file line number Diff line number Diff line change @@ -65,19 +65,18 @@ Explore the README.md file under the **infra** directory for more details on the
6565
6666### Test locally
6767
68- 1 . ** Initialize the project** :
68+ 1 . ** Initialize the project and dependencies ** :
6969``` bash
7070cd cx-agent-backend
71- pip install uv
72- uv init
71+ uv venv
72+ uv sync --all-extras --frozen
7373```
74- 2 . ** Install dependencies** : ` uv sync --frozen `
75- 3 . ** Run locally** :
74+ 2 . ** Run locally** :
7675``` bash
7776cd src
7877uv run run.py
7978```
80- 4 . ** Test the health endpoint** :
79+ 3 . ** Test the health endpoint** :
8180``` bash
8281curl http://localhost:8080/ping
8382```
@@ -106,6 +105,8 @@ curl -X POST http://localhost:8080/api/v1/feedback \
1061055 . ** Run the Streamlit app** :
107106``` bash
108107cd cx-agent-frontend
108+ uv venv
109+ uv sync --frozen
109110uv run streamlit run src/app.py --server.port 8501 --server.address 127.0.0.1
110111```
1111126 . Access the web interface at ` http://localhost:8501 `
Original file line number Diff line number Diff line change @@ -4,30 +4,31 @@ version = "0.1.0"
44description = " Clean Architecture CX Agent Backend"
55requires-python = " >=3.11"
66dependencies = [
7+ " aws-opentelemetry-distro>=0.1.0" ,
8+ " boto3>=1.34.0" ,
9+ " dependency-injector>=4.41.0" ,
710 " fastapi>=0.104.0" ,
8- " uvicorn[standard]>=0.24.0" ,
9- " pydantic>=2.5.0" ,
10- " pydantic-settings>=2.1.0" ,
1111 " langchain>=0.1.0" ,
12+ " langchain-aws>=0.1.0" ,
1213 " langchain-core>=0.1.0" ,
1314 " langchain-openai>=0.1.0" ,
14- " langchain-aws>=0.1.0" ,
15- " langgraph>=0.1.0" ,
1615 " langfuse>=2.0.0" ,
17- " boto3>=1.34.0" ,
16+ " langgraph>=0.1.0" ,
17+ " pydantic>=2.5.0" ,
18+ " pydantic-settings>=2.1.0" ,
1819 " structlog>=23.2.0" ,
19- " dependency-injector>=4.41.0" ,
2020 " tavily-python>=0.3.0" ,
21- " aws-opentelemetry-distro >=0.1 .0" ,
21+ " uvicorn[standard] >=0.24 .0" ,
2222]
2323
2424[project .optional-dependencies ]
2525dev = [
26+ " httpx>=0.25.0" ,
27+ " ipykernel>=6.30.1" ,
28+ " mypy>=1.7.0" ,
2629 " pytest>=7.4.0" ,
2730 " pytest-asyncio>=0.21.0" ,
28- " httpx>=0.25.0" ,
2931 " ruff>=0.1.0" ,
30- " mypy>=1.7.0" ,
3132]
3233
3334[build-system ]
@@ -43,4 +44,4 @@ line-length = 88
4344
4445[tool .mypy ]
4546python_version = " 3.11"
46- strict = true
47+ strict = true
You can’t perform that action at this time.
0 commit comments