Spaces:
Sleeping
Sleeping
Update code_assistant_runnable.py
Browse files- code_assistant_runnable.py +15 -13
code_assistant_runnable.py
CHANGED
@@ -612,22 +612,24 @@ def get_runnable():
|
|
612 |
|
613 |
# Define the nodes
|
614 |
workflow.add_node("generate", generate) # generation solution
|
615 |
-
workflow.add_node("check_code", code_check) # check code
|
616 |
-
workflow.add_node("reflect", reflect) # reflect
|
617 |
|
618 |
# Build graph
|
619 |
workflow.add_edge(START, "generate")
|
620 |
-
workflow.add_edge("generate",
|
621 |
-
workflow.
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
|
|
|
|
631 |
|
632 |
# Remove the checkpointer for now since it's causing issues
|
633 |
code_assistant_app = workflow.compile()
|
|
|
612 |
|
613 |
# Define the nodes
|
614 |
workflow.add_node("generate", generate) # generation solution
|
615 |
+
# workflow.add_node("check_code", code_check) # check code
|
616 |
+
# workflow.add_node("reflect", reflect) # reflect
|
617 |
|
618 |
# Build graph
|
619 |
workflow.add_edge(START, "generate")
|
620 |
+
workflow.add_edge("generate", END)
|
621 |
+
# workflow.add_edge("generate", "check_code")
|
622 |
+
# workflow.add_conditional_edges(
|
623 |
+
# "check_code",
|
624 |
+
# decide_to_finish,
|
625 |
+
# {
|
626 |
+
# "end": END,
|
627 |
+
# "reflect": "reflect",
|
628 |
+
# "generate": "generate",
|
629 |
+
# },
|
630 |
+
# )
|
631 |
+
# workflow.add_edge("reflect", "generate")
|
632 |
+
|
633 |
|
634 |
# Remove the checkpointer for now since it's causing issues
|
635 |
code_assistant_app = workflow.compile()
|