pushary-langgraph 0.4.0__tar.gz → 0.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pushary_langgraph-0.4.0 → pushary_langgraph-0.4.2}/.gitignore +11 -1
- {pushary_langgraph-0.4.0 → pushary_langgraph-0.4.2}/PKG-INFO +44 -21
- {pushary_langgraph-0.4.0 → pushary_langgraph-0.4.2}/README.md +40 -17
- {pushary_langgraph-0.4.0 → pushary_langgraph-0.4.2}/pyproject.toml +5 -3
- {pushary_langgraph-0.4.0 → pushary_langgraph-0.4.2}/src/pushary_langgraph/__init__.py +1 -1
- {pushary_langgraph-0.4.0 → pushary_langgraph-0.4.2}/LICENSE +0 -0
- {pushary_langgraph-0.4.0 → pushary_langgraph-0.4.2}/src/pushary_langgraph/py.typed +0 -0
- {pushary_langgraph-0.4.0 → pushary_langgraph-0.4.2}/src/pushary_langgraph/review.py +0 -0
- {pushary_langgraph-0.4.0 → pushary_langgraph-0.4.2}/tests/test_langgraph.py +0 -0
- {pushary_langgraph-0.4.0 → pushary_langgraph-0.4.2}/tests/test_restart.py +0 -0
|
@@ -17,6 +17,7 @@ node_modules
|
|
|
17
17
|
.next/
|
|
18
18
|
out/
|
|
19
19
|
build/
|
|
20
|
+
!apps/dashboard/content/docs/agents/build/
|
|
20
21
|
dist/
|
|
21
22
|
|
|
22
23
|
# python
|
|
@@ -52,6 +53,7 @@ yarn-error.log*
|
|
|
52
53
|
# generated at build time: editor plugins bundled into the agent-hooks package
|
|
53
54
|
packages/agent-hooks/data/cursor-plugin/
|
|
54
55
|
packages/agent-hooks/data/vscode-plugin/
|
|
56
|
+
packages/agent-hooks/data/openclaw-plugin/
|
|
55
57
|
|
|
56
58
|
# typescript
|
|
57
59
|
*.tsbuild info
|
|
@@ -93,7 +95,8 @@ videos/
|
|
|
93
95
|
!.agents/plugins/
|
|
94
96
|
!.agents/plugins/marketplace.json
|
|
95
97
|
.claude/
|
|
96
|
-
.cursor/rules
|
|
98
|
+
.cursor/rules/*
|
|
99
|
+
!.cursor/rules/code-quality.mdc
|
|
97
100
|
pushary-app/.agents/
|
|
98
101
|
pushary-app/skills-lock.json
|
|
99
102
|
|
|
@@ -141,3 +144,10 @@ graphify-out/
|
|
|
141
144
|
|
|
142
145
|
# eslint --cache, restored in CI from the build cache
|
|
143
146
|
.eslintcache
|
|
147
|
+
|
|
148
|
+
# Local component workbench output
|
|
149
|
+
**/storybook-static/
|
|
150
|
+
**/storybook-build.log
|
|
151
|
+
|
|
152
|
+
# Generated by bun growth-os/scripts/graph.ts view
|
|
153
|
+
growth-os/graph/view.html
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pushary-langgraph
|
|
3
|
-
Version: 0.4.
|
|
4
|
-
Summary:
|
|
5
|
-
Project-URL: Homepage, https://pushary.com
|
|
3
|
+
Version: 0.4.2
|
|
4
|
+
Summary: Phone approvals for LangGraph and LangChain agents. Your agent asks, your user taps Approve or Deny.
|
|
5
|
+
Project-URL: Homepage, https://pushary.com/human-in-the-loop-langgraph
|
|
6
6
|
Project-URL: Repository, https://github.com/Pushary/pushary-langgraph
|
|
7
7
|
Project-URL: Documentation, https://pushary.com/docs/agents/adapters
|
|
8
8
|
Author-email: Pushary <business@pushary.com>
|
|
9
9
|
License: MIT
|
|
10
10
|
License-File: LICENSE
|
|
11
|
-
Keywords: ai-agents,approvals,human-in-the-loop,interrupt,langchain,langgraph
|
|
11
|
+
Keywords: ai-agents,approval,approvals,human-in-the-loop,interrupt,langchain,langgraph,tool-approval
|
|
12
12
|
Classifier: Development Status :: 4 - Beta
|
|
13
13
|
Classifier: Intended Audience :: Developers
|
|
14
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -30,31 +30,35 @@ Description-Content-Type: text/markdown
|
|
|
30
30
|
|
|
31
31
|
# pushary-langgraph
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
for choices, **input** for missing details. Confirm supports lock-screen actions;
|
|
35
|
-
select/input open the app. The legacy web/PWA surface remains compatible.
|
|
33
|
+
Phone approvals for LangGraph and LangChain agents. Your agent asks, your user taps Approve or Deny.
|
|
36
34
|
|
|
37
|
-
|
|
35
|
+
[Human in the loop for LangGraph](https://pushary.com/human-in-the-loop-langgraph?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme) · [Connect your customer’s phone](https://pushary.com/sign-up?from=agent&plan=partner&utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-partner-start) · [Report a problem](https://github.com/Pushary/pushary-langgraph/issues)
|
|
38
36
|
|
|
39
|
-
|
|
40
|
-
pip install pushary-langgraph
|
|
41
|
-
```
|
|
37
|
+
## What you need
|
|
42
38
|
|
|
43
|
-
|
|
44
|
-
from
|
|
39
|
+
- A Pushary Partner plan, from $99 a month. [Start the trial](https://pushary.com/sign-up?from=agent&plan=partner&utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-partner-start).
|
|
40
|
+
- An API key from [Partner onboarding](https://pushary.com/onboarding/partner?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-partner-start), set as `PUSHARY_API_KEY`.
|
|
41
|
+
- Your users install the free Pushary app ([iPhone](https://apps.apple.com/us/app/pushary/id6785677563), [Android](https://play.google.com/store/apps/details?id=com.pushary.app)). They never sign up or pay.
|
|
45
42
|
|
|
46
|
-
|
|
47
|
-
```
|
|
43
|
+
## What your customer gets
|
|
48
44
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
not in model-generated tool arguments.
|
|
45
|
+
1. They open your connect link once. It shows your product's name and logo and connects their phone.
|
|
46
|
+
2. When the graph reaches your approval node, a push notification titled with your product name arrives, such as **Acme needs your approval**.
|
|
47
|
+
3. They approve or decline, pick an option or type an answer. The graph routes to the protected step only on a confirm `"yes"`. A decline, an expired question or no answer at all never reaches it.
|
|
53
48
|
|
|
54
|
-
|
|
49
|
+
Pushary hosts the phone delivery, the decision record and the [audit log](https://pushary.com/docs/agents/audit-log?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme). LangGraph keeps the checkpoint in your checkpointer. Your app keeps its own sign-in, the callback handling and the protected write.
|
|
50
|
+
|
|
51
|
+
## Quick start
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
pip install pushary-langgraph
|
|
55
|
+
export PUSHARY_API_KEY=pk_xxx.sk_xxx
|
|
56
|
+
```
|
|
55
57
|
|
|
56
58
|
```python
|
|
57
|
-
from pushary_langgraph import pushary_interrupt
|
|
59
|
+
from pushary_langgraph import connect, pushary_interrupt
|
|
60
|
+
|
|
61
|
+
invitation = connect(authenticated_customer.id) # once per user: show them this link
|
|
58
62
|
|
|
59
63
|
|
|
60
64
|
def review_order(state):
|
|
@@ -71,12 +75,23 @@ def review_order(state):
|
|
|
71
75
|
return {"approved": answer == "yes"}
|
|
72
76
|
```
|
|
73
77
|
|
|
78
|
+
Give the invitation to that authenticated customer. They install the native app,
|
|
79
|
+
reopen the link, and allow notifications. They need no Pushary account/key/paid plan;
|
|
80
|
+
the developer needs Partner access. Bind `external_id` in trusted application code,
|
|
81
|
+
not in model-generated tool arguments.
|
|
82
|
+
|
|
74
83
|
Your graph must route to the protected write only when this confirm branch approved.
|
|
75
84
|
`ask_human` is a blocking helper, not a rule forcing an agent to call it. A choice or
|
|
76
85
|
text answer is data, not action authorization; use `type="select", options=["A", "B"]`
|
|
77
86
|
or `type="input"` for the tool that needs those values. Do not use the shared SDK's
|
|
78
87
|
`approved` convenience flag as permission for a select/input action.
|
|
79
88
|
|
|
89
|
+
Use **confirm** for permission, **select** for choices and **input** for missing
|
|
90
|
+
details. On iPhone, confirm can be answered from the lock screen; select and input open the app.
|
|
91
|
+
The legacy web/PWA surface remains compatible.
|
|
92
|
+
|
|
93
|
+
## Review options
|
|
94
|
+
|
|
80
95
|
The adapter accepts the existing subject/presentation parameters: `tool_target`,
|
|
81
96
|
`actor`, `environment`, `parameters`, `presentation`, `placeholder`,
|
|
82
97
|
`expires_in_seconds` and `require_reachable`. A callback parks a native interrupt;
|
|
@@ -147,6 +162,14 @@ physical-device delivery.
|
|
|
147
162
|
[Official LangGraph interrupts](https://docs.langchain.com/oss/python/langgraph/interrupts)
|
|
148
163
|
describe persistence, replay and resuming by interrupt ID.
|
|
149
164
|
|
|
165
|
+
## Links
|
|
166
|
+
|
|
167
|
+
- [Human in the loop for LangGraph](https://pushary.com/human-in-the-loop-langgraph?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme) and [for LangChain](https://pushary.com/human-in-the-loop-langchain?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme): what your customer sees, with the full example.
|
|
168
|
+
- [LangGraph guide](https://pushary.com/docs/agents/build/langgraph?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme) in the Pushary docs, with Python and TypeScript.
|
|
169
|
+
- [Partner plan](https://pushary.com/partners?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme), from $99 a month. All plans are on the [pricing page](https://pushary.com/pricing?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme).
|
|
170
|
+
- [Browser demo](https://pushary.com/try?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme) of one approval.
|
|
171
|
+
- Other Python adapters: [CrewAI](https://github.com/Pushary/pushary-crewai), [Pydantic AI](https://github.com/Pushary/pushary-pydantic-ai), [OpenAI Agents SDK](https://github.com/Pushary/pushary-openai-agents).
|
|
172
|
+
|
|
150
173
|
## License
|
|
151
174
|
|
|
152
175
|
MIT
|
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
# pushary-langgraph
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
for choices, **input** for missing details. Confirm supports lock-screen actions;
|
|
5
|
-
select/input open the app. The legacy web/PWA surface remains compatible.
|
|
3
|
+
Phone approvals for LangGraph and LangChain agents. Your agent asks, your user taps Approve or Deny.
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
[Human in the loop for LangGraph](https://pushary.com/human-in-the-loop-langgraph?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme) · [Connect your customer’s phone](https://pushary.com/sign-up?from=agent&plan=partner&utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-partner-start) · [Report a problem](https://github.com/Pushary/pushary-langgraph/issues)
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
pip install pushary-langgraph
|
|
11
|
-
```
|
|
7
|
+
## What you need
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
from
|
|
9
|
+
- A Pushary Partner plan, from $99 a month. [Start the trial](https://pushary.com/sign-up?from=agent&plan=partner&utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-partner-start).
|
|
10
|
+
- An API key from [Partner onboarding](https://pushary.com/onboarding/partner?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-partner-start), set as `PUSHARY_API_KEY`.
|
|
11
|
+
- Your users install the free Pushary app ([iPhone](https://apps.apple.com/us/app/pushary/id6785677563), [Android](https://play.google.com/store/apps/details?id=com.pushary.app)). They never sign up or pay.
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
```
|
|
13
|
+
## What your customer gets
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
not in model-generated tool arguments.
|
|
15
|
+
1. They open your connect link once. It shows your product's name and logo and connects their phone.
|
|
16
|
+
2. When the graph reaches your approval node, a push notification titled with your product name arrives, such as **Acme needs your approval**.
|
|
17
|
+
3. They approve or decline, pick an option or type an answer. The graph routes to the protected step only on a confirm `"yes"`. A decline, an expired question or no answer at all never reaches it.
|
|
23
18
|
|
|
24
|
-
|
|
19
|
+
Pushary hosts the phone delivery, the decision record and the [audit log](https://pushary.com/docs/agents/audit-log?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme). LangGraph keeps the checkpoint in your checkpointer. Your app keeps its own sign-in, the callback handling and the protected write.
|
|
20
|
+
|
|
21
|
+
## Quick start
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install pushary-langgraph
|
|
25
|
+
export PUSHARY_API_KEY=pk_xxx.sk_xxx
|
|
26
|
+
```
|
|
25
27
|
|
|
26
28
|
```python
|
|
27
|
-
from pushary_langgraph import pushary_interrupt
|
|
29
|
+
from pushary_langgraph import connect, pushary_interrupt
|
|
30
|
+
|
|
31
|
+
invitation = connect(authenticated_customer.id) # once per user: show them this link
|
|
28
32
|
|
|
29
33
|
|
|
30
34
|
def review_order(state):
|
|
@@ -41,12 +45,23 @@ def review_order(state):
|
|
|
41
45
|
return {"approved": answer == "yes"}
|
|
42
46
|
```
|
|
43
47
|
|
|
48
|
+
Give the invitation to that authenticated customer. They install the native app,
|
|
49
|
+
reopen the link, and allow notifications. They need no Pushary account/key/paid plan;
|
|
50
|
+
the developer needs Partner access. Bind `external_id` in trusted application code,
|
|
51
|
+
not in model-generated tool arguments.
|
|
52
|
+
|
|
44
53
|
Your graph must route to the protected write only when this confirm branch approved.
|
|
45
54
|
`ask_human` is a blocking helper, not a rule forcing an agent to call it. A choice or
|
|
46
55
|
text answer is data, not action authorization; use `type="select", options=["A", "B"]`
|
|
47
56
|
or `type="input"` for the tool that needs those values. Do not use the shared SDK's
|
|
48
57
|
`approved` convenience flag as permission for a select/input action.
|
|
49
58
|
|
|
59
|
+
Use **confirm** for permission, **select** for choices and **input** for missing
|
|
60
|
+
details. On iPhone, confirm can be answered from the lock screen; select and input open the app.
|
|
61
|
+
The legacy web/PWA surface remains compatible.
|
|
62
|
+
|
|
63
|
+
## Review options
|
|
64
|
+
|
|
50
65
|
The adapter accepts the existing subject/presentation parameters: `tool_target`,
|
|
51
66
|
`actor`, `environment`, `parameters`, `presentation`, `placeholder`,
|
|
52
67
|
`expires_in_seconds` and `require_reachable`. A callback parks a native interrupt;
|
|
@@ -117,6 +132,14 @@ physical-device delivery.
|
|
|
117
132
|
[Official LangGraph interrupts](https://docs.langchain.com/oss/python/langgraph/interrupts)
|
|
118
133
|
describe persistence, replay and resuming by interrupt ID.
|
|
119
134
|
|
|
135
|
+
## Links
|
|
136
|
+
|
|
137
|
+
- [Human in the loop for LangGraph](https://pushary.com/human-in-the-loop-langgraph?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme) and [for LangChain](https://pushary.com/human-in-the-loop-langchain?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme): what your customer sees, with the full example.
|
|
138
|
+
- [LangGraph guide](https://pushary.com/docs/agents/build/langgraph?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme) in the Pushary docs, with Python and TypeScript.
|
|
139
|
+
- [Partner plan](https://pushary.com/partners?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme), from $99 a month. All plans are on the [pricing page](https://pushary.com/pricing?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme).
|
|
140
|
+
- [Browser demo](https://pushary.com/try?utm_source=github&utm_medium=oss-adapter&utm_campaign=pushary-langgraph&utm_content=python-readme) of one approval.
|
|
141
|
+
- Other Python adapters: [CrewAI](https://github.com/Pushary/pushary-crewai), [Pydantic AI](https://github.com/Pushary/pushary-pydantic-ai), [OpenAI Agents SDK](https://github.com/Pushary/pushary-openai-agents).
|
|
142
|
+
|
|
120
143
|
## License
|
|
121
144
|
|
|
122
145
|
MIT
|
|
@@ -4,8 +4,8 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pushary-langgraph"
|
|
7
|
-
version = "0.4.
|
|
8
|
-
description = "
|
|
7
|
+
version = "0.4.2"
|
|
8
|
+
description = "Phone approvals for LangGraph and LangChain agents. Your agent asks, your user taps Approve or Deny."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
11
11
|
license = { text = "MIT" }
|
|
@@ -17,6 +17,8 @@ keywords = [
|
|
|
17
17
|
"ai-agents",
|
|
18
18
|
"approvals",
|
|
19
19
|
"interrupt",
|
|
20
|
+
"approval",
|
|
21
|
+
"tool-approval",
|
|
20
22
|
]
|
|
21
23
|
classifiers = [
|
|
22
24
|
"Development Status :: 4 - Beta",
|
|
@@ -38,7 +40,7 @@ dependencies = [
|
|
|
38
40
|
]
|
|
39
41
|
|
|
40
42
|
[project.urls]
|
|
41
|
-
Homepage = "https://pushary.com"
|
|
43
|
+
Homepage = "https://pushary.com/human-in-the-loop-langgraph"
|
|
42
44
|
Repository = "https://github.com/Pushary/pushary-langgraph"
|
|
43
45
|
Documentation = "https://pushary.com/docs/agents/adapters"
|
|
44
46
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|