pub struct ScalingSelectionConfig {
pub token_budget: usize,
pub selection_algorithm: SelectionAlgorithm,
pub enable_quotas: bool,
pub positioning_config: ContextPositioningConfig,
pub scaling_config: ScalingConfig,
}Expand description
Configuration for intelligent scaling selection
Fields§
§token_budget: usizeToken budget for selection (like –token-target)
selection_algorithm: SelectionAlgorithmSelection algorithm variant to use
enable_quotas: boolEnable category-based quota allocation
positioning_config: ContextPositioningConfigContext positioning configuration
scaling_config: ScalingConfigBase scaling configuration
Implementations§
Source§impl ScalingSelectionConfig
impl ScalingSelectionConfig
Sourcepub fn small_budget() -> Self
pub fn small_budget() -> Self
Create configuration for small token budget (should select ~2 files)
Sourcepub fn with_test_exclusion(self) -> Self
pub fn with_test_exclusion(self) -> Self
Enable auto-exclusion of test files (focuses on code and docs only)
Sourcepub fn medium_budget() -> Self
pub fn medium_budget() -> Self
Create configuration for medium token budget (should select ~11 files)
Sourcepub fn large_budget() -> Self
pub fn large_budget() -> Self
Create configuration for large token budget
Trait Implementations§
Source§impl Clone for ScalingSelectionConfig
impl Clone for ScalingSelectionConfig
Source§fn clone(&self) -> ScalingSelectionConfig
fn clone(&self) -> ScalingSelectionConfig
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 ScalingSelectionConfig
impl Debug for ScalingSelectionConfig
Source§impl Default for ScalingSelectionConfig
impl Default for ScalingSelectionConfig
Source§impl<'de> Deserialize<'de> for ScalingSelectionConfig
impl<'de> Deserialize<'de> for ScalingSelectionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScalingSelectionConfig
impl RefUnwindSafe for ScalingSelectionConfig
impl Send for ScalingSelectionConfig
impl Sync for ScalingSelectionConfig
impl Unpin for ScalingSelectionConfig
impl UnwindSafe for ScalingSelectionConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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