Skip to main content

NMP (NeuroMessage Protocol) — Open communication protocol for multi-agent systems with behavioral modulation signals.

Project description

NMP — NeuroMessage Protocol

Open communication protocol for multi-agent AI systems with behavioral modulation.

NMP is to agent communication what HTTP is to web communication — but with built-in behavioral signals. While MCP handles tool access and A2A handles agent coordination, NMP carries intention, modulation, and accountability alongside data.

Quick Start

pip install nmp-protocol
from nmp import create_message, TrustLevel, validate_message

# Create an NMP message with behavioral signals
msg = create_message(
    from_agent="router",
    to_agent="legal-analyzer",
    content="Analyze this contract for risk clauses",
    trust=TrustLevel.VERIFIED,
)

# Modulate behavioral signals
msg.signals.urgency = 0.7      # Time-critical
msg.signals.quality = 0.9      # High analysis depth needed
msg.signals.inhibition = 0.0   # No blocking needed

# Validate
errors = validate_message(msg)
assert not errors

# Serialize
json_str = msg.to_json()

6 Behavioral Signals

Signal Range Biological Analog Purpose
urgency [0, 1] Noradrenaline Processing speed (Yerkes-Dodson curve)
quality [0, 1] Serotonin Analysis depth
inhibition [0, 1] GABA Blocking / pausing
activation [0, 1] Glutamate Processing intensity
focus [0, 1] Acetylcholine Context narrowing
reward [-0.5, 1] Dopamine Feedback signal

Trust Levels

Trust can only decrease through a pipeline: min(current_trust, source_trust)

Level Value Meaning
HOSTILE 0 Known malicious source
UNTRUSTED 1 Unknown / unverified
VERIFIED 2 Authenticated but not fully trusted
TRUSTED 3 Fully trusted internal agent

Specification

Full spec: nmp-protocol.org

Reference implementations: Python (this package), TypeScript, Go

License

Apache 2.0. Spec licensed under CC BY-SA 4.0.

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

nmp_protocol-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

nmp_protocol-1.0.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file nmp_protocol-1.0.0.tar.gz.

File metadata

  • Download URL: nmp_protocol-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for nmp_protocol-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4fcdf91d12b0168b47f6ae3645628ddaf55b1340a4d69c5c650dd9bb833d8dda
MD5 6d31a07fe73a67a20040ab74fa6913c1
BLAKE2b-256 a0bfd0c2d00584f056c1ef843f778b70d239015489c8d536768b935918d15f27

See more details on using hashes here.

File details

Details for the file nmp_protocol-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nmp_protocol-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for nmp_protocol-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fb6ddc2f1d590fc9f0e0720f4db14d35fa6036fb0292a03e825ed3fe242e97a
MD5 5d820301ad526723c3239dd511f983fb
BLAKE2b-256 686174b9008de97af69446c5159cd55d13e58599ea2eb562b4d7c0efd9c2a427

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