pub enum Question {
Noul {
instructions: String,
criteria: Option<NoulCriteria>,
},
Choice {
instructions: String,
criteria: BTreeMap<String, Option<String>>,
},
}Expand description
One typed question over a state.
The variant sets the answer shape. Every variant carries instructions,
the judgment itself, phrased so the model can answer it from the state
alone. Question ids are chosen by the caller and never reach the model.
Variants§
Noul
A yes/no question. The answer is the probability of yes.
Fields
§
criteria: Option<NoulCriteria>Optional descriptions of what yes and no mean.
Choice
One option from a closed set. The answer is the chosen option plus the full distribution.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Question
impl<'de> Deserialize<'de> for Question
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Question
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