Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds LangGraph 1.0 human-in-the-loop approval flows with interrupts, JSON-safe state, and Command(resume) wiring.
59% 82%+23 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 13 of 22 without it.
Our agent state includes Python `set` objects for deduplicated category IDs and a NumPy `ndarray` for vector embeddings. What conversion is required before these fields reach a checkpointer interrupt superstep?
Converts Python set objects into sorted lists.
3 of 3 safety checks passed
A team adds interrupt_before=["send_email"] to require a human approval
before the email goes out. First integration test crashes at the interrupt
boundary with:
TypeError: Object of type datetime is not JSON serializable
The culprit is two nodes upstream: a classify node stashed
"received_at": datetime.utcnow() into state. Every node-level unit test
passed because node completion does not serialize state — only the
checkpointer does, and only at supersteps that include an interrupt. The
failure is invisible until interrupt time (P17).
A week later the resume path ships. The human reviews the draft, clicks "approve with edits," and the backend runs:
graph.invoke(Command(update={"messages": [corrected_msg]}, resume="approved"), config)
The prior 47 messages vanish. messages was typed as plain
list[AnyMessage] with no reducer, so update replaces the field instead of
appending (P18).
This skill covers: three interrupt styles (interrupt_before,
interrupt_after, inline interrupt()), the JSON-only state invariant with
a pre-interrupt scanner, the Command(resume=...) /
Command(update=..., resume=...) contract, an approval UI wire format
(GET pending / POST decision with optimistic concurrency), safe-cancellation
routing to END, and the tradeoff between native interrupts and a separate
approval service. Pin: langgraph 1.0.x, langgraph-checkpoint 2.0.x.
Pain-catalog anchors: P17, P18 (adjacent: P16, P20).
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.