Function nemo_relay_llm_conditional_execution
Function nemo_relay_llm_conditional_execution
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.
#[unsafe(no_mangle)]pub unsafe extern "C" fn nemo_relay_llm_conditional_execution(
native_json: *const c_char,
) -> NemoRelayStatus
Run the registered LLM conditional execution guardrail chain.
This legacy helper blocks its caller. If called from a Tokio runtime, middleware must not depend on work driven exclusively by that caller thread.
Returns NemoRelayStatus::Ok if all guardrails pass, or NemoRelayStatus::GuardrailRejected if blocked.
Parameters
native_json: The request payload as a JSON C string representing anLlmRequest({"headers": {...}, "content": {...}}).
Returns
Returns NemoRelayStatus::Ok when execution is allowed and NemoRelayStatus::GuardrailRejected when a guardrail blocks the call.
Safety
All pointers must be valid.