pub struct CreateEvalResponsesRunDataSourceSamplingParams {
pub temperature: Option<f64>,
pub max_completion_tokens: Option<u64>,
pub top_p: Option<f64>,
pub seed: Option<u64>,
pub tools: Option<Vec<Tool>>,
pub text: Option<CreateEvalResponsesRunDataSourceSamplingParamsText>,
}
Fields§
§temperature: Option<f64>
A higher temperature increases randomness in the outputs.
max_completion_tokens: Option<u64>
The maximum number of tokens in the generated output.
top_p: Option<f64>
An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
seed: Option<u64>
A seed value to initialize the randomness, during sampling.
tools: Option<Vec<Tool>>
An array of tools the model may call while generating a response. You
can specify which tool to use by setting the tool_choice
parameter.
The two categories of tools you can provide the model are:
- Built-in tools: Tools that are provided by OpenAI that extend the model’s capabilities, like web search or file search. Learn more about built-in tools.
- Function calls (custom tools): Functions that are defined by you, enabling the model to call your own code. Learn more about function calling.
text: Option<CreateEvalResponsesRunDataSourceSamplingParamsText>
Configuration options for a text response from the model. Can be plain text or structured JSON data. Learn more:
Implementations§
Source§impl CreateEvalResponsesRunDataSourceSamplingParams
impl CreateEvalResponsesRunDataSourceSamplingParams
Sourcepub fn builder() -> CreateEvalResponsesRunDataSourceSamplingParamsBuilder<((), (), (), (), (), ())>
pub fn builder() -> CreateEvalResponsesRunDataSourceSamplingParamsBuilder<((), (), (), (), (), ())>
Create a builder for building CreateEvalResponsesRunDataSourceSamplingParams
.
On the builder, call .temperature(...)
(optional), .max_completion_tokens(...)
(optional), .top_p(...)
(optional), .seed(...)
(optional), .tools(...)
(optional), .text(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CreateEvalResponsesRunDataSourceSamplingParams
.
Trait Implementations§
Source§impl Clone for CreateEvalResponsesRunDataSourceSamplingParams
impl Clone for CreateEvalResponsesRunDataSourceSamplingParams
Source§fn clone(&self) -> CreateEvalResponsesRunDataSourceSamplingParams
fn clone(&self) -> CreateEvalResponsesRunDataSourceSamplingParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for CreateEvalResponsesRunDataSourceSamplingParams
impl Default for CreateEvalResponsesRunDataSourceSamplingParams
Source§fn default() -> CreateEvalResponsesRunDataSourceSamplingParams
fn default() -> CreateEvalResponsesRunDataSourceSamplingParams
Source§impl<'de> Deserialize<'de> for CreateEvalResponsesRunDataSourceSamplingParams
impl<'de> Deserialize<'de> for CreateEvalResponsesRunDataSourceSamplingParams
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>,
Source§impl PartialEq for CreateEvalResponsesRunDataSourceSamplingParams
impl PartialEq for CreateEvalResponsesRunDataSourceSamplingParams
Source§fn eq(&self, other: &CreateEvalResponsesRunDataSourceSamplingParams) -> bool
fn eq(&self, other: &CreateEvalResponsesRunDataSourceSamplingParams) -> bool
self
and other
values to be equal, and is used by ==
.