units.energy_convert
Converts energy values between J, kJ, cal, kcal, eV, BTU, Wh, and kWh using J-based Decimal factors, returning the converted magnitude and unit.
Instructions
에너지 단위를 J 기준 Decimal 계수로 변환한다. 지원 단위는 J, kJ, cal, kcal, eV, BTU, Wh, kWh 이며 대소문자를 구분하고 magnitude 는 Decimal 문자열이다. cal 은 열화학 칼로리(4.184 J)이고 결과는 magnitude 와 unit 이다. 목록에 없는 단위(MJ, 국제표 칼로리 등)는 오류이다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_unit | Yes | ||
| from_unit | Yes | ||
| magnitude | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| magnitude | Yes |