Skip to main content

axiomesh

Environment Design Pattern (EDP) + Model Environment Protocol (MEP)

OneOrigine / ImperialSchool Research — I.S. License

"A perfect balance between rationality and probability is necessary to fully leverage the logic of artificial intelligence." — Seikatsu-One

Install

pip install axiomesh
pip install axiomesh[ollama]     # + local Ollama
pip install axiomesh[all]        # + all LLM providers

Quick start — Multi-agent CLI

# Interactive school scenario (admin + teacher + accountant)
axiomesh-cli --demo
axiomesh-cli --scenario school --model gemma3:12b
axiomesh-cli --scenario bank
axiomesh-cli --scenario drone

# Run a task file
axiomesh-cli --task school_demo.axm

# Generate a demo task file
axiomesh-cli --gen-task --scenario school

Chat mode commands

Command Description
/agents List all active agents
/focus admin Direct chat to the admin agent
/focus all Broadcast mode (all agents)
/broadcast <msg> Send goal to ALL agents simultaneously
/ctx Show context + harmony-ranked actions
/switch fin accountant Switch accountant to financial context
/task file.axm Run a task file
/spawn analyst fin Spawn a new agent
/impact Session impact matrix
/causal Causal graph (DOT)
/why student.enroll Causal trace
/savoir SAVOIR knowledge base
/export Export session JSON

Task files (.axm)

# school_demo.axm
@agent admin
@context admin
@goal Add student Alice Chen

@parallel
@agent admin @context enrl
@agent admin : Enroll student STU001 courseId=CRS001

@agent accountant @context fin
@agent accountant : Process fee payment studentId=STU001
@end

Python API

from axiomesh import Environment, Context, Action, Reaction, Element
from axiomesh import MepGateway, SenseVector, Circumstance, EnvironmentKind, ContextKind

env = Environment("MyEnv", EnvironmentKind.REACTIVE)
ctx = env.create_context("Main", ContextKind.SEMANTIC,
      basis=SenseVector.normative("operations", 0.9))

# Add action
async def handler(actor, payload, ctx, frame):
    return Reaction.ok("my.action", f"Done: {payload}")

ctx.reg(Action("my.action", "command", "Do something",
               SenseVector.normative("action", 0.9), handler=handler))

# MEP gateway
gw      = MepGateway(env)
session = gw.connect("agent-1")
envelope = gw.build_envelope(session, actor, ctx)
reaction = await gw.dispatch(session, actor, "my.action", {}, ctx)

Mathematical Foundations

  • Central equation: E_{t+1} = 𝔘(E_t, 𝔯(x,c,Σ, 𝔄(x,c,Σ,Γ,Ψ(D,c,Σ))))
  • Harmony: H = α·cos(A,C) + β·cos(A,S) + γ·cos(R̂,R) − δ·D
  • Admissibility: Adm(a) = ∧_{γ∈Γ_a} γ(E,c,Σ,x)
  • Optimum: a* = argmax_{a∈Avail} H(a,c,s)

Metadata

Release files for axiomesh 4.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for axiomesh 4.2.0
File Size Uploaded
axiomesh-4.2.0.tar.gz 65.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for axiomesh 4.2.0
File Interpreter ABI Platform
axiomesh-4.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 133.3 kB

Release files / axiomesh-4.2.0.tar.gz

Download URL axiomesh-4.2.0.tar.gz
Size 65.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6e5b40a1459cc50038a7a19671f943d75e537a41f028c95a22880cce7c19377b
BLAKE2b-256 checksum
How to use checksums
3572fadbab4cd22ae0a44a825270add92f72a0a4d73b185bd9494a7a703f98b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / axiomesh-4.2.0-py3-none-any.whl

Download URL axiomesh-4.2.0-py3-none-any.whl
Size 67.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdbaff93e5e47a0f040868450cdef71e00bee9649b0303f39b2b4461a70689a8
BLAKE2b-256 checksum
How to use checksums
f7677e4071ac1fcfa8826e4d5c38f912278d6ece81e45b44702050c63f5fabe8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

4.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page