pub enum TaskComplexity {
Simple,
Medium,
Complex,
Critical,
}Expand description
Task complexity hint for model selection.
Variants§
Simple
Simple tasks: grep, list, format, summarize
Medium
Medium tasks: code edits, analysis, research
Complex
Complex tasks: architecture, debugging, multi-step reasoning
Critical
Critical tasks: security, production changes, important decisions
Implementations§
Source§impl TaskComplexity
impl TaskComplexity
Sourcepub fn recommended_tier(&self) -> CostTier
pub fn recommended_tier(&self) -> CostTier
Recommended minimum cost tier for this complexity.
Trait Implementations§
Source§impl Clone for TaskComplexity
impl Clone for TaskComplexity
Source§fn clone(&self) -> TaskComplexity
fn clone(&self) -> TaskComplexity
Returns a duplicate of the value. Read more
1.0.0 · 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 TaskComplexity
impl Debug for TaskComplexity
Source§impl<'de> Deserialize<'de> for TaskComplexity
impl<'de> Deserialize<'de> for TaskComplexity
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 Hash for TaskComplexity
impl Hash for TaskComplexity
Source§impl PartialEq for TaskComplexity
impl PartialEq for TaskComplexity
Source§impl Serialize for TaskComplexity
impl Serialize for TaskComplexity
impl Copy for TaskComplexity
impl Eq for TaskComplexity
impl StructuralPartialEq for TaskComplexity
Auto Trait Implementations§
impl Freeze for TaskComplexity
impl RefUnwindSafe for TaskComplexity
impl Send for TaskComplexity
impl Sync for TaskComplexity
impl Unpin for TaskComplexity
impl UnsafeUnpin for TaskComplexity
impl UnwindSafe for TaskComplexity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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.