pub struct Tool {
pub id: String,
pub name: String,
pub description: Option<String>,
pub tool_type: Option<ToolType>,
pub config: Option<ToolConfig>,
pub enabled: bool,
pub version: Option<String>,
}Expand description
Tool definition for assistants
Fields§
§id: StringTool ID
name: StringTool name
description: Option<String>Tool description
tool_type: Option<ToolType>Tool type (optional - may not be in all API responses)
config: Option<ToolConfig>Tool configuration (optional - may not be in all API responses)
enabled: boolWhether tool is enabled
version: Option<String>Tool version
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tool
impl<'de> Deserialize<'de> for Tool
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 Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnwindSafe for Tool
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