pub struct DialogTurn {
pub role: String,
pub text: String,
}Expand description
A single dialog turn passed to summarize_dialog /
generate_chat_title. The role is informational only — the summarizer
uses the text content.
Fields§
§role: String§text: StringImplementations§
Trait Implementations§
Source§impl Clone for DialogTurn
impl Clone for DialogTurn
Source§fn clone(&self) -> DialogTurn
fn clone(&self) -> DialogTurn
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 moreAuto Trait Implementations§
impl Freeze for DialogTurn
impl RefUnwindSafe for DialogTurn
impl Send for DialogTurn
impl Sync for DialogTurn
impl Unpin for DialogTurn
impl UnsafeUnpin for DialogTurn
impl UnwindSafe for DialogTurn
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