Python SDK for agent-to-agent communication based on the Open Agent Mesh Protocol
Project description
OpenAgentMesh
Connect agents like you'd call an API
OpenAgentMesh is the fabric for multi-agent systems. It makes coding complex interaction patterns as simple as writing REST endpoints.
It's an SDK with batteries included:
- Request/reply, pub/sub, and event streaming
- Typed contracts with self-discovery
- Shared KV and Object stores
No hardcoded interactions, full decoupling.
Quickstart
1. Start the mesh:
oam mesh up
2. Register an agent (agent.py):
from pydantic import BaseModel
from openagentmesh import AgentMesh, AgentSpec
mesh = AgentMesh()
class EchoInput(BaseModel):
message: str
class EchoOutput(BaseModel):
reply: str
@mesh.agent(AgentSpec(name="echo", description="Echoes a message back."))
async def echo(req: EchoInput) -> EchoOutput:
return EchoOutput(reply=f"Echo: {req.message}")
mesh.run()
python agent.py
3. Discover and call it from the terminal:
oam mesh catalog
oam agent contract echo
oam agent call echo '{"message": "hello"}'
No hardcoded addresses. The CLI discovers echo from the mesh, reads its contract, and calls it.
Documentation
See the full docs here (or run uv run zensical serve locally).
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
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 openagentmesh-0.1.0.tar.gz.
File metadata
- Download URL: openagentmesh-0.1.0.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6645e4c161f6bfb5958d178c9790b1d40e640a2ffe4c8090f2c5411cca6ed6f
|
|
| MD5 |
86712a308714e8a84e4030c9c9361f48
|
|
| BLAKE2b-256 |
2d94cd98d85f5d767e5a22f8fc8eb1ec8de0108c91c0a53bf12a6e2c253f20ed
|
Provenance
The following attestation bundles were made for openagentmesh-0.1.0.tar.gz:
Publisher:
publish.yml on openagentmesh/openagentmesh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openagentmesh-0.1.0.tar.gz -
Subject digest:
f6645e4c161f6bfb5958d178c9790b1d40e640a2ffe4c8090f2c5411cca6ed6f - Sigstore transparency entry: 1342653211
- Sigstore integration time:
-
Permalink:
openagentmesh/openagentmesh@3df37f3a8511de429b40cea80f0ff213b843bead -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/openagentmesh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3df37f3a8511de429b40cea80f0ff213b843bead -
Trigger Event:
push
-
Statement type:
File details
Details for the file openagentmesh-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openagentmesh-0.1.0-py3-none-any.whl
- Upload date:
- Size: 33.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
549f1bafb23ece1b57bb521bf663ec5b8853e5c77f85df42d40c79bb6a765209
|
|
| MD5 |
91d2faca7ee4f137513438ca73425a8e
|
|
| BLAKE2b-256 |
86007a62682f977ee3bda0fa756efe5e7c25d5f949568dd34fe193a8ce7e128e
|
Provenance
The following attestation bundles were made for openagentmesh-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on openagentmesh/openagentmesh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openagentmesh-0.1.0-py3-none-any.whl -
Subject digest:
549f1bafb23ece1b57bb521bf663ec5b8853e5c77f85df42d40c79bb6a765209 - Sigstore transparency entry: 1342653216
- Sigstore integration time:
-
Permalink:
openagentmesh/openagentmesh@3df37f3a8511de429b40cea80f0ff213b843bead -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/openagentmesh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3df37f3a8511de429b40cea80f0ff213b843bead -
Trigger Event:
push
-
Statement type: