pub struct ConsultRequest {
pub node: String,
pub index: usize,
pub question: String,
pub choices: Vec<String>,
pub context: Vec<(String, Value)>,
}Expand description
A question the program wrote, on its way to a person.
Fields§
§node: String§index: usizeWhich consultation this is within the run, counting from zero.
The same number the cassette matches by, so a recorded event stream and a recording line up without either having to carry the other’s identifier.
question: String§choices: Vec<String>What a person may answer, when the program limited it. Empty means free text.
context: Vec<(String, Value)>What the run wants the person to see first, named as the source named it.
The same shape a model call carries, and for the same reason: the surface showing it decides how to render, because a terminal and a page do not render the same way.
Trait Implementations§
Source§impl Clone for ConsultRequest
impl Clone for ConsultRequest
Source§fn clone(&self) -> ConsultRequest
fn clone(&self) -> ConsultRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConsultRequest
impl Debug for ConsultRequest
Source§impl PartialEq for ConsultRequest
impl PartialEq for ConsultRequest
impl StructuralPartialEq for ConsultRequest
Auto Trait Implementations§
impl Freeze for ConsultRequest
impl RefUnwindSafe for ConsultRequest
impl Send for ConsultRequest
impl Sync for ConsultRequest
impl Unpin for ConsultRequest
impl UnsafeUnpin for ConsultRequest
impl UnwindSafe for ConsultRequest
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