{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-cognitive-services/json-schema/microsoft-cognitive-services-rai-tool-label-result-schema.json",
  "title": "RaiToolLabelResult",
  "description": "The list of Cognitive Services RAI Tool Labels.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-cognitive-services-raitoollabels-api-openapi.yml#/components/schemas/RaiToolLabelResult",
  "type": "object",
  "properties": {
    "nextLink": {
      "type": "string",
      "description": "The link used to get the next page of RaiToolLabels."
    },
    "value": {
      "type": "array",
      "description": "The list of RAI Tool Labels.",
      "items": {
        "$ref": "#/$defs/RaiToolLabel"
      },
      "x-ms-identifiers": [
        "name"
      ]
    }
  },
  "$defs": {
    "RaiToolLabel": {
      "type": "object",
      "description": "Cognitive Services RAI Tool Label resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/RaiToolLabelProperties",
          "description": "Properties of the RAI Tool Label."
        },
        "etag": {
          "type": "string",
          "description": "Resource Etag.",
          "readOnly": true
        },
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "RaiToolLabelProperties": {
      "type": "object",
      "description": "RAI Tool Label properties.",
      "properties": {
        "toolConnectionName": {
          "type": "string",
          "description": "The unique tool connection name, e.g., 'Web_Search'."
        },
        "accountScope": {
          "$ref": "#/$defs/RaiToolLabelPropertiesAccountScope",
          "description": "Account-level tool label definition."
        },
        "projectScopes": {
          "type": "array",
          "description": "List of project-level tool label definitions.",
          "items": {
            "$ref": "#/$defs/RaiToolLabelPropertiesProjectScopesItem"
          }
        }
      },
      "required": [
        "toolConnectionName"
      ]
    },
    "RaiToolLabelPropertiesAccountScope": {
      "type": "object",
      "description": "Account-level tool label definition.",
      "properties": {
        "labelValues": {
          "type": "object",
          "description": "Dictionary of label key-value pairs for the account scope.",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "RaiToolLabelPropertiesProjectScopesItem": {
      "type": "object",
      "properties": {
        "project": {
          "type": "string",
          "description": "Project name to which this scope applies."
        },
        "labelValues": {
          "type": "object",
          "description": "Dictionary of label key-value pairs for the project scope.",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "required": [
        "project",
        "labelValues"
      ]
    }
  }
}