pub enum ResponseShape {
Prose,
FreeJson,
Schema {
schema: Value,
wrapped: bool,
},
}Expand description
How a declared response type is requested from a provider.
Variants§
Prose
Take the completion text verbatim. Used for text and markdown.
FreeJson
Parse the completion as JSON without constraining it. Used for json,
which by definition has no fixed shape to constrain to.
Schema
Constrain the completion to a schema.
Trait Implementations§
Source§impl Clone for ResponseShape
impl Clone for ResponseShape
Source§fn clone(&self) -> ResponseShape
fn clone(&self) -> ResponseShape
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 ResponseShape
impl Debug for ResponseShape
Source§impl PartialEq for ResponseShape
impl PartialEq for ResponseShape
impl StructuralPartialEq for ResponseShape
Auto Trait Implementations§
impl Freeze for ResponseShape
impl RefUnwindSafe for ResponseShape
impl Send for ResponseShape
impl Sync for ResponseShape
impl Unpin for ResponseShape
impl UnsafeUnpin for ResponseShape
impl UnwindSafe for ResponseShape
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