pub struct ClearPlan {
pub cleared: Cleared,
pub through: Option<MessageId>,
/* private fields */
}Expand description
The tool outputs a clearing replaces (ClearToolOutputs::plan), by
message id.
Fields§
§cleared: ClearedWhat applying it takes out, as planned.
through: Option<MessageId>The newest message holding an output it clears, after whose outputs
notes go; None when it clears nothing.
Implementations§
Source§impl ClearPlan
impl ClearPlan
Sourcepub fn results<'c>(
&self,
conversation: &'c Conversation,
) -> impl Iterator<Item = &'c ToolResult>
pub fn results<'c>( &self, conversation: &'c Conversation, ) -> impl Iterator<Item = &'c ToolResult>
The tool results of conversation it clears.
Sourcepub fn apply(
&self,
conversation: &mut Conversation,
notes: Option<&str>,
by: Author,
) -> Cleared
pub fn apply( &self, conversation: &mut Conversation, notes: Option<&str>, by: Author, ) -> Cleared
Replaces the outputs it clears in conversation with the
placeholder, with notes, if any, as a text part after
through’s, by one Conversation::edit_each by
by. Returns what it planned to take out.
Trait Implementations§
impl Eq for ClearPlan
impl StructuralPartialEq for ClearPlan
Auto Trait Implementations§
impl Freeze for ClearPlan
impl RefUnwindSafe for ClearPlan
impl Send for ClearPlan
impl Sync for ClearPlan
impl Unpin for ClearPlan
impl UnsafeUnpin for ClearPlan
impl UnwindSafe for ClearPlan
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.