pub struct Function {
pub name: String,
pub arguments: String,
}Expand description
Function call from the LLM
Fields§
§name: StringName of the function to call
arguments: StringJSON string of arguments
Implementations§
Source§impl Function
impl Function
Sourcepub fn parse_args<T: for<'de> Deserialize<'de>>(&self) -> Result<T, Error>
pub fn parse_args<T: for<'de> Deserialize<'de>>(&self) -> Result<T, Error>
Parse arguments as a specific type
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Function
impl<'de> Deserialize<'de> for Function
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
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnsafeUnpin for Function
impl UnwindSafe for Function
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