Skip to main content

langgraph-wait

The LangGraph side of agent-wait — publish a LangGraph agent's interrupts so a human can answer them from anywhere.

pip install langgraph-wait          # pulls in agent-wait
from langgraph_wait import ask, LangGraphAdapter, is_answer, resume_command
  • ask(question, policy) — a thin wrapper over interrupt(). The node pauses exactly as LangGraph pauses; the policy rides along inside the interrupt value and comes back out in the published envelope. A plain interrupt(value) also works, with the default policy.
  • LangGraphAdapter(graph) — three methods. pending() reads what a thread is parked on and filters LangGraph's tasks[*].interrupts over-report on task.result.
  • is_answer(message) / resume_command(message) — pure functions for the host's router. interrupt_id present means resume; the Command is 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

langgraph_wait-0.2.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langgraph_wait-0.2.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file langgraph_wait-0.2.0.tar.gz.

File metadata

  • Download URL: langgraph_wait-0.2.0.tar.gz
  • Upload date:
  • Size: 5.6 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

Hashes for langgraph_wait-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bc2d237bfc64cccb62ee73847abc43dceb7abad988bb0c5767a98be5b4ea6c8b
MD5 1cdb1542d27200f575268ad18c7ab001
BLAKE2b-256 8f9e6619f4cf0ae79303674cb9095b7e4a6107dab0dbabeeb8cda46c8cdc80f5

See more details on using hashes here.

File details

Details for the file langgraph_wait-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: langgraph_wait-0.2.0-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

Hashes for langgraph_wait-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9daea6453179609745780613a8d27b3719a721f48b4f20bf69ff2afc7a500ac1
MD5 e48f8e4787a11df6cedc39c12f3754a1
BLAKE2b-256 d5c205b5277bca5ac39cd49ddcc381195071d27abf567cfb7af1689e4af8d991

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.2.0 This release

2 files

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