pub struct ChatOptions<'a> {
pub system: Option<&'a str>,
pub tools: Option<&'a [ToolDefinition]>,
pub thinking: Option<&'a ThinkingConfig>,
pub temperature: Option<f32>,
pub response_format: Option<&'a ResponseFormat>,
}Expand description
Options for a chat request.
Fields§
§system: Option<&'a str>§tools: Option<&'a [ToolDefinition]>§thinking: Option<&'a ThinkingConfig>§temperature: Option<f32>§response_format: Option<&'a ResponseFormat>Trait Implementations§
Source§impl<'a> Default for ChatOptions<'a>
impl<'a> Default for ChatOptions<'a>
Source§fn default() -> ChatOptions<'a>
fn default() -> ChatOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ChatOptions<'a>
impl<'a> RefUnwindSafe for ChatOptions<'a>
impl<'a> Send for ChatOptions<'a>
impl<'a> Sync for ChatOptions<'a>
impl<'a> Unpin for ChatOptions<'a>
impl<'a> UnsafeUnpin for ChatOptions<'a>
impl<'a> UnwindSafe for ChatOptions<'a>
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