pub enum ProfilePreference {
Auto,
Pinned(String),
ForceHash,
}Expand description
Caller-supplied preference for which local model profile a single call should use.
Variants§
Auto
No pin — rank by free VRAM (existing behavior).
Pinned(String)
Pin to a specific profile id. The resolver still checks VRAM fit and
reports PinnedUnselectable if the profile would not fit the probe.
ForceHash
Force the deterministic CPU/hash fallback even if a GPU profile would fit. Use during low-stakes phases of a long agent-doc run.
Implementations§
Trait Implementations§
Source§impl Clone for ProfilePreference
impl Clone for ProfilePreference
Source§fn clone(&self) -> ProfilePreference
fn clone(&self) -> ProfilePreference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfilePreference
impl Debug for ProfilePreference
Source§impl<'de> Deserialize<'de> for ProfilePreference
impl<'de> Deserialize<'de> for ProfilePreference
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProfilePreference
Source§impl PartialEq for ProfilePreference
impl PartialEq for ProfilePreference
Source§fn eq(&self, other: &ProfilePreference) -> bool
fn eq(&self, other: &ProfilePreference) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProfilePreference
impl Serialize for ProfilePreference
impl StructuralPartialEq for ProfilePreference
Auto Trait Implementations§
impl Freeze for ProfilePreference
impl RefUnwindSafe for ProfilePreference
impl Send for ProfilePreference
impl Sync for ProfilePreference
impl Unpin for ProfilePreference
impl UnsafeUnpin for ProfilePreference
impl UnwindSafe for ProfilePreference
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