vouch-langchain 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-langchain: a LangChain tool that issues Vouch Credentials.
2
+
3
+ Thin distribution wrapping vouch.integrations.langchain. It exists so the tool
4
+ can be installed and listed on its own while the implementation stays
5
+ single-sourced in the vouch-protocol package.
6
+ """
7
+
8
+ from vouch.integrations.langchain.tool import VouchSignerInput, VouchSignerTool
9
+
10
+ __all__ = ["VouchSignerTool", "VouchSignerInput"]
11
+ __version__ = "0.1.0"
@@ -0,0 +1,67 @@
1
+ Metadata-Version: 2.4
2
+ Name: vouch-langchain
3
+ Version: 0.1.0
4
+ Summary: LangChain tool that issues Vouch Credentials to authorize AI agent tool calls.
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: langchain,vouch,ai-agents,verifiable-credentials,identity
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: vouch-protocol[langchain]>=1.6.2
13
+ Provides-Extra: dev
14
+ Requires-Dist: pytest>=7.0; extra == "dev"
15
+
16
+ # vouch-langchain
17
+
18
+ A [LangChain](https://www.langchain.com/) tool that issues
19
+ [Vouch](https://vouch-protocol.com) Credentials, so a LangChain agent can
20
+ cryptographically authorize the tool calls it makes.
21
+
22
+ Each signed call carries a W3C Verifiable Credential with an `eddsa-jcs-2022`
23
+ Data Integrity proof, and optionally a delegation chain back to an accountable
24
+ human principal.
25
+
26
+ ## Install
27
+
28
+ ```bash
29
+ pip install vouch-langchain
30
+ ```
31
+
32
+ This pulls in `vouch-protocol[langchain]`.
33
+
34
+ ## Configure
35
+
36
+ The tool reads two environment variables:
37
+
38
+ - `VOUCH_PRIVATE_KEY` the agent's private key (JWK JSON string).
39
+ - `VOUCH_DID` the agent's DID, e.g. `did:web:agent.example.com`.
40
+
41
+ ## Use
42
+
43
+ ```python
44
+ from vouch_langchain import VouchSignerTool
45
+
46
+ tool = VouchSignerTool() # reads VOUCH_PRIVATE_KEY / VOUCH_DID
47
+ credential_json = tool._run(
48
+ action="read",
49
+ target="https://api.example.com",
50
+ resource="customer:123",
51
+ )
52
+ # Attach credential_json as a 'Vouch-Credential' header on your request.
53
+ ```
54
+
55
+ Add `tool` to any LangChain agent's tool list. The agent calls it before an
56
+ authenticated request and forwards the credential to your service.
57
+
58
+ ## Verify on the receiving side
59
+
60
+ ```python
61
+ from vouch import Verifier
62
+ ok, passport = Verifier.verify_credential(received_json, public_key=agent_pubkey)
63
+ ```
64
+
65
+ ## License
66
+
67
+ Apache-2.0.
@@ -0,0 +1,5 @@
1
+ vouch_langchain/__init__.py,sha256=fmt3gPTR_bgg9TeRz386uZJILf1dvJz6eazXwZYBQmE,422
2
+ vouch_langchain-0.1.0.dist-info/METADATA,sha256=msn2uT0iMGe1jBMz1bjlGFG3i1WI_Fjp5dIv68GQhUc,1859
3
+ vouch_langchain-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
4
+ vouch_langchain-0.1.0.dist-info/top_level.txt,sha256=Gx--5o-SapUkJVAwj_bTBOB4HPeY9NqTjjhZRXerBwM,16
5
+ vouch_langchain-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ vouch_langchain