pub struct TextBatchRequestOptions {Show 14 fields
pub prompt: Prompt,
pub max_output_tokens: Option<u32>,
pub temperature: Option<f64>,
pub stop_sequences: Option<Vec<String>>,
pub top_p: Option<f64>,
pub top_k: Option<u32>,
pub presence_penalty: Option<f64>,
pub frequency_penalty: Option<f64>,
pub seed: Option<u64>,
pub reasoning: ReasoningEffort,
pub response_format: Option<ResponseFormat>,
pub tool_choice: Option<ToolChoice>,
pub tools: Vec<ToolDefinition>,
pub provider_options: ProviderOptions,
}Expand description
Settings of a text request inside a batch (no headers, no cancellation).
Fields§
§prompt: PromptThe prompt.
max_output_tokens: Option<u32>Maximum output tokens.
temperature: Option<f64>Temperature.
stop_sequences: Option<Vec<String>>Stop sequences.
top_p: Option<f64>Top-p.
top_k: Option<u32>Top-k.
presence_penalty: Option<f64>Presence penalty.
frequency_penalty: Option<f64>Frequency penalty.
seed: Option<u64>Seed.
reasoning: ReasoningEffortReasoning effort.
response_format: Option<ResponseFormat>Response format.
tool_choice: Option<ToolChoice>Tool choice.
tools: Vec<ToolDefinition>Tools.
provider_options: ProviderOptionsProvider-specific options.
Trait Implementations§
Source§impl Clone for TextBatchRequestOptions
impl Clone for TextBatchRequestOptions
Source§fn clone(&self) -> TextBatchRequestOptions
fn clone(&self) -> TextBatchRequestOptions
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 Debug for TextBatchRequestOptions
impl Debug for TextBatchRequestOptions
Source§impl Default for TextBatchRequestOptions
impl Default for TextBatchRequestOptions
Source§fn default() -> TextBatchRequestOptions
fn default() -> TextBatchRequestOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextBatchRequestOptions
impl<'de> Deserialize<'de> for TextBatchRequestOptions
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 TextBatchRequestOptions
impl PartialEq for TextBatchRequestOptions
Source§impl Serialize for TextBatchRequestOptions
impl Serialize for TextBatchRequestOptions
impl StructuralPartialEq for TextBatchRequestOptions
Auto Trait Implementations§
impl Freeze for TextBatchRequestOptions
impl RefUnwindSafe for TextBatchRequestOptions
impl Send for TextBatchRequestOptions
impl Sync for TextBatchRequestOptions
impl Unpin for TextBatchRequestOptions
impl UnsafeUnpin for TextBatchRequestOptions
impl UnwindSafe for TextBatchRequestOptions
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