feat(ai): support predicate criteria in decisions (#62819)

This commit is contained in:
Aiden Cline
2026-11-08 22:25:31 -06:00
committed by GitHub
Unverified
parent f29228b003
commit fee1ca5aa9
9 changed files with 144 additions and 4 deletions
+3
View File
@@ -115,6 +115,9 @@ export const PredicateQuestion = Schema.Struct({
type: Schema.Literal("predicate"),
name: QuestionName,
instructions: Schema.String,
criteria: Schema.Struct({ true: Schema.String.pipe(optional), false: Schema.String.pipe(optional) })
.pipe(optional)
.annotate(description("What counts as true and as false, for statements the instructions alone leave ambiguous")),
}).annotate({ identifier: "Generate.PredicateQuestion", description: "The probability that a statement is true" })
export interface ChoiceQuestion extends Schema.Schema.Type<typeof ChoiceQuestion> {}