pub fn tool_conditional_execution(name: &str, args: &Json) -> Result<()>Expand description
Run only the tool conditional-execution guardrail chain.
This evaluates whether a tool call should be allowed to proceed without emitting lifecycle events or invoking request intercepts or execution.
§Parameters
name: Tool name used when resolving the guardrail chain.args: Raw tool arguments to validate.
§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 a tool span.