pub struct NewContextRequest {
pub objective: String,
pub keep_recent: Option<usize>,
}Expand description
One parked fresh-window request, as the model stated it. The fields are
exactly Agent::new_context’s parameters — this type carries a request
across the tool/agent boundary, it does not add semantics of its own.
Fields§
§objective: StringThe objective the fresh window opens with.
keep_recent: Option<usize>How many trailing messages to keep. None uses the same
token-budget-derived count core.compaction.keep_recent_tokens
governs, so the keep-set is curated by the budget the rest of the
compaction machinery uses rather than a number the model guessed.
Trait Implementations§
Source§impl Clone for NewContextRequest
impl Clone for NewContextRequest
Source§fn clone(&self) -> NewContextRequest
fn clone(&self) -> NewContextRequest
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 NewContextRequest
impl Debug for NewContextRequest
impl Eq for NewContextRequest
Source§impl PartialEq for NewContextRequest
impl PartialEq for NewContextRequest
impl StructuralPartialEq for NewContextRequest
Auto Trait Implementations§
impl Freeze for NewContextRequest
impl RefUnwindSafe for NewContextRequest
impl Send for NewContextRequest
impl Sync for NewContextRequest
impl Unpin for NewContextRequest
impl UnsafeUnpin for NewContextRequest
impl UnwindSafe for NewContextRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.