Skip to main content

llm_conditional_execution

Function llm_conditional_execution 

Source
pub fn llm_conditional_execution(request: &LlmRequest) -> Result<()>
Expand description

Run only the LLM conditional-execution guardrail chain.

This evaluates whether an LLM call should be allowed to proceed without emitting lifecycle events or invoking request intercepts or execution.

§Parameters

§Returns

A Result that is Ok(()) when all guardrails allow execution.

§Errors

Returns FlowError::GuardrailRejected when a guardrail blocks execution, or any error raised by the guardrail chain itself.

§Notes

This helper is useful for preflight checks when the caller needs the rejection result without starting an LLM span.