(l)
| 1313 | |
| 1314 | // The answer text itself: the `result` event, and the interactive fallback. |
| 1315 | const ev = (l) => JSON.parse(l); |
| 1316 | checkIs('final answer comes from the result event', |
| 1317 | finalAnswerText([ev(done()), { type: 'result', result: 'the answer' }]), 'the answer'); |
| 1318 | checkIs('…else the last main-thread assistant text', finalAnswerText([ |