#[non_exhaustive]pub enum ReasoningPrune {
None,
All,
BeforeLastMessage,
}Expand description
Which reasoning parts to remove.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Keep reasoning.
All
Remove reasoning from every assistant message.
BeforeLastMessage
Remove reasoning from every message except the last one.
Trait Implementations§
Source§impl Clone for ReasoningPrune
impl Clone for ReasoningPrune
Source§fn clone(&self) -> ReasoningPrune
fn clone(&self) -> ReasoningPrune
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 moreimpl Copy for ReasoningPrune
Source§impl Debug for ReasoningPrune
impl Debug for ReasoningPrune
Source§impl Default for ReasoningPrune
impl Default for ReasoningPrune
Source§fn default() -> ReasoningPrune
fn default() -> ReasoningPrune
Returns the “default value” for a type. Read more
impl Eq for ReasoningPrune
Source§impl Hash for ReasoningPrune
impl Hash for ReasoningPrune
Source§impl PartialEq for ReasoningPrune
impl PartialEq for ReasoningPrune
impl StructuralPartialEq for ReasoningPrune
Auto Trait Implementations§
impl Freeze for ReasoningPrune
impl RefUnwindSafe for ReasoningPrune
impl Send for ReasoningPrune
impl Sync for ReasoningPrune
impl Unpin for ReasoningPrune
impl UnsafeUnpin for ReasoningPrune
impl UnwindSafe for ReasoningPrune
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.