pub struct Compaction {
pub compaction_id: CompactionId,
pub thread_id: AgentThreadId,
pub codex_turn_id: CodexTurnId,
pub installed_at_unix_ms: i64,
pub marker_item_id: ConversationItemId,
pub request_ids: Vec<CompactionRequestId>,
pub input_item_ids: Vec<ConversationItemId>,
pub replacement_item_ids: Vec<ConversationItemId>,
}Expand description
Public reduced trace model returned by replay. Installed conversation-history replacement boundary.
Duration-bearing upstream requests live in CompactionRequest. This object
is the checkpoint where replacement history became the live thread history.
The boundary marker and the model-visible summary are separate conversation
items: the marker says where history was replaced, while the summary is part
of replacement_item_ids when the compact endpoint returned one.
Fields§
§compaction_id: CompactionId§thread_id: AgentThreadId§codex_turn_id: CodexTurnId§installed_at_unix_ms: i64§marker_item_id: ConversationItemIdStructural conversation item marking where pre-compaction history ended.
request_ids: Vec<CompactionRequestId>Upstream compaction request attempts that contributed to this checkpoint.
input_item_ids: Vec<ConversationItemId>Logical conversation items present immediately before replacement.
replacement_item_ids: Vec<ConversationItemId>Replacement conversation items installed by the checkpoint.
Trait Implementations§
Source§impl Clone for Compaction
impl Clone for Compaction
Source§fn clone(&self) -> Compaction
fn clone(&self) -> Compaction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Compaction
impl Debug for Compaction
Source§impl<'de> Deserialize<'de> for Compaction
impl<'de> Deserialize<'de> for Compaction
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 Compaction
impl PartialEq for Compaction
Source§impl Serialize for Compaction
impl Serialize for Compaction
impl StructuralPartialEq for Compaction
Auto Trait Implementations§
impl Freeze for Compaction
impl RefUnwindSafe for Compaction
impl Send for Compaction
impl Sync for Compaction
impl Unpin for Compaction
impl UnsafeUnpin for Compaction
impl UnwindSafe for Compaction
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more