fix(docs): Change of condition arguments in Command API example for ease of reading. (#5571)

This commit is contained in:
Yagnesh M. Bhadiyadra
2025-07-20 20:58:37 +00:00
committed by GitHub
parent c61ac946af
commit 2c85cba9ca
+2 -2
View File
@@ -1566,9 +1566,9 @@ class State(TypedDict):
def node_a(state: State) -> Command[Literal["node_b", "node_c"]]:
print("Called A")
value = random.choice(["a", "b"])
value = random.choice(["b", "c"])
# this is a replacement for a conditional edge function
if value == "a":
if value == "b":
goto = "node_b"
else:
goto = "node_c"