pub struct CustomToolParam {
pub name: String,
pub description: Option<String>,
pub format: CustomToolParamFormat,
pub defer_loading: Option<bool>,
}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: CustomToolParamFormatThe input format for the custom tool. Default is unconstrained text.
defer_loading: Option<bool>Whether this tool should be deferred and discovered via tool search.
Trait Implementations§
Source§impl Clone for CustomToolParam
impl Clone for CustomToolParam
Source§fn clone(&self) -> CustomToolParam
fn clone(&self) -> CustomToolParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CustomToolParam
impl Debug for CustomToolParam
Source§impl Default for CustomToolParam
impl Default for CustomToolParam
Source§fn default() -> CustomToolParam
fn default() -> CustomToolParam
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomToolParam
impl<'de> Deserialize<'de> for CustomToolParam
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomToolParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomToolParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CustomToolParam> for Tool
impl From<CustomToolParam> for Tool
Source§fn from(tool: CustomToolParam) -> Tool
fn from(tool: CustomToolParam) -> Tool
Converts to this type from the input type.
Source§impl PartialEq for CustomToolParam
impl PartialEq for CustomToolParam
Source§impl Serialize for CustomToolParam
impl Serialize for CustomToolParam
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CustomToolParam
Auto Trait Implementations§
impl Freeze for CustomToolParam
impl RefUnwindSafe for CustomToolParam
impl Send for CustomToolParam
impl Sync for CustomToolParam
impl Unpin for CustomToolParam
impl UnsafeUnpin for CustomToolParam
impl UnwindSafe for CustomToolParam
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