MAP Docs
MOON

SDKs

Rust, TypeScript and HTTP for MOON.

Every operation on MOON is reachable from every shipped SDK plus the raw HTTP wire.

Rust

use map_sdk::Client;
use serde_json::json;

let client = Client::from_env()?;
let resp = client
    .dispatch(
        "MOON",
        "v1.0.0",
        "submit_manifest",
        json!({
  "example": true
}),
    )
    .await?;
println!("{:#?}", resp);

TypeScript

import { MapClient } from '@l1fe/map';

const map = new MapClient({
  apiKey:   process.env.MAP_API_KEY!,
  agentDid: process.env.MAP_AGENT_DID!,
  tenantId: 'org_acme'
});

const resp = await map.dispatch({
  protocol:  'MOON',
  version:   'v1.0.0',
  operation: 'submit_manifest',
  input:     {
  "example": true
}
});

HTTP wire

POST /v1/dispatch HTTP/2
Host: api.multiagentic.dev
Authorization: Bearer $MAP_API_KEY
X-Agent-Did: $MAP_AGENT_DID
X-Tenant-Id: org_acme
Content-Type: application/json

{
  "protocol": "MOON",
  "version": "v1.0.0",
  "operation": "submit_manifest",
  "input": {
    "example": true
  },
  "tenant_id": "org_acme"
}

All operations

  • map.dispatch(...) with operation "submit_manifest" — Submit a workflow manifest; journaled from the first instruction.
  • map.dispatch(...) with operation "execute_workflow" — Dispatch a durable workflow with replayable journal.
  • map.dispatch(...) with operation "workflow_status" — Query the status of a running or completed workflow.
  • map.dispatch(...) with operation "agent_deployment_status" — Query the deployment status of an agent worker.
  • map.dispatch(...) with operation "scale_deployment" — Scale a deployment up or down under capability scope.
  • map.dispatch(...) with operation "update_manifest" — Update a workflow manifest; versioned with diff against prior.

See SDKs for client construction, retry, trace propagation.

On this page