Skip to main content

nemo_flow_tool_conditional_execution

Function nemo_flow_tool_conditional_execution 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn nemo_flow_tool_conditional_execution( name: *const c_char, args_json: *const c_char, ) -> NemoFlowStatus
Expand description

Run the registered tool conditional execution guardrail chain.

Returns NemoFlowStatus::Ok if all guardrails pass, or NemoFlowStatus::GuardrailRejected if blocked.

§Parameters

  • name: Tool name (null-terminated C string).
  • args_json: Tool arguments as a JSON C string.

§Returns

Returns NemoFlowStatus::Ok when execution is allowed and NemoFlowStatus::GuardrailRejected when a guardrail blocks the call.

§Safety

All pointers must be valid.