crewai-agentoath
AgentOath trust protocol integration for CrewAI.
Adds automatic trust receipt generation to CrewAI crews. Every task delegation and completion produces a cryptographically signed receipt, and agents below a trust threshold can be filtered out of delegation.
Installation
pip install crewai-agentoath
For full CrewAI integration (optional):
pip install crewai-agentoath[crewai]
Quick Start
TrustedCrew -- automatic receipts for crew execution
from agentoath import TrustAgent
from crewai_agentoath import TrustedCrew
manager = TrustAgent.create(name="CrewManager", capabilities=["orchestration"])
trusted = TrustedCrew(crew=my_crew, agent_identity=manager)
# Optionally register individual agents with identities
researcher_id = TrustAgent.create(name="Researcher", capabilities=["search"])
trusted.register_agent(researcher_agent, researcher_id)
result = trusted.kickoff()
# Every delegation + completion has a signed receipt
for receipt in trusted.receipts:
print(receipt.action, receipt.rating, receipt.description)
TrustedAgent -- bind CrewAI agents to AgentOath identities
from crewai_agentoath import TrustedAgent
identity = TrustAgent.create(name="Analyst", capabilities=["analysis"])
trusted = TrustedAgent(crew_agent=analyst_agent, identity=identity)
print(trusted.did) # did:trust:agent:...
print(trusted.role) # "Senior Analyst" (from CrewAI)
TaskCallback -- per-task lifecycle receipts
from crewai_agentoath import TaskCallback
cb = TaskCallback(delegator_identity=manager)
cb.on_task_delegated(task, worker_did=worker.did)
cb.on_task_completed(task, worker_did=worker.did, output="report.pdf")
cb.on_task_failed(task, worker_did=worker.did, error="Timeout")
print(len(cb.receipts)) # 3 signed receipts
TrustFilter -- gate delegation by trust score
from crewai_agentoath import TrustFilter
trust_filter = TrustFilter(min_score=0.6)
candidates = [trusted_agent_a, trusted_agent_b, trusted_agent_c]
eligible = trust_filter.filter_agents(candidates, all_receipts)
# Or rank by score
ranked = trust_filter.rank_agents(candidates, all_receipts)
for agent, score in ranked:
print(f"{agent.name}: {score:.2f}")
Components
| Component | Description |
|---|---|
TrustedCrew |
Crew wrapper with automatic pre/post and per-task receipts |
TrustedAgent |
Binds a CrewAI Agent to an AgentOath identity |
TaskCallback |
Generates receipts for task delegation, completion, and failure |
TrustFilter |
Filters/ranks agents by trust score threshold |
License
Apache-2.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crewai_agentoath-0.2.0.tar.gz
(20.7 kB
view details)
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 crewai_agentoath-0.2.0.tar.gz.
File metadata
- Download URL: crewai_agentoath-0.2.0.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d474ba6031537d46f9af5e4c178d26d72614d272a8a0fb306ab00bbf8e052ba
|
|
| MD5 |
66c6923b724b7b5e0749a636504e262a
|
|
| BLAKE2b-256 |
c31c0a946f6d59ec2e554198696a8ab5ec7eec259dd14d26b61466dce7148859
|
File details
Details for the file crewai_agentoath-0.2.0-py3-none-any.whl.
File metadata
- Download URL: crewai_agentoath-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5aa0cc276db6eab5f117e13fcafcacc16700653508ce5d2a9fa683404b3d4b96
|
|
| MD5 |
45238893de5d24d95333874c51a05b41
|
|
| BLAKE2b-256 |
5c418457ede16d3f0abd153c627d1e8b6160e85bd2a091a573fc4cebd1428467
|