> 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 Prediction Trie Lookup

> Looks up predictions in a prediction trie with graceful fallback.

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

```rust
pub struct PredictionTrieLookup<'a> { /* private fields */ }
```

Looks up predictions in a prediction trie with graceful fallback.

Fallback chain:

1. Exact path + exact call\_index
2. Exact path + predictions\_any\_index
3. Deepest ancestor + exact call\_index
4. Deepest ancestor + predictions\_any\_index
5. ... continue to root ...
6. None (no predictions available)

## Implementations

### `impl<'a> PredictionTrieLookup<'a>`

<pre />

#### `new`

<pre />

Create a new lookup over the given trie root.

#### `find`

<pre />

Find the best matching prediction for the given path and call index.

Walks the trie following `path` elements, tracking the deepest node that has a prediction. At each node, prefers `predictions_by_call_index[call_index]` over `predictions_any_index`.