pub struct CustomTool {
pub name: String,
pub tool_type: Option<String>,
pub description: Option<String>,
pub input_schema: InputSchema,
pub cache_control: Option<CacheControl>,
}Expand description
Custom tool definition
Fields§
§name: StringName of the tool
tool_type: Option<String>Optional type (defaults to “custom”)
description: Option<String>Description of what this tool does
input_schema: InputSchemaJSON schema for the tool’s input
cache_control: Option<CacheControl>Cache control for this tool
Trait Implementations§
Source§impl Clone for CustomTool
impl Clone for CustomTool
Source§fn clone(&self) -> CustomTool
fn clone(&self) -> CustomTool
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 CustomTool
impl Debug for CustomTool
Source§impl<'de> Deserialize<'de> for CustomTool
impl<'de> Deserialize<'de> for CustomTool
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 CustomTool
impl RefUnwindSafe for CustomTool
impl Send for CustomTool
impl Sync for CustomTool
impl Unpin for CustomTool
impl UnwindSafe for CustomTool
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