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 input_token_limit(self, value: impl Into<i64>) -> Self
pub fn output_token_limit(self, value: impl Into<i64>) -> Self
pub fn supported_generation_methods(self, value: impl Into<Vec<String>>) -> Self
pub fn thinking(self, value: impl Into<bool>) -> Self
pub fn temperature(self, value: impl Into<f64>) -> Self
pub fn max_temperature(self, value: impl Into<f64>) -> Self
pub fn top_p(self, value: impl Into<f64>) -> Self
pub fn top_k(self, value: impl Into<i64>) -> 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