pub struct StructuredOutput {
pub value: Value,
pub response: ChatResponse,
pub retries: u32,
}Expand description
A successfully validated structured output and the response that produced it.
Fields§
§value: ValueThe validated JSON value, guaranteed to satisfy the requested schema.
response: ChatResponseThe full provider response that produced value, so
callers can still read usage, stop reason, and any leading text.
retries: u32Number of re-prompts performed before the value validated (0 when the first attempt already satisfied the schema).
Trait Implementations§
Source§impl Clone for StructuredOutput
impl Clone for StructuredOutput
Source§fn clone(&self) -> StructuredOutput
fn clone(&self) -> StructuredOutput
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 moreAuto Trait Implementations§
impl Freeze for StructuredOutput
impl RefUnwindSafe for StructuredOutput
impl Send for StructuredOutput
impl Sync for StructuredOutput
impl Unpin for StructuredOutput
impl UnsafeUnpin for StructuredOutput
impl UnwindSafe for StructuredOutput
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