pub struct ToolInfo {
pub name: String,
pub description: Option<String>,
pub input_schema: Value,
}
Expand description
Information about a tool
Fields§
§name: String
Name of the tool
description: Option<String>
Description of what the tool does
input_schema: Value
JSON Schema describing the tool’s input parameters
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolInfo
impl<'de> Deserialize<'de> for ToolInfo
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 ToolInfo
Auto Trait Implementations§
impl Freeze for ToolInfo
impl RefUnwindSafe for ToolInfo
impl Send for ToolInfo
impl Sync for ToolInfo
impl Unpin for ToolInfo
impl UnwindSafe for ToolInfo
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