pub enum ToolAvailability {
Off,
Searchable,
Callable,
Showcased,
}Variants§
Off
Keep the tool out of the current surface entirely.
The definition can remain in registry state so host or authority overrides survive refreshes, but the model cannot search, see, or call the tool.
Searchable
Include the tool in the searchable catalog, but not in the model’s callable tool list.
Callable
Include the tool in the model’s callable tool list, without featuring it in prompt-side tool documentation.
Showcased
Include the tool in the callable list and feature it in prompt-side tool documentation.
Implementations§
Source§impl ToolAvailability
impl ToolAvailability
pub fn is_searchable(self) -> bool
pub fn is_callable(self) -> bool
pub fn is_showcased(self) -> bool
Trait Implementations§
Source§impl Clone for ToolAvailability
impl Clone for ToolAvailability
Source§fn clone(&self) -> ToolAvailability
fn clone(&self) -> ToolAvailability
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 moreimpl Copy for ToolAvailability
Source§impl Debug for ToolAvailability
impl Debug for ToolAvailability
Source§impl Default for ToolAvailability
impl Default for ToolAvailability
Source§fn default() -> ToolAvailability
fn default() -> ToolAvailability
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolAvailability
impl<'de> Deserialize<'de> for ToolAvailability
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolAvailability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolAvailability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolAvailability
Source§impl Ord for ToolAvailability
impl Ord for ToolAvailability
Source§fn cmp(&self, other: &ToolAvailability) -> Ordering
fn cmp(&self, other: &ToolAvailability) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ToolAvailability
impl PartialEq for ToolAvailability
Source§fn eq(&self, other: &ToolAvailability) -> bool
fn eq(&self, other: &ToolAvailability) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ToolAvailability
impl PartialOrd for ToolAvailability
Source§impl Serialize for ToolAvailability
impl Serialize for ToolAvailability
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 ToolAvailability
Auto Trait Implementations§
impl Freeze for ToolAvailability
impl RefUnwindSafe for ToolAvailability
impl Send for ToolAvailability
impl Sync for ToolAvailability
impl Unpin for ToolAvailability
impl UnsafeUnpin for ToolAvailability
impl UnwindSafe for ToolAvailability
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