Type Alias: DecisionNoulQuestion
ts
type DecisionNoulQuestion = {
type: "noul";
instruction: string | LlamaText;
criteria?: {
true: string;
false: string;
};
};Defined in: evaluator/LlamaDecisionContext/types.ts:17
A question that can be answered with a yes or no.
See
Using Structured Decisions tutorial
Properties
type
ts
type: "noul";Defined in: evaluator/LlamaDecisionContext/types.ts:18
instruction
ts
instruction: string | LlamaText;Defined in: evaluator/LlamaDecisionContext/types.ts:25
The instruction describing how to answer the question.
For example, Did we talk about an animal in this chat?.
criteria?
ts
optional criteria: {
true: string;
false: string;
};Defined in: evaluator/LlamaDecisionContext/types.ts:37
Optional description of the criteria for whether the answer is true or false.
true
ts
true: string;false
ts
false: string;Example
ts
{
true: "The chat mentioned an animal",
false: "The chat did not mention an animal"
}