Struct Nemo Relay LlmSanitize Request Context

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.

#[repr(C)]pub struct NemoRelayLlmSanitizeRequestContext {
    pub codec_kind: NemoRelayLlmSanitizeCodecKind,
    pub codec_id: *const c_char,
    pub codec: *const FfiLlmSanitizeRequestCodec,
}

Codec identity supplied to an LLM sanitizer. codec_id is null for None and Opaque, and is valid only for the duration of the callback.

Fields

codec_kind: NemoRelayLlmSanitizeCodecKind

Kind of active codec identity.

codec_id: *const c_char

Built-in or runtime codec ID, when applicable.

codec: *const FfiLlmSanitizeRequestCodec

Borrowed request codec capability, or null when no codec is active.