pub struct CompactResource {
pub id: String,
pub object: String,
pub output: Vec<OutputItem>,
pub created_at: u64,
pub usage: ResponseUsage,
}Available on crate feature
response-types only.Expand description
The compacted response object.
Fields§
§id: StringThe unique identifier for the compacted response.
object: StringThe object type. Always response.compaction.
output: Vec<OutputItem>The compacted list of output items. This is a list of all user messages, followed by a single compaction item.
created_at: u64Unix timestamp (in seconds) when the compacted conversation was created.
usage: ResponseUsageToken accounting for the compaction pass, including cached, reasoning, and total tokens.
Trait Implementations§
Source§impl Clone for CompactResource
impl Clone for CompactResource
Source§fn clone(&self) -> CompactResource
fn clone(&self) -> CompactResource
Returns a duplicate 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 CompactResource
impl Debug for CompactResource
Source§impl<'de> Deserialize<'de> for CompactResource
impl<'de> Deserialize<'de> for CompactResource
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 CompactResource
impl PartialEq for CompactResource
Source§impl Serialize for CompactResource
impl Serialize for CompactResource
impl StructuralPartialEq for CompactResource
Auto Trait Implementations§
impl Freeze for CompactResource
impl RefUnwindSafe for CompactResource
impl Send for CompactResource
impl Sync for CompactResource
impl Unpin for CompactResource
impl UnwindSafe for CompactResource
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