Skip to content
Discussion options

You must be logged in to vote

If this is what you are looking for

Add the path in workflow.add_conditional_edges()

workflow.add_edge(START, "check_relevancy")
workflow.add_edge("check_relevancy", "check_relevancy_check")
workflow.add_conditional_edges(
    "check_relevancy_check",
    is_relevant_check_valid,
    {
        "retrieve_context":"retrieve_context",
        "check_relevancy": "check_relevancy",
        END:END
    }
)
workflow.add_edge("retrieve_context", "check_context")
workflow.add_edge("check_context", "check_context_check")
workflow.add_conditional_edges(
    "check_context_check",
    is_context_check_valid,
    {
        "answer_query":"answer_query",
        "check_context":"check_context",
        

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by junnengsoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants