{"record":{"id":"1ddf914d39bbdb41","repo":"langchain-ai/langgraph","slug":"input-is-deprecated-and-will-be-removed-please","errorCode":null,"errorMessage":"`input` is deprecated and will be removed. Please use `input_schema` instead.","messagePattern":"`input` is deprecated and will be removed\\. Please use `input_schema` instead\\.","errorType":"console","errorClass":"LangGraphDeprecatedSinceV05","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/graph/state.py","lineNumber":235,"sourceCode":"        self,\n        state_schema: type[StateT],\n        context_schema: type[ContextT] | None = None,\n        *,\n        input_schema: type[InputT] | None = None,\n        output_schema: type[OutputT] | None = None,\n        **kwargs: Unpack[DeprecatedKwargs],\n    ) -> None:\n        if (config_schema := kwargs.get(\"config_schema\", MISSING)) is not MISSING:\n            warnings.warn(\n                \"`config_schema` is deprecated and will be removed. Please use `context_schema` instead.\",\n                category=LangGraphDeprecatedSinceV10,\n                stacklevel=2,\n            )\n            if context_schema is None:\n                context_schema = cast(type[ContextT], config_schema)\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                stacklevel=2,\n            )\n            if input_schema is None:\n                input_schema = cast(type[InputT], input_)\n\n        if (output := kwargs.get(\"output\", MISSING)) is not MISSING:\n            warnings.warn(\n                \"`output` is deprecated and will be removed. Please use `output_schema` instead.\",\n                category=LangGraphDeprecatedSinceV05,\n                stacklevel=2,\n            )\n            if output_schema is None:\n                output_schema = cast(type[OutputT], output)\n\n        self.nodes = {}\n        self.edges = set()","sourceCodeStart":217,"sourceCodeEnd":253,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/graph/state.py#L217-L253","documentation":"Deprecation warning in StateGraph.__init__ for the input kwarg: it was renamed input_schema (since v0.5 semantics). The shim still applies the value to input_schema, so behavior is unchanged until the kwarg is removed.","triggerScenarios":"Thrown at libs/langgraph/langgraph/graph/state.py:235 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Replace input=MyInput with input_schema=MyInput in StateGraph(...)","Declare a distinct input schema when the public input should be narrower than the full state"],"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"}