pub struct CompactContext<'a> {
pub session_id: &'a str,
pub turn_id: &'a str,
pub model: &'a str,
pub input: &'a [Value],
pub events: &'a mut Vec<EventMsg>,
/* private fields */
}Expand description
State exposed immediately before or after context compaction.
Fields§
§session_id: &'a str§turn_id: &'a str§model: &'a str§input: &'a [Value]§events: &'a mut Vec<EventMsg>Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for CompactContext<'a>
impl<'a> Freeze for CompactContext<'a>
impl<'a> RefUnwindSafe for CompactContext<'a>
impl<'a> Send for CompactContext<'a>
impl<'a> Sync for CompactContext<'a>
impl<'a> Unpin for CompactContext<'a>
impl<'a> UnsafeUnpin for CompactContext<'a>
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