pub struct OutputSchema { /* private fields */ }Expand description
A validated, provider-independent JSON Schema for model output.
Implementations§
Source§impl OutputSchema
impl OutputSchema
Sourcepub fn new(schema: Value) -> Result<Self, OutputSchemaError>
pub fn new(schema: Value) -> Result<Self, OutputSchemaError>
Validates and compiles a JSON Schema for structured model output.
§Errors
Returns OutputSchemaError when the schema is oversized, references
an external resource, or is outside the harness’s JSON Schema Draft
2020-12 safety profile.
Trait Implementations§
Source§impl Clone for OutputSchema
impl Clone for OutputSchema
Source§fn clone(&self) -> OutputSchema
fn clone(&self) -> OutputSchema
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 moreSource§impl Debug for OutputSchema
impl Debug for OutputSchema
impl Eq for OutputSchema
Auto Trait Implementations§
impl !RefUnwindSafe for OutputSchema
impl !UnwindSafe for OutputSchema
impl Freeze for OutputSchema
impl Send for OutputSchema
impl Sync for OutputSchema
impl Unpin for OutputSchema
impl UnsafeUnpin for OutputSchema
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
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.