generate_solution
Generates an optimal solution for a competitive programming problem in the specified programming language, with optional extra constraints or hints.
Instructions
Generate an optimal solution for the problem in the requested language.
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": {
"problem": "<problem>"
},
"name": "generate_solution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Optional extra constraints, details, or hints. | |
| problem | Yes | The full text of the problem description. | |
| language | No | Programming language (python, cpp, java, rust, etc.). | python |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||