Incorrect code example in plan and execute example #23

Closed
opened 2026-02-15 17:05:36 -05:00 by yindo · 1 comment
Owner
Originally created by @yeouchien on GitHub (Apr 29, 2024). this 2 lines are wrong: 1. in `executeStep` https://github.com/langchain-ai/langgraphjs/blob/c27db2717e3cd26019491bdd60d4c10fd1138d90/examples/plan-and-execute/plan-and-execute.ipynb#L391 this should be `const task = state.plan[0];` python example ref: https://github.com/langchain-ai/langgraph/blob/0e3c37ba2524bb4c170cec13098161500bdf8eee/examples/plan-and-execute/plan-and-execute.ipynb#L380 2. in workflow addConditionalEdges https://github.com/langchain-ai/langgraphjs/blob/c27db2717e3cd26019491bdd60d4c10fd1138d90/examples/plan-and-execute/plan-and-execute.ipynb#L457 this should be `false: 'agent',` python example ref: https://github.com/langchain-ai/langgraph/blob/0e3c37ba2524bb4c170cec13098161500bdf8eee/examples/plan-and-execute/plan-and-execute.ipynb#L442
yindo closed this issue 2026-02-15 17:05:36 -05:00
Author
Owner

@hinthornw commented on GitHub (May 31, 2024):

Thank you for reporting!

@hinthornw commented on GitHub (May 31, 2024): Thank you for reporting!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#23