Type Alias Nemo Relay Native LlmSanitize Response Cb

View as Markdown

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.

pub type NemoRelayNativeLlmSanitizeResponseCb = unsafe extern "C" fn(user_data: *mut c_void, payload_json: *const NemoRelayNativeString, context: NemoRelayNativeLlmSanitizeResponseContext, out_json: *mut *mut NemoRelayNativeString) -> NemoRelayStatus;

Native LLM response sanitizer callback. Return a successful null output to omit the observability payload and annotation. payload_json is borrowed, but may be written directly to out_json as a pass-through; the host releases an aliased input/output once. Any other non-null output must be host-allocated and transfers ownership to the host.