pub enum ModelInputPart {
Message {
role: String,
content: ModelInputContent,
name: Option<String>,
message_type: Option<String>,
},
Item(ModelInputItem),
}Expand description
A part of model input.
Variants§
Message
Message input to the model.
Fields
§
content: ModelInputContentText, image or audio input.
Item(ModelInputItem)
Previous responses of the model and tool call outputs.
Trait Implementations§
Source§impl Clone for ModelInputPart
impl Clone for ModelInputPart
Source§fn clone(&self) -> ModelInputPart
fn clone(&self) -> ModelInputPart
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 Debug for ModelInputPart
impl Debug for ModelInputPart
Source§impl Default for ModelInputPart
impl Default for ModelInputPart
Source§impl<'de> Deserialize<'de> for ModelInputPart
impl<'de> Deserialize<'de> for ModelInputPart
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 ModelInputPart
impl PartialEq for ModelInputPart
Source§impl Serialize for ModelInputPart
impl Serialize for ModelInputPart
impl StructuralPartialEq for ModelInputPart
Auto Trait Implementations§
impl Freeze for ModelInputPart
impl RefUnwindSafe for ModelInputPart
impl Send for ModelInputPart
impl Sync for ModelInputPart
impl Unpin for ModelInputPart
impl UnwindSafe for ModelInputPart
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