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) -> Self
pub const fn new(max_retries: usize) -> Self
Creates a policy with the supplied number of retries after the first structured-output attempt.
Sourcepub const fn disabled() -> Self
pub const fn disabled() -> Self
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
impl Copy for StructuredOutputRetryPolicy
Source§impl Debug for StructuredOutputRetryPolicy
impl Debug for StructuredOutputRetryPolicy
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.