From 09c5ebc94de94de7ae4bd9d3e3d6b33dd7dd5762 Mon Sep 17 00:00:00 2001 From: Arthur Berman <106271022+arthberman@users.noreply.github.com> Date: Tue, 16 Jul 2024 17:43:40 +0200 Subject: [PATCH] Update low_level.md (#1016) replace add_edge by add_conditional_edges fix a mistake --- docs/docs/concepts/low_level.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/concepts/low_level.md b/docs/docs/concepts/low_level.md index 7b4f593eb..c4e612bd7 100644 --- a/docs/docs/concepts/low_level.md +++ b/docs/docs/concepts/low_level.md @@ -180,7 +180,7 @@ graph.add_edge("node_a", "node_b") If you want to **optionally** route to 1 or more edges (or optionally terminate), you can use the [add_conditional_edges][langgraph.graph.StateGraph.add_conditional_edges] method. This method accepts the name of a node and a "routing function" to call after that node is executed: ```python -graph.add_edge("node_a", routing_function) +graph.add_conditional_edges("node_a", routing_function) ``` Similar to nodes, the `routing_function` accept the current `state` of the graph and return a value.