> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.nvidia.com/nemo/relay/v0.10.0/reference/api/rust-library-reference/nemo-relay-adaptive/acg/anthropic_plugin/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server. # Module anthropic_plugin > Anthropic cache plugin for the Adaptive Cache Governor (ACG) system. Generated from `cargo doc --no-deps -p nemo-relay -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`. Anthropic cache plugin for the Adaptive Cache Governor (ACG) system. Translates ACG stability classifications into Anthropic-specific `cache_control` breakpoints on content blocks. Implements the [`ProviderPlugin`](/reference/api/rust-library-reference/nemo-relay-adaptive/acg/plugin/trait-providerplugin) trait with: * **Breakpoint budget allocation**: Up to 4 breakpoints per request. * **Token minimum enforcement**: Per-model from [`CapabilityRegistry`](/reference/api/rust-library-reference/nemo-relay-adaptive/acg/capability/struct-capabilityregistry). * **TTL mapping**: `RetentionTier` to Anthropic TTL (5m default or 1h extended). * **Tool schema canonicalization**: RFC 8785 via \[`canonicalize_value`]. * **System string-to-array conversion**: Handles both string and array-of-blocks format. ## Threat mitigations * T-08-01: Only injects `cache_control` annotations with fixed structure `{"type": "ephemeral"}`. * T-08-02: `scope_label` is logged in detail but does NOT change cache visibility. * T-08-03: All JSON access uses Option-returning methods; errors propagate via `Result`. * T-08-05: TTL is hardcoded to exactly 2 behaviors (omit or `"1h"`). ## Structs * [AnthropicCachePlugin](/reference/api/rust-library-reference/nemo-relay-adaptive/acg/anthropic_plugin/struct-anthropiccacheplugin): Anthropic-specific provider plugin for cache\_control breakpoint injection. > Anthropic cache plugin for the Adaptive Cache Governor (ACG) system. ## Docs - [Struct Anthropic Cache Plugin](https://docs.nvidia.com/nemo/relay/v0.10.0/reference/api/rust-library-reference/nemo-relay-adaptive/acg/anthropic_plugin/struct-anthropiccacheplugin.md): Anthropic-specific provider plugin for cache_control breakpoint injection.