units.convert
Convert physical quantities between compatible units using a decimal magnitude string; unknown or mismatched dimensions return errors, and Celsius/Fahrenheit require the temperature tool.
Instructions
pint 로 물리 단위를 변환한다. magnitude 는 Decimal 문자열, from_unit 과 to_unit 은 pint 단위 이름(meter, foot, km 등)이고 차원이 다르거나 모르는 단위는 오류이다. 결과 magnitude 는 문자열이며 1E+3 같은 지수 표기가 나올 수 있다. 섭씨·화씨는 끝자리 오차가 생기므로 units.temperature 를 쓴다.
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 |