Skip to main content

Foundation Protocol (FP) reference Python runtime

Project description

Foundation Protocol

English | 中文 | 한국어 | 日本語 | Español | Tiếng Việt

GitHub Stars License Docs arXiv HuggingFace

A Python runtime for multi-entity AI collaboration — agents, humans, and tools on a shared protocol layer.

AI-Link-Net is a full-stack application built on this protocol.

Features

  • Unified entity model — agents, humans, tools, and services share a common identity and addressing system
  • Multi-party sessions — structured collaboration with strict lifecycle enforcement and event replay
  • Policy & governance — checkpoint hooks with provenance recording for trust and access control
  • Trade & payment — contracts, escrow, settlement, and dispute resolution via state machines
  • Federation — local and remote entity routing across distributed host nodes

Manifesto

https://github.com/user-attachments/assets/ceab2515-b8f2-47ec-8d7f-10452759c32a

Installation

Recommended: install the stable release from PyPI:

pip install foundation-protocol

Developers can install the latest source from GitHub:

pip install "foundation-protocol @ git+https://github.com/FoundationAgents/foundation-protocol.git"

Usage

import asyncio
from fp import EntityKind, Host, Message, MessageKind

async def main():
    host = Host(name="LocalHost")

    alice = host.register_entity(name="Alice", kind=EntityKind.HUMAN)
    bot = host.register_entity(name="Bot", kind=EntityKind.AGENT)

    await alice.send_message(
        to=bot.entity_card,
        message=Message(kind=MessageKind.INVOKE, payload={"text": "Hello!"}),
    )

asyncio.run(main())

See the example/ directory for more scenarios including cross-host messaging, MCP tool integration, and trade workflows.

Documentation

Full documentation is published at foundationagents.github.io/foundation-protocol. Quick links:

License

MIT

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

foundation_protocol-0.1.0.tar.gz (451.9 kB view details)

Uploaded Source

Built Distribution

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

foundation_protocol-0.1.0-py3-none-any.whl (78.1 kB view details)

Uploaded Python 3

File details

Details for the file foundation_protocol-0.1.0.tar.gz.

File metadata

  • Download URL: foundation_protocol-0.1.0.tar.gz
  • Upload date:
  • Size: 451.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for foundation_protocol-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b5e06d8494f202b97ebde0f9639e5bb61a9c947cbe93ae39fef096a40c71f053
MD5 ae7f2beea471825927d1debf09f4f488
BLAKE2b-256 c033b2030df811320a4a4c931f8df215f3e76bc83f8a8f3f506c69b055127740

See more details on using hashes here.

Provenance

The following attestation bundles were made for foundation_protocol-0.1.0.tar.gz:

Publisher: release.yml on FoundationAgents/foundation-protocol

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file foundation_protocol-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for foundation_protocol-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3ea819086697f1f502702be2a52588137a1e0565a28ff8ae78da23964f2fdaa
MD5 c688f2c16642f497f511ad9b07593331
BLAKE2b-256 c1d7168631de93fa5573fb347014b48c5b1d12a154909c766de6cce1a225053d

See more details on using hashes here.

Provenance

The following attestation bundles were made for foundation_protocol-0.1.0-py3-none-any.whl:

Publisher: release.yml on FoundationAgents/foundation-protocol

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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