pub struct ModelFilterBuilder { /* private fields */ }Expand description
Builder for model filter
Implementations§
Source§impl ModelFilterBuilder
impl ModelFilterBuilder
Sourcepub fn supports_tools(self, supports: bool) -> Self
pub fn supports_tools(self, supports: bool) -> Self
Filter by tool support
Sourcepub fn supports_vision(self, supports: bool) -> Self
pub fn supports_vision(self, supports: bool) -> Self
Filter by vision support
Sourcepub fn max_cost_tier(self, tier: u32) -> Self
pub fn max_cost_tier(self, tier: u32) -> Self
Set maximum cost tier
Sourcepub fn min_context_length(self, length: u32) -> Self
pub fn min_context_length(self, length: u32) -> Self
Set minimum context length
Sourcepub fn build(self) -> ModelFilter
pub fn build(self) -> ModelFilter
Build filter
Trait Implementations§
Source§impl Debug for ModelFilterBuilder
impl Debug for ModelFilterBuilder
Source§impl Default for ModelFilterBuilder
impl Default for ModelFilterBuilder
Source§fn default() -> ModelFilterBuilder
fn default() -> ModelFilterBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModelFilterBuilder
impl RefUnwindSafe for ModelFilterBuilder
impl Send for ModelFilterBuilder
impl Sync for ModelFilterBuilder
impl Unpin for ModelFilterBuilder
impl UnwindSafe for ModelFilterBuilder
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