{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wso2/main/json-schema/wso2-aiservice-provider-response-schema.json",
  "title": "AIServiceProviderResponse",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wso2-aiserviceprovider-api-openapi.yml#/components/schemas/AIServiceProviderResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "readOnly": true
    },
    "name": {
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "apiVersion": {
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "builtInSupport": {
      "type": "boolean",
      "description": "Is built-in support"
    },
    "multipleModelProviderSupport": {
      "type": "boolean",
      "description": "Indicates whether the AI Service Provider supports multiple model providers.\nIf true, the AI Service Provider can support multiple model providers.\nIf false, the AI Service Provider supports only one model provider.\n"
    },
    "description": {
      "maxLength": 1023,
      "type": "string"
    },
    "configurations": {
      "type": "string",
      "description": "LLM Provider configurations"
    },
    "apiDefinition": {
      "type": "string",
      "description": "OpenAPI specification"
    },
    "modelProviders": {
      "type": "array",
      "description": "List of model providers supported by the AI Service Provider",
      "items": {
        "$ref": "#/$defs/ModelProvider"
      }
    },
    "deprecated": {
      "type": "boolean",
      "description": "Indicates if the LLM provider is deprecated"
    }
  },
  "$defs": {
    "ModelProvider": {
      "title": "Model Provider",
      "type": "object",
      "required": [
        "name",
        "models"
      ],
      "properties": {
        "models": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}