pub struct ContextWindowCompressionConfigBuilder(/* private fields */);Expand description
Builder for ContextWindowCompressionConfig.
Implementations§
Source§impl ContextWindowCompressionConfigBuilder
impl ContextWindowCompressionConfigBuilder
pub fn sliding_window(self, value: impl Into<SlidingWindow>) -> Self
pub fn trigger_tokens(self, value: impl Into<LiveInt64>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> ContextWindowCompressionConfig
pub fn build(self) -> ContextWindowCompressionConfig
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for ContextWindowCompressionConfigBuilder
impl RefUnwindSafe for ContextWindowCompressionConfigBuilder
impl Send for ContextWindowCompressionConfigBuilder
impl Sync for ContextWindowCompressionConfigBuilder
impl Unpin for ContextWindowCompressionConfigBuilder
impl UnsafeUnpin for ContextWindowCompressionConfigBuilder
impl UnwindSafe for ContextWindowCompressionConfigBuilder
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