pub struct CompressResponse {
pub agent_id: String,
pub memories_before: i64,
pub memories_after: i64,
pub removed_count: i64,
pub duration_ms: Option<f64>,
}Expand description
Response from POST /v1/agents/{agent_id}/compress (CE-12).
Contains compression statistics for the agent’s memory namespace after the server runs the compression pass.
Fields§
§agent_id: StringThe agent whose namespace was compressed
memories_before: i64Number of memories before compression
memories_after: i64Number of memories after compression
removed_count: i64Number of memories removed during compression
duration_ms: Option<f64>Wall-clock duration of the compression pass in milliseconds
Trait Implementations§
Source§impl Clone for CompressResponse
impl Clone for CompressResponse
Source§fn clone(&self) -> CompressResponse
fn clone(&self) -> CompressResponse
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 CompressResponse
impl Debug for CompressResponse
Source§impl<'de> Deserialize<'de> for CompressResponse
impl<'de> Deserialize<'de> for CompressResponse
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
Auto Trait Implementations§
impl Freeze for CompressResponse
impl RefUnwindSafe for CompressResponse
impl Send for CompressResponse
impl Sync for CompressResponse
impl Unpin for CompressResponse
impl UnsafeUnpin for CompressResponse
impl UnwindSafe for CompressResponse
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