Trait Provider Plugin
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.
Referenced types: Send, Sync, str, PluginInput, Result, PluginOutput, BackendCapabilities
Provider plugin trait for backend-specific translation.
Plugins are stateless on the forward path. They translate provider-agnostic intents into backend-native API parameters.
Object Safety
This trait is object-safe and can be stored as Arc<dyn ProviderPlugin>.
Thread Safety
The Send + Sync bounds allow plugins to be shared across async tasks and threads.
Required Methods
plugin_id
Referenced types: str
Unique identifier for this plugin (e.g., “anthropic”, “openai”, “passthrough”).
plugin_name
Referenced types: str
Human-readable name for this plugin.
translate
Referenced types: PluginInput, Result, PluginOutput
Translate intents into backend-native API parameters.
capabilities
Referenced types: BackendCapabilities
Report the capabilities of the backend this plugin targets.
Implementors
impl ProviderPlugin for AnthropicCachePlugin
Referenced types: ProviderPlugin, AnthropicCachePlugin
impl ProviderPlugin for OpenAICachePlugin
Referenced types: ProviderPlugin, OpenAICachePlugin
impl ProviderPlugin for PassthroughPlugin
Referenced types: ProviderPlugin, PassthroughPlugin