{"record":{"id":"c9a1fd41dc369ac2","repo":"langchain-ai/langgraph","slug":"config-schema-is-deprecated-and-will-be-removed","errorCode":null,"errorMessage":"`config_schema` is deprecated and will be removed. Please use `context_schema` instead.","messagePattern":"`config_schema` is deprecated and will be removed\\. Please use `context_schema` instead\\.","errorType":"console","errorClass":"LangGraphDeprecatedSinceV10","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/func/__init__.py","lineNumber":450,"sourceCode":"        my_workflow.invoke(3, config)  # 0 (previous was None)\n        my_workflow.invoke(1, config)  # 6 (previous was 3 * 2 from the previous invocation)\n        ```\n    \"\"\"\n\n    def __init__(\n        self,\n        checkpointer: BaseCheckpointSaver | None = None,\n        store: BaseStore | None = None,\n        cache: BaseCache | None = None,\n        context_schema: type[ContextT] | None = None,\n        cache_policy: CachePolicy | None = None,\n        retry_policy: RetryPolicy | Sequence[RetryPolicy] | None = None,\n        timeout: float | timedelta | TimeoutPolicy | None = None,\n        **kwargs: Unpack[DeprecatedKwargs],\n    ) -> None:\n        \"\"\"Initialize the entrypoint decorator.\"\"\"\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 (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                stacklevel=2,\n            )\n            if retry_policy is None:\n                retry_policy = cast(\"RetryPolicy | Sequence[RetryPolicy]\", retry)\n\n        self.checkpointer = checkpointer\n        self.store = store","sourceCodeStart":432,"sourceCodeEnd":468,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/func/__init__.py#L432-L468","documentation":"Error \"`config_schema` is deprecated and will be removed. Please use `context_schema` instead.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/func/__init__.py:450 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"}