pub struct ResolvedCitationCompactionBudget { /* private fields */ }Expand description
Soft guidance, hard acceptance, and the preferred raw-history budget.
The install-time body target is not stored here. The runtime builds it from this hard ceiling plus the retained-history target and the fixed request body, rather than from half the body budget.
Implementations§
Source§impl ResolvedCitationCompactionBudget
impl ResolvedCitationCompactionBudget
Sourcepub fn target_output_tokens(self) -> u64
pub fn target_output_tokens(self) -> u64
Prompt guidance written into the compaction instruction.
Exceeding it is allowed within Self::output_token_limit.
Sourcepub fn output_token_limit(self) -> u64
pub fn output_token_limit(self) -> u64
Hard rendered-summary ceiling, including restored keep entries and framing. Crossing it repairs; staying under it installs without another model call.
Sourcepub fn max_accepted_output_bytes(self) -> usize
pub fn max_accepted_output_bytes(self) -> usize
Maximum accepted candidate JSON size in bytes.
Trait Implementations§
impl Copy for ResolvedCitationCompactionBudget
impl Eq for ResolvedCitationCompactionBudget
impl StructuralPartialEq for ResolvedCitationCompactionBudget
Auto Trait Implementations§
impl Forget for ResolvedCitationCompactionBudget
impl Freeze for ResolvedCitationCompactionBudget
impl Move for ResolvedCitationCompactionBudget
impl RefUnwindSafe for ResolvedCitationCompactionBudget
impl Send for ResolvedCitationCompactionBudget
impl Sync for ResolvedCitationCompactionBudget
impl Unpin for ResolvedCitationCompactionBudget
impl UnsafeUnpin for ResolvedCitationCompactionBudget
impl UnwindSafe for ResolvedCitationCompactionBudget
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.