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
Module import-time deprecation warning: importing anything from langgraph.pregel.types is deprecated because its public names (StateSnapshot, StreamMode, RetryPolicy, etc.) moved to langgraph.types. The module re-exports them for now, so imports keep working.
Solutions
- Update imports to 'from langgraph.types import ...'
- Run a project-wide search for 'langgraph.pregel.types' and replace each occurrence
Defensive patterns
Strategy: fallback
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.
Appendix: 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)