pub enum InputContentPart {
InputText {
text: String,
},
OutputText {
text: String,
},
InputImage {
image_url: Option<ImageUrl>,
detail: Option<ImageDetail>,
file_id: Option<String>,
},
}Expand description
A content part of an input message or tool output.
Variants§
InputText
A text input part.
OutputText
An assistant text output part (only valid in assistant messages).
InputImage
An image input part. image_url and file_id are mutually
exclusive; exactly one must be provided.
Trait Implementations§
Source§impl Clone for InputContentPart
impl Clone for InputContentPart
Source§fn clone(&self) -> InputContentPart
fn clone(&self) -> InputContentPart
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 Debug for InputContentPart
impl Debug for InputContentPart
Auto Trait Implementations§
impl Freeze for InputContentPart
impl RefUnwindSafe for InputContentPart
impl Send for InputContentPart
impl Sync for InputContentPart
impl Unpin for InputContentPart
impl UnsafeUnpin for InputContentPart
impl UnwindSafe for InputContentPart
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