pub struct CustomToolProperties {
pub name: String,
pub description: Option<String>,
pub format: CustomToolPropertiesFormat,
}Fields§
§name: StringThe 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: CustomToolPropertiesFormatThe input format for the custom tool. Default is unconstrained text.
Trait Implementations§
Source§impl Clone for CustomToolProperties
impl Clone for CustomToolProperties
Source§fn clone(&self) -> CustomToolProperties
fn clone(&self) -> CustomToolProperties
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 CustomToolProperties
impl Debug for CustomToolProperties
Source§impl Default for CustomToolProperties
impl Default for CustomToolProperties
Source§fn default() -> CustomToolProperties
fn default() -> CustomToolProperties
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomToolProperties
impl<'de> Deserialize<'de> for CustomToolProperties
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 CustomToolProperties
impl PartialEq for CustomToolProperties
Source§impl Serialize for CustomToolProperties
impl Serialize for CustomToolProperties
impl StructuralPartialEq for CustomToolProperties
Auto Trait Implementations§
impl Freeze for CustomToolProperties
impl RefUnwindSafe for CustomToolProperties
impl Send for CustomToolProperties
impl Sync for CustomToolProperties
impl Unpin for CustomToolProperties
impl UnwindSafe for CustomToolProperties
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