pub struct DeputyPrompt<'a> {
pub id: &'a str,
pub summary: &'a str,
pub detail: &'a str,
pub brief: &'a str,
pub choices: &'a [String],
pub thread: &'a [(&'a str, &'a str)],
pub unread: Option<&'a str>,
pub resumed: bool,
pub handover: bool,
pub language: &'a str,
}Expand description
What a conductor question’s deputy is told.
The deputy is a seat of its own that waits on one question for the
conductor, which must never wait itself. brief is the conductor’s own
context for the question (task, reasoning, what each option leads to);
thread is the conversation so far, (who, body) oldest first, and
unread is what the owner said that no agent has read yet.
Fields§
§id: &'a strQuestion id.
summary: &'a strThe question’s one line.
detail: &'a strThe question’s longer explanation.
brief: &'a strThe conductor’s context for it.
choices: &'a [String]The choices currently on offer.
thread: &'a [(&'a str, &'a str)]The conversation the deputy has already read.
unread: Option<&'a str>What the owner said that nobody has read yet.
resumed: boolIs this the deputy’s own session coming back?
handover: boolThe short first turn that only lets the seat be saved: no waiting yet.
language: &'a strLanguage the owner reads.
Auto Trait Implementations§
impl<'a> Freeze for DeputyPrompt<'a>
impl<'a> RefUnwindSafe for DeputyPrompt<'a>
impl<'a> Send for DeputyPrompt<'a>
impl<'a> Sync for DeputyPrompt<'a>
impl<'a> Unpin for DeputyPrompt<'a>
impl<'a> UnsafeUnpin for DeputyPrompt<'a>
impl<'a> UnwindSafe for DeputyPrompt<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more