pub struct FunctionCallContent {
pub call_id: String,
pub name: String,
pub arguments: Option<FunctionArguments>,
}Expand description
A request from the model to call a tool/function.
arguments may be a partial JSON string (during streaming) or a completed
JSON object.
Fields§
§call_id: String§name: String§arguments: Option<FunctionArguments>Implementations§
Source§impl FunctionCallContent
impl FunctionCallContent
Trait Implementations§
Source§impl Clone for FunctionCallContent
impl Clone for FunctionCallContent
Source§fn clone(&self) -> FunctionCallContent
fn clone(&self) -> FunctionCallContent
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 FunctionCallContent
impl Debug for FunctionCallContent
Source§impl<'de> Deserialize<'de> for FunctionCallContent
impl<'de> Deserialize<'de> for FunctionCallContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FunctionCallContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FunctionCallContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<FunctionCallContent> for Content
impl From<FunctionCallContent> for Content
Source§fn from(v: FunctionCallContent) -> Content
fn from(v: FunctionCallContent) -> Content
Converts to this type from the input type.
Source§impl PartialEq for FunctionCallContent
impl PartialEq for FunctionCallContent
Source§impl Serialize for FunctionCallContent
impl Serialize for FunctionCallContent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FunctionCallContent
Auto Trait Implementations§
impl Freeze for FunctionCallContent
impl RefUnwindSafe for FunctionCallContent
impl Send for FunctionCallContent
impl Sync for FunctionCallContent
impl Unpin for FunctionCallContent
impl UnsafeUnpin for FunctionCallContent
impl UnwindSafe for FunctionCallContent
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