Struct LlmSanitize Response 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 LlmSanitizeResponseContext {
    pub codec: LlmCodecIdentity,
    /* private fields */
}

Active codec context supplied to an LLM response sanitizer.

Fields

codec: LlmCodecIdentity

Identity of the active codec.

Implementations

impl LlmSanitizeResponseContext

impl LlmSanitizeResponseContext

resolve_codec

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

Resolves the active response codec for this callback.

Trait Implementations

impl Clone for LlmSanitizeResponseContext

impl Clone for LlmSanitizeResponseContext

clone

fn clone(&self) -> LlmSanitizeResponseContext

clone_from

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