MARI
Internals
Crate path, key types, adjacent protocols for MARI.
MARI (Multi-Agent Research & Inquiry) lives in protocols/mari. This page covers where to find the implementation, the key Rust types, and how it composes with adjacent protocols.
Source
| Path | Contains |
|---|---|
protocols/mari/src/lib.rs | ProtocolModule impl, operation dispatch |
protocols/mari/src/protocol.rs | core protocol logic |
protocols/mari/src/types.rs | request/response types (derive schemars::JsonSchema) |
protocols/mari/tests/ | unit + integration tests |
schemas/mari/v1/ | published JSON Schemas |
ProtocolModule contract
impl ProtocolModule for MariProtocol {
fn protocol_name(&self) -> &'static str { "MARI" }
fn version(&self) -> &'static str { "v1.0.0" }
fn operations(&self) -> Vec<&'static str> {
vec![
"inquire",
"synthesize",
"uncertainty",
]
}
async fn invoke(&self, op: &str, payload: Value, ctx: &InvokeContext)
-> Result<Response, ProtocolError>
{
match op {
"inquire" => self.inquire(payload, ctx).await,
"synthesize" => self.synthesize(payload, ctx).await,
"uncertainty" => self.uncertainty(payload, ctx).await,
_ => Err(ProtocolError::UnknownOperation(op.into())),
}
}
}Adjacent
| Relation | Members |
|---|---|
| Consults | — |
| Records to | MAX · MOTET · MOMENT |
| Subject to | MAXIM · MOAT (cross-org) · MOOT (disputes) |
| Settled with | MEAL · MANA · MADE |
Status
Implemented · production-grade.
Tests
cargo test -p mari --all-featuresSee also
ProtocolModuletrait — the contract- Engine pipeline — the 8 stages
- Plugins — author your own