Skip to main content

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

openagentmesh-0.1.0.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

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

openagentmesh-0.1.0-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

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

Hashes for openagentmesh-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f6645e4c161f6bfb5958d178c9790b1d40e640a2ffe4c8090f2c5411cca6ed6f
MD5 86712a308714e8a84e4030c9c9361f48
BLAKE2b-256 2d94cd98d85f5d767e5a22f8fc8eb1ec8de0108c91c0a53bf12a6e2c253f20ed

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on openagentmesh/openagentmesh

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

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

Hashes for openagentmesh-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 549f1bafb23ece1b57bb521bf663ec5b8853e5c77f85df42d40c79bb6a765209
MD5 91d2faca7ee4f137513438ca73425a8e
BLAKE2b-256 86007a62682f977ee3bda0fa756efe5e7c25d5f949568dd34fe193a8ce7e128e

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on openagentmesh/openagentmesh

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