pub enum FunctionCallOutput {
Text(String),
Content(Vec<InputContent>),
}Expand description
Output of a function_call_output item. Shadows upstream FunctionCallOutput
so the Content arm carries the crate’s InputContent (and so the relaxed
InputImageContent), giving tool outputs the same part semantics as message
content. Upstream’s arm carries its own InputContent, which accepts an
omitted detail since async-openai 0.38 but still rejects an explicit
"detail": null that message content accepts.
Variants§
Text(String)
A JSON string of the output of the function tool call.
Content(Vec<InputContent>)
Text / image / file parts.
Trait Implementations§
Source§impl Clone for FunctionCallOutput
impl Clone for FunctionCallOutput
Source§fn clone(&self) -> FunctionCallOutput
fn clone(&self) -> FunctionCallOutput
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 FunctionCallOutput
impl Debug for FunctionCallOutput
Source§impl<'de> Deserialize<'de> for FunctionCallOutput
impl<'de> Deserialize<'de> for FunctionCallOutput
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 From<&str> for FunctionCallOutput
impl From<&str> for FunctionCallOutput
Source§impl From<String> for FunctionCallOutput
impl From<String> for FunctionCallOutput
Source§impl From<Vec<InputContent>> for FunctionCallOutput
impl From<Vec<InputContent>> for FunctionCallOutput
Source§fn from(content: Vec<InputContent>) -> Self
fn from(content: Vec<InputContent>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FunctionCallOutput
impl PartialEq for FunctionCallOutput
Source§impl Serialize for FunctionCallOutput
impl Serialize for FunctionCallOutput
impl StructuralPartialEq for FunctionCallOutput
Auto Trait Implementations§
impl Freeze for FunctionCallOutput
impl RefUnwindSafe for FunctionCallOutput
impl Send for FunctionCallOutput
impl Sync for FunctionCallOutput
impl Unpin for FunctionCallOutput
impl UnsafeUnpin for FunctionCallOutput
impl UnwindSafe for FunctionCallOutput
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