pub struct BatchRequestBuilder { /* private fields */ }
Expand description
Builder for creating batch requests
Implementations§
Source§impl BatchRequestBuilder
impl BatchRequestBuilder
Sourcepub fn assistant(self, content: impl Into<String>) -> Self
pub fn assistant(self, content: impl Into<String>) -> Self
Add an assistant message to the request
Sourcepub fn temperature(self, temperature: f32) -> Self
pub fn temperature(self, temperature: f32) -> Self
Set the temperature for the request
Sourcepub fn stop_sequences(self, stop_sequences: Vec<String>) -> Self
pub fn stop_sequences(self, stop_sequences: Vec<String>) -> Self
Add stop sequences for the request
Sourcepub fn tool_choice(self, tool_choice: ToolChoice) -> Self
pub fn tool_choice(self, tool_choice: ToolChoice) -> Self
Set tool choice for the request
Sourcepub fn build(self) -> BatchRequest
pub fn build(self) -> BatchRequest
Build the batch request
Trait Implementations§
Source§impl Clone for BatchRequestBuilder
impl Clone for BatchRequestBuilder
Source§fn clone(&self) -> BatchRequestBuilder
fn clone(&self) -> BatchRequestBuilder
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 BatchRequestBuilder
impl RefUnwindSafe for BatchRequestBuilder
impl Send for BatchRequestBuilder
impl Sync for BatchRequestBuilder
impl Unpin for BatchRequestBuilder
impl UnwindSafe for BatchRequestBuilder
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