{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anomalyarmor-ai/json-schema/anomalyarmor-ai-prompt-create-schema.json",
  "title": "PromptCreate",
  "description": "Model for creating a new prompt.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anomalyarmor-ai-admin-prompts-api-openapi.yml#/components/schemas/PromptCreate",
  "properties": {
    "name": {
      "type": "string",
      "title": "Name",
      "description": "Prompt name"
    },
    "description": {
      "type": "string",
      "title": "Description",
      "description": "Prompt description"
    },
    "category": {
      "type": "string",
      "title": "Category",
      "description": "Prompt category"
    },
    "system_prompt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "System Prompt",
      "description": "System message for LLM"
    },
    "user_prompt_template": {
      "type": "string",
      "title": "User Prompt Template",
      "description": "User prompt template with variables"
    },
    "subcategory": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subcategory",
      "description": "Subcategory for more specific classification"
    },
    "model_preferences": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Preferences",
      "description": "Preferred models and settings"
    },
    "parameters": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parameters",
      "description": "LLM parameters (temperature, max_tokens, etc)"
    },
    "input_variables": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Input Variables",
      "description": "List of expected template variables"
    },
    "output_format": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Format",
      "description": "Expected output structure"
    },
    "status": {
      "type": "string",
      "title": "Status",
      "description": "Prompt status",
      "default": "draft"
    },
    "is_default": {
      "type": "boolean",
      "title": "Is Default",
      "description": "Set as default for category",
      "default": false
    },
    "test_inputs": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Test Inputs",
      "description": "Sample inputs for testing"
    },
    "expected_outputs": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expected Outputs",
      "description": "Expected outputs for validation"
    }
  },
  "type": "object",
  "required": [
    "name",
    "description",
    "category",
    "user_prompt_template"
  ]
}