Struct Worker Request Codec
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.
Invocation-scoped proxy for the active LLM request codec.
Implementations
impl WorkerRequestCodec
impl WorkerRequestCodec
decode
pub async fn decode(&self, request: &LlmRequest) -> Result<AnnotatedLlmRequest>
Decodes an opaque request into its normalized representation.
encode
pub async fn encode(
&self,
annotated: &AnnotatedLlmRequest,
original: &LlmRequest,
) -> Result<LlmRequest>
Encodes normalized request changes onto the original opaque request.
Trait Implementations
impl Clone for WorkerRequestCodec
impl Clone for WorkerRequestCodec
clone
fn clone(&self) -> WorkerRequestCodec
clone_from
fn clone_from(&mut self, source: &Self)