Skip to main content

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 hitl, publish_interrupts
  • @hitl(policy) — on any function, under @tool if it is a tool. Calling it inside a run parks the graph on {"function", "args"}. {"action": "approve"} runs the body; anything else is returned in its place. A function with a decision parameter always runs and receives the answer. mode="async" makes the decorator the publisher: it announces and returns pending without parking.
  • publish_interrupts(result, thread_id, announce) — after graph.invoke(). Reads result["__interrupt__"] and hands one envelope per question to the announcers.

Requires langgraph >= 1.2. Not compatible with LangChain's HumanInTheLoopMiddleware on the same tool (two interrupts for one approval). One interrupt() per node on 1.2.x (langgraph #6626).

Full documentation: skamalj.github.io/agent-wait.

Metadata

Release files for langgraph-wait 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langgraph-wait 0.4.0
File Size Uploaded Provenance
langgraph_wait-0.4.0.tar.gz 6.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for langgraph-wait 0.4.0
File Interpreter ABI Platform
langgraph_wait-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 kB

Release files / langgraph_wait-0.4.0.tar.gz

Download URL langgraph_wait-0.4.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3520dd8cffe8d4b16572b71938fdf08a677f12685c21fae77c0f7d4607c98727
BLAKE2b-256 checksum
How to use checksums
5755b428fc6b09281714db29684d817564a4517131ab2a8a3acb2126d4217bd4
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / langgraph_wait-0.4.0-py3-none-any.whl

Download URL langgraph_wait-0.4.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ff8f8c60b434caf4cf9544c221da0506cc27345ed8b9605241dcf678f830549
BLAKE2b-256 checksum
How to use checksums
79fcfae274d7fea3d0a6fd38a5546bbe4717c08697aef592451e58be658bb697
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for langgraph-wait 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page