Foundation Protocol (FP) reference Python runtime
Project description
Foundation Protocol
English | 中文 | 한국어 | 日本語 | Español | Tiếng Việt
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:
- Quickstart — install and run a two-entity exchange
- Checkpoint Pipeline — the trust and governance seam
- Trade & Trust — contracts, arbitration, reputation
- Security Notes — known boundaries and risks
License
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5e06d8494f202b97ebde0f9639e5bb61a9c947cbe93ae39fef096a40c71f053
|
|
| MD5 |
ae7f2beea471825927d1debf09f4f488
|
|
| BLAKE2b-256 |
c033b2030df811320a4a4c931f8df215f3e76bc83f8a8f3f506c69b055127740
|
Provenance
The following attestation bundles were made for foundation_protocol-0.1.0.tar.gz:
Publisher:
release.yml on FoundationAgents/foundation-protocol
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
foundation_protocol-0.1.0.tar.gz -
Subject digest:
b5e06d8494f202b97ebde0f9639e5bb61a9c947cbe93ae39fef096a40c71f053 - Sigstore transparency entry: 1860767900
- Sigstore integration time:
-
Permalink:
FoundationAgents/foundation-protocol@2ea04c25363a495fde13166779c90b6a7c3c3780 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/FoundationAgents
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2ea04c25363a495fde13166779c90b6a7c3c3780 -
Trigger Event:
push
-
Statement type:
File details
Details for the file foundation_protocol-0.1.0-py3-none-any.whl.
File metadata
- Download URL: foundation_protocol-0.1.0-py3-none-any.whl
- Upload date:
- Size: 78.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3ea819086697f1f502702be2a52588137a1e0565a28ff8ae78da23964f2fdaa
|
|
| MD5 |
c688f2c16642f497f511ad9b07593331
|
|
| BLAKE2b-256 |
c1d7168631de93fa5573fb347014b48c5b1d12a154909c766de6cce1a225053d
|
Provenance
The following attestation bundles were made for foundation_protocol-0.1.0-py3-none-any.whl:
Publisher:
release.yml on FoundationAgents/foundation-protocol
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
foundation_protocol-0.1.0-py3-none-any.whl -
Subject digest:
f3ea819086697f1f502702be2a52588137a1e0565a28ff8ae78da23964f2fdaa - Sigstore transparency entry: 1860768048
- Sigstore integration time:
-
Permalink:
FoundationAgents/foundation-protocol@2ea04c25363a495fde13166779c90b6a7c3c3780 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/FoundationAgents
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2ea04c25363a495fde13166779c90b6a7c3c3780 -
Trigger Event:
push
-
Statement type: