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, 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.1.tar.gz (5.7 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.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

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

Hashes for langgraph_wait-0.2.1.tar.gz
Algorithm Hash digest
SHA256 839a18b40679ed7e168925a27e85cb17decc66e052d1ea947a69209b4acd135b
MD5 94facbd30520d7e8d920b2fa1a559304
BLAKE2b-256 bd65ce6dbded0daaaa2264505b36af6d99f50cb10fa2172f0e8aada3423b67fe

See more details on using hashes here.

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

Hashes for langgraph_wait-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1911a9b1e2f75ff8f704c634d9e7c99a0e021928b08b7e980a9ebd21fa816026
MD5 8d579bde52b9eb72e43651643ba63d5e
BLAKE2b-256 a526cf85edc61f37670e6dd591fcf3b17a829763cc1232a63aa952166016d71d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

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