{"record":{"id":"81bf930e84bc9372","repo":"langchain-ai/langgraph","slug":"importing-name-from-langgraph-constants-is-depre-81bf93","errorCode":null,"errorMessage":"Importing {name} from langgraph.constants is deprecated. This constant is now private and should not be used directly. Please let the LangGraph team know if you need this value.","messagePattern":"Importing (.+?) from langgraph\\.constants is deprecated\\. This constant is now private and should not be used directly\\. Please let the LangGraph team know if you need this value\\.","errorType":"console","errorClass":"LangGraphDeprecatedSinceV10","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/constants.py","lineNumber":53,"sourceCode":"    if name in [\"Send\", \"Interrupt\"]:\n        warn(\n            f\"Importing {name} from langgraph.constants is deprecated. \"\n            f\"Please use 'from langgraph.types import {name}' instead.\",\n            LangGraphDeprecatedSinceV10,\n            stacklevel=2,\n        )\n\n        from importlib import import_module\n\n        module = import_module(\"langgraph.types\")\n        return getattr(module, name)\n\n    try:\n        from importlib import import_module\n\n        private_constants = import_module(\"langgraph._internal._constants\")\n        attr = getattr(private_constants, name)\n        warn(\n            f\"Importing {name} from langgraph.constants is deprecated. \"\n            f\"This constant is now private and should not be used directly. \"\n            \"Please let the LangGraph team know if you need this value.\",\n            LangGraphDeprecatedSinceV10,\n            stacklevel=2,\n        )\n        return attr\n    except AttributeError:\n        pass\n\n    raise AttributeError(f\"module has no attribute '{name}'\")\n","sourceCodeStart":35,"sourceCodeEnd":65,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/constants.py#L35-L65","documentation":"Error \"Importing {name} from langgraph.constants is deprecated. This constant is now private and should not be used directly. Please let the LangGraph team know if you need this value.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/constants.py:53 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Avoid importing private constants from langgraph.constants; they are internal implementation details","Refactor your code to use the public API instead of the private value","If you genuinely need the constant, open an issue with the LangGraph team requesting it be made public"],"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"}