pub struct CreateMessagesRequestBuilder { /* private fields */ }
Expand description
Builder for CreateMessagesRequest
.
Implementations§
Source§impl CreateMessagesRequestBuilder
impl CreateMessagesRequestBuilder
pub fn messages<VALUE: Into<Vec<Message>>>(&mut self, value: VALUE) -> &mut Self
pub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn max_tokens<VALUE: Into<i32>>(&mut self, value: VALUE) -> &mut Self
pub fn metadata<VALUE: Into<Map<String, Value>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn stop_sequences<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn stream<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn temperature<VALUE: Into<f32>>(&mut self, value: VALUE) -> &mut Self
pub fn tool_choice<VALUE: Into<ToolChoice>>( &mut self, value: VALUE, ) -> &mut Self
pub fn tools<VALUE: Into<Vec<Map<String, Value>>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn top_k<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn top_p<VALUE: Into<f32>>(&mut self, value: VALUE) -> &mut Self
pub fn system<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<CreateMessagesRequest, CreateMessagesRequestBuilderError>
pub fn build( &self, ) -> Result<CreateMessagesRequest, CreateMessagesRequestBuilderError>
Trait Implementations§
Source§impl Clone for CreateMessagesRequestBuilder
impl Clone for CreateMessagesRequestBuilder
Source§fn clone(&self) -> CreateMessagesRequestBuilder
fn clone(&self) -> CreateMessagesRequestBuilder
Returns a copy 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 CreateMessagesRequestBuilder
impl RefUnwindSafe for CreateMessagesRequestBuilder
impl Send for CreateMessagesRequestBuilder
impl Sync for CreateMessagesRequestBuilder
impl Unpin for CreateMessagesRequestBuilder
impl UnwindSafe for CreateMessagesRequestBuilder
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