Generate execution-verified code
soma_generate_verified_codeGenerate code for a coding task and verify it by running against tests in an isolated sandbox, returning PASS/FAIL verdicts with a certificate. Provide example input/output pairs to enable verification.
Instructions
Ask Soma to write code for a task. When the task is verifiable, the returned code has been executed against derived tests in an isolated sandbox before it is returned, and a certificate (verdict + tests passed) is attached. Include concrete examples in the prompt (e.g. doctest-style '>>> f(2) == 4') to make the result verifiable rather than best-effort.
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": {
"prompt": "<prompt>"
},
"name": "soma_generate_verified_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The coding task. Include example input/output pairs to enable verification. | |
| max_tokens | No | Maximum output tokens (default 1500). |