pub struct ContextManagementParam {
pub type_: String,
pub compact_threshold: Option<u32>,
}Available on crate feature
response-types only.Expand description
Context management configuration.
Fields§
§type_: StringThe context management strategy type.
compact_threshold: Option<u32>Minimum number of tokens to retain before compacting.
Trait Implementations§
Source§impl Clone for ContextManagementParam
impl Clone for ContextManagementParam
Source§fn clone(&self) -> ContextManagementParam
fn clone(&self) -> ContextManagementParam
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 ContextManagementParam
impl Debug for ContextManagementParam
Source§impl<'de> Deserialize<'de> for ContextManagementParam
impl<'de> Deserialize<'de> for ContextManagementParam
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContextManagementParam
impl PartialEq for ContextManagementParam
Source§impl Serialize for ContextManagementParam
impl Serialize for ContextManagementParam
impl StructuralPartialEq for ContextManagementParam
Auto Trait Implementations§
impl Freeze for ContextManagementParam
impl RefUnwindSafe for ContextManagementParam
impl Send for ContextManagementParam
impl Sync for ContextManagementParam
impl Unpin for ContextManagementParam
impl UnsafeUnpin for ContextManagementParam
impl UnwindSafe for ContextManagementParam
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