pub struct CompactionProgress {
pub status: String,
pub item_id: Option<String>,
pub tokens_before: Option<u32>,
pub tokens_after: Option<u32>,
pub duration_ms: Option<u64>,
pub item: Option<Value>,
}Fields§
§status: String§item_id: Option<String>§tokens_before: Option<u32>Estimated prompt tokens before this compaction pass, when known.
tokens_after: Option<u32>Estimated prompt tokens after this compaction pass, when known.
duration_ms: Option<u64>Wall-clock duration of the compaction pass, when measured.
item: Option<Value>Opaque provider compaction output item (e.g. OpenAI type: "compaction").
Runtime persists this as a transcript boundary even if the stream dies
before the full ProviderMetadata/response.completed frame arrives.
Trait Implementations§
Source§impl Clone for CompactionProgress
impl Clone for CompactionProgress
Source§impl Debug for CompactionProgress
impl Debug for CompactionProgress
Source§impl<'de> Deserialize<'de> for CompactionProgress
impl<'de> Deserialize<'de> for CompactionProgress
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 CompactionProgress
impl PartialEq for CompactionProgress
Source§impl Serialize for CompactionProgress
impl Serialize for CompactionProgress
impl StructuralPartialEq for CompactionProgress
Auto Trait Implementations§
impl Freeze for CompactionProgress
impl RefUnwindSafe for CompactionProgress
impl Send for CompactionProgress
impl Sync for CompactionProgress
impl Unpin for CompactionProgress
impl UnsafeUnpin for CompactionProgress
impl UnwindSafe for CompactionProgress
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