Type Alias LlmSanitize Response Fn
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub type LlmSanitizeResponseFn = Arc<dyn Fn(Json) -> Json + Send + Sync>;
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.
Returns
Sanitized JSON response payload for the emitted event.