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.
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). |