Skip to main content

PACT: Protocol for Agent Collaboration & Transfer

Project description

NeuroBloom.ai is building resilient infrastructure for the future of agent communication and coordination.

We believe the next evolution of AI won't be dominated by monolithic models—but by networks of agents that understand intent, cooperate intelligently, and recover gracefully.

Our open-source protocol, PACT (Protocol for Agent Collaboration & Transfer), lays the foundation for this future.

We’re not just building software—we're building trust, interoperability, and invisible systems that last.

Join us in shaping agent ecosystems that are resilient, ethical, and collaborative by design.

🧩 PACT

Protocol for Agent Collaboration & Transfer (PACT) — Building the universal, lightweight communication layer for intelligent agents.

PACT Logo


🧩 PACT

Build Status License Issues PRs Last Commit


🌍 Vision

In an increasingly agent-driven world, PACT provides a simple, open, and scalable protocol for intent translation and agent interoperability — enabling diverse AI agents, platforms, and services to collaborate seamlessly.

"Let every agent have its mind... PACT translates their intents."

Why PACT Matters?:

PACT exists to replace confusion with clarity. To transform fragmented systems into collaborative ecosystems. So builders can spend less time duct-taping intent and more time building tools that matter.


🌍 Current Protocol Landscape at a Glance

Protocol Focus Type Owned By Strength
MCP (Model Context Protocol) App ↔ Model Vertical Anthropic Context & Tool Enrichment
A2A (Agent2Agent) Agent ↔ Agent Horizontal Google Multi-agent Coordination
PACT (Protocol for Agent Collaboration & Transfer) Agent ↔ Agent Horizontal + Middleware Vendor-neutral Intent Translation & Interop

🔍 How PACT Compares to Other Protocols

Feature PACT MCP (Model Context Protocol) A2A (Agent-to-Agent)
Focus Intent translation & platform adaptation Model-to-tool communication Agent-to-agent collaboration
Complexity Lightweight Medium Comprehensive
ML Integration Built-in Limited Optional
Error Handling Extensive Basic Extensive
Implementation Simple Complex Complex
Use Case Cross-platform messaging Tool augmentation Complex agent interactions

🚀 Quickstart

Installation

git clone https://github.com/aknbloom/pact_adapter_mvp.git
cd pact_adapter_mvp
pip install -r requirements.txt
uvicorn main:app --reload

Usage

Send a POST request to the /translate endpoint:

curl -X POST http://localhost:8000/translate \
  -H 'Content-Type: application/json' \
  -d '{
    "pact_version": "0.1",
    "message_id": "abc123",
    "timestamp": "2025-04-14T12:00:00Z",
    "sender": { "agent_id": "agent-A", "platform": "Dialogflow" },
    "recipient": { "agent_id": "agent-B", "platform": "Rasa" },
    "session": { "session_id": "xyz-123", "context": {} },
    "payload": {
      "intent": "check_order_status",
      "entities": { "order_id": "A123456" },
      "text": "Where is my order?"
    }
  }'

Example Response:

{
  "translated_message": {
    "intent": "order.lookup",
    "entities": {
      "order_id": "A123456"
    },
    "text": "Where is my order?"
  }
}

🧩 System Architecture

Architecture

PACT As a Translation Layer

PACT As a Translation Layer

The following diagram illustrates the PACT message flow:

PACT Flow Diagram

  • PACT GatewayML Intent ClassifierIntent TranslatorAgent RouterAdapter LayerTarget AgentResponse Handler
  • Resilient design with fallbacks for low-confidence intents, adapter failures, and timeouts.

Key components:

  • PACT Gateway: Validates incoming message envelope format
  • ML Intent Classifier: Determines intent with confidence score
  • Intent Translator: Maps between different intent naming formats
  • Agent Router: Selects appropriate target agent
  • Adapter Layer: Converts to target platform's message format
  • Target Agent: Processes the intent and generates a response
  • Response Handler: Wraps response in standard PACT envelope
  • Resilient Design: Built-in fallback mechanisms for low-confidence intents, timeouts, and adapter failures
  • Platform-Agnostic: Works with any conversational AI platform

Protocol design isn't just about what works — it's about what fails gracefully and secures trust at every layer. How PACT's security and resilience loop works (e.g., Inputs → Threat Modeling → Protocol Refinement → Resilience Mechanisms)?

PACT’s-security-focuse

📦 Docker Deployment

docker build -t pact-adapter .
docker run -p 8000:8000 pact-adapter

🛠 Features

  • FastAPI webhook endpoint /translate
  • Static intent mapping (easily extendable)
  • Lightweight PACT envelope format
  • Ready for extension with ML intent classifiers
  • Docker-ready deployment
  • Postman collection for local testing

PACT Protocol

📍 Project Roadmap

See our development goals and priorities in the Roadmap.


🚀 Getting Started

New to PACT? Begin with our Quick Start Guide for a 5-minute onboarding experience.


📚 Tutorials


🤝 Contributing

We welcome contributions!

  • Fork the repository
  • Submit a PR
  • Help extend PACT toward a true open communication standard

See CONTRIBUTING.md for full guidelines.

Good first issues:

  • Extend adapter to support new platforms (Intercom, Zendesk)
  • Add dynamic intent learning capabilities
  • Enhance error and fallback handling

📄 License

MIT License - See LICENSE for full text.


📬 Connect

For ideas, discussions, or collaborations:

Together, let's build the protocol layer for agent collaboration. 🌍

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pact_protocol-0.1.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pact_protocol-0.1.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pact_protocol-0.1.2.tar.gz.

File metadata

  • Download URL: pact_protocol-0.1.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for pact_protocol-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e811b49c291ac80b8e1b9fa841e00f199454ad4e60d54c1905e20302432b23b4
MD5 de5e3f23211558d417611429b332ba96
BLAKE2b-256 99d362c3c7689c6eea4bc4b0cbf78fac465659ba54b4b905bb388be11e4d78ce

See more details on using hashes here.

File details

Details for the file pact_protocol-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pact_protocol-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for pact_protocol-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80288fedc40541fafc136d3d5026b54bb20d86f49ab219b283291ec7c2faaec1
MD5 107221ab242f0908caf0a1ce920f6a83
BLAKE2b-256 79ab6e80637fb5b847c5985da30a597bf69b072eb40c7ad798dec4ac8d1ef02e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page