pub struct GenerationOptions {
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub max_tokens: Option<u32>,
pub stop: Vec<String>,
pub seed: Option<i64>,
pub response_format: ResponseFormat,
pub tools: Vec<ToolDefinition>,
pub tool_choice: Option<ToolChoice>,
}Fields§
§temperature: Option<f32>§top_p: Option<f32>§max_tokens: Option<u32>§stop: Vec<String>§seed: Option<i64>§response_format: ResponseFormat§tools: Vec<ToolDefinition>Tools the model may propose to call. Empty means none are offered.
tool_choice: Option<ToolChoice>Trait Implementations§
Source§impl Clone for GenerationOptions
impl Clone for GenerationOptions
Source§impl Debug for GenerationOptions
impl Debug for GenerationOptions
Source§impl Default for GenerationOptions
impl Default for GenerationOptions
Source§impl<'de> Deserialize<'de> for GenerationOptions
impl<'de> Deserialize<'de> for GenerationOptions
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 GenerationOptions
impl PartialEq for GenerationOptions
Source§impl Serialize for GenerationOptions
impl Serialize for GenerationOptions
impl StructuralPartialEq for GenerationOptions
Auto Trait Implementations§
impl Freeze for GenerationOptions
impl RefUnwindSafe for GenerationOptions
impl Send for GenerationOptions
impl Sync for GenerationOptions
impl Unpin for GenerationOptions
impl UnsafeUnpin for GenerationOptions
impl UnwindSafe for GenerationOptions
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