pub struct StructuredOutputRetryPolicy { /* private fields */ }Expand description
Retry policy for application-level structured final-output decoding.
A retry is another model continuation in the same runtime session. The failed final-output call is recorded as a failed tool result before the continuation is started, so the model receives an actionable failure and the session remains resume-safe.
Implementations§
Source§impl StructuredOutputRetryPolicy
impl StructuredOutputRetryPolicy
Sourcepub const fn new(max_retries: usize) -> StructuredOutputRetryPolicy
pub const fn new(max_retries: usize) -> StructuredOutputRetryPolicy
Creates a policy with the supplied number of retries after the first structured-output attempt.
Sourcepub const fn disabled() -> StructuredOutputRetryPolicy
pub const fn disabled() -> StructuredOutputRetryPolicy
Returns a policy that does not retry a failed structured output.
Sourcepub const fn max_retries(self) -> usize
pub const fn max_retries(self) -> usize
Returns the maximum number of retries after the first attempt.
Trait Implementations§
Source§impl Clone for StructuredOutputRetryPolicy
impl Clone for StructuredOutputRetryPolicy
Source§fn clone(&self) -> StructuredOutputRetryPolicy
fn clone(&self) -> StructuredOutputRetryPolicy
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 StructuredOutputRetryPolicy
Source§impl Debug for StructuredOutputRetryPolicy
impl Debug for StructuredOutputRetryPolicy
Source§impl Default for StructuredOutputRetryPolicy
impl Default for StructuredOutputRetryPolicy
Source§fn default() -> StructuredOutputRetryPolicy
fn default() -> StructuredOutputRetryPolicy
Returns the “default value” for a type. Read more
impl Eq for StructuredOutputRetryPolicy
impl StructuralPartialEq for StructuredOutputRetryPolicy
Auto Trait Implementations§
impl Forget for StructuredOutputRetryPolicy
impl Freeze for StructuredOutputRetryPolicy
impl Move for StructuredOutputRetryPolicy
impl RefUnwindSafe for StructuredOutputRetryPolicy
impl Send for StructuredOutputRetryPolicy
impl Sync for StructuredOutputRetryPolicy
impl Unpin for StructuredOutputRetryPolicy
impl UnsafeUnpin for StructuredOutputRetryPolicy
impl UnwindSafe for StructuredOutputRetryPolicy
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.