pub struct StructuredConfig {
pub max_retries: u32,
}Expand description
Bounds for the structured-output re-prompt loop.
Fields§
§max_retries: u32Maximum number of re-prompts after the first attempt. A value of 2
means up to three model calls total (1 initial + 2 retries) before the
runner gives up with StructuredOutputError::RetriesExhausted.
Mirrors the Claude SDK error_max_structured_output_retries.
Trait Implementations§
Source§impl Clone for StructuredConfig
impl Clone for StructuredConfig
Source§fn clone(&self) -> StructuredConfig
fn clone(&self) -> StructuredConfig
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 StructuredConfig
Source§impl Debug for StructuredConfig
impl Debug for StructuredConfig
Source§impl Default for StructuredConfig
impl Default for StructuredConfig
Source§fn default() -> StructuredConfig
fn default() -> StructuredConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StructuredConfig
impl RefUnwindSafe for StructuredConfig
impl Send for StructuredConfig
impl Sync for StructuredConfig
impl Unpin for StructuredConfig
impl UnsafeUnpin for StructuredConfig
impl UnwindSafe for StructuredConfig
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