From 8489ae43b5e26303317af5917aafe93a089d0261 Mon Sep 17 00:00:00 2001 From: Laurentius von Liechti <432717+kurisu@users.noreply.github.com> Date: Tue, 21 May 2024 15:16:01 -0700 Subject: [PATCH 1/2] bug: fixed argument names after breaking change made in langgraph --- backend/langgraph_agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/langgraph_agent.py b/backend/langgraph_agent.py index 9a68fbe..3dbe481 100644 --- a/backend/langgraph_agent.py +++ b/backend/langgraph_agent.py @@ -36,9 +36,9 @@ def run(self, queries: list, layout: str): workflow.add_edge('search', 'curate') workflow.add_edge('curate', 'write') workflow.add_edge('write', 'critique') - workflow.add_conditional_edges(start_key='critique', - condition=lambda x: "accept" if x['critique'] is None else "revise", - conditional_edge_mapping={"accept": "design", "revise": "write"}) + workflow.add_conditional_edges(source='critique', + path=lambda x: "accept" if x['critique'] is None else "revise", + path_map={"accept": "design", "revise": "write"}) # set up start and end nodes workflow.set_entry_point("search") From a0c8734f27bc85b36ae884bbc12d52038736fc05 Mon Sep 17 00:00:00 2001 From: Laurentius von Liechti <432717+kurisu@users.noreply.github.com> Date: Tue, 21 May 2024 15:18:48 -0700 Subject: [PATCH 2/2] chore: Added __pycache__ to .gitignore to reduce clutter while trying out the project --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 44de710..9466d73 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ .env -outputs/ \ No newline at end of file +outputs/ + +__pycache__/