{"record":{"id":"e81ce1d8646dde83","repo":"langchain-ai/langgraph","slug":"accessing-graphoutput-via-key-in-result-is-depre","errorCode":null,"errorMessage":"Accessing GraphOutput via `key in result` is deprecated. Use `result.value` to access the output value directly, or `result.interrupts` for interrupts.","messagePattern":"Accessing GraphOutput via `key in result` is deprecated\\. Use `result\\.value` to access the output value directly, or `result\\.interrupts` for interrupts\\.","errorType":"console","errorClass":"LangGraphDeprecatedSinceV11","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/types.py","lineNumber":401,"sourceCode":"        \"\"\"Backward compat: `result['__interrupt__']` and dict-key access.\"\"\"\n        warn(\n            \"Accessing GraphOutput via `result[key]` is deprecated. \"\n            \"Use `result.value` to access the output value directly, \"\n            \"or `result.interrupts` for interrupts.\",\n            LangGraphDeprecatedSinceV11,\n            stacklevel=2,\n        )\n        if key == _INTERRUPT_KEY:\n            return self.interrupts\n        if isinstance(self.value, dict):\n            return self.value[key]\n        try:\n            return getattr(self.value, key)\n        except AttributeError:\n            raise KeyError(key)\n\n    def __contains__(self, key: object) -> bool:\n        warn(\n            \"Accessing GraphOutput via `key in result` is deprecated. \"\n            \"Use `result.value` to access the output value directly, \"\n            \"or `result.interrupts` for interrupts.\",\n            LangGraphDeprecatedSinceV11,\n            stacklevel=2,\n        )\n        if key == _INTERRUPT_KEY:\n            return bool(self.interrupts)\n        if isinstance(self.value, dict):\n            return key in self.value\n        return isinstance(key, str) and hasattr(self.value, key)\n\n\n_DC_KWARGS = {\"kw_only\": True, \"slots\": True, \"frozen\": True}\n\n\nclass RetryPolicy(NamedTuple):\n    \"\"\"Configuration for retrying nodes.","sourceCodeStart":383,"sourceCodeEnd":419,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/types.py#L383-L419","documentation":"Error \"Accessing GraphOutput via `key in result` is deprecated. Use `result.value` to access the output value directly, or `result.interrupts` for interrupts.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/types.py:401 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"}