pub enum OllamaThinkType {
Off,
Low,
Medium,
High,
}Expand description
Controls the “think” (reasoning) level for Ollama models that support it (e.g. qwen2.5 variants). Affects how much internal reasoning the model does before responding.
Corresponds to Ollama’s think parameter. Only meaningful for Ollama;
other providers ignore this setting.
Variants§
Off
Disable thinking entirely (fastest, lowest quality).
Low
Minimal reasoning (faster, lower latency).
Medium
Balanced reasoning (good default).
High
Maximum reasoning (slowest, highest quality).
Trait Implementations§
Source§impl Clone for OllamaThinkType
impl Clone for OllamaThinkType
Source§fn clone(&self) -> OllamaThinkType
fn clone(&self) -> OllamaThinkType
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 moreimpl Copy for OllamaThinkType
Source§impl Debug for OllamaThinkType
impl Debug for OllamaThinkType
Source§impl Default for OllamaThinkType
impl Default for OllamaThinkType
Source§fn default() -> OllamaThinkType
fn default() -> OllamaThinkType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OllamaThinkType
impl<'de> Deserialize<'de> for OllamaThinkType
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
Source§impl Display for OllamaThinkType
impl Display for OllamaThinkType
impl Eq for OllamaThinkType
Source§impl FromStr for OllamaThinkType
impl FromStr for OllamaThinkType
Source§impl PartialEq for OllamaThinkType
impl PartialEq for OllamaThinkType
Source§fn eq(&self, other: &OllamaThinkType) -> bool
fn eq(&self, other: &OllamaThinkType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OllamaThinkType
impl Serialize for OllamaThinkType
impl StructuralPartialEq for OllamaThinkType
Auto Trait Implementations§
impl Freeze for OllamaThinkType
impl RefUnwindSafe for OllamaThinkType
impl Send for OllamaThinkType
impl Sync for OllamaThinkType
impl Unpin for OllamaThinkType
impl UnsafeUnpin for OllamaThinkType
impl UnwindSafe for OllamaThinkType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.