@returns {UserInput[]}
(prompt)
| 84 | |
| 85 | /** @returns {UserInput[]} */ |
| 86 | function buildTurnInput(prompt) { |
| 87 | return [{ type: "text", text: prompt, text_elements: [] }]; |
| 88 | } |
| 89 | |
| 90 | function shorten(text, limit = 72) { |
| 91 | const normalized = String(text ?? "").trim().replace(/\s+/g, " "); |