MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / encode

Method encode

crates/core/src/plugins/nemo_guardrails/python.rs:825–835  ·  view source on GitHub ↗
(
        &self,
        annotated: &AnnotatedLlmRequest,
        original: &LlmRequest,
    )

Source from the content-addressed store, hash-verified

823 }
824
825 fn encode(
826 &self,
827 annotated: &AnnotatedLlmRequest,
828 original: &LlmRequest,
829 ) -> FlowResult<LlmRequest> {
830 match self {
831 Self::OpenAIChat => OpenAIChatCodec.encode(annotated, original),
832 Self::OpenAIResponses => OpenAIResponsesCodec.encode(annotated, original),
833 Self::AnthropicMessages => AnthropicMessagesCodec.encode(annotated, original),
834 }
835 }
836
837 fn decode_response(
838 &self,

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.65

Tested by

no test coverage detected