{
  "$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-role-request-schema.json",
  "title": "GenerationRoleRequest",
  "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/GenerationRoleRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "default": "",
      "title": "the name of the role",
      "description": "You can force a specific role name for the role with this key."
    },
    "text": {
      "type": "string",
      "title": "the goal of the role",
      "description": "Can be in one or a few sentences. WCA will do HAP filtering as appropriate, and reject input above a certain HAP threshold."
    },
    "outline": {
      "type": "string",
      "default": "",
      "title": "an outline of the role",
      "description": "An outline of the role should be a numbered list."
    },
    "createOutline": {
      "type": "boolean",
      "default": false,
      "title": "generate outline",
      "description": "Indicates whether the answer should also include an outline of the Ansible Role."
    },
    "additionalContext": {
      "type": "object",
      "additionalProperties": true,
      "title": "inline suggestions",
      "description": "Parameter use for the inline suggestions."
    },
    "fileTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "default": [
        "task",
        "default"
      ],
      "title": "file types",
      "description": "The file types generated by the model. Default is ['task', 'default']. The file type name is based on the inner role directories, without the trailing 's'"
    },
    "generationId": {
      "type": "string",
      "format": "uuid",
      "title": "generation ID",
      "description": "A UUID that identifies the particular generation data is being requested for."
    },
    "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+"
        }
      }
    }
  }
}