A Zod-schema and TypeScript type package that defines the core domain entities, request/response shapes, and environment configuration for the agent-mesh multi-agent orchestrator ecosystem. It exports 15+ validated schemas and types (e.g., `IncomingRequestSchema`, `ContextPacketSchema`, `CircuitBreakerStateSchema`) along with shared constants, with `zod` as its only runtime dependency.
Status: Pre-1.0 — APIs may change in minor versions. Pin to a specific version in production.
Core domain types, Zod validation schemas, environment configuration, and shared constants for the agent-mesh multi-agent orchestrator. This package is the single source of truth for all protocol shapes used throughout the @reaatech/agent-mesh-* ecosystem.
15+ exported types and Zod schemas — every domain entity has a matching runtime validation schema
Environment configuration — Zod-validated env object with 30+ configurable variables, fail-fast on missing required vars
Shared constants — service metadata, TTLs, size limits, rate-limit headers, SSRF protection patterns, and Pub/Sub collection names
Zero runtime dependencies beyond zod — lightweight and tree-shakeable
Dual ESM/CJS output — works with import and require
Quick Start
typescript
import { IncomingRequestSchema, type IncomingRequest, AgentResponseSchema, type AgentResponse,} from "@reaatech/agent-mesh";// Validate an incoming request at the boundaryconst raw = JSON.parse(req.body);const parsed = IncomingRequestSchema.parse(raw);// Validate an agent's response before returning to the userconst agentResponse = AgentResponseSchema.parse({ content: "I've reset your password. Check your email.", workflow_complete: true,});
Exports
Request / Response Types
Export
Description
IncomingRequestSchema / IncomingRequest
Validated HTTP request body for /v1/request
EmployeeProfileSchema / EmployeeProfile
Resolved user identity from profile systems
AgentResponseSchema / AgentResponse
Validated agent response with content, workflow_complete, and workflow_state