{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Nano AI Conversation Examples",
  "description": "Schema for nano-ai-conversation-examples.json",
  "type": "object",
  "required": ["conversations", "categories"],
  "properties": {
    "generated_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the file was generated"
    },
    "conversations": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/conversation"
      }
    },
    "categories": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/category"
      }
    }
  },
  "definitions": {
    "conversation": {
      "type": "object",
      "required": ["id", "category", "title", "user_message", "ai_response", "result", "traditional_method_time", "nano_time"],
      "properties": {
        "id": { "type": "string" },
        "category": { "type": "string" },
        "title": { "type": "string" },
        "time_saved_seconds": { "type": "integer" },
        "time_saved_minutes": { "type": "integer" },
        "user_message": { "type": "string" },
        "ai_response": { "type": "string" },
        "follow_up": {
          "type": "object",
          "properties": {
            "user_message": { "type": "string" },
            "ai_response": { "type": "string" }
          },
          "required": ["user_message", "ai_response"]
        },
        "follow_up_2": {
          "type": "object",
          "properties": {
            "user_message": { "type": "string" },
            "ai_response": { "type": "string" }
          },
          "required": ["user_message", "ai_response"]
        },
        "result": { "type": "string" },
        "traditional_method_time": { "type": "string" },
        "nano_time": { "type": "string" }
      }
    },
    "category": {
      "type": "object",
      "required": ["id", "name"],
      "properties": {
        "id": { "type": "string" },
        "name": { "type": "string" },
        "icon": { "type": "string" },
        "color": { "type": "string" }
      }
    }
  }
}
