Skip to navigation

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct BackendCapabilities {
pub backend_id: String,
pub supported_features: HashSet<ProviderFeature>,
pub model_families: HashMap<String, ModelFamilyCapabilities>,
}

Referenced types: String, HashSet, ProviderFeature, HashMap, 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

Referenced types: BackendCapabilities

none

pub fn none(backend_id: &str) -> Self

Referenced types: str

Create capabilities with no features (used by passthrough plugin).

supports

pub fn supports(&self, feature: ProviderFeature) -> bool

Referenced types: 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

Referenced types: str, 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)

Referenced types: ModelFamilyCapabilities

Add a model family capability override.

Trait Implementations

impl Clone for BackendCapabilities

impl Clone for BackendCapabilities

Referenced types: Clone, BackendCapabilities

clone

fn clone(&self) -> BackendCapabilities

Referenced types: clone, BackendCapabilities

clone_from

fn clone_from(&mut self, source: &Self)

Referenced types: clone_from

impl Debug for BackendCapabilities

impl Debug for BackendCapabilities

Referenced types: Debug, BackendCapabilities

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Referenced types: fmt, Formatter, Result

impl<'de> Deserialize<'de> for BackendCapabilities

impl<'de> Deserialize<'de> for BackendCapabilities

Referenced types: Deserialize, BackendCapabilities

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,

Referenced types: deserialize, Result, Error, Deserializer

impl PartialEq for BackendCapabilities

impl PartialEq for BackendCapabilities

Referenced types: PartialEq, BackendCapabilities

eq

fn eq(&self, other: &BackendCapabilities) -> bool

Referenced types: eq, BackendCapabilities, bool

ne

fn ne(&self, other: &Rhs) -> bool

Referenced types: ne, &Rhs, bool

impl Serialize for BackendCapabilities

impl Serialize for BackendCapabilities

Referenced types: Serialize, BackendCapabilities

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,

Referenced types: serialize, Result, Ok, Error, Serializer

impl StructuralPartialEq for BackendCapabilities

impl StructuralPartialEq for BackendCapabilities

Referenced types: StructuralPartialEq, BackendCapabilities