{
  "tool_id": "sweat_rate_calculator",
  "slug": "sweat-rate-calculator",
  "path": "/sweat-rate-calculator/",
  "mode": "engine_module",
  "usage": "Client-side calculator. Open https://aifithub.io/sweat-rate-calculator/ and fill in the inputs; results render in-browser. Also importable as ES module from https://aifithub.io/engines/sweat-rate-calculator.js — call compute(input) with the JSON shape below.",
  "methodology": "https://aifithub.io/methodology/sweat-rate-calculator/",
  "sample_input": {
    "tool": "sweat_rate_calculator",
    "pre_weight_kg": 70,
    "post_weight_kg": 69.2,
    "duration_minutes": 60,
    "fluid_consumed_ml": 500,
    "urine_produced_ml": 0
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "pre_weight_kg": {
        "type": "number"
      },
      "post_weight_kg": {
        "type": "number"
      },
      "duration_minutes": {
        "type": "number"
      },
      "fluid_consumed_ml": {
        "type": "number"
      },
      "urine_produced_ml": {
        "type": "number"
      }
    },
    "required": [
      "tool",
      "pre_weight_kg",
      "post_weight_kg",
      "duration_minutes",
      "fluid_consumed_ml",
      "urine_produced_ml"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "sweatRateLPerHr": {
        "type": "number",
        "description": "Sweat rate in litres per hour"
      },
      "totalFluidLostL": {
        "type": "number",
        "description": "Total fluid lost during exercise in litres"
      },
      "weightLostKg": {
        "type": "number",
        "description": "Body weight lost during exercise in kg"
      },
      "weightLostPercent": {
        "type": "number",
        "description": "Body weight lost as a percentage of pre-exercise weight"
      },
      "hydrationStatus": {
        "type": "string",
        "enum": [
          "well_hydrated",
          "mild_dehydration",
          "moderate_dehydration",
          "severe_dehydration"
        ],
        "description": "Hydration classification based on ACSM body weight loss thresholds"
      },
      "hydrationLabel": {
        "type": "string",
        "description": "Human-readable hydration classification label"
      },
      "fluidReplacePerHourMl": {
        "type": "number",
        "description": "Recommended fluid intake per hour for next session in mL (80% of sweat rate)"
      },
      "sodiumLossMgPerHr": {
        "type": "number",
        "description": "Estimated sodium loss per hour in mg (based on GSSI median of 920 mg/L)"
      },
      "recommendation": {
        "type": "string",
        "description": "Hydration recommendation based on dehydration level"
      }
    }
  }
}
