{"record":{"id":"127edf4d626165ad","repo":"langchain-ai/langgraph","slug":"get-config-jsonschema-is-deprecated-use-get-co","errorCode":null,"errorMessage":"`get_config_jsonschema` is deprecated. Use `get_context_jsonschema` instead.","messagePattern":"`get_config_jsonschema` is deprecated\\. Use `get_context_jsonschema` instead\\.","errorType":"console","errorClass":"LangGraphDeprecatedSinceV10","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/pregel/main.py","lineNumber":983,"sourceCode":"                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        }\n        return create_model(self.get_name(\"Config\"), field_definitions=fields)\n\n    @deprecated(\n        \"`get_config_jsonschema` is deprecated. Use `get_context_jsonschema` instead.\",\n        category=None,\n    )\n    def get_config_jsonschema(\n        self, *, include: Sequence[str] | None = None\n    ) -> dict[str, Any]:\n        warnings.warn(\n            \"`get_config_jsonschema` is deprecated. Use `get_context_jsonschema` instead.\",\n            category=LangGraphDeprecatedSinceV10,\n            stacklevel=2,\n        )\n\n        with warnings.catch_warnings():\n            warnings.filterwarnings(\"ignore\", category=LangGraphDeprecatedSinceV10)\n            schema = self.config_schema(include=include)\n        return schema.model_json_schema()\n\n    def get_context_jsonschema(self) -> dict[str, Any] | None:\n        if (context_schema := self.context_schema) is None:\n            return None\n\n        if isclass(context_schema) and issubclass(context_schema, BaseModel):\n            return context_schema.model_json_schema()\n        elif is_typeddict(context_schema) or is_dataclass(context_schema):\n            return TypeAdapter(context_schema).json_schema()","sourceCodeStart":965,"sourceCodeEnd":1001,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/pregel/main.py#L965-L1001","documentation":"Error \"`get_config_jsonschema` is deprecated. Use `get_context_jsonschema` instead.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/pregel/main.py:983 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"}