{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TestHogResultItem",
  "title": "TestHogResultItem",
  "type": "object",
  "properties": {
    "event_uuid": {
      "type": "string",
      "description": "UUID of the $ai_generation event."
    },
    "trace_id": {
      "type": "string",
      "nullable": true,
      "description": "Trace ID if available."
    },
    "input_preview": {
      "type": "string",
      "description": "First 200 chars of the generation input."
    },
    "output_preview": {
      "type": "string",
      "description": "First 200 chars of the generation output."
    },
    "result": {
      "type": "boolean",
      "nullable": true,
      "description": "True = pass, False = fail, null = N/A or error."
    },
    "reasoning": {
      "type": "string",
      "nullable": true,
      "description": "Hog evaluation reasoning string, if any."
    },
    "error": {
      "type": "string",
      "nullable": true,
      "description": "Error message if the Hog code raised an exception."
    }
  },
  "required": [
    "error",
    "event_uuid",
    "input_preview",
    "output_preview",
    "reasoning",
    "result"
  ]
}