MAX
SDKs
Rust, TypeScript and HTTP for MAX.
Every operation on MAX 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(
"MAX",
"v1.0.0",
"audit_log_entry",
json!({
"event_type": "demo",
"meta": {
"note": "hello world"
}
}),
)
.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: 'MAX',
version: 'v1.0.0',
operation: 'audit_log_entry',
input: {
"event_type": "demo",
"meta": {
"note": "hello world"
}
}
});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": "MAX",
"version": "v1.0.0",
"operation": "audit_log_entry",
"input": {
"event_type": "demo",
"meta": {
"note": "hello world"
}
},
"tenant_id": "org_acme"
}All operations
map.dispatch(...)with operation"audit_log_entry"— Append a record to the chain with hash chaining and signature.map.dispatch(...)with operation"audit_query"— Query the chain by predicate; supports time-travel and structured filters.map.dispatch(...)with operation"traceability_graph"— Reconstruct the traceability graph for a request or decision.map.dispatch(...)with operation"explainability_request"— Produce a human-readable explanation of a recorded decision.map.dispatch(...)with operation"compliance_report"— Generate a compliance report for a period and policy set.map.dispatch(...)with operation"health_check"— Audit-chain health: integrity, lag, partition status.
See SDKs for client construction, retry, trace propagation.