{"record":{"id":"981835bc4fbc812b","repo":"langchain-ai/langgraph","slug":"importing-name-from-langgraph-constants-is-depre","errorCode":null,"errorMessage":"Importing {name} from langgraph.constants is deprecated. Please use 'from langgraph.types import {name}' instead.","messagePattern":"Importing (.+?) from langgraph\\.constants is deprecated\\. Please use 'from langgraph\\.types import (.+?)' instead\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/constants.py","lineNumber":36,"sourceCode":"    \"CONF\",\n    \"TASKS\",\n    \"CONFIG_KEY_CHECKPOINTER\",\n)\n\n# --- Public constants ---\nTAG_NOSTREAM = sys.intern(\"nostream\")\n\"\"\"Tag to disable streaming for a chat model.\"\"\"\nTAG_HIDDEN = sys.intern(\"langsmith:hidden\")\n\"\"\"Tag to hide a node/edge from certain tracing/streaming environments.\"\"\"\nEND = sys.intern(\"__end__\")\n\"\"\"The last (maybe virtual) node in graph-style Pregel.\"\"\"\nSTART = sys.intern(\"__start__\")\n\"\"\"The first (maybe virtual) node in graph-style Pregel.\"\"\"\n\n\ndef __getattr__(name: str) -> Any:\n    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. \"","sourceCodeStart":18,"sourceCodeEnd":54,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/constants.py#L18-L54","documentation":"Module-level deprecation shim in langgraph.constants: __getattr__ intercepts imports of Send and Interrupt, which moved to langgraph.types. The warning is emitted but the object is still transparently returned from its new home, so the import keeps working.","triggerScenarios":"Thrown at libs/langgraph/langgraph/constants.py:36 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Change the import to 'from langgraph.types import Send, Interrupt'","Search the codebase for 'from langgraph.constants import' and update 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"}