pub enum ReasoningEffortSupport {
Unknown,
Declared(BTreeSet<ReasoningEffort>),
}Expand description
An explicit model contract, independent of its output parser or whether a template happens to interpolate an effort variable. Unknown support must not be treated as a declaration that a requested effort is unsupported.
Variants§
Unknown
Declared(BTreeSet<ReasoningEffort>)
Exhaustive supported values. An empty set explicitly supports no effort
controls; omission of a declaration is represented by Unknown instead.
Implementations§
Source§impl ReasoningEffortSupport
impl ReasoningEffortSupport
pub fn supports(&self, effort: ReasoningEffort) -> Option<bool>
pub fn declared_efforts(&self) -> Option<&BTreeSet<ReasoningEffort>>
Trait Implementations§
Source§impl Clone for ReasoningEffortSupport
impl Clone for ReasoningEffortSupport
Source§fn clone(&self) -> ReasoningEffortSupport
fn clone(&self) -> ReasoningEffortSupport
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 ReasoningEffortSupport
impl Debug for ReasoningEffortSupport
Source§impl Default for ReasoningEffortSupport
impl Default for ReasoningEffortSupport
Source§fn default() -> ReasoningEffortSupport
fn default() -> ReasoningEffortSupport
Returns the “default value” for a type. Read more
impl Eq for ReasoningEffortSupport
Source§impl PartialEq for ReasoningEffortSupport
impl PartialEq for ReasoningEffortSupport
impl StructuralPartialEq for ReasoningEffortSupport
Auto Trait Implementations§
impl Freeze for ReasoningEffortSupport
impl RefUnwindSafe for ReasoningEffortSupport
impl Send for ReasoningEffortSupport
impl Sync for ReasoningEffortSupport
impl Unpin for ReasoningEffortSupport
impl UnsafeUnpin for ReasoningEffortSupport
impl UnwindSafe for ReasoningEffortSupport
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.