{"record":{"id":"3c29a4f9d2090d0e","repo":"langchain-ai/langgraph","slug":"config-schema-is-deprecated-use-get-context-js","errorCode":null,"errorMessage":"`config_schema` is deprecated. Use `get_context_jsonschema` for the relevant schema instead.","messagePattern":"`config_schema` is deprecated\\. Use `get_context_jsonschema` for the relevant schema instead\\.","errorType":"console","errorClass":"LangGraphDeprecatedSinceV10","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/pregel/main.py","lineNumber":955,"sourceCode":"        validate_graph(\n            self.nodes,\n            {k: v for k, v in self.channels.items() if isinstance(v, BaseChannel)},\n            {k: v for k, v in self.channels.items() if not isinstance(v, BaseChannel)},\n            self.input_channels,\n            self.output_channels,\n            self.stream_channels,\n            self.interrupt_after_nodes,\n            self.interrupt_before_nodes,\n        )\n        self.trigger_to_nodes = _trigger_to_nodes(self.nodes)\n        return self\n\n    @deprecated(\n        \"`config_schema` is deprecated. Use `get_context_jsonschema` for the relevant schema instead.\",\n        category=None,\n    )\n    def config_schema(self, *, include: Sequence[str] | None = None) -> type[BaseModel]:\n        warnings.warn(\n            \"`config_schema` is deprecated. Use `get_context_jsonschema` for the relevant schema instead.\",\n            category=LangGraphDeprecatedSinceV10,\n            stacklevel=2,\n        )\n\n        include = include or []\n        fields = {\n            **(\n                {\"configurable\": (self.context_schema, None)}\n                if self.context_schema\n                else {}\n            ),\n            **{\n                field_name: (field_type, None)\n                for field_name, field_type in get_type_hints(RunnableConfig).items()\n                if field_name in [i for i in include if i != \"configurable\"]\n            },\n        }","sourceCodeStart":937,"sourceCodeEnd":973,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/pregel/main.py#L937-L973","documentation":"Error \"`config_schema` is deprecated. Use `get_context_jsonschema` for the relevant schema instead.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/pregel/main.py:955 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"}