Skip to content

Commit 7723428

Browse files
vbardaVadym Bardajacoblee93
authored
migrate to langgraph (#307)
* migrate to langgraph --------- Co-authored-by: Vadym Barda <[email protected]> Co-authored-by: jacoblee93 <[email protected]>
1 parent 506b6d6 commit 7723428

29 files changed

+7197
-8024
lines changed

.github/workflows/deploy-cloud-run.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches: [master]
66
workflow_dispatch:
77

8+
env:
9+
POETRY_VERSION: "1.7.1"
10+
PYTHON_VERSION: "3.11"
11+
812
jobs:
913
deploy-backend:
1014
runs-on: ubuntu-latest
@@ -17,6 +21,13 @@ jobs:
1721
run: |
1822
echo "GIT_SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
1923
echo "LC_ENVIRONMENT=dev" >> $GITHUB_ENV
24+
25+
- name: Set up Python ${{ env.PYTHON_VERSION }} + Poetry ${{ env.POETRY_VERSION }}
26+
uses: "./.github/actions/poetry_setup"
27+
with:
28+
python-version: ${{ env.PYTHON_VERSION }}
29+
poetry-version: ${{ env.POETRY_VERSION }}
30+
cache-key: lint
2031

2132
- name: Set up depot.dev multi-arch runner
2233
uses: depot/setup-action@v1
@@ -31,10 +42,10 @@ jobs:
3142
uses: docker/setup-buildx-action@v3
3243

3344
- name: Build and push
34-
uses: docker/build-push-action@v5
35-
with:
36-
push: true
37-
tags: docker.io/langchain/chat-langchain-backend:${{ env.GIT_SHORT_SHA }}
45+
run: |
46+
pip install langgraph-cli
47+
langgraph build -t docker.io/langchain/chat-langchain-backend:${{ env.GIT_SHORT_SHA }}
48+
docker push docker.io/langchain/chat-langchain-backend:${{ env.GIT_SHORT_SHA }}
3849
3950
- name: Checkout deployments repo
4051
uses: actions/checkout@v3

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,5 @@ node_modules/
153153
!.yarn/versions
154154

155155
notebooks
156+
157+
.langgraph-data/

Dockerfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: start
22
start:
3-
poetry run uvicorn --app-dir=backend main:app --reload --port 8080
3+
langgraph up --watch
44

55
.PHONY: format
66
format:

0 commit comments

Comments
 (0)