pub struct ModelGenerationOptions {
pub max_output_tokens: Option<u32>,
pub temperature: Option<f32>,
pub stop_sequences: Vec<String>,
pub response_format: Option<Value>,
pub tool_choice: ModelToolChoice,
}Fields§
§max_output_tokens: Option<u32>§temperature: Option<f32>§stop_sequences: Vec<String>§response_format: Option<Value>§tool_choice: ModelToolChoiceTrait Implementations§
Source§impl Clone for ModelGenerationOptions
impl Clone for ModelGenerationOptions
Source§fn clone(&self) -> ModelGenerationOptions
fn clone(&self) -> ModelGenerationOptions
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 ModelGenerationOptions
impl Debug for ModelGenerationOptions
Source§impl Default for ModelGenerationOptions
impl Default for ModelGenerationOptions
Source§fn default() -> ModelGenerationOptions
fn default() -> ModelGenerationOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelGenerationOptions
impl<'de> Deserialize<'de> for ModelGenerationOptions
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 ModelGenerationOptions
impl PartialEq for ModelGenerationOptions
Source§impl Serialize for ModelGenerationOptions
impl Serialize for ModelGenerationOptions
impl StructuralPartialEq for ModelGenerationOptions
Auto Trait Implementations§
impl Freeze for ModelGenerationOptions
impl RefUnwindSafe for ModelGenerationOptions
impl Send for ModelGenerationOptions
impl Sync for ModelGenerationOptions
impl Unpin for ModelGenerationOptions
impl UnsafeUnpin for ModelGenerationOptions
impl UnwindSafe for ModelGenerationOptions
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