MAP Docs
MAESTRO

SDKs

Rust, TypeScript and HTTP for MAESTRO.

Every operation on MAESTRO 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(
        "MAESTRO",
        "v1.0.0",
        "charter.declare",
        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:  'MAESTRO',
  version:   'v1.0.0',
  operation: 'charter.declare',
  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": "MAESTRO",
  "version": "v1.0.0",
  "operation": "charter.declare",
  "input": {
    "example": true
  },
  "tenant_id": "org_acme"
}

All operations

  • map.dispatch(...) with operation "charter.declare" — Declare a charter under which subsequent goals will be refined.
  • map.dispatch(...) with operation "goal.refine" — Refine a goal into an executable graph with dependency analysis.
  • map.dispatch(...) with operation "graph.commit" — Commit a refined execution graph as the active plan.
  • map.dispatch(...) with operation "graph.diff" — Diff two graph versions; surface added/removed/changed steps.
  • map.dispatch(...) with operation "graph.replan" — Replan a graph on deviation; reuses durable state where possible.
  • map.dispatch(...) with operation "dispatch.next" — Dispatch the next ready step under the active plan.
  • map.dispatch(...) with operation "outcome.report" — Report a step outcome; updates the plan and triggers cascades.
  • map.dispatch(...) with operation "credit.trace" — Trace credit and blame for a completed leg of the plan.
  • map.dispatch(...) with operation "query.goals" — Query active goals under a charter.

See SDKs for client construction, retry, trace propagation.

On this page