The values to check.
true
if the values contain an interrupt, false
otherwise.
import { INTERRUPT, isInterrupted } from "@langchain/langgraph";
const values = await graph.invoke({ foo: "bar" });
if (isInterrupted<string>(values)) {
const interrupt = values[INTERRUPT][0].value;
}
Checks if the given graph invoke / stream chunk contains interrupt.