pub type LlmConditionalFn = Box<dyn Fn(&LlmRequest) -> Result<Option<String>> + Send + Sync>;Expand description
Decide whether an LLM call is allowed to continue.
The callback receives the current LlmRequest and can allow execution,
reject it with a guardrail reason, or return an error.
Aliased Typeยง
pub struct LlmConditionalFn(/* private fields */);