vouch-langgraph 0.1.0__py3-none-any.whl
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.
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""vouch-langgraph: sign LangGraph tool calls and graph nodes with Vouch.
|
|
2
|
+
|
|
3
|
+
Thin distribution wrapping ``vouch.integrations.langgraph``. It exists so the
|
|
4
|
+
integration can be installed and listed on its own while the implementation
|
|
5
|
+
stays single-sourced in the vouch-protocol package.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from vouch.integrations.langgraph import protect, sign_node
|
|
9
|
+
|
|
10
|
+
__all__ = ["protect", "sign_node"]
|
|
11
|
+
__version__ = "0.1.0"
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: vouch-langgraph
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Sign LangGraph tool calls and graph nodes with Vouch Credentials.
|
|
5
|
+
Author: Ramprasad Gaddam
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://vouch-protocol.com
|
|
8
|
+
Project-URL: Source, https://github.com/vouch-protocol/vouch
|
|
9
|
+
Keywords: langgraph,langchain,vouch,ai-agents,verifiable-credentials,identity
|
|
10
|
+
Requires-Python: >=3.9
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
Requires-Dist: langgraph>=0.1.0
|
|
13
|
+
Requires-Dist: vouch-protocol>=1.6.0
|
|
14
|
+
Provides-Extra: dev
|
|
15
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
16
|
+
|
|
17
|
+
# vouch-langgraph
|
|
18
|
+
|
|
19
|
+
Sign every LangGraph tool call and graph node with a Vouch Credential, so an
|
|
20
|
+
agent's actions carry a verifiable record of who ran them and on whose authority.
|
|
21
|
+
|
|
22
|
+
LangGraph tools are LangChain tools, so tool-level signing is shared with the
|
|
23
|
+
LangChain integration. On top of that, `sign_node` signs each node step, giving
|
|
24
|
+
a signed trail across the whole graph.
|
|
25
|
+
|
|
26
|
+
## Install
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pip install vouch-langgraph
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Sign the tools
|
|
33
|
+
|
|
34
|
+
```python
|
|
35
|
+
from langgraph.prebuilt import create_react_agent
|
|
36
|
+
from vouch.integrations.langgraph import protect
|
|
37
|
+
|
|
38
|
+
agent = create_react_agent(llm, tools=protect([search, send_email]))
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Every tool call is now signed in Python before it runs.
|
|
42
|
+
|
|
43
|
+
## Sign each node
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
from vouch.integrations.langgraph import sign_node
|
|
47
|
+
|
|
48
|
+
@sign_node
|
|
49
|
+
def plan(state):
|
|
50
|
+
...
|
|
51
|
+
|
|
52
|
+
@sign_node(action="charge_card")
|
|
53
|
+
def bill(state):
|
|
54
|
+
...
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Each node step issues its own credential. Verify anywhere with
|
|
58
|
+
`vouch.Verifier.verify_credential`, or read the latest with
|
|
59
|
+
`vouch.autosign.current_credential`.
|
|
60
|
+
|
|
61
|
+
## Identity
|
|
62
|
+
|
|
63
|
+
`protect` and `sign_node` use the ambient Vouch identity, or a `signer=` you
|
|
64
|
+
pass in. Provision one with `vouch init --yes`, or construct a `Signer`
|
|
65
|
+
directly. See the [Vouch Protocol docs](https://vouch-protocol.com).
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
Apache-2.0. Part of the [Vouch Protocol](https://github.com/vouch-protocol/vouch).
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
vouch_langgraph/__init__.py,sha256=OcSnX3rF23j3PnoUSJ4lLI_ppvMdbV2e3OfSSNFgs3c,404
|
|
2
|
+
vouch_langgraph-0.1.0.dist-info/METADATA,sha256=zt77fWfQubwKOKdf1LXghf4yc-GWZJssU4eqAfpjcH0,1923
|
|
3
|
+
vouch_langgraph-0.1.0.dist-info/WHEEL,sha256=51RkbunBAw4BWsgaQWTpPhg4Diwp3c9P5iaLk67Hdtg,92
|
|
4
|
+
vouch_langgraph-0.1.0.dist-info/top_level.txt,sha256=mhP_o_ikNXSXrVHbRbgojwTMcedGMcoH_OjjTp-8AgI,16
|
|
5
|
+
vouch_langgraph-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
vouch_langgraph
|