pub struct RolloutBudgetConfig { /* private fields */ }Expand description
A validated Codex-native rollout budget for one CLI execution.
Use RolloutBudgetConfig::builder and pass the result to
crate::ExecCommand::rollout_budget or
crate::ExecResumeCommand::rollout_budget. The same config shape is
accepted by both opening and resumed exec commands.
Implementations§
Source§impl RolloutBudgetConfig
impl RolloutBudgetConfig
Sourcepub fn builder(limit_tokens: u64) -> RolloutBudgetConfigBuilder
pub fn builder(limit_tokens: u64) -> RolloutBudgetConfigBuilder
Start a builder with the native rollout-budget-unit limit.
Sourcepub fn limit_tokens(&self) -> u64
pub fn limit_tokens(&self) -> u64
The configured native rollout-budget-unit limit.
Sourcepub fn reminder_at_remaining_tokens(&self) -> &[u64]
pub fn reminder_at_remaining_tokens(&self) -> &[u64]
Remaining rollout-budget-unit thresholds that make Codex restate the budget.
Sourcepub fn sampling_token_weight(&self) -> f64
pub fn sampling_token_weight(&self) -> f64
Weight applied to generated output tokens when provider units are absent.
Sourcepub fn prefill_token_weight(&self) -> f64
pub fn prefill_token_weight(&self) -> f64
Weight applied to non-cached input tokens when provider units are absent.
Trait Implementations§
Source§impl Clone for RolloutBudgetConfig
impl Clone for RolloutBudgetConfig
Source§fn clone(&self) -> RolloutBudgetConfig
fn clone(&self) -> RolloutBudgetConfig
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 moreSource§impl Debug for RolloutBudgetConfig
impl Debug for RolloutBudgetConfig
Source§impl PartialEq for RolloutBudgetConfig
impl PartialEq for RolloutBudgetConfig
impl StructuralPartialEq for RolloutBudgetConfig
Auto Trait Implementations§
impl Freeze for RolloutBudgetConfig
impl RefUnwindSafe for RolloutBudgetConfig
impl Send for RolloutBudgetConfig
impl Sync for RolloutBudgetConfig
impl Unpin for RolloutBudgetConfig
impl UnsafeUnpin for RolloutBudgetConfig
impl UnwindSafe for RolloutBudgetConfig
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