AACP coordination layer for CrewAI multi-agent workflows
Project description
aacp-crewai
AACP coordination layer for CrewAI multi-agent workflows.
CrewAI maps more naturally to AACP than any other framework because agent roles map directly to AACP domains and tasks map to AACP task types.
Install
pip install aacp-crewai
Quick start
from aacp_crewai.crew import AACPCrew
crew = AACPCrew(model="gpt-4.1-mini")
result = crew.run_workflow("payroll", period="2026-03")
print(result.summary())
Measured results
Payroll workflow comparison. gpt-4.1-mini. June 2026.
WITHOUT AACP WITH AACP
Coordination LLM calls: 4 0
Coordination cost: $0.0005 $0.0000
Total cost: $0.0005 $0.0003
Total saving: 39%
Coordination deterministic: NO YES
Schema validated: NO YES
The natural fit
CrewAI concept AACP concept
────────────── ────────────
Agent role DOM (HR, FIN, IT, SALES, CS)
Agent goal Workflow objective
Task description AACP packet content
Crew kickoff Orchestrator run
Without AACP vs With AACP
Without aacp-crewai (standard CrewAI):
Orchestrator
↓ "Retrieve all active employee salary records for March 2026.
Include employee ID, name, department, cost centre, base salary,
any changes this month, and pension rate. Return as JSON."
HR Agent ← verbose, varies every run
With aacp-crewai:
Orchestrator
↓ FETCH|HR|return:ORCHESTRATOR|p:1|aacp:1.1|res:emp_salary|period:2026-03
HR Agent ✓ validates. $0.00 encoding. Identical every run.
Comparison demo
python3 examples/comparison.py --mock
Workflows
# Payroll (5 hops)
crew.run_workflow("payroll", period="2026-03")
# IT provisioning / JML (6 hops)
crew.run_workflow("it_provisioning", username="j.smith", dept="Engineering")
# Sales qualification (5 hops)
crew.run_workflow("sales_qualification", lead_id="L-001")
Requirements
- Python 3.10+
OPENAI_API_KEYpip install aacp-crewai
Links
- Protocol spec: https://aacp.dev
- Python SDK: https://github.com/MackayAndrew/aacp
- LangChain integration: https://github.com/MackayAndrew/aacp-langchain
- Community rules (241): https://github.com/MackayAndrew/aacp-community-rules
- IETF Draft: https://datatracker.ietf.org/doc/draft-mackay-aacp/
Licence
MIT
aacp-crewai
AACP coordination layer for CrewAI multi-agent workflows.
CrewAI maps more naturally to AACP than any other framework because agent roles map directly to AACP domains and tasks map to AACP task types.
Install
pip install aacp-crewai
Quick start
from aacp_crewai.crew import AACPCrew
crew = AACPCrew(model="gpt-4.1-mini")
result = crew.run_workflow("payroll", period="2026-03")
print(result.summary())
Measured results
Department day comparison. 5 workflows. 59 coordination hops. gpt-4.1-mini. June 2026.
WITHOUT AACP WITH AACP
Coordination LLM calls: 59 0
Coordination cost: $0.0008 $0.0000
Agent cost: $0.0018 $0.0018
Total cost: $0.0025 $0.0018
Total saving: 30%
Coordination deterministic: NO YES
Schema validated: NO YES
Audit trail structured: NO YES
CrewAI's natural language task descriptions are more verbose than LangChain's by default, which is why the per-hop saving is higher. Both comparisons use the same 59-hop department day scope for a fair comparison.
The natural fit
CrewAI concept AACP concept
────────────── ────────────
Agent role DOM (HR, FIN, IT, SALES, CS)
Agent goal Workflow objective
Task description AACP packet content
Crew kickoff Orchestrator run
Without AACP vs With AACP
Without aacp-crewai (standard CrewAI):
Orchestrator
↓ "Retrieve all active employee salary records for March 2026.
Include employee ID, name, department, cost centre, base salary,
any changes this month, and pension rate. Return as JSON."
HR Agent ← verbose, varies every run
With aacp-crewai:
Orchestrator
↓ FETCH|HR|return:ORCHESTRATOR|p:1|aacp:1.1|res:emp_salary|period:2026-03
HR Agent ✓ validates. $0.00 encoding. Identical every run.
Comparison demo
python3 examples/comparison.py --mock
Workflows
# Payroll (5 hops)
crew.run_workflow("payroll", period="2026-03")
# IT provisioning / JML (6 hops)
crew.run_workflow("it_provisioning", username="j.smith", dept="Engineering")
# Sales qualification (5 hops)
crew.run_workflow("sales_qualification", lead_id="L-001")
Requirements
- Python 3.10+
OPENAI_API_KEYpip install aacp-crewai
Links
- Protocol spec: https://aacp.dev
- Python SDK: https://github.com/MackayAndrew/aacp
- LangChain integration: https://github.com/MackayAndrew/aacp-langchain
- Community rules (241): https://github.com/MackayAndrew/aacp-community-rules
- IETF Draft: https://datatracker.ietf.org/doc/draft-mackay-aacp/
Licence
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 aacp_crewai-0.1.0.tar.gz.
File metadata
- Download URL: aacp_crewai-0.1.0.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3171e87889213976f74710172db09d5df9e7f97914f617878aba68639f9a82b8
|
|
| MD5 |
2cf4066d02ac08270c9de236e7005856
|
|
| BLAKE2b-256 |
e987976c3badeb597eed81f64ffed5730b5e186caa6b60749eea9636d5d1c739
|
File details
Details for the file aacp_crewai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aacp_crewai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd17de7ee80f24777fe7c697b9e5f90ad83fdf37ea6e3fb150eca3ae1fc0bab1
|
|
| MD5 |
f55afb4bd3b2976467fbc7ef5a901821
|
|
| BLAKE2b-256 |
e45311055352b026a437ed82f0ab3be290bbb3c82bdc9e15fb88a85124cde560
|