pub struct JsonSchemaStrategy {
pub strict: bool,
}Expand description
JSON Schema strategy for providers that support strict JSON Schema.
This is used for providers like OpenAI that support the response_format.json_schema parameter with strict schema validation.
Fields§
§strict: boolWhether to enable strict mode
Implementations§
Source§impl JsonSchemaStrategy
impl JsonSchemaStrategy
Sourcepub fn with_strict(strict: bool) -> Self
pub fn with_strict(strict: bool) -> Self
Create a new JSON Schema strategy with configurable strict mode
Trait Implementations§
Source§impl Clone for JsonSchemaStrategy
impl Clone for JsonSchemaStrategy
Source§fn clone(&self) -> JsonSchemaStrategy
fn clone(&self) -> JsonSchemaStrategy
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 JsonSchemaStrategy
impl Debug for JsonSchemaStrategy
Source§impl Default for JsonSchemaStrategy
impl Default for JsonSchemaStrategy
Auto Trait Implementations§
impl Freeze for JsonSchemaStrategy
impl RefUnwindSafe for JsonSchemaStrategy
impl Send for JsonSchemaStrategy
impl Sync for JsonSchemaStrategy
impl Unpin for JsonSchemaStrategy
impl UnwindSafe for JsonSchemaStrategy
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