pub enum TextResponseFormatConfiguration {
Text,
JsonObject,
JsonSchema(ResponseFormatJsonSchema),
}Variants§
Text
Default response format. Used to generate text responses.
JsonObject
JSON object response format. An older method of generating JSON responses.
Using json_schema is recommended for models that support it.
Note that the model will not generate JSON without a system or user message
instructing it to do so.
JsonSchema(ResponseFormatJsonSchema)
JSON Schema response format. Used to generate structured JSON responses. Learn more about Structured Outputs.
Trait Implementations§
Source§impl Clone for TextResponseFormatConfiguration
impl Clone for TextResponseFormatConfiguration
Source§fn clone(&self) -> TextResponseFormatConfiguration
fn clone(&self) -> TextResponseFormatConfiguration
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<'de> Deserialize<'de> for TextResponseFormatConfiguration
impl<'de> Deserialize<'de> for TextResponseFormatConfiguration
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TextResponseFormatConfiguration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TextResponseFormatConfiguration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TextResponseFormatConfiguration> for ResponseTextParam
impl From<TextResponseFormatConfiguration> for ResponseTextParam
Source§fn from(format: TextResponseFormatConfiguration) -> ResponseTextParam
fn from(format: TextResponseFormatConfiguration) -> ResponseTextParam
Converts to this type from the input type.
Source§impl Serialize for TextResponseFormatConfiguration
impl Serialize for TextResponseFormatConfiguration
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TextResponseFormatConfiguration
Auto Trait Implementations§
impl Freeze for TextResponseFormatConfiguration
impl RefUnwindSafe for TextResponseFormatConfiguration
impl Send for TextResponseFormatConfiguration
impl Sync for TextResponseFormatConfiguration
impl Unpin for TextResponseFormatConfiguration
impl UnsafeUnpin for TextResponseFormatConfiguration
impl UnwindSafe for TextResponseFormatConfiguration
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