pub struct ClearedBody {
pub cleared: usize,
pub chat_id: String,
}Expand description
There is no /v1/compact: compaction in apollo is turn-local.
AgentRunner::compact_messages rewrites the in-flight Vec<ChatMessage>
of a single turn when it outgrows agent.max_context_chars; it never
touches the conversation store, and stored history is re-read as the last
max_history_messages rows on every turn. Compacting a chat server-side
would therefore change nothing the next turn observes.
Fields§
§cleared: usize§chat_id: StringTrait Implementations§
Source§impl Debug for ClearedBody
impl Debug for ClearedBody
Auto Trait Implementations§
impl Freeze for ClearedBody
impl RefUnwindSafe for ClearedBody
impl Send for ClearedBody
impl Sync for ClearedBody
impl Unpin for ClearedBody
impl UnsafeUnpin for ClearedBody
impl UnwindSafe for ClearedBody
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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