pub struct StructuredRequest {
pub messages: Vec<Message>,
pub schema: Value,
pub schema_name: String,
}Expand description
Request for a structured JSON response conforming to a JSON schema.
Fields§
§messages: Vec<Message>§schema: ValueJSON Schema describing the expected response shape.
schema_name: StringName for the schema (sent to the provider as schema_name).
Auto Trait Implementations§
impl Freeze for StructuredRequest
impl RefUnwindSafe for StructuredRequest
impl Send for StructuredRequest
impl Sync for StructuredRequest
impl Unpin for StructuredRequest
impl UnsafeUnpin for StructuredRequest
impl UnwindSafe for StructuredRequest
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