Function scope_register_tool_conditional_execution_guardrail
Function scope_register_tool_conditional_execution_guardrail
Function scope_register_tool_conditional_execution_guardrail
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub fn scope_register_tool_conditional_execution_guardrail(
scope_uuid: &Uuid,
name: &str,
priority: i32,
guardrail: ToolConditionalFn,
) -> Result<()>
Register a scope-local tool conditional-execution guardrail. The guardrail can block tool execution inside the owning scope.
scope_uuid: UUID of the active scope that owns the middleware.name: Unique middleware name within that scope.priority: Lower values run earlier in the chain.guardrail: Guardrail callback stored under name.A Result that is Ok(()) when the guardrail was registered.
Returns FlowError::NotFound when the scope is not active, FlowError::AlreadyExists when the name is already in use on that scope, or an internal error if the runtime owner check fails.