AI ยท console.warn
the AI ask() returned no narrative text; nothing to show. Ensure your ask() resolves to a string or { text } for a narrative prompt.
Printed by AI, prefixed [lattice], since 1.42.0.
Warnings reference › ai:narrative:empty
- Identifier
ai:narrative:empty- Raised by
- AI
- Since
- 1.42.0
What happened
The model loop finished with no text: your ask() resolved to something with no text, or to an empty string. There is nothing to reconcile and nothing to paint, so the narrative is empty. Tool calls may still have run - this is about the final answer, not the intermediate steps.
The fix
Return a string, or an object with a text property, from ask(). A provider SDK usually needs its response unwrapped before it is returned.
The smallest fix
createAI(grid, { ask: async (prompt) => (await llm.complete(prompt)).text });
Reference
Covered in full at the API reference.