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

Method decode_response

crates/core/src/plugins/nemo_guardrails/python.rs:837–846  ·  view source on GitHub ↗
(
        &self,
        response: &Json,
    )

Source from the content-addressed store, hash-verified

835 }
836
837 fn decode_response(
838 &self,
839 response: &Json,
840 ) -> FlowResult<crate::codec::response::AnnotatedLlmResponse> {
841 match self {
842 Self::OpenAIChat => OpenAIChatCodec.decode_response(response),
843 Self::OpenAIResponses => OpenAIResponsesCodec.decode_response(response),
844 Self::AnthropicMessages => AnthropicMessagesCodec.decode_response(response),
845 }
846 }
847}
848
849fn resolve_codec(config: &NeMoGuardrailsConfig) -> PluginResult<Option<LocalGuardrailsCodec>> {

Callers 1

execute_llmMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected