{"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":"Deprecation warning from the functional-API entrypoint/workflow constructor: config_schema was renamed to context_schema to reflect that the schema types the runtime context object. The old kwarg still works via the deprecated-kwargs shim and is mapped onto context_schema.","triggerScenarios":"Thrown at libs/langgraph/langgraph/func/__init__.py:450 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rename config_schema=... to context_schema=... in entrypoint()/workflow constructors","Use context_schema to declare a TypedDict/Pydantic model for the context passed via config[\"configurable\"]"],"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"}