pub struct DecodeControl { /* private fields */ }Implementations§
Source§impl DecodeControl
impl DecodeControl
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
true once cancelled.
Sourcepub fn set_token_budget(&self, max_tokens: u32)
pub fn set_token_budget(&self, max_tokens: u32)
Caps decode at max_tokens (min 1).
Sourcepub fn token_budget(&self) -> usize
pub fn token_budget(&self) -> usize
Configured token budget.
Sourcepub fn set_thinking_token_budget(&self, max_thinking_tokens: u32)
pub fn set_thinking_token_budget(&self, max_thinking_tokens: u32)
Reserve a deliberation (<think>) token budget from the conditioning
contract (ConditioningBudget::thinking_token_budget). 0 = unlimited /
not a deliberation-configured decode.
Sourcepub fn thinking_token_budget(&self) -> u32
pub fn thinking_token_budget(&self) -> u32
Configured deliberation token budget in tokens; 0 = none.
Trait Implementations§
Source§impl Clone for DecodeControl
impl Clone for DecodeControl
Source§impl Debug for DecodeControl
impl Debug for DecodeControl
Auto Trait Implementations§
impl Freeze for DecodeControl
impl RefUnwindSafe for DecodeControl
impl Send for DecodeControl
impl Sync for DecodeControl
impl Unpin for DecodeControl
impl UnsafeUnpin for DecodeControl
impl UnwindSafe for DecodeControl
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.