{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "@context": [
    "https://schemas.meta-aiml.org/v3.0.0/context.jsonld"
  ],
  "@id": "https://schemas.meta-aiml.org/v3.0.0/entity/generative_ai_platform.json",
  "$id": "https://schemas.meta-aiml.org/v3.0.0/entity/generative_ai_platform.json",
  "@type": "GenerativeAIPlatform",
  "schemaVersion": "3.0.0",
  "aimlVersion": "3.0.0",
  "title": "Generative AI Platform Entity Schema",
  "description": "v3 schema for generative AI service platforms that provide model inference, content generation, and applied AI workflows directly to end users and enterprise teams.",
  "examples": [
    {
      "description": "Enterprise AI workspace for text and code generation with usage controls",
      "reference": "generative_ai_platform_example_enterprise"
    },
    {
      "description": "Developer API platform for multimodal generation with safety controls",
      "reference": "generative_ai_platform_example_api"
    }
  ],
  "type": "object",
  "additionalProperties": false,
  "allOf": [
    {
      "$ref": "../ontology/digital_entity.json"
    },
    {
      "$ref": "../archetypes/direct_service.json"
    }
  ],
  "properties": {
    "@type": {
      "const": "GenerativeAIPlatform"
    },
    "ontologicalMode": {
      "const": "DigitalEntity"
    },
    "interactionArchetype": {
      "type": "array",
      "contains": {
        "const": "DirectService"
      },
      "items": {
        "type": "string",
        "enum": [
          "DirectService"
        ]
      }
    },
    "domain": {
      "const": "Technology"
    },
    "businessModel": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Subscription",
          "UsageBased",
          "Freemium",
          "EnterpriseLicense"
        ]
      }
    },
    "deliveryFormat": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "WebApp",
          "API",
          "MobileApp"
        ]
      }
    },
    "name": {
      "$ref": "../components/multilingual_format.json#/$defs/LocalizedText"
    },
    "description": {
      "$ref": "../components/multilingual_format.json#/$defs/LocalizedText"
    },
    "shortDescription": {
      "$ref": "../components/multilingual_format.json#/$defs/LocalizedTextOrString"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "foundingDate": {
      "type": "string",
      "format": "date"
    },
    "properties": {
      "type": "object",
      "properties": {
        "supportedModalities": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "text",
              "image",
              "audio",
              "video",
              "code",
              "multimodal"
            ]
          }
        },
        "modelHostingMode": {
          "type": "string",
          "enum": [
            "managed_only",
            "bring_your_model",
            "hybrid"
          ]
        },
        "supportsFineTuning": {
          "type": "boolean"
        },
        "supportsRagPipelines": {
          "type": "boolean"
        },
        "supportsCustomPolicies": {
          "type": "boolean"
        },
        "guardrailProfile": {
          "type": "string",
          "enum": [
            "basic",
            "standard",
            "strict"
          ]
        },
        "contactPoints": {
          "type": "array",
          "items": {
            "$ref": "../components/common_defs.json#/$defs/ContactPoint"
          }
        },
        "socialProfiles": {
          "type": "array",
          "items": {
            "$ref": "../components/common_defs.json#/$defs/SocialProfile"
          }
        },
        "identifiers": {
          "type": "array",
          "items": {
            "$ref": "../components/common_defs.json#/$defs/Identifier"
          }
        }
      }
    },
    "capabilities": {
      "type": "object",
      "required": [
        "interaction",
        "content"
      ],
      "properties": {
        "interaction": {
          "$ref": "../components/capability_groups.json#/$defs/InteractionCapabilities"
        },
        "content": {
          "$ref": "../components/capability_groups.json#/$defs/ContentCapabilities"
        },
        "financial": {
          "$ref": "../components/capability_groups.json#/$defs/FinancialCapabilities"
        },
        "community": {
          "$ref": "../components/capability_groups.json#/$defs/CommunityCapabilities"
        }
      }
    },
    "modules": {
      "type": "object",
      "properties": {
        "inference": {
          "type": "object",
          "properties": {
            "supportsBatchRequests": {
              "type": "boolean"
            },
            "supportsStreamingResponses": {
              "type": "boolean"
            },
            "latencyTieringEnabled": {
              "type": "boolean"
            }
          }
        },
        "safety": {
          "type": "object",
          "properties": {
            "moderationEnabled": {
              "type": "boolean"
            },
            "piiDetectionEnabled": {
              "type": "boolean"
            },
            "promptInjectionProtection": {
              "type": "boolean"
            }
          }
        },
        "observability": {
          "type": "object",
          "properties": {
            "tokenUsageAnalyticsEnabled": {
              "type": "boolean"
            },
            "costAttributionEnabled": {
              "type": "boolean"
            },
            "qualityFeedbackLoopEnabled": {
              "type": "boolean"
            }
          }
        }
      }
    },
    "structuralMetadata": {
      "type": "object",
      "properties": {
        "topology": {
          "const": "binary"
        },
        "roles": {
          "const": [
            "user",
            "platform"
          ]
        },
        "valueSource": {
          "const": "platform_provided"
        },
        "transactionFlow": {
          "const": "direct"
        },
        "networkEffects": {
          "const": "none"
        },
        "deliveryPattern": {
          "type": "string",
          "enum": [
            "request_response",
            "streaming",
            "agentic_hybrid"
          ]
        }
      }
    },
    "targetAudience": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "siteCapabilities": {
      "type": "object",
      "properties": {
        "supportedDevices": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "desktop",
              "mobile",
              "tablet"
            ]
          }
        },
        "languages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "accessibilityFeatures": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  },
  "required": [
    "@type",
    "ontologicalMode",
    "interactionArchetype",
    "domain",
    "name",
    "description",
    "deliveryFormat",
    "capabilities",
    "structuralMetadata",
    "modules"
  ],
  "validationMetadata": {
    "schemaVersion": "3.0.0",
    "phase": "entity",
    "status": "draft",
    "lastValidated": "2026-02-20T12:00:00Z",
    "validator": "META-AIML QA"
  },
  "semanticAnnotations": {
    "classificationRationale": "GenerativeAIPlatform is modeled as DigitalEntity because generation and orchestration are software-native. DirectService applies because the platform itself provides model capabilities directly to users.",
    "disambiguationNotes": "Different from AI model marketplaces that mediate third-party providers. This schema represents first-party model-serving and generation services."
  },
  "governanceMetadata": {
    "entityVersion": "3.0.0",
    "introducedIn": "META-AIML v3.0.0",
    "stabilityLevel": "draft",
    "sdkValidationRules": [
      "RULE-GAI-001: @type MUST equal \"GenerativeAIPlatform\"",
      "RULE-GAI-002: ontologicalMode MUST equal \"DigitalEntity\"",
      "RULE-GAI-003: interactionArchetype MUST contain \"DirectService\"",
      "RULE-GAI-004: capabilities.interaction MUST be present",
      "RULE-GAI-005: structuralMetadata.transactionFlow MUST equal \"direct\"",
      "RULE-GAI-006: supportedModalities SHOULD be explicitly declared"
    ]
  }
}
