Struct Backend Capabilities
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub struct BackendCapabilities {
pub backend_id: String,
pub supported_features: HashSet<ProviderFeature>,
pub model_families: HashMap<String, ModelFamilyCapabilities>,
}
Capabilities of a specific backend provider.
Two-level model: backend-level defaults plus per-model-family overrides. Feature lookup checks model-family first, falls back to backend-level.
Fields
backend_id: String
Backend identifier (e.g., “anthropic”, “openai”, “passthrough”).
supported_features: HashSet<ProviderFeature>
Backend-level supported features (default for all models).
model_families: HashMap<String, ModelFamilyCapabilities>
Per-model-family capability overrides.
Implementations
impl BackendCapabilities
impl BackendCapabilities
none
pub fn none(backend_id: &str) -> Self
Create capabilities with no features (used by passthrough plugin).
supports
pub fn supports(&self, feature: ProviderFeature) -> bool
Check if the backend supports a feature at the backend level.
model_supports
pub fn model_supports(
&self,
model_family: &str,
feature: ProviderFeature,
) -> bool
Check if a specific model family supports a feature.
Falls back to backend-level if the model family is not registered.
add_model_family
pub fn add_model_family(&mut self, caps: ModelFamilyCapabilities)
Add a model family capability override.
Trait Implementations
impl Clone for BackendCapabilities
impl Clone for BackendCapabilities
clone
fn clone(&self) -> BackendCapabilities
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for BackendCapabilities
impl Debug for BackendCapabilities
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for BackendCapabilities
impl<'de> Deserialize<'de> for BackendCapabilities
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl PartialEq for BackendCapabilities
impl PartialEq for BackendCapabilities
eq
fn eq(&self, other: &BackendCapabilities) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for BackendCapabilities
impl Serialize for BackendCapabilities
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for BackendCapabilities
impl StructuralPartialEq for BackendCapabilities