#[non_exhaustive]pub struct TaskParams {
pub temperature: Option<f32>,
pub max_output_tokens: Option<u32>,
pub reasoning_effort: Option<String>,
pub seed: Option<u64>,
pub timeout_ms: u64,
}Expand description
The settings one task call was sent with.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.temperature: Option<f32>Sampling temperature, when one was sent.
max_output_tokens: Option<u32>Output cap, when one was set.
reasoning_effort: Option<String>Reasoning effort, when one was sent.
seed: Option<u64>Sampling seed, when one was sent.
timeout_ms: u64The call’s deadline.
Trait Implementations§
Source§impl Clone for TaskParams
impl Clone for TaskParams
Source§impl Debug for TaskParams
impl Debug for TaskParams
Source§impl Default for TaskParams
impl Default for TaskParams
Source§impl<'de> Deserialize<'de> for TaskParams
impl<'de> Deserialize<'de> for TaskParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TaskParams
impl PartialEq for TaskParams
Source§impl Serialize for TaskParams
impl Serialize for TaskParams
impl StructuralPartialEq for TaskParams
Auto Trait Implementations§
impl Freeze for TaskParams
impl RefUnwindSafe for TaskParams
impl Send for TaskParams
impl Sync for TaskParams
impl Unpin for TaskParams
impl UnsafeUnpin for TaskParams
impl UnwindSafe for TaskParams
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