pub enum FunctionCallOutputContentItem {
InputText {
text: String,
},
InputImage {
detail: Option<ImageDetail>,
image_url: String,
},
InputAudio {
audio_url: String,
},
EncryptedContent {
encrypted_content: String,
},
}Expand description
Responses-API compatible content items a tool call can return — the subset of ContentItem supported as function call outputs (0.148 upstream). Wire tags and fields are snake_case, unlike most v2 types.
Variants§
Trait Implementations§
Source§impl Clone for FunctionCallOutputContentItem
impl Clone for FunctionCallOutputContentItem
Source§fn clone(&self) -> FunctionCallOutputContentItem
fn clone(&self) -> FunctionCallOutputContentItem
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<'de> Deserialize<'de> for FunctionCallOutputContentItem
impl<'de> Deserialize<'de> for FunctionCallOutputContentItem
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
impl StructuralPartialEq for FunctionCallOutputContentItem
Auto Trait Implementations§
impl Freeze for FunctionCallOutputContentItem
impl RefUnwindSafe for FunctionCallOutputContentItem
impl Send for FunctionCallOutputContentItem
impl Sync for FunctionCallOutputContentItem
impl Unpin for FunctionCallOutputContentItem
impl UnsafeUnpin for FunctionCallOutputContentItem
impl UnwindSafe for FunctionCallOutputContentItem
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