{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.connectsoft.ai/reference/schemas/blueprint-agent-microservice.schema.json",
  "title": "Agent Microservice Standard Blueprint (blueprint-agent-microservice-v1)",
  "description": "Descriptor document of the Agent Microservice Standard Blueprint kind (BC-02). Validated by BlueprintService; metadata per blueprint-common.schema.json; generation outputs and validation rules per model/blueprints.yaml.",
  "type": "object",
  "required": [
    "metadata",
    "template",
    "framework",
    "agentManifestRef",
    "modelProfiles",
    "tools",
    "agentCard"
  ],
  "additionalProperties": false,
  "properties": {
    "metadata": {
      "$ref": "blueprint-common.schema.json#/$defs/Metadata"
    },
    "template": {
      "type": "object",
      "required": [
        "id",
        "version"
      ],
      "properties": {
        "id": {
          "enum": [
            "connectsoft-ai-agent"
          ]
        },
        "version": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "framework": {
      "enum": [
        "maf"
      ]
    },
    "agentManifestRef": {
      "type": "string"
    },
    "modelProfiles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "sideEffectClass"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "sideEffectClass": {
            "$ref": "blueprint-common.schema.json#/$defs/SideEffectClass"
          },
          "approvalClass": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "agentCard": {
      "type": "object",
      "required": [
        "exposed"
      ],
      "properties": {
        "exposed": {
          "type": "boolean"
        },
        "skills": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "mcpServers": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "registered"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "registered": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      }
    },
    "durability": {
      "enum": [
        "orleans-journal-adr-0024"
      ]
    }
  }
}
