> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/relay/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Struct Cache Request Facts

> Request-time facts used to classify a cache miss without leaking prompt text.

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

<pre />

Request-time facts used to classify a cache miss without leaking prompt text.

## Fields

### `provider: String`

Canonical provider string associated with the request facts.

### `stable_prefix_length: usize`

Number of stable prefix blocks observed in the request.

### `stable_prefix_tokens: Option<u32>`

Token count for the stable prefix when it can be measured safely.

### `required_min_tokens: Option<u32>`

Minimum provider threshold required for cache reuse.

### `first_mismatch_span_id: Option<String>`

Span ID of the first stable block that mismatched the retained exemplar.

### `first_mismatch_sequence_index: Option<u32>`

Sequence index of the first mismatching stable block.

### `expected_hash_prefix: Option<String>`

Expected short SHA-256 hash prefix for the first mismatching block.

### `actual_hash_prefix: Option<String>`

Actual short SHA-256 hash prefix for the first mismatching block.

### `retention_window_secs: Option<f64>`

Active cache retention window in seconds when provider semantics expose one.

### `observed_gap_secs: Option<f64>`

Observed elapsed time since the same stable prefix was last seen.

### `missing_facts: Vec<String>`

Facts that were unavailable when the runtime attempted diagnosis.

## Trait Implementations

### `impl Clone for CacheRequestFacts`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for CacheRequestFacts`

<pre />

#### `fmt`

<pre />

### `impl<'de> Deserialize<'de> for CacheRequestFacts`

<pre />

#### `deserialize`

<pre />

### `impl PartialEq for CacheRequestFacts`

<pre />

#### `eq`

<pre />

#### `ne`

<pre />

### `impl Serialize for CacheRequestFacts`

<pre />

#### `serialize`

<pre />

### `impl StructuralPartialEq for CacheRequestFacts`

<pre />