pub struct ChatBatchRequest {
pub messages: Vec<Message>,
pub temperature: Option<f64>,
pub max_tokens: Option<u32>,
pub tools: Option<Vec<ToolDefinition>>,
pub tool_choice: Option<Value>,
}Expand description
Batch chat request parameters (developer-friendly, small surface).
Fields§
§messages: Vec<Message>§temperature: Option<f64>§max_tokens: Option<u32>§tools: Option<Vec<ToolDefinition>>§tool_choice: Option<Value>Implementations§
Source§impl ChatBatchRequest
impl ChatBatchRequest
pub fn new(messages: Vec<Message>) -> Self
pub fn temperature(self, temp: f64) -> Self
pub fn max_tokens(self, max: u32) -> Self
pub fn tools(self, tools: Vec<ToolDefinition>) -> Self
pub fn tool_choice(self, tool_choice: Value) -> Self
Trait Implementations§
Source§impl Clone for ChatBatchRequest
impl Clone for ChatBatchRequest
Source§fn clone(&self) -> ChatBatchRequest
fn clone(&self) -> ChatBatchRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChatBatchRequest
impl RefUnwindSafe for ChatBatchRequest
impl Send for ChatBatchRequest
impl Sync for ChatBatchRequest
impl Unpin for ChatBatchRequest
impl UnwindSafe for ChatBatchRequest
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