{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-explanation-request-schema.json",
  "title": "ExplanationRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-ai-api-openapi.yml#/components/schemas/ExplanationRequest",
  "type": "object",
  "properties": {
    "ansibleExtensionVersion": {
      "type": "string",
      "title": "Ansible vscode/vscodium extension version",
      "description": "User's installed Ansible extension version, in format vMAJOR.MINOR.PATCH",
      "pattern": "v?\\d+\\.\\d+\\.\\d+"
    },
    "content": {
      "type": "string",
      "title": "Playbook content",
      "description": "The playbook that needs to be explained."
    },
    "customPrompt": {
      "type": "string",
      "default": "",
      "title": "Custom prompt",
      "description": "Custom prompt passed to the LLM when explaining a playbook."
    },
    "explanationId": {
      "type": "string",
      "format": "uuid",
      "title": "Explanation ID",
      "description": "A UUID that identifies the particular explanation data is being requested for."
    },
    "model": {
      "type": "string",
      "default": ""
    },
    "metadata": {
      "$ref": "#/$defs/Metadata"
    }
  },
  "required": [
    "content"
  ],
  "$defs": {
    "Metadata": {
      "type": "object",
      "properties": {
        "ansibleExtensionVersion": {
          "type": "string",
          "title": "Ansible vscode/vscodium extension version",
          "description": "User's installed Ansible extension version, in format vMAJOR.MINOR.PATCH",
          "pattern": "v?\\d+\\.\\d+\\.\\d+"
        }
      }
    }
  }
}