{"record":{"id":"d0ef59950d578157","repo":"langchain-ai/langgraph","slug":"retry-is-deprecated-and-will-be-removed-please-d0ef59","errorCode":null,"errorMessage":"`retry` is deprecated and will be removed. Please use `retry_policy` instead.","messagePattern":"`retry` is deprecated and will be removed\\. Please use `retry_policy` instead\\.","errorType":"console","errorClass":"LangGraphDeprecatedSinceV05","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/graph/state.py","lineNumber":762,"sourceCode":"            graph.invoke({\"x\": 1})\n            # {'x': 2}\n            ```\n\n        Example: Customize the name:\n            ```python\n            builder = StateGraph(State)\n            builder.add_node(\"my_fair_node\", my_node)\n            builder.add_edge(START, \"my_fair_node\")\n            graph = builder.compile()\n            graph.invoke({\"x\": 1})\n            # {'x': 2}\n            ```\n\n        Returns:\n            Self: The instance of the `StateGraph`, allowing for method chaining.\n        \"\"\"\n        if (retry := kwargs.get(\"retry\", MISSING)) is not MISSING:\n            warnings.warn(\n                \"`retry` is deprecated and will be removed. Please use `retry_policy` instead.\",\n                category=LangGraphDeprecatedSinceV05,\n            )\n            if retry_policy is None:\n                retry_policy = retry  # type: ignore[assignment]\n\n        if (input_ := kwargs.get(\"input\", MISSING)) is not MISSING:\n            warnings.warn(\n                \"`input` is deprecated and will be removed. Please use `input_schema` instead.\",\n                category=LangGraphDeprecatedSinceV05,\n            )\n            if input_schema is None:\n                input_schema = cast(type[NodeInputT] | None, input_)\n        timeout = coerce_timeout_policy(timeout)\n\n        if not isinstance(node, str):\n            action = node\n            if isinstance(action, Runnable):","sourceCodeStart":744,"sourceCodeEnd":780,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/graph/state.py#L744-L780","documentation":"Error \"`retry` is deprecated and will be removed. Please use `retry_policy` instead.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/graph/state.py:762 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}