pub struct Offer {
pub question_id: String,
pub state: String,
pub question: Option<String>,
pub shape: Shape,
pub options: Vec<(String, String)>,
}Expand description
What the model was asked, before it was rendered into a prompt.
Token hosts ignore it and read system/user. A host that is asked questions rather than
prompts — SystemOneHost — reads nothing else.
Fields§
§question_id: StringThe question’s id, which the structured request keys its answer by.
state: String§question: Option<String>The question text; None when a choice or score has none worth asking.
shape: Shape§options: Vec<(String, String)>(label, text) per option, in request order. A yes/no offer is [("A","Yes"),("B","No")].
Trait Implementations§
impl StructuralPartialEq for Offer
Auto Trait Implementations§
impl Freeze for Offer
impl RefUnwindSafe for Offer
impl Send for Offer
impl Sync for Offer
impl Unpin for Offer
impl UnsafeUnpin for Offer
impl UnwindSafe for Offer
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