Answer

data class Answer(val text: String, val confidence: Double, val grounding: List<String> = emptyList(), val negative: Boolean = false, val source: AnswerSource, val reasoning: String? = null)

An answer from the Oracle with grounding information.

Constructors

Link copied to clipboard
constructor(text: String, confidence: Double, grounding: List<String> = emptyList(), negative: Boolean = false, source: AnswerSource, reasoning: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Confidence in the answer (0.0-1.0)

Link copied to clipboard

Source proposition IDs that support this answer

Link copied to clipboard
val negative: Boolean = false

Whether this is a negative answer (e.g., "No, X does not...")

Link copied to clipboard
val reasoning: String? = null

Explanation of how the answer was derived

Link copied to clipboard

How the answer was derived

Link copied to clipboard

The answer in natural language