pub struct Question {
pub header: String,
pub prompt: String,
pub options: Vec<QuestionOption>,
pub multi: bool,
}Expand description
A structured multiple-choice question the agent asks the human
(ask_user) — a header, a prompt, and 2-4 labelled options (plus an
always-available free-text “other” the surfaces provide, not encoded
here). multi reserves multi-select for a future surface; today’s
surfaces treat every question as single-select.
Fields§
§header: String§prompt: String§options: Vec<QuestionOption>§multi: boolTrait 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