{"record":{"id":"5b8ee8d08046ff32","repo":"langchain-ai/langgraph","slug":"config-schema-is-deprecated-and-will-be-removed-5b8ee8","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/prebuilt/langgraph/prebuilt/chat_agent_executor.py","lineNumber":520,"sourceCode":"\n        def check_weather(location: str) -> str:\n            '''Return the weather forecast for the specified location.'''\n            return f\"It's always sunny in {location}\"\n\n        graph = create_react_agent(\n            \"anthropic:claude-3-7-sonnet-latest\",\n            tools=[check_weather],\n            prompt=\"You are a helpful assistant\",\n        )\n        inputs = {\"messages\": [{\"role\": \"user\", \"content\": \"what is the weather in sf\"}]}\n        for chunk in graph.stream(inputs, stream_mode=\"updates\"):\n            print(chunk)\n        ```\n    \"\"\"\n    if (\n        config_schema := deprecated_kwargs.pop(\"config_schema\", MISSING)\n    ) is not MISSING:\n        warnings.warn(\n            \"`config_schema` is deprecated and will be removed. Please use `context_schema` instead.\",\n            category=LangGraphDeprecatedSinceV10,\n        )\n\n        if context_schema is None:\n            context_schema = config_schema\n\n    if len(deprecated_kwargs) > 0:\n        raise TypeError(\n            f\"create_react_agent() got unexpected keyword arguments: {deprecated_kwargs}\"\n        )\n\n    if version not in (\"v1\", \"v2\"):\n        raise ValueError(\n            f\"Invalid version {version}. Supported versions are 'v1' and 'v2'.\"\n        )\n\n    if state_schema is not None:","sourceCodeStart":502,"sourceCodeEnd":538,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py#L502-L538","documentation":"Error \"`config_schema` is deprecated and will be removed. Please use `context_schema` instead.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py:520 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"}