Commit 9f3f511
fix(serializer)!: update Interrupt deserialization for LangGraph 1.0
BREAKING CHANGE: Interrupt object structure changed in LangGraph 1.0
LangGraph 1.0 simplified the Interrupt class from 4 fields to 2 fields:
- Removed: resumable, ns, when
- Retained: value, id
Updated JsonPlusRedisSerializer._revive_if_needed() to detect and
reconstruct Interrupt objects using the new 2-field structure.
Changes:
- Check for len(obj) == 2 instead of len(obj) == 4
- Check for "id" field instead of "resumable"
- Construct Interrupt(value=..., id=...) instead of old signature
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 7309462 commit 9f3f511
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
152 | 151 | | |
153 | | - | |
154 | | - | |
155 | | - | |
| 152 | + | |
156 | 153 | | |
157 | 154 | | |
158 | 155 | | |
| |||
0 commit comments