pub struct ChatCompletionMessageToolCallFunction {
pub name: String,
pub arguments: String,
}
Expand description
Function details in a tool call
Fields§
§name: String
Name of the function to call
arguments: String
Arguments to the function in JSON string format
Implementations§
Source§impl ChatCompletionMessageToolCallFunction
impl ChatCompletionMessageToolCallFunction
pub fn parse_arguments(&self) -> Result<Value, Error>
Trait Implementations§
Source§impl Clone for ChatCompletionMessageToolCallFunction
impl Clone for ChatCompletionMessageToolCallFunction
Source§fn clone(&self) -> ChatCompletionMessageToolCallFunction
fn clone(&self) -> ChatCompletionMessageToolCallFunction
Returns a duplicate of the value. Read more
1.0.0 · 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 ChatCompletionMessageToolCallFunction
impl<'de> Deserialize<'de> for ChatCompletionMessageToolCallFunction
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 ChatCompletionMessageToolCallFunction
impl RefUnwindSafe for ChatCompletionMessageToolCallFunction
impl Send for ChatCompletionMessageToolCallFunction
impl Sync for ChatCompletionMessageToolCallFunction
impl Unpin for ChatCompletionMessageToolCallFunction
impl UnwindSafe for ChatCompletionMessageToolCallFunction
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