Function wrap_tool_exec_intercept_fn

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub fn wrap_tool_exec_intercept_fn(
    cb: NemoRelayToolExecInterceptCb,
    user_data: *mut c_void,
    free_fn: NemoRelayFreeFn,
) -> ToolExecutionFn

Wrap a C tool execution intercept callback into a ToolExecutionFn.

The wrapper packages the Rust ToolExecutionNextFn into a C-callable (next_fn, next_ctx) pair and passes both to the C intercept callback. The callback must return a serialized ToolExecutionInterceptOutcome.