pub enum PredictionContentContent {
Text(String),
Array(Vec<ChatCompletionRequestMessageContentPartText>),
}
Expand description
The content that should be matched when generating a model response. If generated tokens would match this content, the entire model response can be returned much more quickly.
Variants§
Text(String)
The content used for a Predicted Output. This is often the text of a file you are regenerating with minor changes.
Array(Vec<ChatCompletionRequestMessageContentPartText>)
An array of content parts with a defined type. Supported options differ based on the model being used to generate the response. Can contain text inputs.
Trait Implementations§
Source§impl Clone for PredictionContentContent
impl Clone for PredictionContentContent
Source§fn clone(&self) -> PredictionContentContent
fn clone(&self) -> PredictionContentContent
Returns a copy 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 PredictionContentContent
impl Debug for PredictionContentContent
Source§impl<'de> Deserialize<'de> for PredictionContentContent
impl<'de> Deserialize<'de> for PredictionContentContent
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 PredictionContentContent
impl PartialEq for PredictionContentContent
Source§impl Serialize for PredictionContentContent
impl Serialize for PredictionContentContent
impl StructuralPartialEq for PredictionContentContent
Auto Trait Implementations§
impl Freeze for PredictionContentContent
impl RefUnwindSafe for PredictionContentContent
impl Send for PredictionContentContent
impl Sync for PredictionContentContent
impl Unpin for PredictionContentContent
impl UnwindSafe for PredictionContentContent
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