Skip to main content

A protocol for autonomous LLM agents to navigate complex toolsets via semantic landmarks.

Project description

Elemm: The Landmark Manifest Protocol

PyPI version License Python versions

The high-performance communication framework for autonomous LLM agents.

Elemm is the Landmark Manifest Protocol, a high-performance communication framework designed to bridge the gap between static tool definitions and autonomous complex reasoning. By utilizing Semantic Landmarks and Manifest-Driven Discovery, Elemm optimizes token consumption, reduces execution latency, and provides a robust self-healing framework for agentic workflows.


Core Advantages

Standard protocols like MCP often struggle with large-scale toolsets. Elemm provides a structural solution:

  • Efficient Discovery: Agents only see a high-level manifest, loading detailed tool schemas only when needed.
  • Atomic Sequencing: Execute multiple tool calls in a single LLM turn with native variable piping ($step0.id).
  • SmartRepair Engine: Built-in error handling that provides agents with actionable remedies instead of cryptic stack traces.
  • Token Economy: Reduces input tokens by up to 90% in complex forensic and administrative scenarios.

Documentation


Quick Start

1. Install

pip install elemm[fastapi]  # Includes web server support

2. Create a Landmark Server

Elemm uses a decorator-based approach to turn standard Python functions into high-performance landmarks.

from elemm import ElemmGateway
from pydantic import BaseModel

gateway = ElemmGateway(name="SystemControl")

class SecurityRequest(BaseModel):
    node_id: str
    urgent: bool = False

@gateway.action(landmark="Security")
async def quarantine_node(request: SecurityRequest):
    """Quarantines a compromised server node."""
    return {"status": "success", "node": request.node_id}

if __name__ == "__main__":
    # Runs an Elemm-compliant API server
    gateway.run(port=8000)

Advanced Usage

  • Pydantic Discovery: Elemm automatically generates schemas from Pydantic models.
  • Raw Integration: Access the manifest as a dictionary via gateway.manager.get_manifest_dict() for custom LLM wrappers.
  • Self-Healing: The SmartRepair engine provides agents with actionable remedies (e.g., correct parameter names) when errors occur.

3. Connect to an Agent

Use the provided MCP bridge to connect your Elemm server to any MCP-compatible agent (e.g. Claude Desktop):

"elemm": {
  "command": "python3",
  "args": ["-m", "elemm.integrations.mcp_bridge", "http://localhost:8000"]
}

License

Copyright (C) 2026 Marc Stöcker. GPLv3 License. See LICENSE for details.

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

elemm-1.0.1.tar.gz (46.5 kB view details)

Uploaded Source

Built Distribution

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

elemm-1.0.1-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

Details for the file elemm-1.0.1.tar.gz.

File metadata

  • Download URL: elemm-1.0.1.tar.gz
  • Upload date:
  • Size: 46.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for elemm-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1b7f07d217eadfd419f6b4f36f9a359f613dfdd2cba93935b0264677f34b60b5
MD5 58714d5cbd03bd6d08567126818bdf7f
BLAKE2b-256 b8bb4b92a91efee14236c41a49d75b20e4656c4afb1e84dc1bf313a71b15de3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for elemm-1.0.1.tar.gz:

Publisher: workflow.yml on v3rm1ll1on/elemm

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

File details

Details for the file elemm-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: elemm-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 50.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for elemm-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c082ac352619f48a11df3d5e1e0272f46fabc96a6ae546ef736b180cae26d5e
MD5 31a65997da5ffad8615db43121a8745f
BLAKE2b-256 e92276d40b3d44d8c6506ae2ba4be14e3fb079211a3979d59946a3fb87c9e81b

See more details on using hashes here.

Provenance

The following attestation bundles were made for elemm-1.0.1-py3-none-any.whl:

Publisher: workflow.yml on v3rm1ll1on/elemm

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