pub struct TruncationObject {
pub type: String,
pub last_messages: Option<i64>,
}
Expand description
Controls for how a thread will be truncated prior to the run.
Fields§
§type: String
The truncation strategy to use for the thread.
last_messages: Option<i64>
The number of most recent messages from the thread when constructing the context for the run.
Trait Implementations§
Source§impl Clone for TruncationObject
impl Clone for TruncationObject
Source§fn clone(&self) -> TruncationObject
fn clone(&self) -> TruncationObject
Returns a copy 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 TruncationObject
impl Debug for TruncationObject
Source§impl Default for TruncationObject
impl Default for TruncationObject
Source§fn default() -> TruncationObject
fn default() -> TruncationObject
Returns the “default value” for a type. 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