#[non_exhaustive]pub enum EffortLevel {
Low,
Medium,
High,
Xhigh,
Max,
Other(String),
}Expand description
effortLevel, maxEffortLevel and modelSettings.*.effortLevel.
max is valid only as a cap.
Docs: effortLevel.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Low
The least reasoning, for short, scoped, latency-sensitive tasks that aren’t intelligence-sensitive.
Medium
Reduces token usage for cost-sensitive work that can trade off some intelligence.
High
Balances token usage and intelligence.
Xhigh
Deeper reasoning at higher token spend.
Max
No cap (maxEffortLevel only).
Other(String)
A value this crate doesn’t know, as written.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for EffortLevel
impl AsRef<str> for EffortLevel
Source§impl Clone for EffortLevel
impl Clone for EffortLevel
Source§impl Debug for EffortLevel
impl Debug for EffortLevel
Source§impl<'de> Deserialize<'de> for EffortLevel
impl<'de> Deserialize<'de> for EffortLevel
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EffortLevel
impl Display for EffortLevel
impl Eq for EffortLevel
Source§impl From<&str> for EffortLevel
impl From<&str> for EffortLevel
Source§impl From<String> for EffortLevel
impl From<String> for EffortLevel
Source§impl Hash for EffortLevel
impl Hash for EffortLevel
Source§impl Ord for EffortLevel
impl Ord for EffortLevel
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EffortLevel
impl PartialEq for EffortLevel
Source§impl PartialOrd for EffortLevel
impl PartialOrd for EffortLevel
Source§impl Serialize for EffortLevel
impl Serialize for EffortLevel
impl StructuralPartialEq for EffortLevel
Auto Trait Implementations§
impl Forget for EffortLevel
impl Freeze for EffortLevel
impl Move for EffortLevel
impl RefUnwindSafe for EffortLevel
impl Send for EffortLevel
impl Sync for EffortLevel
impl Unpin for EffortLevel
impl UnsafeUnpin for EffortLevel
impl UnwindSafe for EffortLevel
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