MxJSON unifies API definitions, prompts, workflows, and UI rendering into a single JSON protocol. Package and distribute AI capabilities like container images. MxJSON 将 API 定义、提示词、工作流、UI 渲染统一为 JSON 协议。像容器镜像一样封装和分发 AI 能力。
{
"$mxjson": "1.0",
"meta": {
"name": "Contract Review",
"description": "AI-powered contract analysis"
},
"input": {
"document": { "type": "file", "accept": ".pdf,.docx" }
},
"ai": {
"provider": "openai",
"model": "gpt-4o",
"prompt": "Analyze contract risks..."
},
"output": {
"risks": "array",
"score": "number",
"summary": "string"
}
}One JSON protocol that covers everything from API generation to UI rendering.一个 JSON 协议,覆盖从 API 生成到 UI 渲染的全流程。
Auto-generate endpoints, documentation, and deployment logic from protocol definitions.从协议定义自动生成接口、文档和部署逻辑。
Standardized prompts with variable injection and template management.支持变量注入的标准化提示词模板管理。
Serial, parallel, and branching logic with human-in-the-loop support.支持串行、并行、分支逻辑,内置人机协作。
Deploy across platforms like container images. Cloud or on-premise.像容器镜像一样跨平台部署,支持云端或私有化。
Render interactive interfaces directly from protocol definitions.根据协议定义自动渲染交互界面。
Enforce structured JSON responses from LLMs for deterministic results.强制大模型返回结构化 JSON,确保输出确定性。
No vendor lock-in. Move AI assets between clouds like container images.无厂商锁定。AI 资产像容器镜像一样跨云迁移。
Human-in-the-loop controls and comprehensive audit logs for compliance.人机协作控制和完整审计日志,满足合规要求。
Protocol-driven development. Write JSON, deliver complete AI solutions.协议驱动开发。写 JSON 即交付完整 AI 方案。
Write .mxjson file编写 .mxjson 文件
Set models & variables设置模型和变量
Runtime invokes AIRuntime 调用 AI
Auto-generate UI自动生成 UI
Contract review, risk assessment, compliance checking.合同审核、风险评估、合规检查。
Triage, records processing, decision support.智能分诊、病历处理、决策辅助。
Citizen service, policy consultation, workflow automation.市民服务、政策咨询、流程自动化。
Report generation, market analysis, document processing.报告生成、市场分析、文档处理。
Quality control, predictive maintenance, supply chain.质量控制、预测维护、供应链。
Personalized learning, auto grading, content generation.个性化学习、自动批改、内容生成。