Type Alias: EvaluationQuestion
EvaluationQuestion = {
criteria:Readonly<Record<string,EvaluationInput|null>>;instructions:EvaluationInput;type:"choice"; } | {criteria: readonly (EvaluationInput|null)[];instructions:EvaluationInput;type:"score"; } | {criteria?: {false?:EvaluationInput|null;true?:EvaluationInput|null; };instructions:EvaluationInput;type:"boolean"; }
Defined in: packages/workflow-engine/src/ai/types.ts:183
One judgment to make about the shared state.
choice: pick one of the named options incriteria.score: place the state on an ordered scale;criterialists the levels from lowest to highest (at least two).boolean: the probability that the statement ininstructionsis true.criteriais optional; when given, bothtrueandfalsemust be.
Union Members
Type Literal
{ criteria: Readonly<Record<string, EvaluationInput | null>>; instructions: EvaluationInput; type: "choice"; }
criteria
readonlycriteria:Readonly<Record<string,EvaluationInput|null>>
Option name to description. At least one option.
instructions
readonlyinstructions:EvaluationInput
type
readonlytype:"choice"
Type Literal
{ criteria: readonly (EvaluationInput | null)[]; instructions: EvaluationInput; type: "score"; }
criteria
readonlycriteria: readonly (EvaluationInput|null)[]
Ordered levels, lowest first, indexed from zero.
instructions
readonlyinstructions:EvaluationInput
type
readonlytype:"score"
Type Literal
{ criteria?: { false?: EvaluationInput | null; true?: EvaluationInput | null; }; instructions: EvaluationInput; type: "boolean"; }