{"record":{"id":"169104bdc35db01e","repo":"langchain-ai/langgraph","slug":"config-type-is-deprecated-and-will-be-removed-p","errorCode":null,"errorMessage":"`config_type` is deprecated and will be removed. Please use `context_schema` instead.","messagePattern":"`config_type` is deprecated and will be removed\\. Please use `context_schema` instead\\.","errorType":"console","errorClass":"LangGraphDeprecatedSinceV10","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/pregel/main.py","lineNumber":789,"sourceCode":"        step_timeout: float | None = None,\n        debug: bool | None = None,\n        checkpointer: Checkpointer = None,\n        store: BaseStore | None = None,\n        cache: BaseCache | None = None,\n        retry_policy: RetryPolicy | Sequence[RetryPolicy] = (),\n        cache_policy: CachePolicy | None = None,\n        context_schema: type[ContextT] | None = None,\n        config: RunnableConfig | None = None,\n        trigger_to_nodes: Mapping[str, Sequence[str]] | None = None,\n        node_error_handler_map: Mapping[str, str] | None = None,\n        name: str = \"LangGraph\",\n        stream_transformers: Sequence[Callable[[tuple[str, ...]], Any]] | None = None,\n        **deprecated_kwargs: Unpack[DeprecatedKwargs],\n    ) -> None:\n        if (\n            config_type := deprecated_kwargs.get(\"config_type\", MISSING)\n        ) is not MISSING:\n            warnings.warn(\n                \"`config_type` is deprecated and will be removed. Please use `context_schema` instead.\",\n                category=LangGraphDeprecatedSinceV10,\n                stacklevel=2,\n            )\n\n            if context_schema is None:\n                context_schema = cast(type[ContextT], config_type)\n\n        checkpointer = ensure_valid_checkpointer(checkpointer)\n\n        self.nodes = {\n            k: v.build() if isinstance(v, NodeBuilder) else v for k, v in nodes.items()\n        }\n        self.channels = channels or {}\n        if TASKS in self.channels and not isinstance(self.channels[TASKS], Topic):\n            raise ValueError(\n                f\"Channel '{TASKS}' is reserved and cannot be used in the graph.\"\n            )","sourceCodeStart":771,"sourceCodeEnd":807,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/pregel/main.py#L771-L807","documentation":"Error \"`config_type` is deprecated and will be removed. Please use `context_schema` instead.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/pregel/main.py:789 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"}