pub enum Question {
Noul {
instructions: Guidance,
criteria: Option<NoulCriteria>,
},
Choice {
instructions: Guidance,
criteria: IndexMap<String, Guidance>,
},
Score {
instructions: Guidance,
criteria: Vec<Guidance>,
},
}Expand description
One question sent to the model: noul, choice, or score.
See the crate-level documentation for the three primitives. Construct these
through Questions::builder (validated) or #[derive(Decision)] (validated at
compile time); there is no public unchecked constructor.
Variants§
Noul
A yes/no question. criteria is optional: the schema requires only type and
instructions.
Fields
§
criteria: Option<NoulCriteria>Optional per-branch criteria clarifying what counts as “true” or “false”.
Choice
A single-select question over a fixed, ordered option set.
Fields
Score
A question that places the state on an ordered scale.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Question
Auto Trait Implementations§
impl Freeze for Question
impl RefUnwindSafe for Question
impl Send for Question
impl Sync for Question
impl Unpin for Question
impl UnsafeUnpin for Question
impl UnwindSafe for Question
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more