score

suspend fun DecisionModel.score(state: String, instructions: String, levels: List<String>): Answer.Score

Asks for a rating of state on the scale of levels, described from the lowest to the highest.

val anger = model.score(email.body, "How angry is the customer?", listOf("Calm", "Annoyed", "Furious")).score

Throws

when the call fails.