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: usize
Token budget for selection (like –token-target)
selection_algorithm: SelectionAlgorithm
Selection algorithm variant to use
enable_quotas: bool
Enable category-based quota allocation
positioning_config: ContextPositioningConfig
Context positioning configuration
scaling_config: ScalingConfig
Base 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