ChoiceAnswer

org.llm4s.jev.ChoiceAnswer
final case class ChoiceAnswer(choice: String, probabilities: Map[String, Double], confidence: Double) extends JevAnswer

The answer to a JevQuestion.Choice.

Value parameters

choice

the highest-probability option

confidence

how certain the model is, from 0 to 1, derived from the distribution (not the same thing as the probability of the choice)

probabilities

every option with its probability; the API says they sum to 1, which is not re-checked here because the values are rounded on the wire

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait JevAnswer
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product