Struct Passthrough Plugin

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

1pub 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