MAXIM
SDKs
Rust, TypeScript and HTTP for MAXIM.
Every operation on MAXIM 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(
"MAXIM",
"v1.0.0",
"deliberate_dilemma",
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: 'MAXIM',
version: 'v1.0.0',
operation: 'deliberate_dilemma',
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": "MAXIM",
"version": "v1.0.0",
"operation": "deliberate_dilemma",
"input": {
"example": true
},
"tenant_id": "org_acme"
}All operations
map.dispatch(...)with operation"deliberate_dilemma"— Reason over a moral dilemma using evidence, policy, and precedent; outputs a deliberation chain.map.dispatch(...)with operation"constitutional_interpretation"— Map a mandate to the constitutional constraints that bind it.map.dispatch(...)with operation"mandate_enforcement"— Execute judgment with MACE signatures; records to MAX with full reasoning.map.dispatch(...)with operation"health_check"— Service health and constitutional state.map.dispatch(...)with operation"metrics"— Service metrics: deliberation latency, mandate volume, refusal rate.
See SDKs for client construction, retry, trace propagation.