#[non_exhaustive]pub struct TokenBudget {
pub compact_threshold: usize,
pub compact_keep_recent: usize,
}Expand description
Token budget configuration for a scene.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.compact_threshold: usizeTrigger auto-compact when input exceeds this threshold (0 = disabled).
compact_keep_recent: usizeNumber of recent messages to keep during compaction.
Implementations§
Trait Implementations§
Source§impl Clone for TokenBudget
impl Clone for TokenBudget
Auto Trait Implementations§
impl Forget for TokenBudget
impl Freeze for TokenBudget
impl Move for TokenBudget
impl RefUnwindSafe for TokenBudget
impl Send for TokenBudget
impl Sync for TokenBudget
impl Unpin for TokenBudget
impl UnsafeUnpin for TokenBudget
impl UnwindSafe for TokenBudget
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