two_sum
Calculates the sum of two numbers by invoking a native C++ kernel, returning the result for simple arithmetic tasks.
Instructions
求两数之和(spawn C++ 内核 native/001.exe)
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": {
"nums": "<nums>",
"target": "<target>"
},
"name": "two_sum"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nums | Yes | ||
| target | Yes |