pub struct LLMTool {
pub name: String,
pub description: String,
pub parameters: Value,
}Expand description
LLM Tool 格式 (用于 API 调用)
Fields§
§name: String工具名称
description: String工具描述
parameters: Value参数 Schema
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LLMTool
impl<'de> Deserialize<'de> for LLMTool
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 LLMTool
impl RefUnwindSafe for LLMTool
impl Send for LLMTool
impl Sync for LLMTool
impl Unpin for LLMTool
impl UnsafeUnpin for LLMTool
impl UnwindSafe for LLMTool
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