ChoiceAnswer
data class ChoiceAnswer @JvmOverloads constructor(val choice: String, val probabilities: Map<String, Double>, val confidence: Double? = null) : Answer
The answer to a Choice question.
Types
Link copied to clipboard
class Builder
Fluent builder for ChoiceAnswer, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.
Properties
Functions
Link copied to clipboard
Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.