vouch-crewai 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.
vouch_crewai/__init__.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""vouch-crewai: a CrewAI tool that issues Vouch Credentials.
|
|
2
|
+
|
|
3
|
+
Thin distribution wrapping vouch.integrations.crewai. It exists so the tool can
|
|
4
|
+
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.crewai.tool import VouchCrewTools, sign_request
|
|
9
|
+
|
|
10
|
+
__all__ = ["sign_request", "VouchCrewTools"]
|
|
11
|
+
__version__ = "0.1.0"
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: vouch-crewai
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: CrewAI tool that issues Vouch Credentials to authorize multi-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: crewai,vouch,ai-agents,verifiable-credentials,delegation
|
|
10
|
+
Requires-Python: >=3.9
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
Requires-Dist: vouch-protocol[crewai]>=1.6.2
|
|
13
|
+
Provides-Extra: dev
|
|
14
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
15
|
+
|
|
16
|
+
# vouch-crewai
|
|
17
|
+
|
|
18
|
+
A [CrewAI](https://www.crewai.com/) tool that issues
|
|
19
|
+
[Vouch](https://vouch-protocol.com) Credentials, so the agents in a crew can
|
|
20
|
+
cryptographically authorize their tool calls, including across delegation.
|
|
21
|
+
|
|
22
|
+
Each signed call carries a W3C Verifiable Credential with an `eddsa-jcs-2022`
|
|
23
|
+
Data Integrity proof. When a supervisor agent delegates to a worker, the
|
|
24
|
+
worker's credential extends the supervisor's chain and can only narrow the
|
|
25
|
+
authority, never broaden it.
|
|
26
|
+
|
|
27
|
+
## Install
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pip install vouch-crewai
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
This pulls in `vouch-protocol[crewai]`.
|
|
34
|
+
|
|
35
|
+
## Configure
|
|
36
|
+
|
|
37
|
+
- `VOUCH_PRIVATE_KEY` the agent's private key (JWK JSON string).
|
|
38
|
+
- `VOUCH_DID` the agent's DID, e.g. `did:web:agent.example.com`.
|
|
39
|
+
|
|
40
|
+
## Use
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
from vouch_crewai import sign_request
|
|
44
|
+
|
|
45
|
+
# Give the tool to a CrewAI agent. It calls it before an authenticated request.
|
|
46
|
+
credential_json = sign_request(
|
|
47
|
+
action="read",
|
|
48
|
+
target="https://api.example.com",
|
|
49
|
+
resource="customer:123",
|
|
50
|
+
)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Delegation between agents
|
|
54
|
+
|
|
55
|
+
See `examples/integrations_delegation.py` in the main repo for a supervisor
|
|
56
|
+
that issues a broad credential and a worker that narrows it under capability
|
|
57
|
+
attenuation.
|
|
58
|
+
|
|
59
|
+
## Verify on the receiving side
|
|
60
|
+
|
|
61
|
+
```python
|
|
62
|
+
from vouch import Verifier
|
|
63
|
+
ok, passport = Verifier.verify_credential(received_json, public_key=agent_pubkey)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## License
|
|
67
|
+
|
|
68
|
+
Apache-2.0.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
vouch_crewai/__init__.py,sha256=6gkp2UE4RK6CjKBJj8jd0MwsBQwwULvbECalfWvOVIg,400
|
|
2
|
+
vouch_crewai-0.1.0.dist-info/METADATA,sha256=WdQVPKSF2LsNMoTsBKSk-pD0qP4-fxkx4QiZs1wAYPM,1893
|
|
3
|
+
vouch_crewai-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
4
|
+
vouch_crewai-0.1.0.dist-info/top_level.txt,sha256=lQY21cHSQo_JlffjVXNPfH8tKT-yz0UJYFajJfWlP-w,13
|
|
5
|
+
vouch_crewai-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
vouch_crewai
|