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.1

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.1
File Size Uploaded Provenance
langgraph_wait-0.4.1.tar.gz 6.2 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 14.0 kB

Release files / langgraph_wait-0.4.1.tar.gz

Download URL langgraph_wait-0.4.1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6c43e9044eb44b36625e55b09c2d6b64c6c7b8dbdc96da985424caef9e49810f
BLAKE2b-256 checksum
How to use checksums
372a53f9be942e74b349be15bbf35fe50629acacecebf595bb8e60c5589173ac
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.1-py3-none-any.whl

Download URL langgraph_wait-0.4.1-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ceced6513ba2cd9b6c1a8fb1556271d47cbb5d241d836ba9a041023a669c915
BLAKE2b-256 checksum
How to use checksums
b0b5c287c27fcf3567a05ffefc1ffc21a01fdbf6ed36e93fd102592408f004dd
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.1

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