langchain-ai/langgraph · error · LangGraphDeprecatedSinceV10
Importing from langgraph.pregel.types is deprecated. Please
Error message
Importing from langgraph.pregel.types is deprecated. Please use 'from langgraph.types import ...' instead.
What it means
Error "Importing from langgraph.pregel.types is deprecated. Please use 'from langgraph.types import ...' instead." thrown in langchain-ai/langgraph.
Source
Thrown at libs/langgraph/langgraph/pregel/types.py:33
__all__ = [
"All",
"StateUpdate",
"CachePolicy",
"PregelExecutableTask",
"PregelTask",
"RetryPolicy",
"StateSnapshot",
"StreamMode",
"StreamWriter",
"default_retry_on",
]
from warnings import warn
from langgraph.warnings import LangGraphDeprecatedSinceV10
warn(
"Importing from langgraph.pregel.types is deprecated. "
"Please use 'from langgraph.types import ...' instead.",
LangGraphDeprecatedSinceV10,
stacklevel=2,
)
View on GitHub (pinned to 38031739e5)
When it happens
Trigger: Thrown at libs/langgraph/langgraph/pregel/types.py:33 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of langchain-ai/langgraph@38031739e5 (2026-08-26).
Data as JSON: /api/errors/e7b5f7c1a3382e7a.
Report an issue: GitHub.