langchain-ai/langgraph · error · LangGraphDeprecatedSinceV05
`input` is deprecated and will be removed. Please use…
Error message
`input` is deprecated and will be removed. Please use `input_schema` instead.
What it means
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.
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
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at libs/langgraph/langgraph/graph/state.py:235 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of langchain-ai/langgraph@38031739e5 (2026-08-26).
Data as JSON: /api/errors/1ddf914d39bbdb41.
Report an issue: GitHub.
Appendix: source
Thrown at libs/langgraph/langgraph/graph/state.py:235
self,
state_schema: type[StateT],
context_schema: type[ContextT] | None = None,
*,
input_schema: type[InputT] | None = None,
output_schema: type[OutputT] | None = None,
**kwargs: Unpack[DeprecatedKwargs],
) -> None:
if (config_schema := kwargs.get("config_schema", MISSING)) is not MISSING:
warnings.warn(
"`config_schema` is deprecated and will be removed. Please use `context_schema` instead.",
category=LangGraphDeprecatedSinceV10,
stacklevel=2,
)
if context_schema is None:
context_schema = cast(type[ContextT], config_schema)
if (input_ := kwargs.get("input", MISSING)) is not MISSING:
warnings.warn(
"`input` is deprecated and will be removed. Please use `input_schema` instead.",
category=LangGraphDeprecatedSinceV05,
stacklevel=2,
)
if input_schema is None:
input_schema = cast(type[InputT], input_)
if (output := kwargs.get("output", MISSING)) is not MISSING:
warnings.warn(
"`output` is deprecated and will be removed. Please use `output_schema` instead.",
category=LangGraphDeprecatedSinceV05,
stacklevel=2,
)
if output_schema is None:
output_schema = cast(type[OutputT], output)
self.nodes = {}
self.edges = set()View on GitHub (pinned to 38031739e5)