Reference Design

The Agent Mesh

A composable mesh of micro-agents orchestrated by routers, planners, supervisors, and validators.

Orchestrator patterns

Router → tool-calling agent. Planner → executes chain. Supervisor → monitors + retries. Validator → enforces schema and policy.

Router

Classifies intent and chooses the right micro-agent.

Planner

Breaks goals into steps and dispatches tasks.

Supervisor

Monitors execution, retries, and fallbacks.

Validator

Ensures outputs match schema and policies.

Reference architecture diagram

Request Router Planner Extractor Writer Policy Validator

Interfaces

Interfaces are JSON schemas, function signatures, and policies that define what an agent can do.

{
  "agent": "ValidatorAgent",
  "inputs": {
    "schema": "json_schema",
    "candidate_output": "object",
    "policy": "compliance_rules"
  },
  "outputs": {
    "valid": "boolean",
    "violations": "string[]",
    "normalized_output": "object"
  },
  "tools": ["schema.check", "policy.redact"],
  "policy": ["no external calls"],
  "eval": ["schema valid", "no PII leakage"]
}

Composability patterns

Pipelines

A → B → C transform chain.

Fan-out

A → {B, C, D} in parallel.

Router

Classify intent → choose agent.

Supervisor

Retries + fallback agent.

Validator

Ensure schema + constraints.