pub struct ChatMessageFunctionCall {
pub name: String,
pub arguments: String,
}Expand description
The name and arguments of a function that should be called, as generated by the model.
Fields§
§name: StringThe name of the function to call.
arguments: StringThe 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 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
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