pub struct CustomTool {
pub name: String,
pub description: Option<String>,
pub format: Option<Format>,
}
Expand description
A custom tool that processes input using a specified format. Learn more about custom tools.
Fields§
§name: String
The name of the custom tool, used to identify it in tool calls.
description: Option<String>
Optional description of the custom tool, used to provide more context.
format: Option<Format>
The input format for the custom tool. Default is unconstrained text.
Implementations§
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
Source§impl PartialEq for CustomTool
impl PartialEq for CustomTool
Source§impl Serialize for CustomTool
impl Serialize for CustomTool
impl StructuralPartialEq for CustomTool
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