{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anomalyarmor-ai/json-schema/anomalyarmor-ai-agent-message-request-schema.json",
  "title": "AgentMessageRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anomalyarmor-ai-agent-api-openapi.yml#/components/schemas/AgentMessageRequest",
  "properties": {
    "session_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Id"
    },
    "message": {
      "type": "string",
      "maxLength": 10000,
      "minLength": 1,
      "title": "Message"
    },
    "asset_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Asset Id"
    },
    "auto_approve": {
      "type": "boolean",
      "title": "Auto Approve",
      "default": true
    },
    "history": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/AgentHistoryTurn"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "History"
    }
  },
  "type": "object",
  "required": [
    "message"
  ],
  "$defs": {
    "AgentHistoryTurn": {
      "properties": {
        "role": {
          "type": "string",
          "maxLength": 32,
          "title": "Role"
        },
        "content": {
          "type": "string",
          "maxLength": 10000,
          "minLength": 1,
          "title": "Content"
        }
      },
      "type": "object",
      "required": [
        "role",
        "content"
      ],
      "title": "AgentHistoryTurn",
      "description": "One prior conversation turn replayed by the public demo (R1)."
    }
  }
}