langgraph-wait
The LangGraph side of agent-wait — get a LangGraph interrupt out of the process, and the answer back in.
pip install langgraph-wait # pulls in agent-wait
from langgraph_wait import ask, LangGraphAdapter, is_answer, resume_command
ask(question, policy)— a thin wrapper overinterrupt(). The node pauses exactly as LangGraph pauses; the policy rides along inside the interrupt value and comes back out in the published envelope. A plaininterrupt(value)also works, with the default policy.LangGraphAdapter(graph)— three methods.pending()reads what a thread is parked on and filters LangGraph'stasks[*].interruptsover-report ontask.result.is_answer(message)/resume_command(message)— pure functions for the host's router.interrupt_idpresent means resume; theCommandis keyed by interrupt id so parallel interrupts resume independently.
Requires langgraph >= 1.2. One interrupt() per node — two interrupting tools in one
ToolNode share an id on 1.2.x (langgraph #6626), and this package documents rather
than hides that.
Full documentation: skamalj.github.io/agent-wait.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langgraph_wait-0.2.1.tar.gz.
File metadata
- Download URL: langgraph_wait-0.2.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
839a18b40679ed7e168925a27e85cb17decc66e052d1ea947a69209b4acd135b
|
|
| MD5 |
94facbd30520d7e8d920b2fa1a559304
|
|
| BLAKE2b-256 |
bd65ce6dbded0daaaa2264505b36af6d99f50cb10fa2172f0e8aada3423b67fe
|
File details
Details for the file langgraph_wait-0.2.1-py3-none-any.whl.
File metadata
- Download URL: langgraph_wait-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1911a9b1e2f75ff8f704c634d9e7c99a0e021928b08b7e980a9ebd21fa816026
|
|
| MD5 |
8d579bde52b9eb72e43651643ba63d5e
|
|
| BLAKE2b-256 |
a526cf85edc61f37670e6dd591fcf3b17a829763cc1232a63aa952166016d71d
|