pub struct ChatToolFunction {
pub name: String,
pub description: Option<String>,
pub parameters: JsonPayload,
}Expand description
表示聊天工具函数定义。
Fields§
§name: String函数名。
description: Option<String>函数描述。
parameters: JsonPayload参数 Schema。
Trait Implementations§
Source§impl Clone for ChatToolFunction
impl Clone for ChatToolFunction
Source§fn clone(&self) -> ChatToolFunction
fn clone(&self) -> ChatToolFunction
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 Debug for ChatToolFunction
impl Debug for ChatToolFunction
Source§impl<'de> Deserialize<'de> for ChatToolFunction
impl<'de> Deserialize<'de> for ChatToolFunction
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 ChatToolFunction
impl RefUnwindSafe for ChatToolFunction
impl Send for ChatToolFunction
impl Sync for ChatToolFunction
impl Unpin for ChatToolFunction
impl UnsafeUnpin for ChatToolFunction
impl UnwindSafe for ChatToolFunction
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