Python SDK for LangGraph Approval Hub — human-in-the-loop approval workflows
Project description
langgraph-approval-hub
Python SDK for LangGraph Approval Hub — add human-in-the-loop approval workflows to your LangGraph agents in 3 lines.
Install
pip install langgraph-approval-hub
Usage
from langgraph_approval_hub import request_approval
decision = request_approval(
hub_url="https://your-hub.vercel.app",
api_token="your-api-secret-token",
agent_name="Finance Agent",
action_description="Process $4,200 refund batch for 12 customers",
assignee="finance-team",
assignee_type="team",
)
if decision == "approved":
process_refunds()
request_approval() blocks until a human approves or rejects via the dashboard, then returns "approved" or "rejected".
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
hub_url |
str | ✅ | — | Your Approval Hub URL |
api_token |
str | ✅ | — | Your API_SECRET_TOKEN env var value |
agent_name |
str | ✅ | — | Name shown in the dashboard |
action_description |
str | ✅ | — | Plain-English description of what the agent wants to do |
assignee |
str | ✅ | — | Email address or team name |
assignee_type |
str | ✅ | — | "person" or "team" |
agent_reasoning |
str | ❌ | None | Step-by-step reasoning shown to approver |
escalate_to |
str | ❌ | None | Email to escalate to if timeout exceeded |
timeout_minutes |
int | ❌ | 60 | Minutes before escalation |
poll_interval |
int | ❌ | 10 | Seconds between status polls |
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langgraph_approval_hub-0.2.0.tar.gz.
File metadata
- Download URL: langgraph_approval_hub-0.2.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33f56319742a10b657b34c5f85e107ddcef5432ee4ef8b9db697e6c5e7188aca
|
|
| MD5 |
ed1a5fb83739f44756c237dfde1dc221
|
|
| BLAKE2b-256 |
fb6ded79db5eecd3bd8646c15d7d3bbcfcca63067a46ed182aaf44b43da219e8
|
File details
Details for the file langgraph_approval_hub-0.2.0-py3-none-any.whl.
File metadata
- Download URL: langgraph_approval_hub-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85642f6ad5f2413924e95134156182159ae56c107b2d3037922bc187dbc49d25
|
|
| MD5 |
8cddb73880b1afe09503b2761f3713c4
|
|
| BLAKE2b-256 |
1080fc822a85fd2a688fafef2d894b22b2ae93f7027dfc3bf9946ee5e87f7529
|