#[non_exhaustive]pub struct RoundAdjustment { /* private fields */ }Expand description
A model and/or reasoning override applied to the run’s subsequent rounds.
Applying an adjustment reuses the same live-config mechanics as
Agent::set_model and
Agent::set_reasoning: the change takes effect
on the next model request and persists for the remainder of the run (and, under
a persisting store, on the agent record) exactly as those methods do. Build one
with RoundAdjustment::new and the with_* methods.
Implementations§
Source§impl RoundAdjustment
impl RoundAdjustment
Sourcepub fn with_model(self, model: ModelInfo) -> Self
pub fn with_model(self, model: ModelInfo) -> Self
Switch the model (and its provider) for subsequent rounds.
Sourcepub fn with_reasoning(self, reasoning: ReasoningChange) -> Self
pub fn with_reasoning(self, reasoning: ReasoningChange) -> Self
Change the reasoning settings for subsequent rounds.
Trait Implementations§
Source§impl Clone for RoundAdjustment
impl Clone for RoundAdjustment
Source§fn clone(&self) -> RoundAdjustment
fn clone(&self) -> RoundAdjustment
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 RoundAdjustment
impl Debug for RoundAdjustment
Source§impl Default for RoundAdjustment
impl Default for RoundAdjustment
Source§fn default() -> RoundAdjustment
fn default() -> RoundAdjustment
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RoundAdjustment
impl RefUnwindSafe for RoundAdjustment
impl Send for RoundAdjustment
impl Sync for RoundAdjustment
impl Unpin for RoundAdjustment
impl UnsafeUnpin for RoundAdjustment
impl UnwindSafe for RoundAdjustment
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