Skip to content

Type Alias: DecisionScoreAnswer<Question> ​

ts
type DecisionScoreAnswer<Question> = {
  type: "score";
  score: number;
  confidence: number;
  probabilities: ToProbabilities<Question["criteria"]>;
};

Defined in: evaluator/LlamaDecisionContext/types.ts:143

Type Parameters ​

Type Parameter
Question extends DecisionScoreQuestion

Properties ​

type ​

ts
type: "score";

Defined in: evaluator/LlamaDecisionContext/types.ts:144


score ​

ts
score: number;

Defined in: evaluator/LlamaDecisionContext/types.ts:151

The score assigned to the input based on the given criteria.

Will be a number from 0 to the maximum defined level index in the criteria array.


confidence ​

ts
confidence: number;

Defined in: evaluator/LlamaDecisionContext/types.ts:156

The model's confidence in the assigned score, represented as a number between 0 and 1.


probabilities ​

ts
probabilities: ToProbabilities<Question["criteria"]>;

Defined in: evaluator/LlamaDecisionContext/types.ts:161

The probabilities assigned to each possible score level, represented as numbers between 0 and 1.