pub struct TruncationObject {
pub last_messages: Option<i32>,
pub _type: String,
}
Fields§
§last_messages: Option<i32>
The number of most recent messages from the thread when constructing the context for the run.
_type: String
The truncation strategy to use for the thread. The default is auto
. If set to last_messages
, the thread will be truncated to the n most recent messages in the thread. When set to auto
, messages in the middle of the thread will be dropped to fit the context length of the model, max_prompt_tokens
.
Trait Implementations§
Source§impl Debug for TruncationObject
impl Debug for TruncationObject
Source§impl<'de> Deserialize<'de> for TruncationObject
impl<'de> Deserialize<'de> for TruncationObject
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
Auto Trait Implementations§
impl Freeze for TruncationObject
impl RefUnwindSafe for TruncationObject
impl Send for TruncationObject
impl Sync for TruncationObject
impl Unpin for TruncationObject
impl UnwindSafe for TruncationObject
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