Unit conversion library with pytest tests
submit_unit_conversion_libraryProduce a standard-library Python module that converts a quantity between named units of length, mass and temperature, plus pytest tests. Choose this when you need to convert a quantity between named units of length, mass or temperature and want the factors exact and the result reproducible, delivered as a module with tests. Do not choose this when you need a unit outside the declared set, currency conversion, or dimensional analysis over compound units such as kilograms per cubic metre: the template covers the units it names and rejects the rest rather than approximating. Example requests: Write a Python module that converts between metric and imperial units with tests. | I need a unit converter for metres, feet, kilograms and pounds that is exact. | Generate a unit-conversion module covering length, mass and temperature and prove it with pytest. | Convert units and measurements: take a quantity in metres, feet, kilograms or pounds and return it in another named unit, with tests.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputs": "<inputs>",
"authorized_by": "<authorized_by>"
},
"name": "submit_unit_conversion_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | ||
| quote_id | No | The quote_id returned by POST /v1/jobs. Required to authorize a priced capability; the service rejects a priced job that does not name the quote it issued. | |
| authorized_by | Yes | Identifier of the human or agent authorizing this job. | |
| accepted_price | No | The amount accepted, exactly as quoted (for example "5.00" or 5). Checked against the stored quote, so a price that moved between quote and authorize is refused rather than silently absorbed. Optional, but sent to make the acceptance explicit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote | No | ||
| state | Yes | ||
| job_id | Yes | ||
| artifacts | No | ||
| access_token | No | Per-job credential. Present it as the X-Job-Token header to read the job or list it. Keep it; it is the only credential for this job. | |
| verification | No | Independent verification. verification.ok = false means the job failed, not a partial success. | |
| capability_id | No |