Omni.Answer.Predicate (Omni v2.0.0)

Copy Markdown View Source

The answer to an Omni.Question.Predicate.

%Omni.Answer.Predicate{probability: 0.91}

Struct fields

  • :probability - the probability, from 0 to 1, that the statement is true

Summary

Types

t()

The answer to a yes/no question.

Functions

Creates a predicate answer from a keyword list or map of fields.

Types

t()

@type t() :: %Omni.Answer.Predicate{probability: float()}

The answer to a yes/no question.

Functions

new(attrs)

@spec new(Enumerable.t()) :: t()

Creates a predicate answer from a keyword list or map of fields.