npastype
Cast a NumPy array to a specified data type, returning a copy with the target dtype.
Instructions
Copy of the array, cast to a specified type.
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": {
"array": "<array>",
"dtype": "<dtype>"
},
"name": "npastype"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | The input array. | |
| dtype | Yes | The target dtype. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |