pub enum ReasoningEffort {
Max,
Xhigh,
High,
Medium,
Low,
Minimal,
None,
}Expand description
Reasoning depth level for the reasoning_effort parameter (GLM-5.2+).
Controls how much reasoning the model invests when thinking mode is
enabled. Higher levels yield deeper reasoning at the cost of latency and
token usage; lower levels are faster and cheaper. Available only on
GLM-5.2 and above (models implementing
ReasoningEffortEnable).
Levels, from highest to lowest reasoning depth:
| Variant | Description |
|---|---|
Max | Maximum reasoning depth; recommended for coding / architecture-level tasks |
Xhigh | Extra-high reasoning |
High | High reasoning (default mapping in many clients) |
Medium | Balanced reasoning |
Low | Light reasoning |
Minimal | Minimal reasoning |
None | No extra reasoning beyond base behaviour |
§Usage
ⓘ
use zai_rs::model::tools::ReasoningEffort;
let client = ChatCompletion::new(GLM5_2 {}, messages, api_key)
.with_thinking(ThinkingType::enabled())
.with_reasoning_effort(ReasoningEffort::Max);Variants§
Max
Maximum reasoning depth. Recommended for coding and architecture-level tasks where correctness matters most.
Xhigh
Extra-high reasoning depth.
High
High reasoning depth.
Medium
Balanced reasoning depth.
Low
Light reasoning depth.
Minimal
Minimal reasoning depth.
None
No extra reasoning beyond base behaviour.
Trait Implementations§
Source§impl Clone for ReasoningEffort
impl Clone for ReasoningEffort
Source§fn clone(&self) -> ReasoningEffort
fn clone(&self) -> ReasoningEffort
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 ReasoningEffort
Source§impl Debug for ReasoningEffort
impl Debug for ReasoningEffort
impl Eq for ReasoningEffort
Source§impl PartialEq for ReasoningEffort
impl PartialEq for ReasoningEffort
Source§fn eq(&self, other: &ReasoningEffort) -> bool
fn eq(&self, other: &ReasoningEffort) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReasoningEffort
impl Serialize for ReasoningEffort
impl StructuralPartialEq for ReasoningEffort
Auto Trait Implementations§
impl Freeze for ReasoningEffort
impl RefUnwindSafe for ReasoningEffort
impl Send for ReasoningEffort
impl Sync for ReasoningEffort
impl Unpin for ReasoningEffort
impl UnsafeUnpin for ReasoningEffort
impl UnwindSafe for ReasoningEffort
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.