MAP Docs
MARC

SDKs

Rust, TypeScript and HTTP for MARC.

Every operation on MARC 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(
        "MARC",
        "v1.0.0",
        "reasoning_task",
        json!({
  "intent": "demo reasoning task",
  "budget": {
    "tokens": 4096,
    "deadline_ms": 8000
  }
}),
    )
    .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:  'MARC',
  version:   'v1.0.0',
  operation: 'reasoning_task',
  input:     {
  "intent": "demo reasoning task",
  "budget": {
    "tokens": 4096,
    "deadline_ms": 8000
  }
}
});

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": "MARC",
  "version": "v1.0.0",
  "operation": "reasoning_task",
  "input": {
    "intent": "demo reasoning task",
    "budget": {
      "tokens": 4096,
      "deadline_ms": 8000
    }
  },
  "tenant_id": "org_acme"
}

All operations

  • map.dispatch(...) with operation "reasoning_task" — Submit a bounded reasoning task. Returns a derivation tree with citations and confidence band.
  • map.dispatch(...) with operation "publish_model" — Register a reasoning model artifact in MARS under the calling org.
  • map.dispatch(...) with operation "share_model" — Share a published model with another org under a MOAT treaty.
  • map.dispatch(...) with operation "causal_analysis" — Compute P(Y | do(X)) over a Bayesian world-model snapshot from MIND.

See SDKs for client construction, retry, trace propagation.

On this page