[PR #6068] docs(docs): fix incorrect return type in should_continue example #4809

Closed
opened 2026-02-20 17:50:47 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/6068

State: closed
Merged: Yes


Description:
The documentation for the should_continue function contained an incorrect return type annotation.
It was shown as Literal["environment", END], but the actual logic returns "Action" or END.

This PR updates the example to use Literal["Action", END] so that the documentation matches the intended behavior of the function.

Issue:
N/A

Dependencies:
None

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/6068 **State:** closed **Merged:** Yes --- Description: The documentation for the should_continue function contained an incorrect return type annotation. It was shown as Literal["environment", END], but the actual logic returns "Action" or END. This PR updates the example to use Literal["Action", END] so that the documentation matches the intended behavior of the function. Issue: N/A Dependencies: None
yindo added the pull-request label 2026-02-20 17:50:47 -05:00
yindo closed this issue 2026-02-20 17:50:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#4809