pub struct CompactOptions {
pub max_tokens: Option<u64>,
pub direction: CompactDirection,
pub create_boundary: bool,
pub system_prompt: Option<String>,
}Expand description
Compact options
Fields§
§max_tokens: Option<u64>Maximum tokens to keep after compaction
direction: CompactDirectionDirection to compact
create_boundary: boolWhether to create a boundary message
system_prompt: Option<String>Custom system prompt to include
Trait Implementations§
Source§impl Clone for CompactOptions
impl Clone for CompactOptions
Source§fn clone(&self) -> CompactOptions
fn clone(&self) -> CompactOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 CompactOptions
impl Debug for CompactOptions
Source§impl Default for CompactOptions
impl Default for CompactOptions
Source§fn default() -> CompactOptions
fn default() -> CompactOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompactOptions
impl RefUnwindSafe for CompactOptions
impl Send for CompactOptions
impl Sync for CompactOptions
impl Unpin for CompactOptions
impl UnsafeUnpin for CompactOptions
impl UnwindSafe for CompactOptions
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