Answers to the questions of a decision.
Omni.decide/3 returns an Omni.Decision whose :answers is a keyword
list aligned with its questions, one answer per question:
Omni.Answer.Predicate- answers anOmni.Question.PredicateOmni.Answer.Choice- answers anOmni.Question.ChoiceOmni.Answer.Score- answers anOmni.Question.ScoreOmni.Answer.Refusal- the model declined the question
Pattern match on the struct:
case decision.answers[:team] do
%Omni.Answer.Choice{choice: team} -> route(team)
%Omni.Answer.Refusal{} -> route(:manual)
end
Summary
Types
@type t() :: Omni.Answer.Predicate.t() | Omni.Answer.Choice.t() | Omni.Answer.Score.t() | Omni.Answer.Refusal.t()
An answer to a decision question.