mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 18:57:17 +03:00
feat(ai): support predicate criteria in decisions (#62819)
This commit is contained in:
committed by
GitHub
Unverified
parent
f29228b003
commit
fee1ca5aa9
@@ -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> {}
|
||||
|
||||
Reference in New Issue
Block a user