pub enum PromptPart {
Text(String),
Image {
media_type: String,
data: Vec<u8>,
},
}Expand description
Represents a part of a multimodal prompt.
This enum allows prompts to contain different types of content, such as text and images, enabling multimodal LLM interactions.
Variants§
Trait Implementations§
Source§impl Clone for PromptPart
impl Clone for PromptPart
Source§fn clone(&self) -> PromptPart
fn clone(&self) -> PromptPart
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 moreAuto Trait Implementations§
impl Freeze for PromptPart
impl RefUnwindSafe for PromptPart
impl Send for PromptPart
impl Sync for PromptPart
impl Unpin for PromptPart
impl UnwindSafe for PromptPart
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