Return shape for the AiOnTurnCallback continuation. Provide message to continue, or set done: true (or return null from the callback) to stop.
message
done: true
Optional
When true, the conversation stops and the current state is returned. Takes precedence over message.
Next user message to send. When supplied (and non-blank), the conversation continues with this message as the next user turn.
Return shape for the AiOnTurnCallback continuation. Provide
messageto continue, or setdone: true(or return null from the callback) to stop.Example: ```javascript B.ai.call({ message: "Start the intake interview.", onTurn: (result) => result.text.includes("DONE") ? { done: true } : { message: nextAnswerFor(result.text) }, }); ```