pub struct ReasoningBudget {
pub samples: usize,
pub refine_rounds: usize,
}Expand description
Compute budget for a reasoning-max run. Higher = more model calls = higher reliability at higher cost/latency.
Fields§
§samples: usizeNumber of independent drafts to sample before selecting (best-of-N).
refine_rounds: usizeNumber of critique→revise rounds applied to the selected draft.
Implementations§
Source§impl ReasoningBudget
impl ReasoningBudget
Sourcepub fn for_tier(tier: &TaskTier) -> Self
pub fn for_tier(tier: &TaskTier) -> Self
Default budget for a task tier. Cheap tiers get a single greedy pass; hard tiers get search + iterative refinement.
Sourcepub fn scaled_for_capability(self, band: u8) -> Self
pub fn scaled_for_capability(self, band: u8) -> Self
Weaker models benefit MORE from test-time compute — they have more
headroom to recover from a bad first sample. Spend more on them. band
is the model capability band (1 = small … 5 = frontier); see
model-capability-profile.json.
Trait Implementations§
Source§impl Clone for ReasoningBudget
impl Clone for ReasoningBudget
Source§fn clone(&self) -> ReasoningBudget
fn clone(&self) -> ReasoningBudget
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 moreimpl Copy for ReasoningBudget
Source§impl Debug for ReasoningBudget
impl Debug for ReasoningBudget
impl Eq for ReasoningBudget
Source§impl PartialEq for ReasoningBudget
impl PartialEq for ReasoningBudget
Source§fn eq(&self, other: &ReasoningBudget) -> bool
fn eq(&self, other: &ReasoningBudget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReasoningBudget
Auto Trait Implementations§
impl Freeze for ReasoningBudget
impl RefUnwindSafe for ReasoningBudget
impl Send for ReasoningBudget
impl Sync for ReasoningBudget
impl Unpin for ReasoningBudget
impl UnsafeUnpin for ReasoningBudget
impl UnwindSafe for ReasoningBudget
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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