convert_pace
Convert running pace and speed between units like min/km, min/mile, km/h, and mph for training calculations.
Instructions
Convert between different pace and speed units.
Args: value: The numeric value to convert. from_unit: Source unit ("min_km", "min_mile", "kmh", "mph"). to_unit: Target unit ("min_km", "min_mile", "kmh", "mph").
Returns: dict: value (float): Converted numeric value. formatted (str): Human-readable formatted result. unit (str): Target unit descriptor.
Raises: ValueError: If from_unit or to_unit are not valid, or if conversion is not supported.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| from_unit | Yes | ||
| to_unit | Yes |