pub struct DataSourceResponsesSamplingParams {
pub max_completion_tokens: Option<i64>,
pub reasoning_effort: Option<Value>,
pub seed: Option<i64>,
pub temperature: Option<f64>,
pub text: Option<DataSourceResponsesSamplingParamsText>,
pub tools: Option<Vec<Value>>,
pub top_p: Option<f64>,
}Fields§
§max_completion_tokens: Option<i64>The maximum number of tokens in the generated output.
reasoning_effort: Option<Value>Constrains effort on reasoning for
seed: Option<i64>A seed value to initialize the randomness, during sampling.
temperature: Option<f64>A higher temperature increases randomness in the outputs.
text: Option<DataSourceResponsesSamplingParamsText>Configuration options for a text response from the model.
tools: Option<Vec<Value>>An array of tools the model may call while generating a response.
top_p: Option<f64>An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
Trait Implementations§
Source§impl Clone for DataSourceResponsesSamplingParams
impl Clone for DataSourceResponsesSamplingParams
Source§fn clone(&self) -> DataSourceResponsesSamplingParams
fn clone(&self) -> DataSourceResponsesSamplingParams
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<'de> Deserialize<'de> for DataSourceResponsesSamplingParams
impl<'de> Deserialize<'de> for DataSourceResponsesSamplingParams
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
Auto Trait Implementations§
impl Freeze for DataSourceResponsesSamplingParams
impl RefUnwindSafe for DataSourceResponsesSamplingParams
impl Send for DataSourceResponsesSamplingParams
impl Sync for DataSourceResponsesSamplingParams
impl Unpin for DataSourceResponsesSamplingParams
impl UnsafeUnpin for DataSourceResponsesSamplingParams
impl UnwindSafe for DataSourceResponsesSamplingParams
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