pub enum ProviderFeature {
ExplicitCacheBreakpoints,
AutomaticPrefixCaching,
RetentionTiers,
PriorityScheduling,
ModelRouting,
DeferredToolLoading,
FileReferences,
StructuredOutput,
PrefixAffinityHints,
StreamingTokenCounts,
}Expand description
Feature that a backend or model family may support.
Used by the capability registry and policy engine to determine which optimization intents can be expressed for a given target.
Variants§
ExplicitCacheBreakpoints
Backend supports explicit cache control breakpoints (e.g., Anthropic).
AutomaticPrefixCaching
Backend uses automatic prefix caching (e.g., OpenAI).
RetentionTiers
Backend supports retention tier control.
PriorityScheduling
Backend supports priority-based scheduling.
ModelRouting
Backend supports model routing/selection.
DeferredToolLoading
Backend supports deferred tool loading.
FileReferences
Backend supports file/artifact references in prompts.
StructuredOutput
Backend supports structured output schemas.
PrefixAffinityHints
Backend supports prefix-affinity routing hints.
StreamingTokenCounts
Backend reports per-chunk token counts in streaming responses.
Trait Implementations§
Source§impl Clone for ProviderFeature
impl Clone for ProviderFeature
Source§fn clone(&self) -> ProviderFeature
fn clone(&self) -> ProviderFeature
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 ProviderFeature
impl Debug for ProviderFeature
Source§impl<'de> Deserialize<'de> for ProviderFeature
impl<'de> Deserialize<'de> for ProviderFeature
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 Hash for ProviderFeature
impl Hash for ProviderFeature
Source§impl PartialEq for ProviderFeature
impl PartialEq for ProviderFeature
Source§fn eq(&self, other: &ProviderFeature) -> bool
fn eq(&self, other: &ProviderFeature) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderFeature
impl Serialize for ProviderFeature
impl Copy for ProviderFeature
impl Eq for ProviderFeature
impl StructuralPartialEq for ProviderFeature
Auto Trait Implementations§
impl Freeze for ProviderFeature
impl RefUnwindSafe for ProviderFeature
impl Send for ProviderFeature
impl Sync for ProviderFeature
impl Unpin for ProviderFeature
impl UnsafeUnpin for ProviderFeature
impl UnwindSafe for ProviderFeature
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