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 ask, hitl, publish_interrupts
  • ask(question, policy) — a thin wrapper over interrupt(); the policy rides along inside the interrupt value. A plain interrupt(value) also works, with the default policy.
  • @hitl(policy) — on a tool function, under @tool. Calls ask() with {tool, args} before the tool runs. mode="async" makes the decorator the publisher: it announces and returns pending without parking the thread.
  • publish_interrupts(result, thread_id, announce) — after graph.invoke(). Reads result["__interrupt__"] and hands one envelope per question to the announcers. Understands ask(), bare interrupt(), and HumanInTheLoopMiddleware batches.

Requires langgraph >= 1.2. One interrupt() per node — two interrupting tools in one ToolNode share an id on 1.2.x (langgraph #6626); use the middleware, which batches.

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

Metadata

Release files for langgraph-wait 0.3.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.3.0
File Size Uploaded Provenance
langgraph_wait-0.3.0.tar.gz 7.2 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 16.4 kB

Release files / langgraph_wait-0.3.0.tar.gz

Download URL langgraph_wait-0.3.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
786973032b027a74cf976cd5094b8e49110948ceb002072ef9f48cde6f7816ef
BLAKE2b-256 checksum
How to use checksums
012e6078014b61332be62577c9594820492e4519f838060667cbaccfe288e479
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.3.0-py3-none-any.whl

Download URL langgraph_wait-0.3.0-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba92187da2b7e11849405d4f928ffc7f71590e9088681e8fadf143ce749c4b18
BLAKE2b-256 checksum
How to use checksums
1e384e19d37fcf8cf366db991daaf83f84557f83ee94cbcca4221b0fd7ad9c46
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.3.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