pub struct ContextCompilerConfig {
pub total_budget: usize,
pub block_budgets: Vec<(ContextBlockKind, usize)>,
}Expand description
Configuration for the context compiler.
Fields§
§total_budget: usizeTotal token budget for compiled system messages.
block_budgets: Vec<(ContextBlockKind, usize)>Per-kind token budgets. Blocks are truncated to their kind’s budget. Kinds not listed here get unlimited (up to total_budget).
Trait Implementations§
Source§impl Clone for ContextCompilerConfig
impl Clone for ContextCompilerConfig
Source§fn clone(&self) -> ContextCompilerConfig
fn clone(&self) -> ContextCompilerConfig
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 ContextCompilerConfig
impl Debug for ContextCompilerConfig
Auto Trait Implementations§
impl Freeze for ContextCompilerConfig
impl RefUnwindSafe for ContextCompilerConfig
impl Send for ContextCompilerConfig
impl Sync for ContextCompilerConfig
impl Unpin for ContextCompilerConfig
impl UnsafeUnpin for ContextCompilerConfig
impl UnwindSafe for ContextCompilerConfig
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