Struct Nemo Relay Native 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 NemoRelayNativeLlmSanitizeRequestContext {
    pub codec_kind: NemoRelayNativeLlmCodecKind,
    pub codec_id: *const NemoRelayNativeString,
    pub codec: *const NemoRelayNativeLlmRequestCodec,
}

Per-call LLM sanitizer context passed over the native ABI.

codec_id is borrowed for the duration of the callback. It is null for NemoRelayNativeLlmCodecKind::None and NemoRelayNativeLlmCodecKind::Opaque. For BuiltIn, it is one of the stable built-in codec IDs; for Runtime, it is the registered codec ID.

Fields

codec_kind: NemoRelayNativeLlmCodecKind

Discriminator for the active codec.

codec_id: *const NemoRelayNativeString

Optional borrowed codec identifier.

codec: *const NemoRelayNativeLlmRequestCodec

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

Trait Implementations

impl Clone for NemoRelayNativeLlmSanitizeRequestContext

impl Clone for NemoRelayNativeLlmSanitizeRequestContext

clone

fn clone(&self) -> NemoRelayNativeLlmSanitizeRequestContext

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for NemoRelayNativeLlmSanitizeRequestContext

impl Debug for NemoRelayNativeLlmSanitizeRequestContext

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Copy for NemoRelayNativeLlmSanitizeRequestContext

impl Copy for NemoRelayNativeLlmSanitizeRequestContext