#[non_exhaustive]pub enum ToolCategory {
Builtin,
Custom,
Mcp,
Remote,
WorkflowAsTool,
}Expand description
Category of a tool indicating its origin and deployment context.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Builtin
Built-in framework tool.
Custom
User-defined custom tool.
Mcp
Tool sourced from an MCP server.
Remote
Remote tool (non-MCP API).
WorkflowAsTool
A compiled workflow graph exposed as a tool.
Trait Implementations§
Source§impl Clone for ToolCategory
impl Clone for ToolCategory
Source§fn clone(&self) -> ToolCategory
fn clone(&self) -> ToolCategory
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 ToolCategory
impl Debug for ToolCategory
Source§impl Default for ToolCategory
impl Default for ToolCategory
Source§fn default() -> ToolCategory
fn default() -> ToolCategory
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCategory
impl<'de> Deserialize<'de> for ToolCategory
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 ToolCategory
impl PartialEq for ToolCategory
Source§impl Serialize for ToolCategory
impl Serialize for ToolCategory
impl Copy for ToolCategory
impl Eq for ToolCategory
impl StructuralPartialEq for ToolCategory
Auto Trait Implementations§
impl Freeze for ToolCategory
impl RefUnwindSafe for ToolCategory
impl Send for ToolCategory
impl Sync for ToolCategory
impl Unpin for ToolCategory
impl UnsafeUnpin for ToolCategory
impl UnwindSafe for ToolCategory
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