pub struct ReasoningArgs { /* private fields */ }Expand description
Builder for Reasoning.
Implementations§
Source§impl ReasoningArgs
impl ReasoningArgs
Sourcepub fn effort<VALUE>(&mut self, value: VALUE) -> &mut ReasoningArgswhere
VALUE: Into<ReasoningEffort>,
pub fn effort<VALUE>(&mut self, value: VALUE) -> &mut ReasoningArgswhere
VALUE: Into<ReasoningEffort>,
Constrains effort on reasoning for
reasoning models.
Currently supported values are minimal, low, medium, and high. Reducing
reasoning effort can result in faster responses and fewer tokens used
on reasoning in a response.
Note: The gpt-5-pro model defaults to (and only supports) high reasoning effort.
Sourcepub fn summary<VALUE>(&mut self, value: VALUE) -> &mut ReasoningArgswhere
VALUE: Into<ReasoningSummary>,
pub fn summary<VALUE>(&mut self, value: VALUE) -> &mut ReasoningArgswhere
VALUE: Into<ReasoningSummary>,
A summary of the reasoning performed by the model. This can be
useful for debugging and understanding the model’s reasoning process.
One of auto, concise, or detailed.
concise is supported for computer-use-preview models and all reasoning models after
gpt-5.
Trait Implementations§
Source§impl Clone for ReasoningArgs
impl Clone for ReasoningArgs
Source§fn clone(&self) -> ReasoningArgs
fn clone(&self) -> ReasoningArgs
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 Default for ReasoningArgs
impl Default for ReasoningArgs
Source§fn default() -> ReasoningArgs
fn default() -> ReasoningArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReasoningArgs
impl RefUnwindSafe for ReasoningArgs
impl Send for ReasoningArgs
impl Sync for ReasoningArgs
impl Unpin for ReasoningArgs
impl UnsafeUnpin for ReasoningArgs
impl UnwindSafe for ReasoningArgs
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