pub enum EffortShape {
Graded(&'static [Effort]),
Binary {
on_at: Effort,
},
Budget(&'static [Effort]),
AlwaysOn,
None,
}Expand description
What form of reasoning control a model accepts.
Provider controls do not share a shape, and three of these cannot be expressed by a level-to-string table:
EffortShape::AlwaysOnis notEffortShape::None. Mistral’s Magistral models always reason and rejectreasoning_effortwith HTTP 422 — a hard failure, not a degradation.Nonemeans “passing nothing is correct”;AlwaysOnmeans “passing anything breaks every call”.EffortShape::Binaryis not a degenerateGraded. Qwen and GLM have a switch, not a dial, and spell it differently (chat_template_kwargsversusthinking: {type}). Two other agent products shipped that exact confusion.EffortShape::Budgettakes an integer on the wire but still carries a level list, because the user and both UIs deal in levels — only the client converts, at the last possible moment.
Variants§
Graded(&'static [Effort])
Levels this model accepts, cheapest first.
Binary
Thinking is a switch; on_at is the lowest level that turns it on.
Budget(&'static [Effort])
Wants an integer token budget; these are the levels to offer.
AlwaysOn
Always reasons and rejects the parameter. Send nothing.
None
No reasoning control.
Implementations§
Trait Implementations§
Source§impl Clone for EffortShape
impl Clone for EffortShape
Source§fn clone(&self) -> EffortShape
fn clone(&self) -> EffortShape
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 EffortShape
Source§impl Debug for EffortShape
impl Debug for EffortShape
impl Eq for EffortShape
Source§impl PartialEq for EffortShape
impl PartialEq for EffortShape
impl StructuralPartialEq for EffortShape
Auto Trait Implementations§
impl Freeze for EffortShape
impl RefUnwindSafe for EffortShape
impl Send for EffortShape
impl Sync for EffortShape
impl Unpin for EffortShape
impl UnsafeUnpin for EffortShape
impl UnwindSafe for EffortShape
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,
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.