pub enum CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat {
Text(ResponseFormatText),
JsonSchema(ResponseFormatJsonSchema),
JsonObject(ResponseFormatJsonObject),
}
Expand description
An object specifying the format that the model must output.
Setting to { "type": "json_schema", "json_schema": {...} }
enables
Structured Outputs which ensures the model will match your supplied JSON
schema. Learn more in the Structured Outputs
guide.
Setting to { "type": "json_object" }
enables the older JSON mode, which
ensures the message the model generates is valid JSON. Using json_schema
is preferred for models that support it.
Variants§
Trait Implementations§
Source§impl Clone for CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
impl Clone for CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
Source§fn clone(
&self,
) -> CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
fn clone( &self, ) -> CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
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<'de> Deserialize<'de> for CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
impl<'de> Deserialize<'de> for CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
impl PartialEq for CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
Source§fn eq(
&self,
other: &CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat,
) -> bool
fn eq( &self, other: &CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
Auto Trait Implementations§
impl Freeze for CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
impl RefUnwindSafe for CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
impl Send for CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
impl Sync for CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
impl Unpin for CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
impl UnwindSafe for CreateEvalCompletionsRunDataSourceSamplingParamsResponseFormat
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