pub struct RolloutBudgetConfigBuilder { /* private fields */ }Expand description
Builder for RolloutBudgetConfig.
Implementations§
Source§impl RolloutBudgetConfigBuilder
impl RolloutBudgetConfigBuilder
Sourcepub fn reminder_at_remaining_tokens(
self,
thresholds: impl IntoIterator<Item = u64>,
) -> Self
pub fn reminder_at_remaining_tokens( self, thresholds: impl IntoIterator<Item = u64>, ) -> Self
Replace the remaining-unit thresholds that make Codex restate the budget.
An empty list is valid and disables threshold reminders. Codex still includes the initial remaining-budget message and enforces the limit.
Sourcepub fn sampling_token_weight(self, weight: f64) -> Self
pub fn sampling_token_weight(self, weight: f64) -> Self
Set the weight for generated output tokens when provider units are absent.
Sourcepub fn prefill_token_weight(self, weight: f64) -> Self
pub fn prefill_token_weight(self, weight: f64) -> Self
Set the weight for non-cached input tokens when provider units are absent.
Sourcepub fn build(self) -> Result<RolloutBudgetConfig>
pub fn build(self) -> Result<RolloutBudgetConfig>
Validate and build the native rollout-budget config.
Trait Implementations§
Source§impl Clone for RolloutBudgetConfigBuilder
impl Clone for RolloutBudgetConfigBuilder
Source§fn clone(&self) -> RolloutBudgetConfigBuilder
fn clone(&self) -> RolloutBudgetConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RolloutBudgetConfigBuilder
impl RefUnwindSafe for RolloutBudgetConfigBuilder
impl Send for RolloutBudgetConfigBuilder
impl Sync for RolloutBudgetConfigBuilder
impl Unpin for RolloutBudgetConfigBuilder
impl UnsafeUnpin for RolloutBudgetConfigBuilder
impl UnwindSafe for RolloutBudgetConfigBuilder
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