(n)
| 29 | // subtasks (each >30s on this model), 4.2.6's 30s default would time out; 4.2.7 |
| 30 | // gives delegation-capable scripts 10min, so it should complete. |
| 31 | const promptFor = (n) => |
| 32 | 'Call the `program` tool exactly once, now, with these arguments, then stop.\n\nArguments:\n' + |
| 33 | JSON.stringify({ |
| 34 | type: 'script', |
| 35 | language: 'javascript', |
| 36 | source: script(n), |
| 37 | }); |
| 38 | |
| 39 | const agent = await Agent.create(CONFIG); |
| 40 |