pub enum FunctionCallOutputContentItem {
InputText {
text: String,
},
InputImage {
detail: Option<ImageDetail>,
image_url: String,
},
EncryptedContent {
encrypted_content: String,
},
}Expand description
Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.
JSON schema
{
"description": "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.",
"oneOf": [
{
"title": "InputTextFunctionCallOutputContentItem",
"type": "object",
"required": [
"text",
"type"
],
"properties": {
"text": {
"type": "string"
},
"type": {
"title": "InputTextFunctionCallOutputContentItemType",
"type": "string",
"enum": [
"input_text"
]
}
}
},
{
"title": "InputImageFunctionCallOutputContentItem",
"type": "object",
"required": [
"image_url",
"type"
],
"properties": {
"detail": {
"anyOf": [
{
"$ref": "#/definitions/ImageDetail"
},
{
"type": "null"
}
]
},
"image_url": {
"type": "string"
},
"type": {
"title": "InputImageFunctionCallOutputContentItemType",
"type": "string",
"enum": [
"input_image"
]
}
}
},
{
"title": "EncryptedContentFunctionCallOutputContentItem",
"type": "object",
"required": [
"encrypted_content",
"type"
],
"properties": {
"encrypted_content": {
"type": "string"
},
"type": {
"title": "EncryptedContentFunctionCallOutputContentItemType",
"type": "string",
"enum": [
"encrypted_content"
]
}
}
}
]
}Variants§
InputText
InputTextFunctionCallOutputContentItem
InputImage
InputImageFunctionCallOutputContentItem
EncryptedContent
EncryptedContentFunctionCallOutputContentItem
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
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