> 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 AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Type Alias LlmSanitize Response Fn

> Sanitize an LLM response before the runtime records it.

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`.

<pre />

Sanitize an LLM response before the runtime records it.

These callbacks rewrite the JSON response payload captured on LLM-end events, which is useful for redaction or payload normalization.

## Parameters

* First argument: JSON response payload to sanitize for observability.
* Second argument: Per-call response codec identity and capability.

## Returns

`Some` contains the sanitized response for the emitted event. `None` omits both the raw response payload and its annotation from that event.

The context is always supplied and distinguishes no codec, built-in codecs, runtime-registered codecs, and opaque active codecs.

## Aliased Type

```rust
pub struct LlmSanitizeResponseFn { /* private fields */ }
```