{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-analyze-conversation-jobs-input-schema.json",
  "title": "AnalyzeConversationJobsInput",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-analyze-conversations-api-openapi.yml#/components/schemas/AnalyzeConversationJobsInput",
  "type": "object",
  "properties": {
    "displayName": {
      "description": "Optional display name for the analysis job.",
      "type": "string"
    },
    "analysisInput": {
      "$ref": "#/$defs/MultiLanguageConversationAnalysisInput"
    },
    "tasks": {
      "description": "The set of tasks to execute on the input conversation.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/AnalyzeConversationLROTask"
      }
    }
  },
  "required": [
    "analysisInput",
    "tasks"
  ],
  "$defs": {
    "AnalyzeConversationLROTask": {
      "type": "object",
      "description": "The base class for an long running conversation input task.",
      "required": [
        "kind"
      ],
      "properties": {
        "kind": {
          "$ref": "#/$defs/AnalyzeConversationLROTaskKind"
        }
      },
      "allOf": [
        {
          "$ref": "common.json#/definitions/TaskIdentifier"
        }
      ]
    },
    "AnalyzeConversationLROTaskKind": {
      "type": "string",
      "description": "Enumeration of supported analysis tasks on a collection of conversation.",
      "enum": [
        "ConversationalPIITask",
        "ConversationalSummarizationTask",
        "CustomConversationalSummarizationTask",
        "ConversationalSentimentTask"
      ],
      "x-ms-enum": {
        "name": "AnalyzeConversationLROTaskKind",
        "modelAsString": true
      }
    },
    "Conversation": {
      "type": "object",
      "description": "A complete ordered set of utterances (spoken or written), by one or more speakers to be used for analysis.",
      "required": [
        "id",
        "language",
        "modality"
      ],
      "properties": {
        "id": {
          "description": "Unique identifier for the conversation.",
          "type": "string"
        },
        "language": {
          "description": "The language of the conversation item in BCP-47 format.",
          "type": "string"
        },
        "modality": {
          "$ref": "#/$defs/Modality"
        },
        "domain": {
          "$ref": "#/$defs/ConversationDomain"
        }
      }
    },
    "ConversationDomain": {
      "type": "string",
      "description": "Enumeration of supported conversational domains.",
      "enum": [
        "finance",
        "healthcare",
        "generic"
      ],
      "x-ms-enum": {
        "name": "ConversationDomain",
        "modelAsString": true
      }
    },
    "Modality": {
      "type": "string",
      "description": "Enumeration of supported conversational modalities.",
      "enum": [
        "transcript",
        "text"
      ],
      "x-ms-enum": {
        "name": "InputModality",
        "modelAsString": true
      }
    },
    "MultiLanguageConversationAnalysisInput": {
      "type": "object",
      "required": [
        "conversations"
      ],
      "properties": {
        "conversations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Conversation"
          }
        }
      }
    }
  }
}