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 PassthroughPlugin;

A no-op provider plugin that passes requests through unchanged.

Returns the rewritten_request as-is (cloned) and generates a TranslationReport where every intent is marked TranslationStatus::Ignored with ReasonCode::NotRelevant.

Usage

  • Default plugin when no provider-specific plugin is configured
  • Baseline for A/B testing (compare against optimized plugins)
  • Backends with no explicit cache control APIs

Trait Implementations

impl ProviderPlugin for PassthroughPlugin

impl ProviderPlugin for PassthroughPlugin

plugin_id

fn plugin_id(&self) -> &str

plugin_name

fn plugin_name(&self) -> &str

translate

fn translate(&self, input: &PluginInput<'_>) -> Result<PluginOutput>

capabilities

fn capabilities(&self) -> BackendCapabilities