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 AnthropicCachePlugin { /* private fields */ }

Anthropic-specific provider plugin for cache_control breakpoint injection.

Translates CacheStability and Retention intents into Anthropic’s explicit cache_control annotations. Other intent types are marked Ignored / NotRelevant.

Construction

This example is ignored by Rust documentation tests (not tested).
let registry = CapabilityRegistry::with_defaults();
let plugin = AnthropicCachePlugin::new(&registry);

Implementations

impl AnthropicCachePlugin

impl AnthropicCachePlugin

Referenced types: AnthropicCachePlugin

new

pub fn new(registry: &CapabilityRegistry) -> Self

Referenced types: CapabilityRegistry

Create a new Anthropic cache plugin backed by the given capability registry.

The registry is cloned into an Arc for shared ownership.

Trait Implementations

impl ProviderPlugin for AnthropicCachePlugin

impl ProviderPlugin for AnthropicCachePlugin

Referenced types: ProviderPlugin, AnthropicCachePlugin

plugin_id

fn plugin_id(&self) -> &str

Referenced types: plugin_id, str

plugin_name

fn plugin_name(&self) -> &str

Referenced types: plugin_name, str

translate

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

Referenced types: translate, PluginInput, Result, PluginOutput

capabilities

fn capabilities(&self) -> BackendCapabilities

Referenced types: capabilities, BackendCapabilities