[GH-ISSUE #1948] [langgraph]: Literal[ ... ] is not accepting END and Raising Error while plotting a graph #246

Open
opened 2026-02-17 17:19:29 -05:00 by yindo · 0 comments
Owner

Originally created by @SijanMahmudAI on GitHub (Dec 17, 2025).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/1948

Type of issue

issue / bug

Language

Python

Description

Image Image Image

If I return "END" from any route during conditional edge, Literal[] is not accepting END as argument and after that if i try to draw the graph then graph is also giving some error . Note that , the during the invokation graph is working fine.

Originally created by @SijanMahmudAI on GitHub (Dec 17, 2025). Original GitHub issue: https://github.com/langchain-ai/docs/issues/1948 ### Type of issue issue / bug ### Language Python ### Description <img width="1440" height="900" alt="Image" src="https://github.com/user-attachments/assets/ad353fad-1db9-482a-b4eb-2d35556a7d0d" /> <img width="1440" height="900" alt="Image" src="https://github.com/user-attachments/assets/80342b96-c54b-4ba5-b056-6e7d69b5a409" /> <img width="1440" height="900" alt="Image" src="https://github.com/user-attachments/assets/7dc323b1-84e4-4926-bf07-2f97a03bbe0d" /> If I return "END" from any route during conditional edge, Literal[] is not accepting END as argument and after that if i try to draw the graph then graph is also giving some error . Note that , the during the invokation graph is working fine.
yindo added the langgraphexternal labels 2026-02-17 17:19:29 -05:00
yindo changed title from [langgraph]: Literal[ ... ] is not accepting END and Raising Error while plotting a graph to [GH-ISSUE #1948] [langgraph]: Literal[ ... ] is not accepting END and Raising Error while plotting a graph 2026-06-05 17:25:51 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#246