pub struct ParametersBuilder { /* private fields */ }
Expand description
Builder for Parameters
.
Implementations§
Source§impl ParametersBuilder
impl ParametersBuilder
pub fn result_format<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn translation_options(&mut self, value: TranslationOptions) -> &mut Self
pub fn incremental_output<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
pub fn tools<VALUE: Into<Vec<FunctionCall>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn parallel_tool_calls<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
pub fn thinking_budget<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
pub fn enable_search<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn search_options<VALUE: Into<SearchOptions>>( &mut self, value: VALUE, ) -> &mut Self
pub fn enable_thinking<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn response_format<VALUE: Into<ResponseFormat>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<Parameters, ParametersBuilderError>
pub fn build(&self) -> Result<Parameters, ParametersBuilderError>
Source§impl ParametersBuilder
impl ParametersBuilder
Trait Implementations§
Source§impl Clone for ParametersBuilder
impl Clone for ParametersBuilder
Source§fn clone(&self) -> ParametersBuilder
fn clone(&self) -> ParametersBuilder
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 ParametersBuilder
impl RefUnwindSafe for ParametersBuilder
impl Send for ParametersBuilder
impl Sync for ParametersBuilder
impl Unpin for ParametersBuilder
impl UnwindSafe for ParametersBuilder
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