{"record":{"id":"e7b5f7c1a3382e7a","repo":"langchain-ai/langgraph","slug":"importing-from-langgraph-pregel-types-is-deprecate","errorCode":null,"errorMessage":"Importing from langgraph.pregel.types is deprecated. Please use 'from langgraph.types import ...' instead.","messagePattern":"Importing from langgraph\\.pregel\\.types is deprecated\\. Please use 'from langgraph\\.types import \\.\\.\\.' instead\\.","errorType":"console","errorClass":"LangGraphDeprecatedSinceV10","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/pregel/types.py","lineNumber":33,"sourceCode":"\n__all__ = [\n    \"All\",\n    \"StateUpdate\",\n    \"CachePolicy\",\n    \"PregelExecutableTask\",\n    \"PregelTask\",\n    \"RetryPolicy\",\n    \"StateSnapshot\",\n    \"StreamMode\",\n    \"StreamWriter\",\n    \"default_retry_on\",\n]\n\nfrom warnings import warn\n\nfrom langgraph.warnings import LangGraphDeprecatedSinceV10\n\nwarn(\n    \"Importing from langgraph.pregel.types is deprecated. \"\n    \"Please use 'from langgraph.types import ...' instead.\",\n    LangGraphDeprecatedSinceV10,\n    stacklevel=2,\n)\n","sourceCodeStart":15,"sourceCodeEnd":39,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/pregel/types.py#L15-L39","documentation":"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.","triggerScenarios":"Thrown at libs/langgraph/langgraph/pregel/types.py:33 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Update imports to 'from langgraph.types import ...'","Run a project-wide search for 'langgraph.pregel.types' and replace each occurrence"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","contentChangedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}