Skip to content

Commit 8333a10

Browse files
authored
Update first_graph.mdx
Added a line to start the edge in state graph declaration i.e. email_graph.add_edge(START,"read_email")
1 parent e8d48e1 commit 8333a10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

units/en/unit2/langgraph/first_graph.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ email_graph.add_node("handle_spam", handle_spam)
217217
email_graph.add_node("draft_response", draft_response)
218218
email_graph.add_node("notify_mr_hugg", notify_mr_hugg)
219219

220+
# Start the edges
221+
email_graph.add_edge(START, "read_email")
220222
# Add edges - defining the flow
221223
email_graph.add_edge("read_email", "classify_email")
222224

0 commit comments

Comments
 (0)