{"record":{"id":"39eb914930f16898","repo":"langchain-ai/langgraph","slug":"key","errorCode":null,"errorMessage":"{key}","messagePattern":"\\{key\\}","errorType":"exception","errorClass":"KeyError","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/types.py","lineNumber":398,"sourceCode":"    interrupts: tuple[Interrupt, ...] = ()\n\n    def __getitem__(self, key: str) -> Any:\n        \"\"\"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","sourceCodeStart":380,"sourceCodeEnd":416,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/types.py#L380-L416","documentation":"Error \"{key}\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/types.py:398 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"}