Function llm_conditional_execution
Function llm_conditional_execution
Function llm_conditional_execution
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub fn llm_conditional_execution(request: &LlmRequest) -> Result<()>
Run only the LLM conditional-execution guardrail chain.
This evaluates whether an LLM call should be allowed to proceed without invoking request intercepts or execution. Each evaluated guardrail emits an automatic guardrail scope start/end pair for observability.
request: Raw LlmRequest to validate.A Result that is Ok(()) when all guardrails allow execution.
Returns FlowError::GuardrailRejected when a guardrail blocks execution, or any error raised by the guardrail chain itself.
This helper is useful for preflight checks when the caller needs the rejection result without starting an LLM span. Guardrail scopes are still emitted for the conditional checks themselves.