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

pub struct LlmSanitizeRequestContext {
    pub codec: LlmCodecIdentity,
    /* private fields */
}

Active codec context supplied to an LLM request sanitizer.

Fields

codec: LlmCodecIdentity

Identity of the active codec.

Implementations

impl LlmSanitizeRequestContext

impl LlmSanitizeRequestContext

resolve_codec

pub fn resolve_codec(&self) -> Option<WorkerRequestCodec>

Resolves the active request codec for this callback.

Trait Implementations

impl Clone for LlmSanitizeRequestContext

impl Clone for LlmSanitizeRequestContext

clone

fn clone(&self) -> LlmSanitizeRequestContext

clone_from

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