pub struct BudgetConfig {
pub unlimited: u32,
pub auto_multiplier: f64,
pub auto_min: u32,
pub auto_max: u32,
pub core_token_cap_per_fragment: u32,
}Fields§
§unlimited: u32§auto_multiplier: f64§auto_min: u32§auto_max: u32§core_token_cap_per_fragment: u32Per-core-fragment ceiling when sizing the auto budget. A core fragment
that is a whole-file Chunk (e.g. a 2000-line unparsed template touched
by one hunk) would otherwise inflate the budget by its entire byte
weight, dragging in the whole repo as “context”. Capping each core
fragment’s budget contribution decouples “how big are the files I edited”
from “how much of the repo do I pull in”. Does not affect whether the
changed file is included (it always is) — only the context budget it earns.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BudgetConfig
impl RefUnwindSafe for BudgetConfig
impl Send for BudgetConfig
impl Sync for BudgetConfig
impl Unpin for BudgetConfig
impl UnsafeUnpin for BudgetConfig
impl UnwindSafe for BudgetConfig
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
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