Function nemo_relay_register_tool_execution_intercept
Function nemo_relay_register_tool_execution_intercept
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
#[unsafe(no_mangle)]pub unsafe extern "C" fn nemo_relay_register_tool_execution_intercept(
name: *const c_char,
priority: i32,
exec_cb: NemoRelayToolExecInterceptCb,
exec_user_data: *mut c_void,
exec_free: NemoRelayFreeFn,
) -> NemoRelayStatus
Register a tool execution intercept following the middleware chain pattern. The callback receives (args, next_fn, next_ctx) - call next_fn(args, next_ctx) to invoke the next intercept or the original tool function, or skip calling it to short-circuit.
Parameters
name: Unique intercept name.priority: Execution priority (lower runs first).exec_cb: Middleware callback receiving args and a next function.exec_user_data: Opaque pointer for the execution callback.exec_free: Optional destructor forexec_user_data.
Safety
name must be a valid C string. Callback pointers must be valid.