pub struct TextSummary(/* private fields */);Expand description
Plain-text artifact produced by TemplateCompactor.
Convertible into a Message::System whose body is the rolled-up
text. The system role is used because the rollup represents
out-of-band context about the prior conversation, not a turn from
any participant.
Implementations§
Source§impl TextSummary
impl TextSummary
Trait Implementations§
Source§impl Clone for TextSummary
impl Clone for TextSummary
Source§fn clone(&self) -> TextSummary
fn clone(&self) -> TextSummary
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 TextSummary
impl Debug for TextSummary
Source§impl From<TextSummary> for Message
impl From<TextSummary> for Message
Source§fn from(value: TextSummary) -> Self
fn from(value: TextSummary) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TextSummary
impl RefUnwindSafe for TextSummary
impl Send for TextSummary
impl Sync for TextSummary
impl Unpin for TextSummary
impl UnsafeUnpin for TextSummary
impl UnwindSafe for TextSummary
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