pub struct GenerateObjectConfig {
pub max_attempts: u32,
pub system_prompt_fallback: bool,
}Expand description
Configuration for generate_object and stream_object_async.
Fields§
§max_attempts: u32Maximum number of attempts (initial + retries). Default: 1 (single attempt, no retries). Set to 2 for one retry, etc.
system_prompt_fallback: boolWhether to include the schema in the system prompt as a fallback for providers that don’t support native structured output. Default: false.
Trait Implementations§
Source§impl Clone for GenerateObjectConfig
impl Clone for GenerateObjectConfig
Source§fn clone(&self) -> GenerateObjectConfig
fn clone(&self) -> GenerateObjectConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 GenerateObjectConfig
impl Debug for GenerateObjectConfig
Auto Trait Implementations§
impl Freeze for GenerateObjectConfig
impl RefUnwindSafe for GenerateObjectConfig
impl Send for GenerateObjectConfig
impl Sync for GenerateObjectConfig
impl Unpin for GenerateObjectConfig
impl UnwindSafe for GenerateObjectConfig
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