pub struct InferenceOptions {
pub max_tokens: Option<u32>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub thinking_budget_tokens: Option<u64>,
pub disable_parallel_tool_use: Option<bool>,
}Expand description
Inference parameters extracted from a protocol request.
Unspecified parameters remain None; model-specific defaults belong to the
caller.
Fields§
§max_tokens: Option<u32>§temperature: Option<f32>§top_p: Option<f32>§thinking_budget_tokens: Option<u64>Passed through for applications that support a thinking budget.
disable_parallel_tool_use: Option<bool>Passed through for the caller to control parallel tool execution.
Trait Implementations§
Source§impl Debug for InferenceOptions
impl Debug for InferenceOptions
Source§impl Default for InferenceOptions
impl Default for InferenceOptions
Source§fn default() -> InferenceOptions
fn default() -> InferenceOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InferenceOptions
impl RefUnwindSafe for InferenceOptions
impl Send for InferenceOptions
impl Sync for InferenceOptions
impl Unpin for InferenceOptions
impl UnsafeUnpin for InferenceOptions
impl UnwindSafe for InferenceOptions
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> 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