pub struct ChatMessageFunctionCall {
pub name: Option<String>,
pub arguments: Option<String>,
}
Fields§
§name: Option<String>
The name of the function to call.
arguments: Option<String>
The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
Trait Implementations§
Source§impl Clone for ChatMessageFunctionCall
impl Clone for ChatMessageFunctionCall
Source§fn clone(&self) -> ChatMessageFunctionCall
fn clone(&self) -> ChatMessageFunctionCall
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChatMessageFunctionCall
impl Debug for ChatMessageFunctionCall
Source§impl<'de> Deserialize<'de> for ChatMessageFunctionCall
impl<'de> Deserialize<'de> for ChatMessageFunctionCall
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 PartialEq for ChatMessageFunctionCall
impl PartialEq for ChatMessageFunctionCall
Source§fn eq(&self, other: &ChatMessageFunctionCall) -> bool
fn eq(&self, other: &ChatMessageFunctionCall) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for ChatMessageFunctionCall
impl Serialize for ChatMessageFunctionCall
impl StructuralPartialEq for ChatMessageFunctionCall
Auto Trait Implementations§
impl Freeze for ChatMessageFunctionCall
impl RefUnwindSafe for ChatMessageFunctionCall
impl Send for ChatMessageFunctionCall
impl Sync for ChatMessageFunctionCall
impl Unpin for ChatMessageFunctionCall
impl UnwindSafe for ChatMessageFunctionCall
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