# is_invalid_resume

> **Function** in `langgraph`

📖 [View in docs](https://reference.langchain.com/python/langgraph/errors/is_invalid_resume)

Whether `error` was raised because a resume value didn't match `response_schema`.

`interrupt()` raises a `pydantic.ValidationError` in that case. `ToolNode` uses
this to tell it apart from invalid tool arguments when a tool calls `interrupt()`
or runs a graph that does, so the resume fails and the interrupt can be answered
again.

## Signature

```python
is_invalid_resume(
    error: BaseException,
) -> bool
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/a4d4187e82cdb0a73d68c76d70d655dd73a6db0b/libs/langgraph/langgraph/errors.py#L292)