isYes

suspend fun DecisionModel.isYes(state: String, instructions: String): Answer.YesNo

Asks a yes/no question about state. Read Answer.YesNo.isYes, or compare Answer.YesNo.probability with a line of your own.

if (model.isYes(reply, "Does this reply promise a refund?").probability > 0.9) ...

Throws

when the call fails.