{
  "$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-generation-playbook-request-schema.json",
  "title": "GenerationPlaybookRequest",
  "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/GenerationPlaybookRequest",
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "title": "Description content",
      "description": "The description that needs to be converted to a playbook."
    },
    "customPrompt": {
      "type": "string",
      "default": "",
      "title": "Custom prompt",
      "description": "Custom prompt passed to the LLM when generating the text of a playbook."
    },
    "generationId": {
      "type": "string",
      "format": "uuid",
      "title": "generation ID",
      "description": "A UUID that identifies the particular generation data is being requested for."
    },
    "createOutline": {
      "type": "boolean",
      "default": false,
      "title": "generate outline",
      "description": "Indicates whether the answer should also include an outline of the Ansible Playbook."
    },
    "outline": {
      "type": "string",
      "default": "",
      "description": "A long step by step outline of the expected Ansible Playbook."
    },
    "wizardId": {
      "type": "string",
      "format": "uuid",
      "title": "wizard ID",
      "description": "A UUID to track the succession of interaction from the user."
    },
    "model": {
      "type": "string"
    },
    "metadata": {
      "$ref": "#/$defs/Metadata"
    }
  },
  "required": [
    "text"
  ],
  "$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+"
        }
      }
    }
  }
}