Method
decode_response
(
&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 | |
| 849 | fn resolve_codec(config: &NeMoGuardrailsConfig) -> PluginResult<Option<LocalGuardrailsCodec>> { |
Tested by
no test coverage detected