pub enum FeatureSupport {
Supported,
Unsupported,
PassthroughAsTool,
}Expand description
Tri-state feature support declaration.
Using a tri-state instead of bool allows expressing
FeatureSupport::PassthroughAsTool — pseudo-support via adaptation. Even though
nothing currently produces this value, defining a tri-state from the start is simpler
than upgrading from bool to an enum later.
Variants§
Supported
Unsupported
PassthroughAsTool
Passthrough support via adapter.
For example, a provider may not natively support web_search, but the agent wraps
it as a tool exposed to the LLM, thereby “pretending” to support it.
Trait Implementations§
Source§impl Clone for FeatureSupport
impl Clone for FeatureSupport
Source§fn clone(&self) -> FeatureSupport
fn clone(&self) -> FeatureSupport
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 FeatureSupport
Source§impl Debug for FeatureSupport
impl Debug for FeatureSupport
Source§impl<'de> Deserialize<'de> for FeatureSupport
impl<'de> Deserialize<'de> for FeatureSupport
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
impl Eq for FeatureSupport
Source§impl PartialEq for FeatureSupport
impl PartialEq for FeatureSupport
Source§fn eq(&self, other: &FeatureSupport) -> bool
fn eq(&self, other: &FeatureSupport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FeatureSupport
impl Serialize for FeatureSupport
impl StructuralPartialEq for FeatureSupport
Auto Trait Implementations§
impl Freeze for FeatureSupport
impl RefUnwindSafe for FeatureSupport
impl Send for FeatureSupport
impl Sync for FeatureSupport
impl Unpin for FeatureSupport
impl UnsafeUnpin for FeatureSupport
impl UnwindSafe for FeatureSupport
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