{
  "tool_id": "sweat_rate_electrolyte_marathon",
  "slug": "sweat-rate-electrolyte-marathon",
  "path": "/sweat-rate-electrolyte-marathon/",
  "mode": "engine_module",
  "usage": "Client-side calculator. Open https://aifithub.io/sweat-rate-electrolyte-marathon/ and fill in the inputs; results render in-browser. Also importable as ES module from https://aifithub.io/engines/sweat-rate-electrolyte-marathon.js — call compute(input) with the JSON shape below.",
  "methodology": "https://aifithub.io/methodology/sweat-rate-electrolyte-marathon/",
  "sample_input": {
    "tool": "sweat_rate_electrolyte_marathon",
    "pre_weight_kg": 70,
    "post_weight_kg": 68.5,
    "fluid_consumed_ml": 800,
    "duration_minutes": 240,
    "climate": "temp"
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "pre_weight_kg": {
        "type": "number"
      },
      "post_weight_kg": {
        "type": "number"
      },
      "fluid_consumed_ml": {
        "type": "number"
      },
      "duration_minutes": {
        "type": "number"
      },
      "climate": {
        "type": "string"
      }
    },
    "required": [
      "tool",
      "pre_weight_kg",
      "post_weight_kg",
      "fluid_consumed_ml",
      "duration_minutes",
      "climate"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "fluidIntakePerHourMl": {
        "type": "number"
      },
      "sodiumPerHourMg": {
        "type": "number"
      },
      "sweatRateLPerHour": {
        "type": "number"
      },
      "totalSweatLossL": {
        "type": "number"
      },
      "bodyMassLossPct": {
        "type": "number"
      },
      "riskFlag": {
        "type": "string",
        "enum": [
          "ok",
          "watch",
          "danger"
        ]
      },
      "preRacePlanMl": {
        "type": "number"
      },
      "postRacePlanMl": {
        "type": "number"
      },
      "notes": {
        "type": "array"
      }
    }
  }
}
