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

Method check

crates/core/src/plugins/nemo_guardrails/python.rs:319–333  ·  view source on GitHub ↗
(
        &self,
        messages: Vec<Json>,
        kind: LocalRailKind,
    )

Source from the content-addressed store, hash-verified

317 }
318
319 async fn check(
320 &self,
321 messages: Vec<Json>,
322 kind: LocalRailKind,
323 ) -> FlowResult<LocalCheckOutcome> {
324 let result = self
325 .worker
326 .request(json!({
327 "command": "check",
328 "messages": messages,
329 "rail_type": kind.as_str(),
330 }))
331 .await?;
332 parse_check_result(result)
333 }
334
335 async fn has_streaming_output_rails(&self) -> FlowResult<bool> {
336 let result = self

Callers 4

prepare_llm_requestMethod · 0.45
check_output_railsMethod · 0.45
check_tool_inputMethod · 0.45
check_tool_outputMethod · 0.45

Calls 2

parse_check_resultFunction · 0.85
requestMethod · 0.80

Tested by

no test coverage detected