pub struct ModelBuilder(/* private fields */);Expand description
Builder for Model.
Implementations§
Source§impl ModelBuilder
impl ModelBuilder
pub fn display_name(self, value: impl Into<String>) -> Self
pub fn description(self, value: impl Into<String>) -> Self
pub fn instructions(self, value: impl Into<String>) -> Self
pub fn context_window(self, value: impl Into<u64>) -> Self
pub fn max_context_window(self, value: impl Into<u64>) -> Self
pub fn max_output_tokens(self, value: impl Into<u64>) -> Self
pub fn thinking_supported(self, value: impl Into<bool>) -> Self
pub fn input_modalities(self, value: impl Into<Vec<String>>) -> Self
pub fn output_modalities(self, value: impl Into<Vec<String>>) -> Self
pub fn supported_parameters(self, value: impl Into<Vec<String>>) -> Self
pub fn supported_reasoning_levels( self, value: impl Into<Vec<ModelReasoningLevel>>, ) -> Self
pub fn default_reasoning_level(self, value: impl Into<String>) -> Self
pub fn service_tiers(self, value: impl Into<Vec<ModelServiceTier>>) -> Self
pub fn default_service_tier(self, value: impl Into<String>) -> Self
pub fn generation_methods(self, value: impl Into<Vec<String>>) -> Self
pub fn supported_actions(self, value: impl Into<Vec<String>>) -> Self
pub fn rest(self, value: Rest) -> Self
Auto Trait Implementations§
impl Freeze for ModelBuilder
impl RefUnwindSafe for ModelBuilder
impl Send for ModelBuilder
impl Sync for ModelBuilder
impl Unpin for ModelBuilder
impl UnsafeUnpin for ModelBuilder
impl UnwindSafe for ModelBuilder
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